@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,510 +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/certificateOperationsMappers";
15
- import * as Parameters from "../models/parameters";
16
- import { BatchManagementClientContext } from "../batchManagementClientContext";
17
-
18
- /** Class representing a CertificateOperations. */
19
- export class CertificateOperations {
20
- private readonly client: BatchManagementClientContext;
21
-
22
- /**
23
- * Create a CertificateOperations.
24
- * @param {BatchManagementClientContext} client Reference to the service client.
25
- */
26
- constructor(client: BatchManagementClientContext) {
27
- this.client = client;
28
- }
29
-
30
- /**
31
- * Lists all of the certificates 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 optional parameters
35
- * @returns Promise<Models.CertificateListByBatchAccountResponse>
36
- */
37
- listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.CertificateListByBatchAccountOptionalParams): Promise<Models.CertificateListByBatchAccountResponse>;
38
- /**
39
- * @param resourceGroupName The name of the resource group that contains the Batch account.
40
- * @param accountName The name of the Batch account.
41
- * @param callback The callback
42
- */
43
- listByBatchAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ListCertificatesResult>): void;
44
- /**
45
- * @param resourceGroupName The name of the resource group that contains the Batch account.
46
- * @param accountName The name of the Batch account.
47
- * @param options The optional parameters
48
- * @param callback The callback
49
- */
50
- listByBatchAccount(resourceGroupName: string, accountName: string, options: Models.CertificateListByBatchAccountOptionalParams, callback: msRest.ServiceCallback<Models.ListCertificatesResult>): void;
51
- listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.CertificateListByBatchAccountOptionalParams | msRest.ServiceCallback<Models.ListCertificatesResult>, callback?: msRest.ServiceCallback<Models.ListCertificatesResult>): Promise<Models.CertificateListByBatchAccountResponse> {
52
- return this.client.sendOperationRequest(
53
- {
54
- resourceGroupName,
55
- accountName,
56
- options
57
- },
58
- listByBatchAccountOperationSpec,
59
- callback) as Promise<Models.CertificateListByBatchAccountResponse>;
60
- }
61
-
62
- /**
63
- * Creates a new certificate inside the specified account.
64
- * @param resourceGroupName The name of the resource group that contains the Batch account.
65
- * @param accountName The name of the Batch account.
66
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
67
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
68
- * SHA1-a3d1c5.
69
- * @param parameters Additional parameters for certificate creation.
70
- * @param [options] The optional parameters
71
- * @returns Promise<Models.CertificateCreateResponse>
72
- */
73
- create(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateCreateOptionalParams): Promise<Models.CertificateCreateResponse> {
74
- return this.beginCreate(resourceGroupName,accountName,certificateName,parameters,options)
75
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.CertificateCreateResponse>;
76
- }
77
-
78
- /**
79
- * Updates the properties of an existing certificate.
80
- * @param resourceGroupName The name of the resource group that contains the Batch account.
81
- * @param accountName The name of the Batch account.
82
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
83
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
84
- * SHA1-a3d1c5.
85
- * @param parameters Certificate entity to update.
86
- * @param [options] The optional parameters
87
- * @returns Promise<Models.CertificateUpdateResponse>
88
- */
89
- update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateUpdateOptionalParams): Promise<Models.CertificateUpdateResponse>;
90
- /**
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 parameters Certificate entity to update.
97
- * @param callback The callback
98
- */
99
- update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, callback: msRest.ServiceCallback<Models.Certificate>): void;
100
- /**
101
- * @param resourceGroupName The name of the resource group that contains the Batch account.
102
- * @param accountName The name of the Batch account.
103
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
104
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
105
- * SHA1-a3d1c5.
106
- * @param parameters Certificate entity to update.
107
- * @param options The optional parameters
108
- * @param callback The callback
109
- */
110
- update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options: Models.CertificateUpdateOptionalParams, callback: msRest.ServiceCallback<Models.Certificate>): void;
111
- update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateUpdateOptionalParams | msRest.ServiceCallback<Models.Certificate>, callback?: msRest.ServiceCallback<Models.Certificate>): Promise<Models.CertificateUpdateResponse> {
112
- return this.client.sendOperationRequest(
113
- {
114
- resourceGroupName,
115
- accountName,
116
- certificateName,
117
- parameters,
118
- options
119
- },
120
- updateOperationSpec,
121
- callback) as Promise<Models.CertificateUpdateResponse>;
122
- }
123
-
124
- /**
125
- * Deletes the specified 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 optional parameters
132
- * @returns Promise<Models.CertificateDeleteResponse>
133
- */
134
- deleteMethod(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise<Models.CertificateDeleteResponse> {
135
- return this.beginDeleteMethod(resourceGroupName,accountName,certificateName,options)
136
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.CertificateDeleteResponse>;
137
- }
138
-
139
- /**
140
- * Gets information about the specified certificate.
141
- * @param resourceGroupName The name of the resource group that contains the Batch account.
142
- * @param accountName The name of the Batch account.
143
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
144
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
145
- * SHA1-a3d1c5.
146
- * @param [options] The optional parameters
147
- * @returns Promise<Models.CertificateGetResponse>
148
- */
149
- get(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise<Models.CertificateGetResponse>;
150
- /**
151
- * @param resourceGroupName The name of the resource group that contains the Batch account.
152
- * @param accountName The name of the Batch account.
153
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
154
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
155
- * SHA1-a3d1c5.
156
- * @param callback The callback
157
- */
158
- get(resourceGroupName: string, accountName: string, certificateName: string, callback: msRest.ServiceCallback<Models.Certificate>): void;
159
- /**
160
- * @param resourceGroupName The name of the resource group that contains the Batch account.
161
- * @param accountName The name of the Batch account.
162
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
163
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
164
- * SHA1-a3d1c5.
165
- * @param options The optional parameters
166
- * @param callback The callback
167
- */
168
- get(resourceGroupName: string, accountName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Certificate>): void;
169
- get(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Certificate>, callback?: msRest.ServiceCallback<Models.Certificate>): Promise<Models.CertificateGetResponse> {
170
- return this.client.sendOperationRequest(
171
- {
172
- resourceGroupName,
173
- accountName,
174
- certificateName,
175
- options
176
- },
177
- getOperationSpec,
178
- callback) as Promise<Models.CertificateGetResponse>;
179
- }
180
-
181
- /**
182
- * If you try to delete a certificate that is being used by a pool or compute node, the status of
183
- * the certificate changes to deleteFailed. If you decide that you want to continue using the
184
- * certificate, you can use this operation to set the status of the certificate back to active. If
185
- * you intend to delete the certificate, you do not need to run this operation after the deletion
186
- * failed. You must make sure that the certificate is not being used by any resources, and then you
187
- * can try again to delete the certificate.
188
- * @summary Cancels a failed deletion of a certificate from the specified account.
189
- * @param resourceGroupName The name of the resource group that contains the Batch account.
190
- * @param accountName The name of the Batch account.
191
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
192
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
193
- * SHA1-a3d1c5.
194
- * @param [options] The optional parameters
195
- * @returns Promise<Models.CertificateCancelDeletionResponse>
196
- */
197
- cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise<Models.CertificateCancelDeletionResponse>;
198
- /**
199
- * @param resourceGroupName The name of the resource group that contains the Batch account.
200
- * @param accountName The name of the Batch account.
201
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
202
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
203
- * SHA1-a3d1c5.
204
- * @param callback The callback
205
- */
206
- cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, callback: msRest.ServiceCallback<Models.Certificate>): void;
207
- /**
208
- * @param resourceGroupName The name of the resource group that contains the Batch account.
209
- * @param accountName The name of the Batch account.
210
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
211
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
212
- * SHA1-a3d1c5.
213
- * @param options The optional parameters
214
- * @param callback The callback
215
- */
216
- cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Certificate>): void;
217
- cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Certificate>, callback?: msRest.ServiceCallback<Models.Certificate>): Promise<Models.CertificateCancelDeletionResponse> {
218
- return this.client.sendOperationRequest(
219
- {
220
- resourceGroupName,
221
- accountName,
222
- certificateName,
223
- options
224
- },
225
- cancelDeletionOperationSpec,
226
- callback) as Promise<Models.CertificateCancelDeletionResponse>;
227
- }
228
-
229
- /**
230
- * Creates a new certificate inside the specified account.
231
- * @param resourceGroupName The name of the resource group that contains the Batch account.
232
- * @param accountName The name of the Batch account.
233
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
234
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
235
- * SHA1-a3d1c5.
236
- * @param parameters Additional parameters for certificate creation.
237
- * @param [options] The optional parameters
238
- * @returns Promise<msRestAzure.LROPoller>
239
- */
240
- beginCreate(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateBeginCreateOptionalParams): Promise<msRestAzure.LROPoller> {
241
- return this.client.sendLRORequest(
242
- {
243
- resourceGroupName,
244
- accountName,
245
- certificateName,
246
- parameters,
247
- options
248
- },
249
- beginCreateOperationSpec,
250
- options);
251
- }
252
-
253
- /**
254
- * Deletes the specified certificate.
255
- * @param resourceGroupName The name of the resource group that contains the Batch account.
256
- * @param accountName The name of the Batch account.
257
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
258
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
259
- * SHA1-a3d1c5.
260
- * @param [options] The optional parameters
261
- * @returns Promise<msRestAzure.LROPoller>
262
- */
263
- beginDeleteMethod(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
264
- return this.client.sendLRORequest(
265
- {
266
- resourceGroupName,
267
- accountName,
268
- certificateName,
269
- options
270
- },
271
- beginDeleteMethodOperationSpec,
272
- options);
273
- }
274
-
275
- /**
276
- * Lists all of the certificates in the specified account.
277
- * @param nextPageLink The NextLink from the previous successful call to List operation.
278
- * @param [options] The optional parameters
279
- * @returns Promise<Models.CertificateListByBatchAccountNextResponse>
280
- */
281
- listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.CertificateListByBatchAccountNextResponse>;
282
- /**
283
- * @param nextPageLink The NextLink from the previous successful call to List operation.
284
- * @param callback The callback
285
- */
286
- listByBatchAccountNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListCertificatesResult>): void;
287
- /**
288
- * @param nextPageLink The NextLink from the previous successful call to List operation.
289
- * @param options The optional parameters
290
- * @param callback The callback
291
- */
292
- listByBatchAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ListCertificatesResult>): void;
293
- listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListCertificatesResult>, callback?: msRest.ServiceCallback<Models.ListCertificatesResult>): Promise<Models.CertificateListByBatchAccountNextResponse> {
294
- return this.client.sendOperationRequest(
295
- {
296
- nextPageLink,
297
- options
298
- },
299
- listByBatchAccountNextOperationSpec,
300
- callback) as Promise<Models.CertificateListByBatchAccountNextResponse>;
301
- }
302
- }
303
-
304
- // Operation Specifications
305
- const serializer = new msRest.Serializer(Mappers);
306
- const listByBatchAccountOperationSpec: msRest.OperationSpec = {
307
- httpMethod: "GET",
308
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates",
309
- urlParameters: [
310
- Parameters.resourceGroupName,
311
- Parameters.accountName,
312
- Parameters.subscriptionId
313
- ],
314
- queryParameters: [
315
- Parameters.maxresults,
316
- Parameters.select,
317
- Parameters.filter,
318
- Parameters.apiVersion
319
- ],
320
- headerParameters: [
321
- Parameters.acceptLanguage
322
- ],
323
- responses: {
324
- 200: {
325
- bodyMapper: Mappers.ListCertificatesResult
326
- },
327
- default: {
328
- bodyMapper: Mappers.CloudError
329
- }
330
- },
331
- serializer
332
- };
333
-
334
- const updateOperationSpec: msRest.OperationSpec = {
335
- httpMethod: "PATCH",
336
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
337
- urlParameters: [
338
- Parameters.resourceGroupName,
339
- Parameters.accountName,
340
- Parameters.certificateName,
341
- Parameters.subscriptionId
342
- ],
343
- queryParameters: [
344
- Parameters.apiVersion
345
- ],
346
- headerParameters: [
347
- Parameters.ifMatch,
348
- Parameters.acceptLanguage
349
- ],
350
- requestBody: {
351
- parameterPath: "parameters",
352
- mapper: {
353
- ...Mappers.CertificateCreateOrUpdateParameters,
354
- required: true
355
- }
356
- },
357
- responses: {
358
- 200: {
359
- bodyMapper: Mappers.Certificate,
360
- headersMapper: Mappers.CertificateUpdateHeaders
361
- },
362
- default: {
363
- bodyMapper: Mappers.CloudError
364
- }
365
- },
366
- serializer
367
- };
368
-
369
- const getOperationSpec: msRest.OperationSpec = {
370
- httpMethod: "GET",
371
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
372
- urlParameters: [
373
- Parameters.resourceGroupName,
374
- Parameters.accountName,
375
- Parameters.certificateName,
376
- Parameters.subscriptionId
377
- ],
378
- queryParameters: [
379
- Parameters.apiVersion
380
- ],
381
- headerParameters: [
382
- Parameters.acceptLanguage
383
- ],
384
- responses: {
385
- 200: {
386
- bodyMapper: Mappers.Certificate,
387
- headersMapper: Mappers.CertificateGetHeaders
388
- },
389
- default: {
390
- bodyMapper: Mappers.CloudError
391
- }
392
- },
393
- serializer
394
- };
395
-
396
- const cancelDeletionOperationSpec: msRest.OperationSpec = {
397
- httpMethod: "POST",
398
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete",
399
- urlParameters: [
400
- Parameters.resourceGroupName,
401
- Parameters.accountName,
402
- Parameters.certificateName,
403
- Parameters.subscriptionId
404
- ],
405
- queryParameters: [
406
- Parameters.apiVersion
407
- ],
408
- headerParameters: [
409
- Parameters.acceptLanguage
410
- ],
411
- responses: {
412
- 200: {
413
- bodyMapper: Mappers.Certificate,
414
- headersMapper: Mappers.CertificateCancelDeletionHeaders
415
- },
416
- default: {
417
- bodyMapper: Mappers.CloudError
418
- }
419
- },
420
- serializer
421
- };
422
-
423
- const beginCreateOperationSpec: msRest.OperationSpec = {
424
- httpMethod: "PUT",
425
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
426
- urlParameters: [
427
- Parameters.resourceGroupName,
428
- Parameters.accountName,
429
- Parameters.certificateName,
430
- Parameters.subscriptionId
431
- ],
432
- queryParameters: [
433
- Parameters.apiVersion
434
- ],
435
- headerParameters: [
436
- Parameters.ifMatch,
437
- Parameters.ifNoneMatch,
438
- Parameters.acceptLanguage
439
- ],
440
- requestBody: {
441
- parameterPath: "parameters",
442
- mapper: {
443
- ...Mappers.CertificateCreateOrUpdateParameters,
444
- required: true
445
- }
446
- },
447
- responses: {
448
- 200: {
449
- bodyMapper: Mappers.Certificate,
450
- headersMapper: Mappers.CertificateCreateHeaders
451
- },
452
- default: {
453
- bodyMapper: Mappers.CloudError
454
- }
455
- },
456
- serializer
457
- };
458
-
459
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
460
- httpMethod: "DELETE",
461
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
462
- urlParameters: [
463
- Parameters.resourceGroupName,
464
- Parameters.accountName,
465
- Parameters.certificateName,
466
- Parameters.subscriptionId
467
- ],
468
- queryParameters: [
469
- Parameters.apiVersion
470
- ],
471
- headerParameters: [
472
- Parameters.acceptLanguage
473
- ],
474
- responses: {
475
- 200: {
476
- headersMapper: Mappers.CertificateDeleteHeaders
477
- },
478
- 202: {
479
- headersMapper: Mappers.CertificateDeleteHeaders
480
- },
481
- 204: {
482
- headersMapper: Mappers.CertificateDeleteHeaders
483
- },
484
- default: {
485
- bodyMapper: Mappers.CloudError
486
- }
487
- },
488
- serializer
489
- };
490
-
491
- const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
492
- httpMethod: "GET",
493
- baseUrl: "https://management.azure.com",
494
- path: "{nextLink}",
495
- urlParameters: [
496
- Parameters.nextPageLink
497
- ],
498
- headerParameters: [
499
- Parameters.acceptLanguage
500
- ],
501
- responses: {
502
- 200: {
503
- bodyMapper: Mappers.ListCertificatesResult
504
- },
505
- default: {
506
- bodyMapper: Mappers.CloudError
507
- }
508
- },
509
- serializer
510
- };
@@ -1,147 +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 Models from "../models";
13
- import * as Mappers from "../models/locationMappers";
14
- import * as Parameters from "../models/parameters";
15
- import { BatchManagementClientContext } from "../batchManagementClientContext";
16
-
17
- /** Class representing a Location. */
18
- export class Location {
19
- private readonly client: BatchManagementClientContext;
20
-
21
- /**
22
- * Create a Location.
23
- * @param {BatchManagementClientContext} client Reference to the service client.
24
- */
25
- constructor(client: BatchManagementClientContext) {
26
- this.client = client;
27
- }
28
-
29
- /**
30
- * Gets the Batch service quotas for the specified subscription at the given location.
31
- * @param locationName The region for which to retrieve Batch service quotas.
32
- * @param [options] The optional parameters
33
- * @returns Promise<Models.LocationGetQuotasResponse>
34
- */
35
- getQuotas(locationName: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationGetQuotasResponse>;
36
- /**
37
- * @param locationName The region for which to retrieve Batch service quotas.
38
- * @param callback The callback
39
- */
40
- getQuotas(locationName: string, callback: msRest.ServiceCallback<Models.BatchLocationQuota>): void;
41
- /**
42
- * @param locationName The region for which to retrieve Batch service quotas.
43
- * @param options The optional parameters
44
- * @param callback The callback
45
- */
46
- getQuotas(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchLocationQuota>): void;
47
- getQuotas(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchLocationQuota>, callback?: msRest.ServiceCallback<Models.BatchLocationQuota>): Promise<Models.LocationGetQuotasResponse> {
48
- return this.client.sendOperationRequest(
49
- {
50
- locationName,
51
- options
52
- },
53
- getQuotasOperationSpec,
54
- callback) as Promise<Models.LocationGetQuotasResponse>;
55
- }
56
-
57
- /**
58
- * Checks whether the Batch account name is available in the specified region.
59
- * @param locationName The desired region for the name check.
60
- * @param name The name to check for availability
61
- * @param [options] The optional parameters
62
- * @returns Promise<Models.LocationCheckNameAvailabilityResponse>
63
- */
64
- checkNameAvailability(locationName: string, name: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationCheckNameAvailabilityResponse>;
65
- /**
66
- * @param locationName The desired region for the name check.
67
- * @param name The name to check for availability
68
- * @param callback The callback
69
- */
70
- checkNameAvailability(locationName: string, name: string, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityResult>): void;
71
- /**
72
- * @param locationName The desired region for the name check.
73
- * @param name The name to check for availability
74
- * @param options The optional parameters
75
- * @param callback The callback
76
- */
77
- checkNameAvailability(locationName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityResult>): void;
78
- checkNameAvailability(locationName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityResult>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityResult>): Promise<Models.LocationCheckNameAvailabilityResponse> {
79
- return this.client.sendOperationRequest(
80
- {
81
- locationName,
82
- name,
83
- options
84
- },
85
- checkNameAvailabilityOperationSpec,
86
- callback) as Promise<Models.LocationCheckNameAvailabilityResponse>;
87
- }
88
- }
89
-
90
- // Operation Specifications
91
- const serializer = new msRest.Serializer(Mappers);
92
- const getQuotasOperationSpec: msRest.OperationSpec = {
93
- httpMethod: "GET",
94
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas",
95
- urlParameters: [
96
- Parameters.locationName,
97
- Parameters.subscriptionId
98
- ],
99
- queryParameters: [
100
- Parameters.apiVersion
101
- ],
102
- headerParameters: [
103
- Parameters.acceptLanguage
104
- ],
105
- responses: {
106
- 200: {
107
- bodyMapper: Mappers.BatchLocationQuota
108
- },
109
- default: {
110
- bodyMapper: Mappers.CloudError
111
- }
112
- },
113
- serializer
114
- };
115
-
116
- const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
117
- httpMethod: "POST",
118
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability",
119
- urlParameters: [
120
- Parameters.locationName,
121
- Parameters.subscriptionId
122
- ],
123
- queryParameters: [
124
- Parameters.apiVersion
125
- ],
126
- headerParameters: [
127
- Parameters.acceptLanguage
128
- ],
129
- requestBody: {
130
- parameterPath: {
131
- name: "name"
132
- },
133
- mapper: {
134
- ...Mappers.CheckNameAvailabilityParameters,
135
- required: true
136
- }
137
- },
138
- responses: {
139
- 200: {
140
- bodyMapper: Mappers.CheckNameAvailabilityResult
141
- },
142
- default: {
143
- bodyMapper: Mappers.CloudError
144
- }
145
- },
146
- serializer
147
- };