@azure/arm-batch 4.0.0 → 7.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +75 -77
  4. package/dist/index.js +6873 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/batchManagementClient.d.ts +24 -0
  9. package/dist-esm/src/batchManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/batchManagementClient.js +31 -0
  11. package/dist-esm/src/batchManagementClient.js.map +1 -0
  12. package/dist-esm/src/batchManagementClientContext.d.ts +17 -0
  13. package/dist-esm/src/batchManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/batchManagementClientContext.js +50 -0
  15. package/dist-esm/src/batchManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +1780 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +9 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +112 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +2357 -1248
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +34 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +303 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
  37. package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/applicationOperations.js +269 -0
  39. package/dist-esm/src/operations/applicationOperations.js.map +1 -0
  40. package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
  41. package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
  43. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
  44. package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
  45. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/batchAccountOperations.js +681 -0
  47. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
  48. package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
  49. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/certificateOperations.js +388 -0
  51. package/dist-esm/src/operations/certificateOperations.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/dist-esm/src/operations/index.js +17 -0
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/location.d.ts +71 -0
  57. package/dist-esm/src/operations/location.d.ts.map +1 -0
  58. package/dist-esm/src/operations/location.js +316 -0
  59. package/dist-esm/src/operations/location.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +32 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +120 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/poolOperations.d.ts +103 -0
  65. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/poolOperations.js +410 -0
  67. package/dist-esm/src/operations/poolOperations.js.map +1 -0
  68. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
  69. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
  71. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
  72. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
  73. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
  74. package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
  75. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
  77. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/applicationOperations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
  81. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
  85. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/batchAccountOperations.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
  89. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  93. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  95. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
  97. package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/location.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  101. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +78 -0
  105. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
  109. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
  113. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +4 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +479 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +71 -34
  121. package/review/arm-batch.api.md +1459 -0
  122. package/rollup.config.js +184 -27
  123. package/src/batchManagementClient.ts +75 -0
  124. package/src/batchManagementClientContext.ts +71 -0
  125. package/src/index.ts +13 -0
  126. package/src/lroImpl.ts +34 -0
  127. package/src/models/index.ts +2045 -0
  128. package/{lib → src}/models/mappers.ts +2413 -1223
  129. package/src/models/parameters.ts +351 -0
  130. package/src/operations/applicationOperations.ts +357 -0
  131. package/src/operations/applicationPackageOperations.ts +410 -0
  132. package/src/operations/batchAccountOperations.ts +901 -0
  133. package/src/operations/certificateOperations.ts +527 -0
  134. package/{lib → src}/operations/index.ts +5 -5
  135. package/src/operations/location.ts +413 -0
  136. package/src/operations/operations.ts +137 -0
  137. package/src/operations/poolOperations.ts +560 -0
  138. package/src/operations/privateEndpointConnectionOperations.ts +388 -0
  139. package/src/operations/privateLinkResourceOperations.ts +235 -0
  140. package/src/operationsInterfaces/applicationOperations.ts +90 -0
  141. package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
  142. package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
  143. package/src/operationsInterfaces/certificateOperations.ts +139 -0
  144. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -6
  145. package/src/operationsInterfaces/location.ts +62 -0
  146. package/src/operationsInterfaces/operations.ts +22 -0
  147. package/src/operationsInterfaces/poolOperations.ts +142 -0
  148. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
  149. package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
  150. package/tsconfig.json +4 -4
  151. package/types/arm-batch.d.ts +2528 -0
  152. package/types/tsdoc-metadata.json +11 -0
  153. package/dist/arm-batch.js +0 -4689
  154. package/dist/arm-batch.js.map +0 -1
  155. package/dist/arm-batch.min.js +0 -1
  156. package/dist/arm-batch.min.js.map +0 -1
  157. package/esm/batchManagementClient.d.ts +0 -25
  158. package/esm/batchManagementClient.d.ts.map +0 -1
  159. package/esm/batchManagementClient.js +0 -40
  160. package/esm/batchManagementClient.js.map +0 -1
  161. package/esm/batchManagementClientContext.d.ts +0 -17
  162. package/esm/batchManagementClientContext.d.ts.map +0 -1
  163. package/esm/batchManagementClientContext.js +0 -57
  164. package/esm/batchManagementClientContext.js.map +0 -1
  165. package/esm/models/applicationOperationsMappers.d.ts +0 -2
  166. package/esm/models/applicationOperationsMappers.d.ts.map +0 -1
  167. package/esm/models/applicationOperationsMappers.js +0 -11
  168. package/esm/models/applicationOperationsMappers.js.map +0 -1
  169. package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
  170. package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
  171. package/esm/models/applicationPackageOperationsMappers.js +0 -11
  172. package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
  173. package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
  174. package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
  175. package/esm/models/batchAccountOperationsMappers.js +0 -11
  176. package/esm/models/batchAccountOperationsMappers.js.map +0 -1
  177. package/esm/models/certificateOperationsMappers.d.ts +0 -2
  178. package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
  179. package/esm/models/certificateOperationsMappers.js +0 -11
  180. package/esm/models/certificateOperationsMappers.js.map +0 -1
  181. package/esm/models/index.d.ts +0 -3108
  182. package/esm/models/index.d.ts.map +0 -1
  183. package/esm/models/index.js +0 -10
  184. package/esm/models/index.js.map +0 -1
  185. package/esm/models/locationMappers.d.ts +0 -2
  186. package/esm/models/locationMappers.d.ts.map +0 -1
  187. package/esm/models/locationMappers.js +0 -11
  188. package/esm/models/locationMappers.js.map +0 -1
  189. package/esm/models/mappers.d.ts +0 -76
  190. package/esm/models/mappers.d.ts.map +0 -1
  191. package/esm/models/mappers.js.map +0 -1
  192. package/esm/models/operationsMappers.d.ts +0 -2
  193. package/esm/models/operationsMappers.d.ts.map +0 -1
  194. package/esm/models/operationsMappers.js +0 -11
  195. package/esm/models/operationsMappers.js.map +0 -1
  196. package/esm/models/parameters.d.ts +0 -18
  197. package/esm/models/parameters.d.ts.map +0 -1
  198. package/esm/models/parameters.js +0 -196
  199. package/esm/models/parameters.js.map +0 -1
  200. package/esm/models/poolOperationsMappers.d.ts +0 -2
  201. package/esm/models/poolOperationsMappers.d.ts.map +0 -1
  202. package/esm/models/poolOperationsMappers.js +0 -11
  203. package/esm/models/poolOperationsMappers.js.map +0 -1
  204. package/esm/operations/applicationOperations.d.ts +0 -151
  205. package/esm/operations/applicationOperations.d.ts.map +0 -1
  206. package/esm/operations/applicationOperations.js +0 -226
  207. package/esm/operations/applicationOperations.js.map +0 -1
  208. package/esm/operations/applicationPackageOperations.d.ts +0 -124
  209. package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
  210. package/esm/operations/applicationPackageOperations.js +0 -171
  211. package/esm/operations/applicationPackageOperations.js.map +0 -1
  212. package/esm/operations/batchAccountOperations.d.ts +0 -246
  213. package/esm/operations/batchAccountOperations.d.ts.map +0 -1
  214. package/esm/operations/batchAccountOperations.js +0 -426
  215. package/esm/operations/batchAccountOperations.js.map +0 -1
  216. package/esm/operations/certificateOperations.d.ts +0 -198
  217. package/esm/operations/certificateOperations.d.ts.map +0 -1
  218. package/esm/operations/certificateOperations.js +0 -326
  219. package/esm/operations/certificateOperations.js.map +0 -1
  220. package/esm/operations/index.d.ts.map +0 -1
  221. package/esm/operations/index.js.map +0 -1
  222. package/esm/operations/location.d.ts +0 -52
  223. package/esm/operations/location.d.ts.map +0 -1
  224. package/esm/operations/location.js +0 -93
  225. package/esm/operations/location.js.map +0 -1
  226. package/esm/operations/operations.d.ts +0 -46
  227. package/esm/operations/operations.d.ts.map +0 -1
  228. package/esm/operations/operations.js +0 -77
  229. package/esm/operations/operations.js.map +0 -1
  230. package/esm/operations/poolOperations.d.ts +0 -199
  231. package/esm/operations/poolOperations.d.ts.map +0 -1
  232. package/esm/operations/poolOperations.js +0 -352
  233. package/esm/operations/poolOperations.js.map +0 -1
  234. package/lib/batchManagementClient.ts +0 -55
  235. package/lib/batchManagementClientContext.ts +0 -63
  236. package/lib/models/applicationOperationsMappers.ts +0 -19
  237. package/lib/models/applicationPackageOperationsMappers.ts +0 -16
  238. package/lib/models/batchAccountOperationsMappers.ts +0 -61
  239. package/lib/models/certificateOperationsMappers.ts +0 -60
  240. package/lib/models/index.ts +0 -3252
  241. package/lib/models/locationMappers.ts +0 -17
  242. package/lib/models/operationsMappers.ts +0 -17
  243. package/lib/models/parameters.ts +0 -198
  244. package/lib/models/poolOperationsMappers.ts +0 -61
  245. package/lib/operations/applicationOperations.ts +0 -399
  246. package/lib/operations/applicationPackageOperations.ts +0 -307
  247. package/lib/operations/batchAccountOperations.ts +0 -683
  248. package/lib/operations/certificateOperations.ts +0 -510
  249. package/lib/operations/location.ts +0 -147
  250. package/lib/operations/operations.ts +0 -123
  251. package/lib/operations/poolOperations.ts +0 -550
@@ -1,683 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
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";
15
- import * as Parameters from "../models/parameters";
16
- import { BatchManagementClientContext } from "../batchManagementClientContext";
17
-
18
- /** Class representing a BatchAccountOperations. */
19
- export class BatchAccountOperations {
20
- private readonly client: BatchManagementClientContext;
21
-
22
- /**
23
- * Create a BatchAccountOperations.
24
- * @param {BatchManagementClientContext} client Reference to the service client.
25
- */
26
- constructor(client: BatchManagementClientContext) {
27
- this.client = client;
28
- }
29
-
30
- /**
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>;
46
- }
47
-
48
- /**
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
- /**
65
- * @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
- {
75
- resourceGroupName,
76
- accountName,
77
- parameters,
78
- options
79
- },
80
- updateOperationSpec,
81
- callback) as Promise<Models.BatchAccountUpdateResponse>;
82
- }
83
-
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>;
94
- }
95
-
96
- /**
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
- /**
111
- * @param resourceGroupName The name of the resource group that contains the Batch account.
112
- * @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
- {
120
- resourceGroupName,
121
- accountName,
122
- options
123
- },
124
- getOperationSpec,
125
- callback) as Promise<Models.BatchAccountGetResponse>;
126
- }
127
-
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>;
150
- }
151
-
152
- /**
153
- * Gets information about the Batch accounts associated with the specified resource group.
154
- * @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>;
159
- /**
160
- * @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;
164
- /**
165
- * @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> {
171
- return this.client.sendOperationRequest(
172
- {
173
- resourceGroupName,
174
- options
175
- },
176
- listByResourceGroupOperationSpec,
177
- callback) as Promise<Models.BatchAccountListByResourceGroupResponse>;
178
- }
179
-
180
- /**
181
- * Synchronizes access keys for the auto-storage account configured for the specified Batch
182
- * account.
183
- * @param resourceGroupName The name of the resource group that contains the Batch account.
184
- * @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>;
189
- /**
190
- * @param resourceGroupName The name of the resource group that contains the Batch account.
191
- * @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;
195
- /**
196
- * @param resourceGroupName The name of the resource group that contains the Batch account.
197
- * @param accountName The name of the Batch account.
198
- * @param options The optional parameters
199
- * @param callback The callback
200
- */
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> {
203
- return this.client.sendOperationRequest(
204
- {
205
- resourceGroupName,
206
- accountName,
207
- options
208
- },
209
- synchronizeAutoStorageKeysOperationSpec,
210
- callback);
211
- }
212
-
213
- /**
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
229
- */
230
- regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, callback: msRest.ServiceCallback<Models.BatchAccountKeys>): void;
231
- /**
232
- * @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
238
- */
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> {
241
- return this.client.sendOperationRequest(
242
- {
243
- resourceGroupName,
244
- accountName,
245
- keyName,
246
- options
247
- },
248
- regenerateKeyOperationSpec,
249
- callback) as Promise<Models.BatchAccountRegenerateKeyResponse>;
250
- }
251
-
252
- /**
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.
258
- * @param resourceGroupName The name of the resource group that contains the Batch account.
259
- * @param accountName The name of the Batch account.
260
- * @param [options] The optional parameters
261
- * @returns Promise<Models.BatchAccountGetKeysResponse>
262
- */
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;
270
- /**
271
- * @param resourceGroupName The name of the resource group that contains the Batch account.
272
- * @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> {
278
- return this.client.sendOperationRequest(
279
- {
280
- resourceGroupName,
281
- accountName,
282
- options
283
- },
284
- getKeysOperationSpec,
285
- callback) as Promise<Models.BatchAccountGetKeysResponse>;
286
- }
287
-
288
- /**
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.
291
- * @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>
300
- */
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);
311
- }
312
-
313
- /**
314
- * Deletes the specified Batch account.
315
- * @param resourceGroupName The name of the resource group that contains the Batch account.
316
- * @param accountName The name of the Batch account.
317
- * @param [options] The optional parameters
318
- * @returns Promise<msRestAzure.LROPoller>
319
- */
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);
329
- }
330
-
331
- /**
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
341
- */
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> {
350
- return this.client.sendOperationRequest(
351
- {
352
- nextPageLink,
353
- options
354
- },
355
- listNextOperationSpec,
356
- callback) as Promise<Models.BatchAccountListNextResponse>;
357
- }
358
-
359
- /**
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;
371
- /**
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> {
378
- return this.client.sendOperationRequest(
379
- {
380
- nextPageLink,
381
- options
382
- },
383
- listByResourceGroupNextOperationSpec,
384
- callback) as Promise<Models.BatchAccountListByResourceGroupNextResponse>;
385
- }
386
- }
387
-
388
- // 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}",
393
- urlParameters: [
394
- Parameters.resourceGroupName,
395
- Parameters.accountName,
396
- Parameters.subscriptionId
397
- ],
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
- },
411
- responses: {
412
- 200: {
413
- bodyMapper: Mappers.BatchAccount
414
- },
415
- default: {
416
- bodyMapper: Mappers.CloudError
417
- }
418
- },
419
- serializer
420
- };
421
-
422
- const getOperationSpec: msRest.OperationSpec = {
423
- httpMethod: "GET",
424
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
425
- urlParameters: [
426
- Parameters.resourceGroupName,
427
- Parameters.accountName,
428
- Parameters.subscriptionId
429
- ],
430
- queryParameters: [
431
- Parameters.apiVersion
432
- ],
433
- headerParameters: [
434
- Parameters.acceptLanguage
435
- ],
436
- responses: {
437
- 200: {
438
- bodyMapper: Mappers.BatchAccount
439
- },
440
- default: {
441
- bodyMapper: Mappers.CloudError
442
- }
443
- },
444
- serializer
445
- };
446
-
447
- const listOperationSpec: msRest.OperationSpec = {
448
- 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
- responses: {
460
- 200: {
461
- bodyMapper: Mappers.BatchAccountListResult
462
- },
463
- default: {
464
- bodyMapper: Mappers.CloudError
465
- }
466
- },
467
- serializer
468
- };
469
-
470
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
471
- 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
- responses: {
484
- 200: {
485
- bodyMapper: Mappers.BatchAccountListResult
486
- },
487
- default: {
488
- bodyMapper: Mappers.CloudError
489
- }
490
- },
491
- serializer
492
- };
493
-
494
- const synchronizeAutoStorageKeysOperationSpec: msRest.OperationSpec = {
495
- httpMethod: "POST",
496
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
497
- urlParameters: [
498
- Parameters.resourceGroupName,
499
- Parameters.accountName,
500
- Parameters.subscriptionId
501
- ],
502
- queryParameters: [
503
- Parameters.apiVersion
504
- ],
505
- headerParameters: [
506
- Parameters.acceptLanguage
507
- ],
508
- responses: {
509
- 204: {},
510
- default: {
511
- bodyMapper: Mappers.CloudError
512
- }
513
- },
514
- serializer
515
- };
516
-
517
- const regenerateKeyOperationSpec: msRest.OperationSpec = {
518
- httpMethod: "POST",
519
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
520
- urlParameters: [
521
- Parameters.resourceGroupName,
522
- Parameters.accountName,
523
- Parameters.subscriptionId
524
- ],
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
- },
540
- responses: {
541
- 200: {
542
- bodyMapper: Mappers.BatchAccountKeys
543
- },
544
- default: {
545
- bodyMapper: Mappers.CloudError
546
- }
547
- },
548
- serializer
549
- };
550
-
551
- const getKeysOperationSpec: msRest.OperationSpec = {
552
- httpMethod: "POST",
553
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
554
- urlParameters: [
555
- Parameters.resourceGroupName,
556
- Parameters.accountName,
557
- Parameters.subscriptionId
558
- ],
559
- queryParameters: [
560
- Parameters.apiVersion
561
- ],
562
- headerParameters: [
563
- Parameters.acceptLanguage
564
- ],
565
- responses: {
566
- 200: {
567
- bodyMapper: Mappers.BatchAccountKeys
568
- },
569
- default: {
570
- bodyMapper: Mappers.CloudError
571
- }
572
- },
573
- serializer
574
- };
575
-
576
- const beginCreateOperationSpec: msRest.OperationSpec = {
577
- httpMethod: "PUT",
578
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
579
- urlParameters: [
580
- Parameters.resourceGroupName,
581
- Parameters.accountName,
582
- Parameters.subscriptionId
583
- ],
584
- queryParameters: [
585
- Parameters.apiVersion
586
- ],
587
- headerParameters: [
588
- Parameters.acceptLanguage
589
- ],
590
- requestBody: {
591
- parameterPath: "parameters",
592
- mapper: {
593
- ...Mappers.BatchAccountCreateParameters,
594
- required: true
595
- }
596
- },
597
- responses: {
598
- 200: {
599
- bodyMapper: Mappers.BatchAccount,
600
- headersMapper: Mappers.BatchAccountCreateHeaders
601
- },
602
- 202: {
603
- headersMapper: Mappers.BatchAccountCreateHeaders
604
- },
605
- default: {
606
- bodyMapper: Mappers.CloudError
607
- }
608
- },
609
- serializer
610
- };
611
-
612
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
613
- httpMethod: "DELETE",
614
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
615
- urlParameters: [
616
- Parameters.resourceGroupName,
617
- Parameters.accountName,
618
- Parameters.subscriptionId
619
- ],
620
- queryParameters: [
621
- Parameters.apiVersion
622
- ],
623
- headerParameters: [
624
- Parameters.acceptLanguage
625
- ],
626
- responses: {
627
- 200: {
628
- headersMapper: Mappers.BatchAccountDeleteHeaders
629
- },
630
- 202: {
631
- headersMapper: Mappers.BatchAccountDeleteHeaders
632
- },
633
- 204: {
634
- headersMapper: Mappers.BatchAccountDeleteHeaders
635
- },
636
- default: {
637
- bodyMapper: Mappers.CloudError
638
- }
639
- },
640
- serializer
641
- };
642
-
643
- const listNextOperationSpec: msRest.OperationSpec = {
644
- httpMethod: "GET",
645
- baseUrl: "https://management.azure.com",
646
- path: "{nextLink}",
647
- urlParameters: [
648
- Parameters.nextPageLink
649
- ],
650
- headerParameters: [
651
- Parameters.acceptLanguage
652
- ],
653
- responses: {
654
- 200: {
655
- bodyMapper: Mappers.BatchAccountListResult
656
- },
657
- default: {
658
- bodyMapper: Mappers.CloudError
659
- }
660
- },
661
- serializer
662
- };
663
-
664
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
665
- httpMethod: "GET",
666
- baseUrl: "https://management.azure.com",
667
- path: "{nextLink}",
668
- urlParameters: [
669
- Parameters.nextPageLink
670
- ],
671
- headerParameters: [
672
- Parameters.acceptLanguage
673
- ],
674
- responses: {
675
- 200: {
676
- bodyMapper: Mappers.BatchAccountListResult
677
- },
678
- default: {
679
- bodyMapper: Mappers.CloudError
680
- }
681
- },
682
- serializer
683
- };