@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,17 +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
- export {
12
- BatchLocationQuota,
13
- CloudError,
14
- CheckNameAvailabilityParameters,
15
- CheckNameAvailabilityResult
16
- } from "../models/mappers";
17
-
@@ -1,17 +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
- export {
12
- OperationListResult,
13
- Operation,
14
- OperationDisplay,
15
- CloudError
16
- } from "../models/mappers";
17
-
@@ -1,198 +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
-
13
- export const acceptLanguage: msRest.OperationParameter = {
14
- parameterPath: "acceptLanguage",
15
- mapper: {
16
- serializedName: "accept-language",
17
- defaultValue: 'en-US',
18
- type: {
19
- name: "String"
20
- }
21
- }
22
- };
23
- export const accountName: msRest.OperationURLParameter = {
24
- parameterPath: "accountName",
25
- mapper: {
26
- required: true,
27
- serializedName: "accountName",
28
- constraints: {
29
- MaxLength: 24,
30
- MinLength: 3,
31
- Pattern: /^[-\w\._]+$/
32
- },
33
- type: {
34
- name: "String"
35
- }
36
- }
37
- };
38
- export const apiVersion: msRest.OperationQueryParameter = {
39
- parameterPath: "apiVersion",
40
- mapper: {
41
- required: true,
42
- serializedName: "api-version",
43
- type: {
44
- name: "String"
45
- }
46
- }
47
- };
48
- export const applicationId: msRest.OperationURLParameter = {
49
- parameterPath: "applicationId",
50
- mapper: {
51
- required: true,
52
- serializedName: "applicationId",
53
- type: {
54
- name: "String"
55
- }
56
- }
57
- };
58
- export const certificateName: msRest.OperationURLParameter = {
59
- parameterPath: "certificateName",
60
- mapper: {
61
- required: true,
62
- serializedName: "certificateName",
63
- constraints: {
64
- MaxLength: 45,
65
- MinLength: 5,
66
- Pattern: /^[\w]+-[\w]+$/
67
- },
68
- type: {
69
- name: "String"
70
- }
71
- }
72
- };
73
- export const filter: msRest.OperationQueryParameter = {
74
- parameterPath: [
75
- "options",
76
- "filter"
77
- ],
78
- mapper: {
79
- serializedName: "$filter",
80
- type: {
81
- name: "String"
82
- }
83
- }
84
- };
85
- export const ifMatch: msRest.OperationParameter = {
86
- parameterPath: [
87
- "options",
88
- "ifMatch"
89
- ],
90
- mapper: {
91
- serializedName: "If-Match",
92
- type: {
93
- name: "String"
94
- }
95
- }
96
- };
97
- export const ifNoneMatch: msRest.OperationParameter = {
98
- parameterPath: [
99
- "options",
100
- "ifNoneMatch"
101
- ],
102
- mapper: {
103
- serializedName: "If-None-Match",
104
- type: {
105
- name: "String"
106
- }
107
- }
108
- };
109
- export const locationName: msRest.OperationURLParameter = {
110
- parameterPath: "locationName",
111
- mapper: {
112
- required: true,
113
- serializedName: "locationName",
114
- type: {
115
- name: "String"
116
- }
117
- }
118
- };
119
- export const maxresults: msRest.OperationQueryParameter = {
120
- parameterPath: [
121
- "options",
122
- "maxresults"
123
- ],
124
- mapper: {
125
- serializedName: "maxresults",
126
- type: {
127
- name: "Number"
128
- }
129
- }
130
- };
131
- export const nextPageLink: msRest.OperationURLParameter = {
132
- parameterPath: "nextPageLink",
133
- mapper: {
134
- required: true,
135
- serializedName: "nextLink",
136
- type: {
137
- name: "String"
138
- }
139
- },
140
- skipEncoding: true
141
- };
142
- export const poolName: msRest.OperationURLParameter = {
143
- parameterPath: "poolName",
144
- mapper: {
145
- required: true,
146
- serializedName: "poolName",
147
- constraints: {
148
- MaxLength: 64,
149
- MinLength: 1,
150
- Pattern: /^[a-zA-Z0-9_-]+$/
151
- },
152
- type: {
153
- name: "String"
154
- }
155
- }
156
- };
157
- export const resourceGroupName: msRest.OperationURLParameter = {
158
- parameterPath: "resourceGroupName",
159
- mapper: {
160
- required: true,
161
- serializedName: "resourceGroupName",
162
- type: {
163
- name: "String"
164
- }
165
- }
166
- };
167
- export const select: msRest.OperationQueryParameter = {
168
- parameterPath: [
169
- "options",
170
- "select"
171
- ],
172
- mapper: {
173
- serializedName: "$select",
174
- type: {
175
- name: "String"
176
- }
177
- }
178
- };
179
- export const subscriptionId: msRest.OperationURLParameter = {
180
- parameterPath: "subscriptionId",
181
- mapper: {
182
- required: true,
183
- serializedName: "subscriptionId",
184
- type: {
185
- name: "String"
186
- }
187
- }
188
- };
189
- export const version: msRest.OperationURLParameter = {
190
- parameterPath: "version",
191
- mapper: {
192
- required: true,
193
- serializedName: "version",
194
- type: {
195
- name: "String"
196
- }
197
- }
198
- };
@@ -1,61 +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
- export {
12
- ListPoolsResult,
13
- Pool,
14
- ProxyResource,
15
- BaseResource,
16
- DeploymentConfiguration,
17
- CloudServiceConfiguration,
18
- VirtualMachineConfiguration,
19
- ImageReference,
20
- OSDisk,
21
- WindowsConfiguration,
22
- DataDisk,
23
- ScaleSettings,
24
- FixedScaleSettings,
25
- AutoScaleSettings,
26
- AutoScaleRun,
27
- AutoScaleRunError,
28
- NetworkConfiguration,
29
- PoolEndpointConfiguration,
30
- InboundNatPool,
31
- NetworkSecurityGroupRule,
32
- TaskSchedulingPolicy,
33
- UserAccount,
34
- LinuxUserConfiguration,
35
- MetadataItem,
36
- StartTask,
37
- ResourceFile,
38
- EnvironmentSetting,
39
- UserIdentity,
40
- AutoUserSpecification,
41
- CertificateReference,
42
- ApplicationPackageReference,
43
- ResizeOperationStatus,
44
- ResizeError,
45
- CloudError,
46
- PoolCreateHeaders,
47
- PoolUpdateHeaders,
48
- PoolDeleteHeaders,
49
- PoolGetHeaders,
50
- PoolDisableAutoScaleHeaders,
51
- PoolStopResizeHeaders,
52
- Resource,
53
- Certificate,
54
- DeleteCertificateError,
55
- CertificateCreateOrUpdateParameters,
56
- BatchAccount,
57
- KeyVaultReference,
58
- AutoStorageProperties,
59
- AutoStorageBaseProperties
60
- } from "../models/mappers";
61
-
@@ -1,399 +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/applicationOperationsMappers";
14
- import * as Parameters from "../models/parameters";
15
- import { BatchManagementClientContext } from "../batchManagementClientContext";
16
-
17
- /** Class representing a ApplicationOperations. */
18
- export class ApplicationOperations {
19
- private readonly client: BatchManagementClientContext;
20
-
21
- /**
22
- * Create a ApplicationOperations.
23
- * @param {BatchManagementClientContext} client Reference to the service client.
24
- */
25
- constructor(client: BatchManagementClientContext) {
26
- this.client = client;
27
- }
28
-
29
- /**
30
- * Adds an application to the specified Batch 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 applicationId The ID of the application.
34
- * @param [options] The optional parameters
35
- * @returns Promise<Models.ApplicationCreateResponse>
36
- */
37
- create(resourceGroupName: string, accountName: string, applicationId: string, options?: Models.ApplicationCreateOptionalParams): Promise<Models.ApplicationCreateResponse>;
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 applicationId The ID of the application.
42
- * @param callback The callback
43
- */
44
- create(resourceGroupName: string, accountName: string, applicationId: string, callback: msRest.ServiceCallback<Models.Application>): void;
45
- /**
46
- * @param resourceGroupName The name of the resource group that contains the Batch account.
47
- * @param accountName The name of the Batch account.
48
- * @param applicationId The ID of the application.
49
- * @param options The optional parameters
50
- * @param callback The callback
51
- */
52
- create(resourceGroupName: string, accountName: string, applicationId: string, options: Models.ApplicationCreateOptionalParams, callback: msRest.ServiceCallback<Models.Application>): void;
53
- create(resourceGroupName: string, accountName: string, applicationId: string, options?: Models.ApplicationCreateOptionalParams | msRest.ServiceCallback<Models.Application>, callback?: msRest.ServiceCallback<Models.Application>): Promise<Models.ApplicationCreateResponse> {
54
- return this.client.sendOperationRequest(
55
- {
56
- resourceGroupName,
57
- accountName,
58
- applicationId,
59
- options
60
- },
61
- createOperationSpec,
62
- callback) as Promise<Models.ApplicationCreateResponse>;
63
- }
64
-
65
- /**
66
- * Deletes an application.
67
- * @param resourceGroupName The name of the resource group that contains the Batch account.
68
- * @param accountName The name of the Batch account.
69
- * @param applicationId The ID of the application.
70
- * @param [options] The optional parameters
71
- * @returns Promise<msRest.RestResponse>
72
- */
73
- deleteMethod(resourceGroupName: string, accountName: string, applicationId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
74
- /**
75
- * @param resourceGroupName The name of the resource group that contains the Batch account.
76
- * @param accountName The name of the Batch account.
77
- * @param applicationId The ID of the application.
78
- * @param callback The callback
79
- */
80
- deleteMethod(resourceGroupName: string, accountName: string, applicationId: string, callback: msRest.ServiceCallback<void>): void;
81
- /**
82
- * @param resourceGroupName The name of the resource group that contains the Batch account.
83
- * @param accountName The name of the Batch account.
84
- * @param applicationId The ID of the application.
85
- * @param options The optional parameters
86
- * @param callback The callback
87
- */
88
- deleteMethod(resourceGroupName: string, accountName: string, applicationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
89
- deleteMethod(resourceGroupName: string, accountName: string, applicationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
90
- return this.client.sendOperationRequest(
91
- {
92
- resourceGroupName,
93
- accountName,
94
- applicationId,
95
- options
96
- },
97
- deleteMethodOperationSpec,
98
- callback);
99
- }
100
-
101
- /**
102
- * Gets information about the specified application.
103
- * @param resourceGroupName The name of the resource group that contains the Batch account.
104
- * @param accountName The name of the Batch account.
105
- * @param applicationId The ID of the application.
106
- * @param [options] The optional parameters
107
- * @returns Promise<Models.ApplicationGetResponse>
108
- */
109
- get(resourceGroupName: string, accountName: string, applicationId: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationGetResponse>;
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 applicationId The ID of the application.
114
- * @param callback The callback
115
- */
116
- get(resourceGroupName: string, accountName: string, applicationId: string, callback: msRest.ServiceCallback<Models.Application>): void;
117
- /**
118
- * @param resourceGroupName The name of the resource group that contains the Batch account.
119
- * @param accountName The name of the Batch account.
120
- * @param applicationId The ID of the application.
121
- * @param options The optional parameters
122
- * @param callback The callback
123
- */
124
- get(resourceGroupName: string, accountName: string, applicationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Application>): void;
125
- get(resourceGroupName: string, accountName: string, applicationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Application>, callback?: msRest.ServiceCallback<Models.Application>): Promise<Models.ApplicationGetResponse> {
126
- return this.client.sendOperationRequest(
127
- {
128
- resourceGroupName,
129
- accountName,
130
- applicationId,
131
- options
132
- },
133
- getOperationSpec,
134
- callback) as Promise<Models.ApplicationGetResponse>;
135
- }
136
-
137
- /**
138
- * Updates settings for the specified application.
139
- * @param resourceGroupName The name of the resource group that contains the Batch account.
140
- * @param accountName The name of the Batch account.
141
- * @param applicationId The ID of the application.
142
- * @param parameters The parameters for the request.
143
- * @param [options] The optional parameters
144
- * @returns Promise<msRest.RestResponse>
145
- */
146
- update(resourceGroupName: string, accountName: string, applicationId: string, parameters: Models.ApplicationUpdateParameters, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
147
- /**
148
- * @param resourceGroupName The name of the resource group that contains the Batch account.
149
- * @param accountName The name of the Batch account.
150
- * @param applicationId The ID of the application.
151
- * @param parameters The parameters for the request.
152
- * @param callback The callback
153
- */
154
- update(resourceGroupName: string, accountName: string, applicationId: string, parameters: Models.ApplicationUpdateParameters, callback: msRest.ServiceCallback<void>): void;
155
- /**
156
- * @param resourceGroupName The name of the resource group that contains the Batch account.
157
- * @param accountName The name of the Batch account.
158
- * @param applicationId The ID of the application.
159
- * @param parameters The parameters for the request.
160
- * @param options The optional parameters
161
- * @param callback The callback
162
- */
163
- update(resourceGroupName: string, accountName: string, applicationId: string, parameters: Models.ApplicationUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
164
- update(resourceGroupName: string, accountName: string, applicationId: string, parameters: Models.ApplicationUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
165
- return this.client.sendOperationRequest(
166
- {
167
- resourceGroupName,
168
- accountName,
169
- applicationId,
170
- parameters,
171
- options
172
- },
173
- updateOperationSpec,
174
- callback);
175
- }
176
-
177
- /**
178
- * Lists all of the applications in the specified account.
179
- * @param resourceGroupName The name of the resource group that contains the Batch account.
180
- * @param accountName The name of the Batch account.
181
- * @param [options] The optional parameters
182
- * @returns Promise<Models.ApplicationListResponse>
183
- */
184
- list(resourceGroupName: string, accountName: string, options?: Models.ApplicationListOptionalParams): Promise<Models.ApplicationListResponse>;
185
- /**
186
- * @param resourceGroupName The name of the resource group that contains the Batch account.
187
- * @param accountName The name of the Batch account.
188
- * @param callback The callback
189
- */
190
- list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ListApplicationsResult>): void;
191
- /**
192
- * @param resourceGroupName The name of the resource group that contains the Batch account.
193
- * @param accountName The name of the Batch account.
194
- * @param options The optional parameters
195
- * @param callback The callback
196
- */
197
- list(resourceGroupName: string, accountName: string, options: Models.ApplicationListOptionalParams, callback: msRest.ServiceCallback<Models.ListApplicationsResult>): void;
198
- list(resourceGroupName: string, accountName: string, options?: Models.ApplicationListOptionalParams | msRest.ServiceCallback<Models.ListApplicationsResult>, callback?: msRest.ServiceCallback<Models.ListApplicationsResult>): Promise<Models.ApplicationListResponse> {
199
- return this.client.sendOperationRequest(
200
- {
201
- resourceGroupName,
202
- accountName,
203
- options
204
- },
205
- listOperationSpec,
206
- callback) as Promise<Models.ApplicationListResponse>;
207
- }
208
-
209
- /**
210
- * Lists all of the applications in the specified account.
211
- * @param nextPageLink The NextLink from the previous successful call to List operation.
212
- * @param [options] The optional parameters
213
- * @returns Promise<Models.ApplicationListNextResponse>
214
- */
215
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationListNextResponse>;
216
- /**
217
- * @param nextPageLink The NextLink from the previous successful call to List operation.
218
- * @param callback The callback
219
- */
220
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListApplicationsResult>): void;
221
- /**
222
- * @param nextPageLink The NextLink from the previous successful call to List operation.
223
- * @param options The optional parameters
224
- * @param callback The callback
225
- */
226
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ListApplicationsResult>): void;
227
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListApplicationsResult>, callback?: msRest.ServiceCallback<Models.ListApplicationsResult>): Promise<Models.ApplicationListNextResponse> {
228
- return this.client.sendOperationRequest(
229
- {
230
- nextPageLink,
231
- options
232
- },
233
- listNextOperationSpec,
234
- callback) as Promise<Models.ApplicationListNextResponse>;
235
- }
236
- }
237
-
238
- // Operation Specifications
239
- const serializer = new msRest.Serializer(Mappers);
240
- const createOperationSpec: msRest.OperationSpec = {
241
- httpMethod: "PUT",
242
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
243
- urlParameters: [
244
- Parameters.resourceGroupName,
245
- Parameters.accountName,
246
- Parameters.applicationId,
247
- Parameters.subscriptionId
248
- ],
249
- queryParameters: [
250
- Parameters.apiVersion
251
- ],
252
- headerParameters: [
253
- Parameters.acceptLanguage
254
- ],
255
- requestBody: {
256
- parameterPath: [
257
- "options",
258
- "parameters"
259
- ],
260
- mapper: Mappers.ApplicationCreateParameters
261
- },
262
- responses: {
263
- 201: {
264
- bodyMapper: Mappers.Application
265
- },
266
- default: {
267
- bodyMapper: Mappers.CloudError
268
- }
269
- },
270
- serializer
271
- };
272
-
273
- const deleteMethodOperationSpec: msRest.OperationSpec = {
274
- httpMethod: "DELETE",
275
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
276
- urlParameters: [
277
- Parameters.resourceGroupName,
278
- Parameters.accountName,
279
- Parameters.applicationId,
280
- Parameters.subscriptionId
281
- ],
282
- queryParameters: [
283
- Parameters.apiVersion
284
- ],
285
- headerParameters: [
286
- Parameters.acceptLanguage
287
- ],
288
- responses: {
289
- 204: {},
290
- default: {
291
- bodyMapper: Mappers.CloudError
292
- }
293
- },
294
- serializer
295
- };
296
-
297
- const getOperationSpec: msRest.OperationSpec = {
298
- httpMethod: "GET",
299
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
300
- urlParameters: [
301
- Parameters.resourceGroupName,
302
- Parameters.accountName,
303
- Parameters.applicationId,
304
- Parameters.subscriptionId
305
- ],
306
- queryParameters: [
307
- Parameters.apiVersion
308
- ],
309
- headerParameters: [
310
- Parameters.acceptLanguage
311
- ],
312
- responses: {
313
- 200: {
314
- bodyMapper: Mappers.Application
315
- },
316
- default: {
317
- bodyMapper: Mappers.CloudError
318
- }
319
- },
320
- serializer
321
- };
322
-
323
- const updateOperationSpec: msRest.OperationSpec = {
324
- httpMethod: "PATCH",
325
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
326
- urlParameters: [
327
- Parameters.resourceGroupName,
328
- Parameters.accountName,
329
- Parameters.applicationId,
330
- Parameters.subscriptionId
331
- ],
332
- queryParameters: [
333
- Parameters.apiVersion
334
- ],
335
- headerParameters: [
336
- Parameters.acceptLanguage
337
- ],
338
- requestBody: {
339
- parameterPath: "parameters",
340
- mapper: {
341
- ...Mappers.ApplicationUpdateParameters,
342
- required: true
343
- }
344
- },
345
- responses: {
346
- 204: {},
347
- default: {
348
- bodyMapper: Mappers.CloudError
349
- }
350
- },
351
- serializer
352
- };
353
-
354
- const listOperationSpec: msRest.OperationSpec = {
355
- httpMethod: "GET",
356
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications",
357
- urlParameters: [
358
- Parameters.resourceGroupName,
359
- Parameters.accountName,
360
- Parameters.subscriptionId
361
- ],
362
- queryParameters: [
363
- Parameters.maxresults,
364
- Parameters.apiVersion
365
- ],
366
- headerParameters: [
367
- Parameters.acceptLanguage
368
- ],
369
- responses: {
370
- 200: {
371
- bodyMapper: Mappers.ListApplicationsResult
372
- },
373
- default: {
374
- bodyMapper: Mappers.CloudError
375
- }
376
- },
377
- serializer
378
- };
379
-
380
- const listNextOperationSpec: msRest.OperationSpec = {
381
- httpMethod: "GET",
382
- baseUrl: "https://management.azure.com",
383
- path: "{nextLink}",
384
- urlParameters: [
385
- Parameters.nextPageLink
386
- ],
387
- headerParameters: [
388
- Parameters.acceptLanguage
389
- ],
390
- responses: {
391
- 200: {
392
- bodyMapper: Mappers.ListApplicationsResult
393
- },
394
- default: {
395
- bodyMapper: Mappers.CloudError
396
- }
397
- },
398
- serializer
399
- };