@azure/arm-batch 5.1.0 → 7.0.0-alpha.20211215.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -83
  4. package/dist/index.js +6873 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/batchManagementClient.d.ts +24 -0
  9. package/dist-esm/src/batchManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/batchManagementClient.js +31 -0
  11. package/dist-esm/src/batchManagementClient.js.map +1 -0
  12. package/dist-esm/src/batchManagementClientContext.d.ts +17 -0
  13. package/dist-esm/src/batchManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/batchManagementClientContext.js +50 -0
  15. package/dist-esm/src/batchManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +1780 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +9 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +112 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +1814 -1452
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +34 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +303 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
  37. package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/applicationOperations.js +269 -0
  39. package/dist-esm/src/operations/applicationOperations.js.map +1 -0
  40. package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
  41. package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
  43. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
  44. package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
  45. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/batchAccountOperations.js +681 -0
  47. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
  48. package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
  49. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/certificateOperations.js +388 -0
  51. package/dist-esm/src/operations/certificateOperations.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +3 -5
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/location.d.ts +71 -0
  57. package/dist-esm/src/operations/location.d.ts.map +1 -0
  58. package/dist-esm/src/operations/location.js +316 -0
  59. package/dist-esm/src/operations/location.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +32 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +120 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/poolOperations.d.ts +103 -0
  65. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/poolOperations.js +410 -0
  67. package/dist-esm/src/operations/poolOperations.js.map +1 -0
  68. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
  69. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
  71. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
  72. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
  73. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
  74. package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
  75. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
  77. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/applicationOperations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
  81. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
  85. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/batchAccountOperations.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
  89. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  93. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  95. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
  97. package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/location.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  101. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +78 -0
  105. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
  109. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
  113. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +4 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +479 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +65 -30
  121. package/review/arm-batch.api.md +1459 -0
  122. package/rollup.config.js +181 -30
  123. package/src/batchManagementClient.ts +61 -51
  124. package/src/batchManagementClientContext.ts +48 -46
  125. package/src/index.ts +13 -0
  126. package/src/lroImpl.ts +34 -0
  127. package/src/models/index.ts +1469 -3055
  128. package/src/models/mappers.ts +1967 -1573
  129. package/src/models/parameters.ts +218 -120
  130. package/src/operations/applicationOperations.ts +217 -262
  131. package/src/operations/applicationPackageOperations.ts +254 -277
  132. package/src/operations/batchAccountOperations.ts +682 -466
  133. package/src/operations/certificateOperations.ts +365 -353
  134. package/src/operations/index.ts +3 -5
  135. package/src/operations/location.ts +344 -78
  136. package/src/operations/operations.ts +84 -70
  137. package/src/operations/poolOperations.ts +379 -375
  138. package/src/operations/privateEndpointConnectionOperations.ts +271 -168
  139. package/src/operations/privateLinkResourceOperations.ts +158 -125
  140. package/src/operationsInterfaces/applicationOperations.ts +90 -0
  141. package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
  142. package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
  143. package/src/operationsInterfaces/certificateOperations.ts +139 -0
  144. package/src/operationsInterfaces/index.ts +17 -0
  145. package/src/operationsInterfaces/location.ts +62 -0
  146. package/src/operationsInterfaces/operations.ts +22 -0
  147. package/src/operationsInterfaces/poolOperations.ts +142 -0
  148. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
  149. package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
  150. package/tsconfig.json +3 -3
  151. package/types/arm-batch.d.ts +2528 -0
  152. package/types/tsdoc-metadata.json +11 -0
  153. package/dist/arm-batch.js +0 -6219
  154. package/dist/arm-batch.js.map +0 -1
  155. package/dist/arm-batch.min.js +0 -1
  156. package/dist/arm-batch.min.js.map +0 -1
  157. package/esm/batchManagementClient.d.ts +0 -33
  158. package/esm/batchManagementClient.d.ts.map +0 -1
  159. package/esm/batchManagementClient.js +0 -47
  160. package/esm/batchManagementClient.js.map +0 -1
  161. package/esm/batchManagementClientContext.d.ts +0 -23
  162. package/esm/batchManagementClientContext.d.ts.map +0 -1
  163. package/esm/batchManagementClientContext.js +0 -62
  164. package/esm/batchManagementClientContext.js.map +0 -1
  165. package/esm/models/applicationOperationsMappers.d.ts +0 -2
  166. package/esm/models/applicationOperationsMappers.d.ts.map +0 -1
  167. package/esm/models/applicationOperationsMappers.js +0 -9
  168. package/esm/models/applicationOperationsMappers.js.map +0 -1
  169. package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
  170. package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
  171. package/esm/models/applicationPackageOperationsMappers.js +0 -9
  172. package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
  173. package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
  174. package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
  175. package/esm/models/batchAccountOperationsMappers.js +0 -9
  176. package/esm/models/batchAccountOperationsMappers.js.map +0 -1
  177. package/esm/models/certificateOperationsMappers.d.ts +0 -2
  178. package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
  179. package/esm/models/certificateOperationsMappers.js +0 -9
  180. package/esm/models/certificateOperationsMappers.js.map +0 -1
  181. package/esm/models/index.d.ts +0 -3392
  182. package/esm/models/index.d.ts.map +0 -1
  183. package/esm/models/index.js +0 -8
  184. package/esm/models/index.js.map +0 -1
  185. package/esm/models/locationMappers.d.ts +0 -2
  186. package/esm/models/locationMappers.d.ts.map +0 -1
  187. package/esm/models/locationMappers.js +0 -9
  188. package/esm/models/locationMappers.js.map +0 -1
  189. package/esm/models/mappers.d.ts +0 -96
  190. package/esm/models/mappers.d.ts.map +0 -1
  191. package/esm/models/mappers.js.map +0 -1
  192. package/esm/models/operationsMappers.d.ts +0 -2
  193. package/esm/models/operationsMappers.d.ts.map +0 -1
  194. package/esm/models/operationsMappers.js +0 -9
  195. package/esm/models/operationsMappers.js.map +0 -1
  196. package/esm/models/parameters.d.ts +0 -21
  197. package/esm/models/parameters.d.ts.map +0 -1
  198. package/esm/models/parameters.js +0 -251
  199. package/esm/models/parameters.js.map +0 -1
  200. package/esm/models/poolOperationsMappers.d.ts +0 -2
  201. package/esm/models/poolOperationsMappers.d.ts.map +0 -1
  202. package/esm/models/poolOperationsMappers.js +0 -9
  203. package/esm/models/poolOperationsMappers.js.map +0 -1
  204. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
  205. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
  206. package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
  207. package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
  208. package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
  209. package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
  210. package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
  211. package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
  212. package/esm/operations/applicationOperations.d.ts +0 -151
  213. package/esm/operations/applicationOperations.d.ts.map +0 -1
  214. package/esm/operations/applicationOperations.js +0 -229
  215. package/esm/operations/applicationOperations.js.map +0 -1
  216. package/esm/operations/applicationPackageOperations.d.ts +0 -170
  217. package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
  218. package/esm/operations/applicationPackageOperations.js +0 -241
  219. package/esm/operations/applicationPackageOperations.js.map +0 -1
  220. package/esm/operations/batchAccountOperations.d.ts +0 -246
  221. package/esm/operations/batchAccountOperations.d.ts.map +0 -1
  222. package/esm/operations/batchAccountOperations.js +0 -428
  223. package/esm/operations/batchAccountOperations.js.map +0 -1
  224. package/esm/operations/certificateOperations.d.ts +0 -198
  225. package/esm/operations/certificateOperations.d.ts.map +0 -1
  226. package/esm/operations/certificateOperations.js +0 -331
  227. package/esm/operations/certificateOperations.js.map +0 -1
  228. package/esm/operations/index.d.ts.map +0 -1
  229. package/esm/operations/index.js.map +0 -1
  230. package/esm/operations/location.d.ts +0 -52
  231. package/esm/operations/location.d.ts.map +0 -1
  232. package/esm/operations/location.js +0 -93
  233. package/esm/operations/location.js.map +0 -1
  234. package/esm/operations/operations.d.ts +0 -46
  235. package/esm/operations/operations.d.ts.map +0 -1
  236. package/esm/operations/operations.js +0 -77
  237. package/esm/operations/operations.js.map +0 -1
  238. package/esm/operations/poolOperations.d.ts +0 -199
  239. package/esm/operations/poolOperations.d.ts.map +0 -1
  240. package/esm/operations/poolOperations.js +0 -358
  241. package/esm/operations/poolOperations.js.map +0 -1
  242. package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
  243. package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
  244. package/esm/operations/privateEndpointConnectionOperations.js +0 -192
  245. package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
  246. package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
  247. package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
  248. package/esm/operations/privateLinkResourceOperations.js +0 -118
  249. package/esm/operations/privateLinkResourceOperations.js.map +0 -1
  250. package/src/models/applicationOperationsMappers.ts +0 -72
  251. package/src/models/applicationPackageOperationsMappers.ts +0 -73
  252. package/src/models/batchAccountOperationsMappers.ts +0 -78
  253. package/src/models/certificateOperationsMappers.ts +0 -77
  254. package/src/models/locationMappers.ts +0 -14
  255. package/src/models/operationsMappers.ts +0 -14
  256. package/src/models/poolOperationsMappers.ts +0 -78
  257. package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -73
  258. package/src/models/privateLinkResourceOperationsMappers.ts +0 -72
@@ -0,0 +1,196 @@
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 { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ BatchAccount,
13
+ BatchAccountListOptionalParams,
14
+ BatchAccountListByResourceGroupOptionalParams,
15
+ OutboundEnvironmentEndpoint,
16
+ BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams,
17
+ BatchAccountCreateParameters,
18
+ BatchAccountCreateOptionalParams,
19
+ BatchAccountCreateResponse,
20
+ BatchAccountUpdateParameters,
21
+ BatchAccountUpdateOptionalParams,
22
+ BatchAccountUpdateResponse,
23
+ BatchAccountDeleteOptionalParams,
24
+ BatchAccountGetOptionalParams,
25
+ BatchAccountGetResponse,
26
+ BatchAccountSynchronizeAutoStorageKeysOptionalParams,
27
+ BatchAccountRegenerateKeyParameters,
28
+ BatchAccountRegenerateKeyOptionalParams,
29
+ BatchAccountRegenerateKeyResponse,
30
+ BatchAccountGetKeysOptionalParams,
31
+ BatchAccountGetKeysResponse
32
+ } from "../models";
33
+
34
+ /// <reference lib="esnext.asynciterable" />
35
+ /** Interface representing a BatchAccountOperations. */
36
+ export interface BatchAccountOperations {
37
+ /**
38
+ * Gets information about the Batch accounts associated with the subscription.
39
+ * @param options The options parameters.
40
+ */
41
+ list(
42
+ options?: BatchAccountListOptionalParams
43
+ ): PagedAsyncIterableIterator<BatchAccount>;
44
+ /**
45
+ * Gets information about the Batch accounts associated with the specified resource group.
46
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
47
+ * @param options The options parameters.
48
+ */
49
+ listByResourceGroup(
50
+ resourceGroupName: string,
51
+ options?: BatchAccountListByResourceGroupOptionalParams
52
+ ): PagedAsyncIterableIterator<BatchAccount>;
53
+ /**
54
+ * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch
55
+ * service administration. If you are deploying a Pool inside of a virtual network that you specify,
56
+ * you must make sure your network allows outbound access to these endpoints. Failure to allow access
57
+ * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
58
+ * about creating a pool inside of a virtual network, see
59
+ * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
60
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
61
+ * @param accountName The name of the Batch account.
62
+ * @param options The options parameters.
63
+ */
64
+ listOutboundNetworkDependenciesEndpoints(
65
+ resourceGroupName: string,
66
+ accountName: string,
67
+ options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
68
+ ): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
69
+ /**
70
+ * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
71
+ * this API and should instead be updated with the Update Batch Account API.
72
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
73
+ * @param accountName A name for the Batch account which must be unique within the region. Batch
74
+ * account names must be between 3 and 24 characters in length and must use only numbers and lowercase
75
+ * letters. This name is used as part of the DNS name that is used to access the Batch service in the
76
+ * region in which the account is created. For example: http://accountname.region.batch.azure.com/.
77
+ * @param parameters Additional parameters for account creation.
78
+ * @param options The options parameters.
79
+ */
80
+ beginCreate(
81
+ resourceGroupName: string,
82
+ accountName: string,
83
+ parameters: BatchAccountCreateParameters,
84
+ options?: BatchAccountCreateOptionalParams
85
+ ): Promise<
86
+ PollerLike<
87
+ PollOperationState<BatchAccountCreateResponse>,
88
+ BatchAccountCreateResponse
89
+ >
90
+ >;
91
+ /**
92
+ * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
93
+ * this API and should instead be updated with the Update Batch Account API.
94
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
95
+ * @param accountName A name for the Batch account which must be unique within the region. Batch
96
+ * account names must be between 3 and 24 characters in length and must use only numbers and lowercase
97
+ * letters. This name is used as part of the DNS name that is used to access the Batch service in the
98
+ * region in which the account is created. For example: http://accountname.region.batch.azure.com/.
99
+ * @param parameters Additional parameters for account creation.
100
+ * @param options The options parameters.
101
+ */
102
+ beginCreateAndWait(
103
+ resourceGroupName: string,
104
+ accountName: string,
105
+ parameters: BatchAccountCreateParameters,
106
+ options?: BatchAccountCreateOptionalParams
107
+ ): Promise<BatchAccountCreateResponse>;
108
+ /**
109
+ * Updates the properties of an existing Batch account.
110
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
111
+ * @param accountName The name of the Batch account.
112
+ * @param parameters Additional parameters for account update.
113
+ * @param options The options parameters.
114
+ */
115
+ update(
116
+ resourceGroupName: string,
117
+ accountName: string,
118
+ parameters: BatchAccountUpdateParameters,
119
+ options?: BatchAccountUpdateOptionalParams
120
+ ): Promise<BatchAccountUpdateResponse>;
121
+ /**
122
+ * Deletes the specified Batch account.
123
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
124
+ * @param accountName The name of the Batch account.
125
+ * @param options The options parameters.
126
+ */
127
+ beginDelete(
128
+ resourceGroupName: string,
129
+ accountName: string,
130
+ options?: BatchAccountDeleteOptionalParams
131
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
132
+ /**
133
+ * Deletes the specified Batch account.
134
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
135
+ * @param accountName The name of the Batch account.
136
+ * @param options The options parameters.
137
+ */
138
+ beginDeleteAndWait(
139
+ resourceGroupName: string,
140
+ accountName: string,
141
+ options?: BatchAccountDeleteOptionalParams
142
+ ): Promise<void>;
143
+ /**
144
+ * Gets information about the specified Batch account.
145
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
146
+ * @param accountName The name of the Batch account.
147
+ * @param options The options parameters.
148
+ */
149
+ get(
150
+ resourceGroupName: string,
151
+ accountName: string,
152
+ options?: BatchAccountGetOptionalParams
153
+ ): Promise<BatchAccountGetResponse>;
154
+ /**
155
+ * Synchronizes access keys for the auto-storage account configured for the specified Batch account,
156
+ * only if storage key authentication is being used.
157
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
158
+ * @param accountName The name of the Batch account.
159
+ * @param options The options parameters.
160
+ */
161
+ synchronizeAutoStorageKeys(
162
+ resourceGroupName: string,
163
+ accountName: string,
164
+ options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams
165
+ ): Promise<void>;
166
+ /**
167
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing
168
+ * 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode,
169
+ * clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes
170
+ * instead. In this case, regenerating the keys will fail.
171
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
172
+ * @param accountName The name of the Batch account.
173
+ * @param parameters The type of key to regenerate.
174
+ * @param options The options parameters.
175
+ */
176
+ regenerateKey(
177
+ resourceGroupName: string,
178
+ accountName: string,
179
+ parameters: BatchAccountRegenerateKeyParameters,
180
+ options?: BatchAccountRegenerateKeyOptionalParams
181
+ ): Promise<BatchAccountRegenerateKeyResponse>;
182
+ /**
183
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing
184
+ * 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode,
185
+ * clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes
186
+ * instead. In this case, getting the keys will fail.
187
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
188
+ * @param accountName The name of the Batch account.
189
+ * @param options The options parameters.
190
+ */
191
+ getKeys(
192
+ resourceGroupName: string,
193
+ accountName: string,
194
+ options?: BatchAccountGetKeysOptionalParams
195
+ ): Promise<BatchAccountGetKeysResponse>;
196
+ }
@@ -0,0 +1,139 @@
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 { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ Certificate,
13
+ CertificateListByBatchAccountOptionalParams,
14
+ CertificateCreateOrUpdateParameters,
15
+ CertificateCreateOptionalParams,
16
+ CertificateCreateResponse,
17
+ CertificateUpdateOptionalParams,
18
+ CertificateUpdateResponse,
19
+ CertificateDeleteOptionalParams,
20
+ CertificateGetOptionalParams,
21
+ CertificateGetResponse,
22
+ CertificateCancelDeletionOptionalParams,
23
+ CertificateCancelDeletionResponse
24
+ } from "../models";
25
+
26
+ /// <reference lib="esnext.asynciterable" />
27
+ /** Interface representing a CertificateOperations. */
28
+ export interface CertificateOperations {
29
+ /**
30
+ * Lists all of the certificates in the specified account.
31
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
32
+ * @param accountName The name of the Batch account.
33
+ * @param options The options parameters.
34
+ */
35
+ listByBatchAccount(
36
+ resourceGroupName: string,
37
+ accountName: string,
38
+ options?: CertificateListByBatchAccountOptionalParams
39
+ ): PagedAsyncIterableIterator<Certificate>;
40
+ /**
41
+ * Creates a new certificate inside the specified account.
42
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
43
+ * @param accountName The name of the Batch account.
44
+ * @param certificateName The identifier for the certificate. This must be made up of algorithm and
45
+ * thumbprint separated by a dash, and must match the certificate data in the request. For example
46
+ * SHA1-a3d1c5.
47
+ * @param parameters Additional parameters for certificate creation.
48
+ * @param options The options parameters.
49
+ */
50
+ create(
51
+ resourceGroupName: string,
52
+ accountName: string,
53
+ certificateName: string,
54
+ parameters: CertificateCreateOrUpdateParameters,
55
+ options?: CertificateCreateOptionalParams
56
+ ): Promise<CertificateCreateResponse>;
57
+ /**
58
+ * Updates the properties of an existing certificate.
59
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
60
+ * @param accountName The name of the Batch account.
61
+ * @param certificateName The identifier for the certificate. This must be made up of algorithm and
62
+ * thumbprint separated by a dash, and must match the certificate data in the request. For example
63
+ * SHA1-a3d1c5.
64
+ * @param parameters Certificate entity to update.
65
+ * @param options The options parameters.
66
+ */
67
+ update(
68
+ resourceGroupName: string,
69
+ accountName: string,
70
+ certificateName: string,
71
+ parameters: CertificateCreateOrUpdateParameters,
72
+ options?: CertificateUpdateOptionalParams
73
+ ): Promise<CertificateUpdateResponse>;
74
+ /**
75
+ * Deletes the specified certificate.
76
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
77
+ * @param accountName The name of the Batch account.
78
+ * @param certificateName The identifier for the certificate. This must be made up of algorithm and
79
+ * thumbprint separated by a dash, and must match the certificate data in the request. For example
80
+ * SHA1-a3d1c5.
81
+ * @param options The options parameters.
82
+ */
83
+ beginDelete(
84
+ resourceGroupName: string,
85
+ accountName: string,
86
+ certificateName: string,
87
+ options?: CertificateDeleteOptionalParams
88
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
89
+ /**
90
+ * Deletes the specified certificate.
91
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
92
+ * @param accountName The name of the Batch account.
93
+ * @param certificateName The identifier for the certificate. This must be made up of algorithm and
94
+ * thumbprint separated by a dash, and must match the certificate data in the request. For example
95
+ * SHA1-a3d1c5.
96
+ * @param options The options parameters.
97
+ */
98
+ beginDeleteAndWait(
99
+ resourceGroupName: string,
100
+ accountName: string,
101
+ certificateName: string,
102
+ options?: CertificateDeleteOptionalParams
103
+ ): Promise<void>;
104
+ /**
105
+ * Gets information about the specified certificate.
106
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
107
+ * @param accountName The name of the Batch account.
108
+ * @param certificateName The identifier for the certificate. This must be made up of algorithm and
109
+ * thumbprint separated by a dash, and must match the certificate data in the request. For example
110
+ * SHA1-a3d1c5.
111
+ * @param options The options parameters.
112
+ */
113
+ get(
114
+ resourceGroupName: string,
115
+ accountName: string,
116
+ certificateName: string,
117
+ options?: CertificateGetOptionalParams
118
+ ): Promise<CertificateGetResponse>;
119
+ /**
120
+ * If you try to delete a certificate that is being used by a pool or compute node, the status of the
121
+ * certificate changes to deleteFailed. If you decide that you want to continue using the certificate,
122
+ * you can use this operation to set the status of the certificate back to active. If you intend to
123
+ * delete the certificate, you do not need to run this operation after the deletion failed. You must
124
+ * make sure that the certificate is not being used by any resources, and then you can try again to
125
+ * delete the certificate.
126
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
127
+ * @param accountName The name of the Batch account.
128
+ * @param certificateName The identifier for the certificate. This must be made up of algorithm and
129
+ * thumbprint separated by a dash, and must match the certificate data in the request. For example
130
+ * SHA1-a3d1c5.
131
+ * @param options The options parameters.
132
+ */
133
+ cancelDeletion(
134
+ resourceGroupName: string,
135
+ accountName: string,
136
+ certificateName: string,
137
+ options?: CertificateCancelDeletionOptionalParams
138
+ ): Promise<CertificateCancelDeletionResponse>;
139
+ }
@@ -0,0 +1,17 @@
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
+ export * from "./batchAccountOperations";
10
+ export * from "./applicationPackageOperations";
11
+ export * from "./applicationOperations";
12
+ export * from "./location";
13
+ export * from "./operations";
14
+ export * from "./certificateOperations";
15
+ export * from "./privateLinkResourceOperations";
16
+ export * from "./privateEndpointConnectionOperations";
17
+ export * from "./poolOperations";
@@ -0,0 +1,62 @@
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 {
11
+ SupportedSku,
12
+ LocationListSupportedVirtualMachineSkusOptionalParams,
13
+ LocationListSupportedCloudServiceSkusOptionalParams,
14
+ LocationGetQuotasOptionalParams,
15
+ LocationGetQuotasResponse,
16
+ CheckNameAvailabilityParameters,
17
+ LocationCheckNameAvailabilityOptionalParams,
18
+ LocationCheckNameAvailabilityResponse
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a Location. */
23
+ export interface Location {
24
+ /**
25
+ * Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
26
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
27
+ * @param options The options parameters.
28
+ */
29
+ listSupportedVirtualMachineSkus(
30
+ locationName: string,
31
+ options?: LocationListSupportedVirtualMachineSkusOptionalParams
32
+ ): PagedAsyncIterableIterator<SupportedSku>;
33
+ /**
34
+ * Gets the list of Batch supported Cloud Service VM sizes available at the given location.
35
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
36
+ * @param options The options parameters.
37
+ */
38
+ listSupportedCloudServiceSkus(
39
+ locationName: string,
40
+ options?: LocationListSupportedCloudServiceSkusOptionalParams
41
+ ): PagedAsyncIterableIterator<SupportedSku>;
42
+ /**
43
+ * Gets the Batch service quotas for the specified subscription at the given location.
44
+ * @param locationName The region for which to retrieve Batch service quotas.
45
+ * @param options The options parameters.
46
+ */
47
+ getQuotas(
48
+ locationName: string,
49
+ options?: LocationGetQuotasOptionalParams
50
+ ): Promise<LocationGetQuotasResponse>;
51
+ /**
52
+ * Checks whether the Batch account name is available in the specified region.
53
+ * @param locationName The desired region for the name check.
54
+ * @param parameters Properties needed to check the availability of a name.
55
+ * @param options The options parameters.
56
+ */
57
+ checkNameAvailability(
58
+ locationName: string,
59
+ parameters: CheckNameAvailabilityParameters,
60
+ options?: LocationCheckNameAvailabilityOptionalParams
61
+ ): Promise<LocationCheckNameAvailabilityResponse>;
62
+ }
@@ -0,0 +1,22 @@
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 { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists available operations for the Microsoft.Batch provider
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,142 @@
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 { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ Pool,
13
+ PoolListByBatchAccountOptionalParams,
14
+ PoolCreateOptionalParams,
15
+ PoolCreateResponse,
16
+ PoolUpdateOptionalParams,
17
+ PoolUpdateResponse,
18
+ PoolDeleteOptionalParams,
19
+ PoolGetOptionalParams,
20
+ PoolGetResponse,
21
+ PoolDisableAutoScaleOptionalParams,
22
+ PoolDisableAutoScaleResponse,
23
+ PoolStopResizeOptionalParams,
24
+ PoolStopResizeResponse
25
+ } from "../models";
26
+
27
+ /// <reference lib="esnext.asynciterable" />
28
+ /** Interface representing a PoolOperations. */
29
+ export interface PoolOperations {
30
+ /**
31
+ * Lists all of the pools in the specified account.
32
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
33
+ * @param accountName The name of the Batch account.
34
+ * @param options The options parameters.
35
+ */
36
+ listByBatchAccount(
37
+ resourceGroupName: string,
38
+ accountName: string,
39
+ options?: PoolListByBatchAccountOptionalParams
40
+ ): PagedAsyncIterableIterator<Pool>;
41
+ /**
42
+ * Creates a new pool inside the specified account.
43
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
44
+ * @param accountName The name of the Batch account.
45
+ * @param poolName The pool name. This must be unique within the account.
46
+ * @param parameters Additional parameters for pool creation.
47
+ * @param options The options parameters.
48
+ */
49
+ create(
50
+ resourceGroupName: string,
51
+ accountName: string,
52
+ poolName: string,
53
+ parameters: Pool,
54
+ options?: PoolCreateOptionalParams
55
+ ): Promise<PoolCreateResponse>;
56
+ /**
57
+ * Updates the properties of an existing pool.
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 poolName The pool name. This must be unique within the account.
61
+ * @param parameters Pool properties that should be updated. Properties that are supplied will be
62
+ * updated, any property not supplied will be unchanged.
63
+ * @param options The options parameters.
64
+ */
65
+ update(
66
+ resourceGroupName: string,
67
+ accountName: string,
68
+ poolName: string,
69
+ parameters: Pool,
70
+ options?: PoolUpdateOptionalParams
71
+ ): Promise<PoolUpdateResponse>;
72
+ /**
73
+ * Deletes the specified pool.
74
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
75
+ * @param accountName The name of the Batch account.
76
+ * @param poolName The pool name. This must be unique within the account.
77
+ * @param options The options parameters.
78
+ */
79
+ beginDelete(
80
+ resourceGroupName: string,
81
+ accountName: string,
82
+ poolName: string,
83
+ options?: PoolDeleteOptionalParams
84
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
85
+ /**
86
+ * Deletes the specified pool.
87
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
88
+ * @param accountName The name of the Batch account.
89
+ * @param poolName The pool name. This must be unique within the account.
90
+ * @param options The options parameters.
91
+ */
92
+ beginDeleteAndWait(
93
+ resourceGroupName: string,
94
+ accountName: string,
95
+ poolName: string,
96
+ options?: PoolDeleteOptionalParams
97
+ ): Promise<void>;
98
+ /**
99
+ * Gets information about the specified pool.
100
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
101
+ * @param accountName The name of the Batch account.
102
+ * @param poolName The pool name. This must be unique within the account.
103
+ * @param options The options parameters.
104
+ */
105
+ get(
106
+ resourceGroupName: string,
107
+ accountName: string,
108
+ poolName: string,
109
+ options?: PoolGetOptionalParams
110
+ ): Promise<PoolGetResponse>;
111
+ /**
112
+ * Disables automatic scaling for a pool.
113
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
114
+ * @param accountName The name of the Batch account.
115
+ * @param poolName The pool name. This must be unique within the account.
116
+ * @param options The options parameters.
117
+ */
118
+ disableAutoScale(
119
+ resourceGroupName: string,
120
+ accountName: string,
121
+ poolName: string,
122
+ options?: PoolDisableAutoScaleOptionalParams
123
+ ): Promise<PoolDisableAutoScaleResponse>;
124
+ /**
125
+ * This does not restore the pool to its previous state before the resize operation: it only stops any
126
+ * further changes being made, and the pool maintains its current state. After stopping, the pool
127
+ * stabilizes at the number of nodes it was at when the stop operation was done. During the stop
128
+ * operation, the pool allocation state changes first to stopping and then to steady. A resize
129
+ * operation need not be an explicit resize pool request; this API can also be used to halt the initial
130
+ * sizing of the pool when it is created.
131
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
132
+ * @param accountName The name of the Batch account.
133
+ * @param poolName The pool name. This must be unique within the account.
134
+ * @param options The options parameters.
135
+ */
136
+ stopResize(
137
+ resourceGroupName: string,
138
+ accountName: string,
139
+ poolName: string,
140
+ options?: PoolStopResizeOptionalParams
141
+ ): Promise<PoolStopResizeResponse>;
142
+ }
@@ -0,0 +1,87 @@
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 { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ PrivateEndpointConnection,
13
+ PrivateEndpointConnectionListByBatchAccountOptionalParams,
14
+ PrivateEndpointConnectionGetOptionalParams,
15
+ PrivateEndpointConnectionGetResponse,
16
+ PrivateEndpointConnectionUpdateOptionalParams,
17
+ PrivateEndpointConnectionUpdateResponse
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a PrivateEndpointConnectionOperations. */
22
+ export interface PrivateEndpointConnectionOperations {
23
+ /**
24
+ * Lists all of the private endpoint connections in the specified account.
25
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
26
+ * @param accountName The name of the Batch account.
27
+ * @param options The options parameters.
28
+ */
29
+ listByBatchAccount(
30
+ resourceGroupName: string,
31
+ accountName: string,
32
+ options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
33
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
34
+ /**
35
+ * Gets information about the specified private endpoint connection.
36
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
37
+ * @param accountName The name of the Batch account.
38
+ * @param privateEndpointConnectionName The private endpoint connection name. This must be unique
39
+ * within the account.
40
+ * @param options The options parameters.
41
+ */
42
+ get(
43
+ resourceGroupName: string,
44
+ accountName: string,
45
+ privateEndpointConnectionName: string,
46
+ options?: PrivateEndpointConnectionGetOptionalParams
47
+ ): Promise<PrivateEndpointConnectionGetResponse>;
48
+ /**
49
+ * Updates the properties of an existing private endpoint connection.
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 privateEndpointConnectionName The private endpoint connection name. This must be unique
53
+ * within the account.
54
+ * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
55
+ * supplied will be updated, any property not supplied will be unchanged.
56
+ * @param options The options parameters.
57
+ */
58
+ beginUpdate(
59
+ resourceGroupName: string,
60
+ accountName: string,
61
+ privateEndpointConnectionName: string,
62
+ parameters: PrivateEndpointConnection,
63
+ options?: PrivateEndpointConnectionUpdateOptionalParams
64
+ ): Promise<
65
+ PollerLike<
66
+ PollOperationState<PrivateEndpointConnectionUpdateResponse>,
67
+ PrivateEndpointConnectionUpdateResponse
68
+ >
69
+ >;
70
+ /**
71
+ * Updates the properties of an existing private endpoint connection.
72
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
73
+ * @param accountName The name of the Batch account.
74
+ * @param privateEndpointConnectionName The private endpoint connection name. This must be unique
75
+ * within the account.
76
+ * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
77
+ * supplied will be updated, any property not supplied will be unchanged.
78
+ * @param options The options parameters.
79
+ */
80
+ beginUpdateAndWait(
81
+ resourceGroupName: string,
82
+ accountName: string,
83
+ privateEndpointConnectionName: string,
84
+ parameters: PrivateEndpointConnection,
85
+ options?: PrivateEndpointConnectionUpdateOptionalParams
86
+ ): Promise<PrivateEndpointConnectionUpdateResponse>;
87
+ }