@azure/arm-batch 4.0.0 → 7.0.0-alpha.20211122.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 +72 -25
  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
package/dist/arm-batch.js DELETED
@@ -1,4689 +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
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
12
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
13
- (factory((global.Azure = global.Azure || {}, global.Azure.ArmBatch = {}),global.msRestAzure,global.msRest));
14
- }(this, (function (exports,msRestAzure,msRest) { 'use strict';
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation. All rights reserved.
18
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
19
- this file except in compliance with the License. You may obtain a copy of the
20
- License at http://www.apache.org/licenses/LICENSE-2.0
21
-
22
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
24
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
25
- MERCHANTABLITY OR NON-INFRINGEMENT.
26
-
27
- See the Apache Version 2.0 License for specific language governing permissions
28
- and limitations under the License.
29
- ***************************************************************************** */
30
- /* global Reflect, Promise */
31
-
32
- var extendStatics = function(d, b) {
33
- extendStatics = Object.setPrototypeOf ||
34
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
35
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36
- return extendStatics(d, b);
37
- };
38
-
39
- function __extends(d, b) {
40
- extendStatics(d, b);
41
- function __() { this.constructor = d; }
42
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
- }
44
-
45
- var __assign = function() {
46
- __assign = Object.assign || function __assign(t) {
47
- for (var s, i = 1, n = arguments.length; i < n; i++) {
48
- s = arguments[i];
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50
- }
51
- return t;
52
- };
53
- return __assign.apply(this, arguments);
54
- };
55
-
56
- /*
57
- * Copyright (c) Microsoft Corporation. All rights reserved.
58
- * Licensed under the MIT License. See License.txt in the project root for
59
- * license information.
60
- *
61
- * Code generated by Microsoft (R) AutoRest Code Generator.
62
- * Changes may cause incorrect behavior and will be lost if the code is
63
- * regenerated.
64
- */
65
-
66
- var index = /*#__PURE__*/Object.freeze({
67
-
68
- });
69
-
70
- /*
71
- * Copyright (c) Microsoft Corporation. All rights reserved.
72
- * Licensed under the MIT License. See License.txt in the project root for
73
- * license information.
74
- *
75
- * Code generated by Microsoft (R) AutoRest Code Generator.
76
- * Changes may cause incorrect behavior and will be lost if the code is
77
- * regenerated.
78
- */
79
- var CloudError = msRestAzure.CloudErrorMapper;
80
- var BaseResource = msRestAzure.BaseResourceMapper;
81
- var AutoStorageBaseProperties = {
82
- serializedName: "AutoStorageBaseProperties",
83
- type: {
84
- name: "Composite",
85
- className: "AutoStorageBaseProperties",
86
- modelProperties: {
87
- storageAccountId: {
88
- required: true,
89
- serializedName: "storageAccountId",
90
- type: {
91
- name: "String"
92
- }
93
- }
94
- }
95
- }
96
- };
97
- var KeyVaultReference = {
98
- serializedName: "KeyVaultReference",
99
- type: {
100
- name: "Composite",
101
- className: "KeyVaultReference",
102
- modelProperties: {
103
- id: {
104
- required: true,
105
- serializedName: "id",
106
- type: {
107
- name: "String"
108
- }
109
- },
110
- url: {
111
- required: true,
112
- serializedName: "url",
113
- type: {
114
- name: "String"
115
- }
116
- }
117
- }
118
- }
119
- };
120
- var BatchAccountCreateParameters = {
121
- serializedName: "BatchAccountCreateParameters",
122
- type: {
123
- name: "Composite",
124
- className: "BatchAccountCreateParameters",
125
- modelProperties: {
126
- location: {
127
- required: true,
128
- serializedName: "location",
129
- type: {
130
- name: "String"
131
- }
132
- },
133
- tags: {
134
- serializedName: "tags",
135
- type: {
136
- name: "Dictionary",
137
- value: {
138
- type: {
139
- name: "String"
140
- }
141
- }
142
- }
143
- },
144
- autoStorage: {
145
- serializedName: "properties.autoStorage",
146
- type: {
147
- name: "Composite",
148
- className: "AutoStorageBaseProperties"
149
- }
150
- },
151
- poolAllocationMode: {
152
- serializedName: "properties.poolAllocationMode",
153
- type: {
154
- name: "Enum",
155
- allowedValues: [
156
- "BatchService",
157
- "UserSubscription"
158
- ]
159
- }
160
- },
161
- keyVaultReference: {
162
- serializedName: "properties.keyVaultReference",
163
- type: {
164
- name: "Composite",
165
- className: "KeyVaultReference"
166
- }
167
- }
168
- }
169
- }
170
- };
171
- var AutoStorageProperties = {
172
- serializedName: "AutoStorageProperties",
173
- type: {
174
- name: "Composite",
175
- className: "AutoStorageProperties",
176
- modelProperties: __assign({}, AutoStorageBaseProperties.type.modelProperties, { lastKeySync: {
177
- required: true,
178
- serializedName: "lastKeySync",
179
- type: {
180
- name: "DateTime"
181
- }
182
- } })
183
- }
184
- };
185
- var Resource = {
186
- serializedName: "Resource",
187
- type: {
188
- name: "Composite",
189
- className: "Resource",
190
- modelProperties: {
191
- id: {
192
- readOnly: true,
193
- serializedName: "id",
194
- type: {
195
- name: "String"
196
- }
197
- },
198
- name: {
199
- readOnly: true,
200
- serializedName: "name",
201
- type: {
202
- name: "String"
203
- }
204
- },
205
- type: {
206
- readOnly: true,
207
- serializedName: "type",
208
- type: {
209
- name: "String"
210
- }
211
- },
212
- location: {
213
- readOnly: true,
214
- serializedName: "location",
215
- type: {
216
- name: "String"
217
- }
218
- },
219
- tags: {
220
- readOnly: true,
221
- serializedName: "tags",
222
- type: {
223
- name: "Dictionary",
224
- value: {
225
- type: {
226
- name: "String"
227
- }
228
- }
229
- }
230
- }
231
- }
232
- }
233
- };
234
- var BatchAccount = {
235
- serializedName: "BatchAccount",
236
- type: {
237
- name: "Composite",
238
- className: "BatchAccount",
239
- modelProperties: __assign({}, Resource.type.modelProperties, { accountEndpoint: {
240
- readOnly: true,
241
- serializedName: "properties.accountEndpoint",
242
- type: {
243
- name: "String"
244
- }
245
- }, provisioningState: {
246
- nullable: false,
247
- readOnly: true,
248
- serializedName: "properties.provisioningState",
249
- type: {
250
- name: "Enum",
251
- allowedValues: [
252
- "Invalid",
253
- "Creating",
254
- "Deleting",
255
- "Succeeded",
256
- "Failed",
257
- "Cancelled"
258
- ]
259
- }
260
- }, poolAllocationMode: {
261
- readOnly: true,
262
- serializedName: "properties.poolAllocationMode",
263
- type: {
264
- name: "Enum",
265
- allowedValues: [
266
- "BatchService",
267
- "UserSubscription"
268
- ]
269
- }
270
- }, keyVaultReference: {
271
- readOnly: true,
272
- serializedName: "properties.keyVaultReference",
273
- type: {
274
- name: "Composite",
275
- className: "KeyVaultReference"
276
- }
277
- }, autoStorage: {
278
- readOnly: true,
279
- serializedName: "properties.autoStorage",
280
- type: {
281
- name: "Composite",
282
- className: "AutoStorageProperties"
283
- }
284
- }, dedicatedCoreQuota: {
285
- nullable: false,
286
- readOnly: true,
287
- serializedName: "properties.dedicatedCoreQuota",
288
- type: {
289
- name: "Number"
290
- }
291
- }, lowPriorityCoreQuota: {
292
- nullable: false,
293
- readOnly: true,
294
- serializedName: "properties.lowPriorityCoreQuota",
295
- type: {
296
- name: "Number"
297
- }
298
- }, poolQuota: {
299
- nullable: false,
300
- readOnly: true,
301
- serializedName: "properties.poolQuota",
302
- type: {
303
- name: "Number"
304
- }
305
- }, activeJobAndJobScheduleQuota: {
306
- nullable: false,
307
- readOnly: true,
308
- serializedName: "properties.activeJobAndJobScheduleQuota",
309
- type: {
310
- name: "Number"
311
- }
312
- } })
313
- }
314
- };
315
- var BatchAccountUpdateParameters = {
316
- serializedName: "BatchAccountUpdateParameters",
317
- type: {
318
- name: "Composite",
319
- className: "BatchAccountUpdateParameters",
320
- modelProperties: {
321
- tags: {
322
- serializedName: "tags",
323
- type: {
324
- name: "Dictionary",
325
- value: {
326
- type: {
327
- name: "String"
328
- }
329
- }
330
- }
331
- },
332
- autoStorage: {
333
- serializedName: "properties.autoStorage",
334
- type: {
335
- name: "Composite",
336
- className: "AutoStorageBaseProperties"
337
- }
338
- }
339
- }
340
- }
341
- };
342
- var BatchAccountRegenerateKeyParameters = {
343
- serializedName: "BatchAccountRegenerateKeyParameters",
344
- type: {
345
- name: "Composite",
346
- className: "BatchAccountRegenerateKeyParameters",
347
- modelProperties: {
348
- keyName: {
349
- required: true,
350
- serializedName: "keyName",
351
- type: {
352
- name: "Enum",
353
- allowedValues: [
354
- "Primary",
355
- "Secondary"
356
- ]
357
- }
358
- }
359
- }
360
- }
361
- };
362
- var BatchAccountKeys = {
363
- serializedName: "BatchAccountKeys",
364
- type: {
365
- name: "Composite",
366
- className: "BatchAccountKeys",
367
- modelProperties: {
368
- accountName: {
369
- readOnly: true,
370
- serializedName: "accountName",
371
- type: {
372
- name: "String"
373
- }
374
- },
375
- primary: {
376
- readOnly: true,
377
- serializedName: "primary",
378
- type: {
379
- name: "String"
380
- }
381
- },
382
- secondary: {
383
- readOnly: true,
384
- serializedName: "secondary",
385
- type: {
386
- name: "String"
387
- }
388
- }
389
- }
390
- }
391
- };
392
- var ActivateApplicationPackageParameters = {
393
- serializedName: "ActivateApplicationPackageParameters",
394
- type: {
395
- name: "Composite",
396
- className: "ActivateApplicationPackageParameters",
397
- modelProperties: {
398
- format: {
399
- required: true,
400
- serializedName: "format",
401
- type: {
402
- name: "String"
403
- }
404
- }
405
- }
406
- }
407
- };
408
- var ApplicationCreateParameters = {
409
- serializedName: "ApplicationCreateParameters",
410
- type: {
411
- name: "Composite",
412
- className: "ApplicationCreateParameters",
413
- modelProperties: {
414
- allowUpdates: {
415
- serializedName: "allowUpdates",
416
- type: {
417
- name: "Boolean"
418
- }
419
- },
420
- displayName: {
421
- serializedName: "displayName",
422
- type: {
423
- name: "String"
424
- }
425
- }
426
- }
427
- }
428
- };
429
- var ApplicationPackage = {
430
- serializedName: "ApplicationPackage",
431
- type: {
432
- name: "Composite",
433
- className: "ApplicationPackage",
434
- modelProperties: {
435
- id: {
436
- readOnly: true,
437
- serializedName: "id",
438
- type: {
439
- name: "String"
440
- }
441
- },
442
- version: {
443
- readOnly: true,
444
- serializedName: "version",
445
- type: {
446
- name: "String"
447
- }
448
- },
449
- state: {
450
- readOnly: true,
451
- serializedName: "state",
452
- type: {
453
- name: "Enum",
454
- allowedValues: [
455
- "Pending",
456
- "Active",
457
- "Unmapped"
458
- ]
459
- }
460
- },
461
- format: {
462
- readOnly: true,
463
- serializedName: "format",
464
- type: {
465
- name: "String"
466
- }
467
- },
468
- storageUrl: {
469
- readOnly: true,
470
- serializedName: "storageUrl",
471
- type: {
472
- name: "String"
473
- }
474
- },
475
- storageUrlExpiry: {
476
- readOnly: true,
477
- serializedName: "storageUrlExpiry",
478
- type: {
479
- name: "DateTime"
480
- }
481
- },
482
- lastActivationTime: {
483
- readOnly: true,
484
- serializedName: "lastActivationTime",
485
- type: {
486
- name: "DateTime"
487
- }
488
- }
489
- }
490
- }
491
- };
492
- var Application = {
493
- serializedName: "Application",
494
- type: {
495
- name: "Composite",
496
- className: "Application",
497
- modelProperties: {
498
- id: {
499
- serializedName: "id",
500
- type: {
501
- name: "String"
502
- }
503
- },
504
- displayName: {
505
- serializedName: "displayName",
506
- type: {
507
- name: "String"
508
- }
509
- },
510
- packages: {
511
- serializedName: "packages",
512
- type: {
513
- name: "Sequence",
514
- element: {
515
- type: {
516
- name: "Composite",
517
- className: "ApplicationPackage"
518
- }
519
- }
520
- }
521
- },
522
- allowUpdates: {
523
- serializedName: "allowUpdates",
524
- type: {
525
- name: "Boolean"
526
- }
527
- },
528
- defaultVersion: {
529
- serializedName: "defaultVersion",
530
- type: {
531
- name: "String"
532
- }
533
- }
534
- }
535
- }
536
- };
537
- var ApplicationUpdateParameters = {
538
- serializedName: "ApplicationUpdateParameters",
539
- type: {
540
- name: "Composite",
541
- className: "ApplicationUpdateParameters",
542
- modelProperties: {
543
- allowUpdates: {
544
- serializedName: "allowUpdates",
545
- type: {
546
- name: "Boolean"
547
- }
548
- },
549
- defaultVersion: {
550
- serializedName: "defaultVersion",
551
- type: {
552
- name: "String"
553
- }
554
- },
555
- displayName: {
556
- serializedName: "displayName",
557
- type: {
558
- name: "String"
559
- }
560
- }
561
- }
562
- }
563
- };
564
- var BatchLocationQuota = {
565
- serializedName: "BatchLocationQuota",
566
- type: {
567
- name: "Composite",
568
- className: "BatchLocationQuota",
569
- modelProperties: {
570
- accountQuota: {
571
- readOnly: true,
572
- serializedName: "accountQuota",
573
- type: {
574
- name: "Number"
575
- }
576
- }
577
- }
578
- }
579
- };
580
- var ProxyResource = {
581
- serializedName: "ProxyResource",
582
- type: {
583
- name: "Composite",
584
- className: "ProxyResource",
585
- modelProperties: {
586
- id: {
587
- readOnly: true,
588
- serializedName: "id",
589
- type: {
590
- name: "String"
591
- }
592
- },
593
- name: {
594
- readOnly: true,
595
- serializedName: "name",
596
- type: {
597
- name: "String"
598
- }
599
- },
600
- type: {
601
- readOnly: true,
602
- serializedName: "type",
603
- type: {
604
- name: "String"
605
- }
606
- },
607
- etag: {
608
- readOnly: true,
609
- serializedName: "etag",
610
- type: {
611
- name: "String"
612
- }
613
- }
614
- }
615
- }
616
- };
617
- var CertificateBaseProperties = {
618
- serializedName: "CertificateBaseProperties",
619
- type: {
620
- name: "Composite",
621
- className: "CertificateBaseProperties",
622
- modelProperties: {
623
- thumbprintAlgorithm: {
624
- serializedName: "thumbprintAlgorithm",
625
- type: {
626
- name: "String"
627
- }
628
- },
629
- thumbprint: {
630
- serializedName: "thumbprint",
631
- type: {
632
- name: "String"
633
- }
634
- },
635
- format: {
636
- nullable: false,
637
- serializedName: "format",
638
- type: {
639
- name: "Enum",
640
- allowedValues: [
641
- "Pfx",
642
- "Cer"
643
- ]
644
- }
645
- }
646
- }
647
- }
648
- };
649
- var DeleteCertificateError = {
650
- serializedName: "DeleteCertificateError",
651
- type: {
652
- name: "Composite",
653
- className: "DeleteCertificateError",
654
- modelProperties: {
655
- code: {
656
- required: true,
657
- serializedName: "code",
658
- type: {
659
- name: "String"
660
- }
661
- },
662
- message: {
663
- required: true,
664
- serializedName: "message",
665
- type: {
666
- name: "String"
667
- }
668
- },
669
- target: {
670
- serializedName: "target",
671
- type: {
672
- name: "String"
673
- }
674
- },
675
- details: {
676
- serializedName: "details",
677
- type: {
678
- name: "Sequence",
679
- element: {
680
- type: {
681
- name: "Composite",
682
- className: "DeleteCertificateError"
683
- }
684
- }
685
- }
686
- }
687
- }
688
- }
689
- };
690
- var Certificate = {
691
- serializedName: "Certificate",
692
- type: {
693
- name: "Composite",
694
- className: "Certificate",
695
- modelProperties: __assign({}, ProxyResource.type.modelProperties, { thumbprintAlgorithm: {
696
- serializedName: "properties.thumbprintAlgorithm",
697
- type: {
698
- name: "String"
699
- }
700
- }, thumbprint: {
701
- serializedName: "properties.thumbprint",
702
- type: {
703
- name: "String"
704
- }
705
- }, format: {
706
- nullable: false,
707
- serializedName: "properties.format",
708
- type: {
709
- name: "Enum",
710
- allowedValues: [
711
- "Pfx",
712
- "Cer"
713
- ]
714
- }
715
- }, provisioningState: {
716
- nullable: false,
717
- readOnly: true,
718
- serializedName: "properties.provisioningState",
719
- type: {
720
- name: "Enum",
721
- allowedValues: [
722
- "Succeeded",
723
- "Deleting",
724
- "Failed"
725
- ]
726
- }
727
- }, provisioningStateTransitionTime: {
728
- readOnly: true,
729
- serializedName: "properties.provisioningStateTransitionTime",
730
- type: {
731
- name: "DateTime"
732
- }
733
- }, previousProvisioningState: {
734
- nullable: false,
735
- readOnly: true,
736
- serializedName: "properties.previousProvisioningState",
737
- type: {
738
- name: "Enum",
739
- allowedValues: [
740
- "Succeeded",
741
- "Deleting",
742
- "Failed"
743
- ]
744
- }
745
- }, previousProvisioningStateTransitionTime: {
746
- readOnly: true,
747
- serializedName: "properties.previousProvisioningStateTransitionTime",
748
- type: {
749
- name: "DateTime"
750
- }
751
- }, publicData: {
752
- readOnly: true,
753
- serializedName: "properties.publicData",
754
- type: {
755
- name: "String"
756
- }
757
- }, deleteCertificateError: {
758
- readOnly: true,
759
- serializedName: "properties.deleteCertificateError",
760
- type: {
761
- name: "Composite",
762
- className: "DeleteCertificateError"
763
- }
764
- } })
765
- }
766
- };
767
- var CertificateCreateOrUpdateParameters = {
768
- serializedName: "CertificateCreateOrUpdateParameters",
769
- type: {
770
- name: "Composite",
771
- className: "CertificateCreateOrUpdateParameters",
772
- modelProperties: __assign({}, ProxyResource.type.modelProperties, { thumbprintAlgorithm: {
773
- serializedName: "properties.thumbprintAlgorithm",
774
- type: {
775
- name: "String"
776
- }
777
- }, thumbprint: {
778
- serializedName: "properties.thumbprint",
779
- type: {
780
- name: "String"
781
- }
782
- }, format: {
783
- nullable: false,
784
- serializedName: "properties.format",
785
- type: {
786
- name: "Enum",
787
- allowedValues: [
788
- "Pfx",
789
- "Cer"
790
- ]
791
- }
792
- }, data: {
793
- required: true,
794
- serializedName: "properties.data",
795
- type: {
796
- name: "String"
797
- }
798
- }, password: {
799
- serializedName: "properties.password",
800
- type: {
801
- name: "String"
802
- }
803
- } })
804
- }
805
- };
806
- var CloudServiceConfiguration = {
807
- serializedName: "CloudServiceConfiguration",
808
- type: {
809
- name: "Composite",
810
- className: "CloudServiceConfiguration",
811
- modelProperties: {
812
- osFamily: {
813
- required: true,
814
- serializedName: "osFamily",
815
- type: {
816
- name: "String"
817
- }
818
- },
819
- targetOSVersion: {
820
- serializedName: "targetOSVersion",
821
- type: {
822
- name: "String"
823
- }
824
- },
825
- currentOSVersion: {
826
- serializedName: "currentOSVersion",
827
- type: {
828
- name: "String"
829
- }
830
- }
831
- }
832
- }
833
- };
834
- var ImageReference = {
835
- serializedName: "ImageReference",
836
- type: {
837
- name: "Composite",
838
- className: "ImageReference",
839
- modelProperties: {
840
- publisher: {
841
- serializedName: "publisher",
842
- type: {
843
- name: "String"
844
- }
845
- },
846
- offer: {
847
- serializedName: "offer",
848
- type: {
849
- name: "String"
850
- }
851
- },
852
- sku: {
853
- serializedName: "sku",
854
- type: {
855
- name: "String"
856
- }
857
- },
858
- version: {
859
- serializedName: "version",
860
- type: {
861
- name: "String"
862
- }
863
- },
864
- id: {
865
- serializedName: "id",
866
- type: {
867
- name: "String"
868
- }
869
- }
870
- }
871
- }
872
- };
873
- var OSDisk = {
874
- serializedName: "OSDisk",
875
- type: {
876
- name: "Composite",
877
- className: "OSDisk",
878
- modelProperties: {
879
- caching: {
880
- serializedName: "caching",
881
- type: {
882
- name: "Enum",
883
- allowedValues: [
884
- "None",
885
- "ReadOnly",
886
- "ReadWrite"
887
- ]
888
- }
889
- }
890
- }
891
- }
892
- };
893
- var WindowsConfiguration = {
894
- serializedName: "WindowsConfiguration",
895
- type: {
896
- name: "Composite",
897
- className: "WindowsConfiguration",
898
- modelProperties: {
899
- enableAutomaticUpdates: {
900
- serializedName: "enableAutomaticUpdates",
901
- type: {
902
- name: "Boolean"
903
- }
904
- }
905
- }
906
- }
907
- };
908
- var DataDisk = {
909
- serializedName: "DataDisk",
910
- type: {
911
- name: "Composite",
912
- className: "DataDisk",
913
- modelProperties: {
914
- lun: {
915
- required: true,
916
- serializedName: "lun",
917
- type: {
918
- name: "Number"
919
- }
920
- },
921
- caching: {
922
- serializedName: "caching",
923
- type: {
924
- name: "Enum",
925
- allowedValues: [
926
- "None",
927
- "ReadOnly",
928
- "ReadWrite"
929
- ]
930
- }
931
- },
932
- diskSizeGB: {
933
- required: true,
934
- serializedName: "diskSizeGB",
935
- type: {
936
- name: "Number"
937
- }
938
- },
939
- storageAccountType: {
940
- serializedName: "storageAccountType",
941
- type: {
942
- name: "Enum",
943
- allowedValues: [
944
- "Standard_LRS",
945
- "Premium_LRS"
946
- ]
947
- }
948
- }
949
- }
950
- }
951
- };
952
- var VirtualMachineConfiguration = {
953
- serializedName: "VirtualMachineConfiguration",
954
- type: {
955
- name: "Composite",
956
- className: "VirtualMachineConfiguration",
957
- modelProperties: {
958
- imageReference: {
959
- required: true,
960
- serializedName: "imageReference",
961
- type: {
962
- name: "Composite",
963
- className: "ImageReference"
964
- }
965
- },
966
- osDisk: {
967
- serializedName: "osDisk",
968
- type: {
969
- name: "Composite",
970
- className: "OSDisk"
971
- }
972
- },
973
- nodeAgentSkuId: {
974
- required: true,
975
- serializedName: "nodeAgentSkuId",
976
- type: {
977
- name: "String"
978
- }
979
- },
980
- windowsConfiguration: {
981
- serializedName: "windowsConfiguration",
982
- type: {
983
- name: "Composite",
984
- className: "WindowsConfiguration"
985
- }
986
- },
987
- dataDisks: {
988
- serializedName: "dataDisks",
989
- type: {
990
- name: "Sequence",
991
- element: {
992
- type: {
993
- name: "Composite",
994
- className: "DataDisk"
995
- }
996
- }
997
- }
998
- },
999
- licenseType: {
1000
- serializedName: "licenseType",
1001
- type: {
1002
- name: "String"
1003
- }
1004
- }
1005
- }
1006
- }
1007
- };
1008
- var DeploymentConfiguration = {
1009
- serializedName: "DeploymentConfiguration",
1010
- type: {
1011
- name: "Composite",
1012
- className: "DeploymentConfiguration",
1013
- modelProperties: {
1014
- cloudServiceConfiguration: {
1015
- serializedName: "cloudServiceConfiguration",
1016
- type: {
1017
- name: "Composite",
1018
- className: "CloudServiceConfiguration"
1019
- }
1020
- },
1021
- virtualMachineConfiguration: {
1022
- serializedName: "virtualMachineConfiguration",
1023
- type: {
1024
- name: "Composite",
1025
- className: "VirtualMachineConfiguration"
1026
- }
1027
- }
1028
- }
1029
- }
1030
- };
1031
- var FixedScaleSettings = {
1032
- serializedName: "FixedScaleSettings",
1033
- type: {
1034
- name: "Composite",
1035
- className: "FixedScaleSettings",
1036
- modelProperties: {
1037
- resizeTimeout: {
1038
- serializedName: "resizeTimeout",
1039
- type: {
1040
- name: "TimeSpan"
1041
- }
1042
- },
1043
- targetDedicatedNodes: {
1044
- serializedName: "targetDedicatedNodes",
1045
- type: {
1046
- name: "Number"
1047
- }
1048
- },
1049
- targetLowPriorityNodes: {
1050
- serializedName: "targetLowPriorityNodes",
1051
- type: {
1052
- name: "Number"
1053
- }
1054
- },
1055
- nodeDeallocationOption: {
1056
- serializedName: "nodeDeallocationOption",
1057
- type: {
1058
- name: "Enum",
1059
- allowedValues: [
1060
- "Requeue",
1061
- "Terminate",
1062
- "TaskCompletion",
1063
- "RetainedData"
1064
- ]
1065
- }
1066
- }
1067
- }
1068
- }
1069
- };
1070
- var AutoScaleSettings = {
1071
- serializedName: "AutoScaleSettings",
1072
- type: {
1073
- name: "Composite",
1074
- className: "AutoScaleSettings",
1075
- modelProperties: {
1076
- formula: {
1077
- required: true,
1078
- serializedName: "formula",
1079
- type: {
1080
- name: "String"
1081
- }
1082
- },
1083
- evaluationInterval: {
1084
- serializedName: "evaluationInterval",
1085
- type: {
1086
- name: "TimeSpan"
1087
- }
1088
- }
1089
- }
1090
- }
1091
- };
1092
- var ScaleSettings = {
1093
- serializedName: "ScaleSettings",
1094
- type: {
1095
- name: "Composite",
1096
- className: "ScaleSettings",
1097
- modelProperties: {
1098
- fixedScale: {
1099
- serializedName: "fixedScale",
1100
- type: {
1101
- name: "Composite",
1102
- className: "FixedScaleSettings"
1103
- }
1104
- },
1105
- autoScale: {
1106
- serializedName: "autoScale",
1107
- type: {
1108
- name: "Composite",
1109
- className: "AutoScaleSettings"
1110
- }
1111
- }
1112
- }
1113
- }
1114
- };
1115
- var AutoScaleRunError = {
1116
- serializedName: "AutoScaleRunError",
1117
- type: {
1118
- name: "Composite",
1119
- className: "AutoScaleRunError",
1120
- modelProperties: {
1121
- code: {
1122
- required: true,
1123
- serializedName: "code",
1124
- type: {
1125
- name: "String"
1126
- }
1127
- },
1128
- message: {
1129
- required: true,
1130
- serializedName: "message",
1131
- type: {
1132
- name: "String"
1133
- }
1134
- },
1135
- details: {
1136
- serializedName: "details",
1137
- type: {
1138
- name: "Sequence",
1139
- element: {
1140
- type: {
1141
- name: "Composite",
1142
- className: "AutoScaleRunError"
1143
- }
1144
- }
1145
- }
1146
- }
1147
- }
1148
- }
1149
- };
1150
- var AutoScaleRun = {
1151
- serializedName: "AutoScaleRun",
1152
- type: {
1153
- name: "Composite",
1154
- className: "AutoScaleRun",
1155
- modelProperties: {
1156
- evaluationTime: {
1157
- required: true,
1158
- serializedName: "evaluationTime",
1159
- type: {
1160
- name: "DateTime"
1161
- }
1162
- },
1163
- results: {
1164
- serializedName: "results",
1165
- type: {
1166
- name: "String"
1167
- }
1168
- },
1169
- error: {
1170
- serializedName: "error",
1171
- type: {
1172
- name: "Composite",
1173
- className: "AutoScaleRunError"
1174
- }
1175
- }
1176
- }
1177
- }
1178
- };
1179
- var NetworkSecurityGroupRule = {
1180
- serializedName: "NetworkSecurityGroupRule",
1181
- type: {
1182
- name: "Composite",
1183
- className: "NetworkSecurityGroupRule",
1184
- modelProperties: {
1185
- priority: {
1186
- required: true,
1187
- serializedName: "priority",
1188
- type: {
1189
- name: "Number"
1190
- }
1191
- },
1192
- access: {
1193
- required: true,
1194
- serializedName: "access",
1195
- type: {
1196
- name: "Enum",
1197
- allowedValues: [
1198
- "Allow",
1199
- "Deny"
1200
- ]
1201
- }
1202
- },
1203
- sourceAddressPrefix: {
1204
- required: true,
1205
- serializedName: "sourceAddressPrefix",
1206
- type: {
1207
- name: "String"
1208
- }
1209
- }
1210
- }
1211
- }
1212
- };
1213
- var InboundNatPool = {
1214
- serializedName: "InboundNatPool",
1215
- type: {
1216
- name: "Composite",
1217
- className: "InboundNatPool",
1218
- modelProperties: {
1219
- name: {
1220
- required: true,
1221
- serializedName: "name",
1222
- type: {
1223
- name: "String"
1224
- }
1225
- },
1226
- protocol: {
1227
- required: true,
1228
- serializedName: "protocol",
1229
- type: {
1230
- name: "Enum",
1231
- allowedValues: [
1232
- "TCP",
1233
- "UDP"
1234
- ]
1235
- }
1236
- },
1237
- backendPort: {
1238
- required: true,
1239
- serializedName: "backendPort",
1240
- type: {
1241
- name: "Number"
1242
- }
1243
- },
1244
- frontendPortRangeStart: {
1245
- required: true,
1246
- serializedName: "frontendPortRangeStart",
1247
- type: {
1248
- name: "Number"
1249
- }
1250
- },
1251
- frontendPortRangeEnd: {
1252
- required: true,
1253
- serializedName: "frontendPortRangeEnd",
1254
- type: {
1255
- name: "Number"
1256
- }
1257
- },
1258
- networkSecurityGroupRules: {
1259
- serializedName: "networkSecurityGroupRules",
1260
- type: {
1261
- name: "Sequence",
1262
- element: {
1263
- type: {
1264
- name: "Composite",
1265
- className: "NetworkSecurityGroupRule"
1266
- }
1267
- }
1268
- }
1269
- }
1270
- }
1271
- }
1272
- };
1273
- var PoolEndpointConfiguration = {
1274
- serializedName: "PoolEndpointConfiguration",
1275
- type: {
1276
- name: "Composite",
1277
- className: "PoolEndpointConfiguration",
1278
- modelProperties: {
1279
- inboundNatPools: {
1280
- required: true,
1281
- serializedName: "inboundNatPools",
1282
- type: {
1283
- name: "Sequence",
1284
- element: {
1285
- type: {
1286
- name: "Composite",
1287
- className: "InboundNatPool"
1288
- }
1289
- }
1290
- }
1291
- }
1292
- }
1293
- }
1294
- };
1295
- var NetworkConfiguration = {
1296
- serializedName: "NetworkConfiguration",
1297
- type: {
1298
- name: "Composite",
1299
- className: "NetworkConfiguration",
1300
- modelProperties: {
1301
- subnetId: {
1302
- serializedName: "subnetId",
1303
- type: {
1304
- name: "String"
1305
- }
1306
- },
1307
- endpointConfiguration: {
1308
- serializedName: "endpointConfiguration",
1309
- type: {
1310
- name: "Composite",
1311
- className: "PoolEndpointConfiguration"
1312
- }
1313
- }
1314
- }
1315
- }
1316
- };
1317
- var TaskSchedulingPolicy = {
1318
- serializedName: "TaskSchedulingPolicy",
1319
- type: {
1320
- name: "Composite",
1321
- className: "TaskSchedulingPolicy",
1322
- modelProperties: {
1323
- nodeFillType: {
1324
- required: true,
1325
- serializedName: "nodeFillType",
1326
- type: {
1327
- name: "Enum",
1328
- allowedValues: [
1329
- "Spread",
1330
- "Pack"
1331
- ]
1332
- }
1333
- }
1334
- }
1335
- }
1336
- };
1337
- var LinuxUserConfiguration = {
1338
- serializedName: "LinuxUserConfiguration",
1339
- type: {
1340
- name: "Composite",
1341
- className: "LinuxUserConfiguration",
1342
- modelProperties: {
1343
- uid: {
1344
- serializedName: "uid",
1345
- type: {
1346
- name: "Number"
1347
- }
1348
- },
1349
- gid: {
1350
- serializedName: "gid",
1351
- type: {
1352
- name: "Number"
1353
- }
1354
- },
1355
- sshPrivateKey: {
1356
- serializedName: "sshPrivateKey",
1357
- type: {
1358
- name: "String"
1359
- }
1360
- }
1361
- }
1362
- }
1363
- };
1364
- var UserAccount = {
1365
- serializedName: "UserAccount",
1366
- type: {
1367
- name: "Composite",
1368
- className: "UserAccount",
1369
- modelProperties: {
1370
- name: {
1371
- required: true,
1372
- serializedName: "name",
1373
- type: {
1374
- name: "String"
1375
- }
1376
- },
1377
- password: {
1378
- required: true,
1379
- serializedName: "password",
1380
- type: {
1381
- name: "String"
1382
- }
1383
- },
1384
- elevationLevel: {
1385
- serializedName: "elevationLevel",
1386
- type: {
1387
- name: "Enum",
1388
- allowedValues: [
1389
- "NonAdmin",
1390
- "Admin"
1391
- ]
1392
- }
1393
- },
1394
- linuxUserConfiguration: {
1395
- serializedName: "linuxUserConfiguration",
1396
- type: {
1397
- name: "Composite",
1398
- className: "LinuxUserConfiguration"
1399
- }
1400
- }
1401
- }
1402
- }
1403
- };
1404
- var MetadataItem = {
1405
- serializedName: "MetadataItem",
1406
- type: {
1407
- name: "Composite",
1408
- className: "MetadataItem",
1409
- modelProperties: {
1410
- name: {
1411
- required: true,
1412
- serializedName: "name",
1413
- type: {
1414
- name: "String"
1415
- }
1416
- },
1417
- value: {
1418
- required: true,
1419
- serializedName: "value",
1420
- type: {
1421
- name: "String"
1422
- }
1423
- }
1424
- }
1425
- }
1426
- };
1427
- var ResourceFile = {
1428
- serializedName: "ResourceFile",
1429
- type: {
1430
- name: "Composite",
1431
- className: "ResourceFile",
1432
- modelProperties: {
1433
- blobSource: {
1434
- required: true,
1435
- serializedName: "blobSource",
1436
- type: {
1437
- name: "String"
1438
- }
1439
- },
1440
- filePath: {
1441
- required: true,
1442
- serializedName: "filePath",
1443
- type: {
1444
- name: "String"
1445
- }
1446
- },
1447
- fileMode: {
1448
- serializedName: "fileMode",
1449
- type: {
1450
- name: "String"
1451
- }
1452
- }
1453
- }
1454
- }
1455
- };
1456
- var EnvironmentSetting = {
1457
- serializedName: "EnvironmentSetting",
1458
- type: {
1459
- name: "Composite",
1460
- className: "EnvironmentSetting",
1461
- modelProperties: {
1462
- name: {
1463
- required: true,
1464
- serializedName: "name",
1465
- type: {
1466
- name: "String"
1467
- }
1468
- },
1469
- value: {
1470
- serializedName: "value",
1471
- type: {
1472
- name: "String"
1473
- }
1474
- }
1475
- }
1476
- }
1477
- };
1478
- var AutoUserSpecification = {
1479
- serializedName: "AutoUserSpecification",
1480
- type: {
1481
- name: "Composite",
1482
- className: "AutoUserSpecification",
1483
- modelProperties: {
1484
- scope: {
1485
- serializedName: "scope",
1486
- type: {
1487
- name: "Enum",
1488
- allowedValues: [
1489
- "Task",
1490
- "Pool"
1491
- ]
1492
- }
1493
- },
1494
- elevationLevel: {
1495
- serializedName: "elevationLevel",
1496
- type: {
1497
- name: "Enum",
1498
- allowedValues: [
1499
- "NonAdmin",
1500
- "Admin"
1501
- ]
1502
- }
1503
- }
1504
- }
1505
- }
1506
- };
1507
- var UserIdentity = {
1508
- serializedName: "UserIdentity",
1509
- type: {
1510
- name: "Composite",
1511
- className: "UserIdentity",
1512
- modelProperties: {
1513
- userName: {
1514
- serializedName: "userName",
1515
- type: {
1516
- name: "String"
1517
- }
1518
- },
1519
- autoUser: {
1520
- serializedName: "autoUser",
1521
- type: {
1522
- name: "Composite",
1523
- className: "AutoUserSpecification"
1524
- }
1525
- }
1526
- }
1527
- }
1528
- };
1529
- var StartTask = {
1530
- serializedName: "StartTask",
1531
- type: {
1532
- name: "Composite",
1533
- className: "StartTask",
1534
- modelProperties: {
1535
- commandLine: {
1536
- serializedName: "commandLine",
1537
- type: {
1538
- name: "String"
1539
- }
1540
- },
1541
- resourceFiles: {
1542
- serializedName: "resourceFiles",
1543
- type: {
1544
- name: "Sequence",
1545
- element: {
1546
- type: {
1547
- name: "Composite",
1548
- className: "ResourceFile"
1549
- }
1550
- }
1551
- }
1552
- },
1553
- environmentSettings: {
1554
- serializedName: "environmentSettings",
1555
- type: {
1556
- name: "Sequence",
1557
- element: {
1558
- type: {
1559
- name: "Composite",
1560
- className: "EnvironmentSetting"
1561
- }
1562
- }
1563
- }
1564
- },
1565
- userIdentity: {
1566
- serializedName: "userIdentity",
1567
- type: {
1568
- name: "Composite",
1569
- className: "UserIdentity"
1570
- }
1571
- },
1572
- maxTaskRetryCount: {
1573
- serializedName: "maxTaskRetryCount",
1574
- type: {
1575
- name: "Number"
1576
- }
1577
- },
1578
- waitForSuccess: {
1579
- serializedName: "waitForSuccess",
1580
- type: {
1581
- name: "Boolean"
1582
- }
1583
- }
1584
- }
1585
- }
1586
- };
1587
- var CertificateReference = {
1588
- serializedName: "CertificateReference",
1589
- type: {
1590
- name: "Composite",
1591
- className: "CertificateReference",
1592
- modelProperties: {
1593
- id: {
1594
- required: true,
1595
- serializedName: "id",
1596
- type: {
1597
- name: "String"
1598
- }
1599
- },
1600
- storeLocation: {
1601
- serializedName: "storeLocation",
1602
- type: {
1603
- name: "Enum",
1604
- allowedValues: [
1605
- "CurrentUser",
1606
- "LocalMachine"
1607
- ]
1608
- }
1609
- },
1610
- storeName: {
1611
- serializedName: "storeName",
1612
- type: {
1613
- name: "String"
1614
- }
1615
- },
1616
- visibility: {
1617
- serializedName: "visibility",
1618
- type: {
1619
- name: "Sequence",
1620
- element: {
1621
- type: {
1622
- name: "Enum",
1623
- allowedValues: [
1624
- "StartTask",
1625
- "Task",
1626
- "RemoteUser"
1627
- ]
1628
- }
1629
- }
1630
- }
1631
- }
1632
- }
1633
- }
1634
- };
1635
- var ApplicationPackageReference = {
1636
- serializedName: "ApplicationPackageReference",
1637
- type: {
1638
- name: "Composite",
1639
- className: "ApplicationPackageReference",
1640
- modelProperties: {
1641
- id: {
1642
- required: true,
1643
- serializedName: "id",
1644
- type: {
1645
- name: "String"
1646
- }
1647
- },
1648
- version: {
1649
- serializedName: "version",
1650
- type: {
1651
- name: "String"
1652
- }
1653
- }
1654
- }
1655
- }
1656
- };
1657
- var ResizeError = {
1658
- serializedName: "ResizeError",
1659
- type: {
1660
- name: "Composite",
1661
- className: "ResizeError",
1662
- modelProperties: {
1663
- code: {
1664
- required: true,
1665
- serializedName: "code",
1666
- type: {
1667
- name: "String"
1668
- }
1669
- },
1670
- message: {
1671
- required: true,
1672
- serializedName: "message",
1673
- type: {
1674
- name: "String"
1675
- }
1676
- },
1677
- details: {
1678
- serializedName: "details",
1679
- type: {
1680
- name: "Sequence",
1681
- element: {
1682
- type: {
1683
- name: "Composite",
1684
- className: "ResizeError"
1685
- }
1686
- }
1687
- }
1688
- }
1689
- }
1690
- }
1691
- };
1692
- var ResizeOperationStatus = {
1693
- serializedName: "ResizeOperationStatus",
1694
- type: {
1695
- name: "Composite",
1696
- className: "ResizeOperationStatus",
1697
- modelProperties: {
1698
- targetDedicatedNodes: {
1699
- serializedName: "targetDedicatedNodes",
1700
- type: {
1701
- name: "Number"
1702
- }
1703
- },
1704
- targetLowPriorityNodes: {
1705
- serializedName: "targetLowPriorityNodes",
1706
- type: {
1707
- name: "Number"
1708
- }
1709
- },
1710
- resizeTimeout: {
1711
- serializedName: "resizeTimeout",
1712
- type: {
1713
- name: "TimeSpan"
1714
- }
1715
- },
1716
- nodeDeallocationOption: {
1717
- serializedName: "nodeDeallocationOption",
1718
- type: {
1719
- name: "Enum",
1720
- allowedValues: [
1721
- "Requeue",
1722
- "Terminate",
1723
- "TaskCompletion",
1724
- "RetainedData"
1725
- ]
1726
- }
1727
- },
1728
- startTime: {
1729
- serializedName: "startTime",
1730
- type: {
1731
- name: "DateTime"
1732
- }
1733
- },
1734
- errors: {
1735
- serializedName: "errors",
1736
- type: {
1737
- name: "Sequence",
1738
- element: {
1739
- type: {
1740
- name: "Composite",
1741
- className: "ResizeError"
1742
- }
1743
- }
1744
- }
1745
- }
1746
- }
1747
- }
1748
- };
1749
- var Pool = {
1750
- serializedName: "Pool",
1751
- type: {
1752
- name: "Composite",
1753
- className: "Pool",
1754
- modelProperties: __assign({}, ProxyResource.type.modelProperties, { displayName: {
1755
- serializedName: "properties.displayName",
1756
- type: {
1757
- name: "String"
1758
- }
1759
- }, lastModified: {
1760
- readOnly: true,
1761
- serializedName: "properties.lastModified",
1762
- type: {
1763
- name: "DateTime"
1764
- }
1765
- }, creationTime: {
1766
- readOnly: true,
1767
- serializedName: "properties.creationTime",
1768
- type: {
1769
- name: "DateTime"
1770
- }
1771
- }, provisioningState: {
1772
- readOnly: true,
1773
- serializedName: "properties.provisioningState",
1774
- type: {
1775
- name: "Enum",
1776
- allowedValues: [
1777
- "Succeeded",
1778
- "Deleting"
1779
- ]
1780
- }
1781
- }, provisioningStateTransitionTime: {
1782
- readOnly: true,
1783
- serializedName: "properties.provisioningStateTransitionTime",
1784
- type: {
1785
- name: "DateTime"
1786
- }
1787
- }, allocationState: {
1788
- readOnly: true,
1789
- serializedName: "properties.allocationState",
1790
- type: {
1791
- name: "Enum",
1792
- allowedValues: [
1793
- "Steady",
1794
- "Resizing",
1795
- "Stopping"
1796
- ]
1797
- }
1798
- }, allocationStateTransitionTime: {
1799
- readOnly: true,
1800
- serializedName: "properties.allocationStateTransitionTime",
1801
- type: {
1802
- name: "DateTime"
1803
- }
1804
- }, vmSize: {
1805
- serializedName: "properties.vmSize",
1806
- type: {
1807
- name: "String"
1808
- }
1809
- }, deploymentConfiguration: {
1810
- serializedName: "properties.deploymentConfiguration",
1811
- type: {
1812
- name: "Composite",
1813
- className: "DeploymentConfiguration"
1814
- }
1815
- }, currentDedicatedNodes: {
1816
- readOnly: true,
1817
- serializedName: "properties.currentDedicatedNodes",
1818
- type: {
1819
- name: "Number"
1820
- }
1821
- }, currentLowPriorityNodes: {
1822
- readOnly: true,
1823
- serializedName: "properties.currentLowPriorityNodes",
1824
- type: {
1825
- name: "Number"
1826
- }
1827
- }, scaleSettings: {
1828
- serializedName: "properties.scaleSettings",
1829
- type: {
1830
- name: "Composite",
1831
- className: "ScaleSettings"
1832
- }
1833
- }, autoScaleRun: {
1834
- readOnly: true,
1835
- serializedName: "properties.autoScaleRun",
1836
- type: {
1837
- name: "Composite",
1838
- className: "AutoScaleRun"
1839
- }
1840
- }, interNodeCommunication: {
1841
- serializedName: "properties.interNodeCommunication",
1842
- type: {
1843
- name: "Enum",
1844
- allowedValues: [
1845
- "Enabled",
1846
- "Disabled"
1847
- ]
1848
- }
1849
- }, networkConfiguration: {
1850
- serializedName: "properties.networkConfiguration",
1851
- type: {
1852
- name: "Composite",
1853
- className: "NetworkConfiguration"
1854
- }
1855
- }, maxTasksPerNode: {
1856
- serializedName: "properties.maxTasksPerNode",
1857
- type: {
1858
- name: "Number"
1859
- }
1860
- }, taskSchedulingPolicy: {
1861
- serializedName: "properties.taskSchedulingPolicy",
1862
- type: {
1863
- name: "Composite",
1864
- className: "TaskSchedulingPolicy"
1865
- }
1866
- }, userAccounts: {
1867
- serializedName: "properties.userAccounts",
1868
- type: {
1869
- name: "Sequence",
1870
- element: {
1871
- type: {
1872
- name: "Composite",
1873
- className: "UserAccount"
1874
- }
1875
- }
1876
- }
1877
- }, metadata: {
1878
- serializedName: "properties.metadata",
1879
- type: {
1880
- name: "Sequence",
1881
- element: {
1882
- type: {
1883
- name: "Composite",
1884
- className: "MetadataItem"
1885
- }
1886
- }
1887
- }
1888
- }, startTask: {
1889
- serializedName: "properties.startTask",
1890
- type: {
1891
- name: "Composite",
1892
- className: "StartTask"
1893
- }
1894
- }, certificates: {
1895
- serializedName: "properties.certificates",
1896
- type: {
1897
- name: "Sequence",
1898
- element: {
1899
- type: {
1900
- name: "Composite",
1901
- className: "CertificateReference"
1902
- }
1903
- }
1904
- }
1905
- }, applicationPackages: {
1906
- serializedName: "properties.applicationPackages",
1907
- type: {
1908
- name: "Sequence",
1909
- element: {
1910
- type: {
1911
- name: "Composite",
1912
- className: "ApplicationPackageReference"
1913
- }
1914
- }
1915
- }
1916
- }, applicationLicenses: {
1917
- serializedName: "properties.applicationLicenses",
1918
- type: {
1919
- name: "Sequence",
1920
- element: {
1921
- type: {
1922
- name: "String"
1923
- }
1924
- }
1925
- }
1926
- }, resizeOperationStatus: {
1927
- readOnly: true,
1928
- serializedName: "properties.resizeOperationStatus",
1929
- type: {
1930
- name: "Composite",
1931
- className: "ResizeOperationStatus"
1932
- }
1933
- } })
1934
- }
1935
- };
1936
- var OperationDisplay = {
1937
- serializedName: "Operation_display",
1938
- type: {
1939
- name: "Composite",
1940
- className: "OperationDisplay",
1941
- modelProperties: {
1942
- provider: {
1943
- serializedName: "provider",
1944
- type: {
1945
- name: "String"
1946
- }
1947
- },
1948
- operation: {
1949
- serializedName: "operation",
1950
- type: {
1951
- name: "String"
1952
- }
1953
- },
1954
- resource: {
1955
- serializedName: "resource",
1956
- type: {
1957
- name: "String"
1958
- }
1959
- },
1960
- description: {
1961
- serializedName: "description",
1962
- type: {
1963
- name: "String"
1964
- }
1965
- }
1966
- }
1967
- }
1968
- };
1969
- var Operation = {
1970
- serializedName: "Operation",
1971
- type: {
1972
- name: "Composite",
1973
- className: "Operation",
1974
- modelProperties: {
1975
- name: {
1976
- serializedName: "name",
1977
- type: {
1978
- name: "String"
1979
- }
1980
- },
1981
- display: {
1982
- serializedName: "display",
1983
- type: {
1984
- name: "Composite",
1985
- className: "OperationDisplay"
1986
- }
1987
- },
1988
- origin: {
1989
- serializedName: "origin",
1990
- type: {
1991
- name: "String"
1992
- }
1993
- },
1994
- properties: {
1995
- serializedName: "properties",
1996
- type: {
1997
- name: "Object"
1998
- }
1999
- }
2000
- }
2001
- }
2002
- };
2003
- var CheckNameAvailabilityParameters = {
2004
- serializedName: "CheckNameAvailabilityParameters",
2005
- type: {
2006
- name: "Composite",
2007
- className: "CheckNameAvailabilityParameters",
2008
- modelProperties: {
2009
- name: {
2010
- required: true,
2011
- serializedName: "name",
2012
- type: {
2013
- name: "String"
2014
- }
2015
- },
2016
- type: {
2017
- required: true,
2018
- isConstant: true,
2019
- serializedName: "type",
2020
- defaultValue: 'Microsoft.Batch/batchAccounts',
2021
- type: {
2022
- name: "String"
2023
- }
2024
- }
2025
- }
2026
- }
2027
- };
2028
- var CheckNameAvailabilityResult = {
2029
- serializedName: "CheckNameAvailabilityResult",
2030
- type: {
2031
- name: "Composite",
2032
- className: "CheckNameAvailabilityResult",
2033
- modelProperties: {
2034
- nameAvailable: {
2035
- readOnly: true,
2036
- serializedName: "nameAvailable",
2037
- type: {
2038
- name: "Boolean"
2039
- }
2040
- },
2041
- reason: {
2042
- readOnly: true,
2043
- serializedName: "reason",
2044
- type: {
2045
- name: "Enum",
2046
- allowedValues: [
2047
- "Invalid",
2048
- "AlreadyExists"
2049
- ]
2050
- }
2051
- },
2052
- message: {
2053
- readOnly: true,
2054
- serializedName: "message",
2055
- type: {
2056
- name: "String"
2057
- }
2058
- }
2059
- }
2060
- }
2061
- };
2062
- var BatchAccountCreateHeaders = {
2063
- serializedName: "batchaccount-create-headers",
2064
- type: {
2065
- name: "Composite",
2066
- className: "BatchAccountCreateHeaders",
2067
- modelProperties: {
2068
- locationHeader: {
2069
- serializedName: "location",
2070
- type: {
2071
- name: "String"
2072
- }
2073
- },
2074
- retryAfter: {
2075
- serializedName: "retry-after",
2076
- type: {
2077
- name: "Number"
2078
- }
2079
- }
2080
- }
2081
- }
2082
- };
2083
- var BatchAccountDeleteHeaders = {
2084
- serializedName: "batchaccount-delete-headers",
2085
- type: {
2086
- name: "Composite",
2087
- className: "BatchAccountDeleteHeaders",
2088
- modelProperties: {
2089
- location: {
2090
- serializedName: "location",
2091
- type: {
2092
- name: "String"
2093
- }
2094
- },
2095
- retryAfter: {
2096
- serializedName: "retry-after",
2097
- type: {
2098
- name: "Number"
2099
- }
2100
- }
2101
- }
2102
- }
2103
- };
2104
- var CertificateCreateHeaders = {
2105
- serializedName: "certificate-create-headers",
2106
- type: {
2107
- name: "Composite",
2108
- className: "CertificateCreateHeaders",
2109
- modelProperties: {
2110
- eTag: {
2111
- serializedName: "etag",
2112
- type: {
2113
- name: "String"
2114
- }
2115
- }
2116
- }
2117
- }
2118
- };
2119
- var CertificateUpdateHeaders = {
2120
- serializedName: "certificate-update-headers",
2121
- type: {
2122
- name: "Composite",
2123
- className: "CertificateUpdateHeaders",
2124
- modelProperties: {
2125
- eTag: {
2126
- serializedName: "etag",
2127
- type: {
2128
- name: "String"
2129
- }
2130
- }
2131
- }
2132
- }
2133
- };
2134
- var CertificateDeleteHeaders = {
2135
- serializedName: "certificate-delete-headers",
2136
- type: {
2137
- name: "Composite",
2138
- className: "CertificateDeleteHeaders",
2139
- modelProperties: {
2140
- location: {
2141
- serializedName: "location",
2142
- type: {
2143
- name: "String"
2144
- }
2145
- },
2146
- retryAfter: {
2147
- serializedName: "retry-after",
2148
- type: {
2149
- name: "Number"
2150
- }
2151
- }
2152
- }
2153
- }
2154
- };
2155
- var CertificateGetHeaders = {
2156
- serializedName: "certificate-get-headers",
2157
- type: {
2158
- name: "Composite",
2159
- className: "CertificateGetHeaders",
2160
- modelProperties: {
2161
- eTag: {
2162
- serializedName: "etag",
2163
- type: {
2164
- name: "String"
2165
- }
2166
- }
2167
- }
2168
- }
2169
- };
2170
- var CertificateCancelDeletionHeaders = {
2171
- serializedName: "certificate-canceldeletion-headers",
2172
- type: {
2173
- name: "Composite",
2174
- className: "CertificateCancelDeletionHeaders",
2175
- modelProperties: {
2176
- eTag: {
2177
- serializedName: "etag",
2178
- type: {
2179
- name: "String"
2180
- }
2181
- }
2182
- }
2183
- }
2184
- };
2185
- var PoolCreateHeaders = {
2186
- serializedName: "pool-create-headers",
2187
- type: {
2188
- name: "Composite",
2189
- className: "PoolCreateHeaders",
2190
- modelProperties: {
2191
- eTag: {
2192
- serializedName: "etag",
2193
- type: {
2194
- name: "String"
2195
- }
2196
- }
2197
- }
2198
- }
2199
- };
2200
- var PoolUpdateHeaders = {
2201
- serializedName: "pool-update-headers",
2202
- type: {
2203
- name: "Composite",
2204
- className: "PoolUpdateHeaders",
2205
- modelProperties: {
2206
- eTag: {
2207
- serializedName: "etag",
2208
- type: {
2209
- name: "String"
2210
- }
2211
- }
2212
- }
2213
- }
2214
- };
2215
- var PoolDeleteHeaders = {
2216
- serializedName: "pool-delete-headers",
2217
- type: {
2218
- name: "Composite",
2219
- className: "PoolDeleteHeaders",
2220
- modelProperties: {
2221
- location: {
2222
- serializedName: "location",
2223
- type: {
2224
- name: "String"
2225
- }
2226
- },
2227
- retryAfter: {
2228
- serializedName: "retry-after",
2229
- type: {
2230
- name: "Number"
2231
- }
2232
- }
2233
- }
2234
- }
2235
- };
2236
- var PoolGetHeaders = {
2237
- serializedName: "pool-get-headers",
2238
- type: {
2239
- name: "Composite",
2240
- className: "PoolGetHeaders",
2241
- modelProperties: {
2242
- eTag: {
2243
- serializedName: "etag",
2244
- type: {
2245
- name: "String"
2246
- }
2247
- }
2248
- }
2249
- }
2250
- };
2251
- var PoolDisableAutoScaleHeaders = {
2252
- serializedName: "pool-disableautoscale-headers",
2253
- type: {
2254
- name: "Composite",
2255
- className: "PoolDisableAutoScaleHeaders",
2256
- modelProperties: {
2257
- eTag: {
2258
- serializedName: "etag",
2259
- type: {
2260
- name: "String"
2261
- }
2262
- }
2263
- }
2264
- }
2265
- };
2266
- var PoolStopResizeHeaders = {
2267
- serializedName: "pool-stopresize-headers",
2268
- type: {
2269
- name: "Composite",
2270
- className: "PoolStopResizeHeaders",
2271
- modelProperties: {
2272
- eTag: {
2273
- serializedName: "etag",
2274
- type: {
2275
- name: "String"
2276
- }
2277
- }
2278
- }
2279
- }
2280
- };
2281
- var BatchAccountListResult = {
2282
- serializedName: "BatchAccountListResult",
2283
- type: {
2284
- name: "Composite",
2285
- className: "BatchAccountListResult",
2286
- modelProperties: {
2287
- value: {
2288
- serializedName: "",
2289
- type: {
2290
- name: "Sequence",
2291
- element: {
2292
- type: {
2293
- name: "Composite",
2294
- className: "BatchAccount"
2295
- }
2296
- }
2297
- }
2298
- },
2299
- nextLink: {
2300
- serializedName: "nextLink",
2301
- type: {
2302
- name: "String"
2303
- }
2304
- }
2305
- }
2306
- }
2307
- };
2308
- var ListApplicationsResult = {
2309
- serializedName: "ListApplicationsResult",
2310
- type: {
2311
- name: "Composite",
2312
- className: "ListApplicationsResult",
2313
- modelProperties: {
2314
- value: {
2315
- serializedName: "",
2316
- type: {
2317
- name: "Sequence",
2318
- element: {
2319
- type: {
2320
- name: "Composite",
2321
- className: "Application"
2322
- }
2323
- }
2324
- }
2325
- },
2326
- nextLink: {
2327
- serializedName: "nextLink",
2328
- type: {
2329
- name: "String"
2330
- }
2331
- }
2332
- }
2333
- }
2334
- };
2335
- var OperationListResult = {
2336
- serializedName: "OperationListResult",
2337
- type: {
2338
- name: "Composite",
2339
- className: "OperationListResult",
2340
- modelProperties: {
2341
- value: {
2342
- serializedName: "",
2343
- type: {
2344
- name: "Sequence",
2345
- element: {
2346
- type: {
2347
- name: "Composite",
2348
- className: "Operation"
2349
- }
2350
- }
2351
- }
2352
- },
2353
- nextLink: {
2354
- serializedName: "nextLink",
2355
- type: {
2356
- name: "String"
2357
- }
2358
- }
2359
- }
2360
- }
2361
- };
2362
- var ListCertificatesResult = {
2363
- serializedName: "ListCertificatesResult",
2364
- type: {
2365
- name: "Composite",
2366
- className: "ListCertificatesResult",
2367
- modelProperties: {
2368
- value: {
2369
- serializedName: "",
2370
- type: {
2371
- name: "Sequence",
2372
- element: {
2373
- type: {
2374
- name: "Composite",
2375
- className: "Certificate"
2376
- }
2377
- }
2378
- }
2379
- },
2380
- nextLink: {
2381
- serializedName: "nextLink",
2382
- type: {
2383
- name: "String"
2384
- }
2385
- }
2386
- }
2387
- }
2388
- };
2389
- var ListPoolsResult = {
2390
- serializedName: "ListPoolsResult",
2391
- type: {
2392
- name: "Composite",
2393
- className: "ListPoolsResult",
2394
- modelProperties: {
2395
- value: {
2396
- serializedName: "",
2397
- type: {
2398
- name: "Sequence",
2399
- element: {
2400
- type: {
2401
- name: "Composite",
2402
- className: "Pool"
2403
- }
2404
- }
2405
- }
2406
- },
2407
- nextLink: {
2408
- serializedName: "nextLink",
2409
- type: {
2410
- name: "String"
2411
- }
2412
- }
2413
- }
2414
- }
2415
- };
2416
-
2417
- var mappers = /*#__PURE__*/Object.freeze({
2418
- CloudError: CloudError,
2419
- BaseResource: BaseResource,
2420
- AutoStorageBaseProperties: AutoStorageBaseProperties,
2421
- KeyVaultReference: KeyVaultReference,
2422
- BatchAccountCreateParameters: BatchAccountCreateParameters,
2423
- AutoStorageProperties: AutoStorageProperties,
2424
- Resource: Resource,
2425
- BatchAccount: BatchAccount,
2426
- BatchAccountUpdateParameters: BatchAccountUpdateParameters,
2427
- BatchAccountRegenerateKeyParameters: BatchAccountRegenerateKeyParameters,
2428
- BatchAccountKeys: BatchAccountKeys,
2429
- ActivateApplicationPackageParameters: ActivateApplicationPackageParameters,
2430
- ApplicationCreateParameters: ApplicationCreateParameters,
2431
- ApplicationPackage: ApplicationPackage,
2432
- Application: Application,
2433
- ApplicationUpdateParameters: ApplicationUpdateParameters,
2434
- BatchLocationQuota: BatchLocationQuota,
2435
- ProxyResource: ProxyResource,
2436
- CertificateBaseProperties: CertificateBaseProperties,
2437
- DeleteCertificateError: DeleteCertificateError,
2438
- Certificate: Certificate,
2439
- CertificateCreateOrUpdateParameters: CertificateCreateOrUpdateParameters,
2440
- CloudServiceConfiguration: CloudServiceConfiguration,
2441
- ImageReference: ImageReference,
2442
- OSDisk: OSDisk,
2443
- WindowsConfiguration: WindowsConfiguration,
2444
- DataDisk: DataDisk,
2445
- VirtualMachineConfiguration: VirtualMachineConfiguration,
2446
- DeploymentConfiguration: DeploymentConfiguration,
2447
- FixedScaleSettings: FixedScaleSettings,
2448
- AutoScaleSettings: AutoScaleSettings,
2449
- ScaleSettings: ScaleSettings,
2450
- AutoScaleRunError: AutoScaleRunError,
2451
- AutoScaleRun: AutoScaleRun,
2452
- NetworkSecurityGroupRule: NetworkSecurityGroupRule,
2453
- InboundNatPool: InboundNatPool,
2454
- PoolEndpointConfiguration: PoolEndpointConfiguration,
2455
- NetworkConfiguration: NetworkConfiguration,
2456
- TaskSchedulingPolicy: TaskSchedulingPolicy,
2457
- LinuxUserConfiguration: LinuxUserConfiguration,
2458
- UserAccount: UserAccount,
2459
- MetadataItem: MetadataItem,
2460
- ResourceFile: ResourceFile,
2461
- EnvironmentSetting: EnvironmentSetting,
2462
- AutoUserSpecification: AutoUserSpecification,
2463
- UserIdentity: UserIdentity,
2464
- StartTask: StartTask,
2465
- CertificateReference: CertificateReference,
2466
- ApplicationPackageReference: ApplicationPackageReference,
2467
- ResizeError: ResizeError,
2468
- ResizeOperationStatus: ResizeOperationStatus,
2469
- Pool: Pool,
2470
- OperationDisplay: OperationDisplay,
2471
- Operation: Operation,
2472
- CheckNameAvailabilityParameters: CheckNameAvailabilityParameters,
2473
- CheckNameAvailabilityResult: CheckNameAvailabilityResult,
2474
- BatchAccountCreateHeaders: BatchAccountCreateHeaders,
2475
- BatchAccountDeleteHeaders: BatchAccountDeleteHeaders,
2476
- CertificateCreateHeaders: CertificateCreateHeaders,
2477
- CertificateUpdateHeaders: CertificateUpdateHeaders,
2478
- CertificateDeleteHeaders: CertificateDeleteHeaders,
2479
- CertificateGetHeaders: CertificateGetHeaders,
2480
- CertificateCancelDeletionHeaders: CertificateCancelDeletionHeaders,
2481
- PoolCreateHeaders: PoolCreateHeaders,
2482
- PoolUpdateHeaders: PoolUpdateHeaders,
2483
- PoolDeleteHeaders: PoolDeleteHeaders,
2484
- PoolGetHeaders: PoolGetHeaders,
2485
- PoolDisableAutoScaleHeaders: PoolDisableAutoScaleHeaders,
2486
- PoolStopResizeHeaders: PoolStopResizeHeaders,
2487
- BatchAccountListResult: BatchAccountListResult,
2488
- ListApplicationsResult: ListApplicationsResult,
2489
- OperationListResult: OperationListResult,
2490
- ListCertificatesResult: ListCertificatesResult,
2491
- ListPoolsResult: ListPoolsResult
2492
- });
2493
-
2494
- /*
2495
- * Copyright (c) Microsoft Corporation. All rights reserved.
2496
- * Licensed under the MIT License. See License.txt in the project root for
2497
- * license information.
2498
- *
2499
- * Code generated by Microsoft (R) AutoRest Code Generator.
2500
- * Changes may cause incorrect behavior and will be lost if the code is
2501
- * regenerated.
2502
- */
2503
-
2504
- var Mappers = /*#__PURE__*/Object.freeze({
2505
- BatchAccountCreateParameters: BatchAccountCreateParameters,
2506
- AutoStorageBaseProperties: AutoStorageBaseProperties,
2507
- KeyVaultReference: KeyVaultReference,
2508
- BatchAccount: BatchAccount,
2509
- Resource: Resource,
2510
- BaseResource: BaseResource,
2511
- AutoStorageProperties: AutoStorageProperties,
2512
- BatchAccountCreateHeaders: BatchAccountCreateHeaders,
2513
- CloudError: CloudError,
2514
- BatchAccountUpdateParameters: BatchAccountUpdateParameters,
2515
- BatchAccountDeleteHeaders: BatchAccountDeleteHeaders,
2516
- BatchAccountListResult: BatchAccountListResult,
2517
- BatchAccountRegenerateKeyParameters: BatchAccountRegenerateKeyParameters,
2518
- BatchAccountKeys: BatchAccountKeys,
2519
- ProxyResource: ProxyResource,
2520
- Certificate: Certificate,
2521
- DeleteCertificateError: DeleteCertificateError,
2522
- CertificateCreateOrUpdateParameters: CertificateCreateOrUpdateParameters,
2523
- Pool: Pool,
2524
- DeploymentConfiguration: DeploymentConfiguration,
2525
- CloudServiceConfiguration: CloudServiceConfiguration,
2526
- VirtualMachineConfiguration: VirtualMachineConfiguration,
2527
- ImageReference: ImageReference,
2528
- OSDisk: OSDisk,
2529
- WindowsConfiguration: WindowsConfiguration,
2530
- DataDisk: DataDisk,
2531
- ScaleSettings: ScaleSettings,
2532
- FixedScaleSettings: FixedScaleSettings,
2533
- AutoScaleSettings: AutoScaleSettings,
2534
- AutoScaleRun: AutoScaleRun,
2535
- AutoScaleRunError: AutoScaleRunError,
2536
- NetworkConfiguration: NetworkConfiguration,
2537
- PoolEndpointConfiguration: PoolEndpointConfiguration,
2538
- InboundNatPool: InboundNatPool,
2539
- NetworkSecurityGroupRule: NetworkSecurityGroupRule,
2540
- TaskSchedulingPolicy: TaskSchedulingPolicy,
2541
- UserAccount: UserAccount,
2542
- LinuxUserConfiguration: LinuxUserConfiguration,
2543
- MetadataItem: MetadataItem,
2544
- StartTask: StartTask,
2545
- ResourceFile: ResourceFile,
2546
- EnvironmentSetting: EnvironmentSetting,
2547
- UserIdentity: UserIdentity,
2548
- AutoUserSpecification: AutoUserSpecification,
2549
- CertificateReference: CertificateReference,
2550
- ApplicationPackageReference: ApplicationPackageReference,
2551
- ResizeOperationStatus: ResizeOperationStatus,
2552
- ResizeError: ResizeError
2553
- });
2554
-
2555
- /*
2556
- * Copyright (c) Microsoft Corporation. All rights reserved.
2557
- * Licensed under the MIT License. See License.txt in the project root for
2558
- * license information.
2559
- *
2560
- * Code generated by Microsoft (R) AutoRest Code Generator.
2561
- * Changes may cause incorrect behavior and will be lost if the code is
2562
- * regenerated.
2563
- */
2564
- var acceptLanguage = {
2565
- parameterPath: "acceptLanguage",
2566
- mapper: {
2567
- serializedName: "accept-language",
2568
- defaultValue: 'en-US',
2569
- type: {
2570
- name: "String"
2571
- }
2572
- }
2573
- };
2574
- var accountName = {
2575
- parameterPath: "accountName",
2576
- mapper: {
2577
- required: true,
2578
- serializedName: "accountName",
2579
- constraints: {
2580
- MaxLength: 24,
2581
- MinLength: 3,
2582
- Pattern: /^[-\w\._]+$/
2583
- },
2584
- type: {
2585
- name: "String"
2586
- }
2587
- }
2588
- };
2589
- var apiVersion = {
2590
- parameterPath: "apiVersion",
2591
- mapper: {
2592
- required: true,
2593
- serializedName: "api-version",
2594
- type: {
2595
- name: "String"
2596
- }
2597
- }
2598
- };
2599
- var applicationId = {
2600
- parameterPath: "applicationId",
2601
- mapper: {
2602
- required: true,
2603
- serializedName: "applicationId",
2604
- type: {
2605
- name: "String"
2606
- }
2607
- }
2608
- };
2609
- var certificateName = {
2610
- parameterPath: "certificateName",
2611
- mapper: {
2612
- required: true,
2613
- serializedName: "certificateName",
2614
- constraints: {
2615
- MaxLength: 45,
2616
- MinLength: 5,
2617
- Pattern: /^[\w]+-[\w]+$/
2618
- },
2619
- type: {
2620
- name: "String"
2621
- }
2622
- }
2623
- };
2624
- var filter = {
2625
- parameterPath: [
2626
- "options",
2627
- "filter"
2628
- ],
2629
- mapper: {
2630
- serializedName: "$filter",
2631
- type: {
2632
- name: "String"
2633
- }
2634
- }
2635
- };
2636
- var ifMatch = {
2637
- parameterPath: [
2638
- "options",
2639
- "ifMatch"
2640
- ],
2641
- mapper: {
2642
- serializedName: "If-Match",
2643
- type: {
2644
- name: "String"
2645
- }
2646
- }
2647
- };
2648
- var ifNoneMatch = {
2649
- parameterPath: [
2650
- "options",
2651
- "ifNoneMatch"
2652
- ],
2653
- mapper: {
2654
- serializedName: "If-None-Match",
2655
- type: {
2656
- name: "String"
2657
- }
2658
- }
2659
- };
2660
- var locationName = {
2661
- parameterPath: "locationName",
2662
- mapper: {
2663
- required: true,
2664
- serializedName: "locationName",
2665
- type: {
2666
- name: "String"
2667
- }
2668
- }
2669
- };
2670
- var maxresults = {
2671
- parameterPath: [
2672
- "options",
2673
- "maxresults"
2674
- ],
2675
- mapper: {
2676
- serializedName: "maxresults",
2677
- type: {
2678
- name: "Number"
2679
- }
2680
- }
2681
- };
2682
- var nextPageLink = {
2683
- parameterPath: "nextPageLink",
2684
- mapper: {
2685
- required: true,
2686
- serializedName: "nextLink",
2687
- type: {
2688
- name: "String"
2689
- }
2690
- },
2691
- skipEncoding: true
2692
- };
2693
- var poolName = {
2694
- parameterPath: "poolName",
2695
- mapper: {
2696
- required: true,
2697
- serializedName: "poolName",
2698
- constraints: {
2699
- MaxLength: 64,
2700
- MinLength: 1,
2701
- Pattern: /^[a-zA-Z0-9_-]+$/
2702
- },
2703
- type: {
2704
- name: "String"
2705
- }
2706
- }
2707
- };
2708
- var resourceGroupName = {
2709
- parameterPath: "resourceGroupName",
2710
- mapper: {
2711
- required: true,
2712
- serializedName: "resourceGroupName",
2713
- type: {
2714
- name: "String"
2715
- }
2716
- }
2717
- };
2718
- var select = {
2719
- parameterPath: [
2720
- "options",
2721
- "select"
2722
- ],
2723
- mapper: {
2724
- serializedName: "$select",
2725
- type: {
2726
- name: "String"
2727
- }
2728
- }
2729
- };
2730
- var subscriptionId = {
2731
- parameterPath: "subscriptionId",
2732
- mapper: {
2733
- required: true,
2734
- serializedName: "subscriptionId",
2735
- type: {
2736
- name: "String"
2737
- }
2738
- }
2739
- };
2740
- var version = {
2741
- parameterPath: "version",
2742
- mapper: {
2743
- required: true,
2744
- serializedName: "version",
2745
- type: {
2746
- name: "String"
2747
- }
2748
- }
2749
- };
2750
-
2751
- /*
2752
- * Copyright (c) Microsoft Corporation. All rights reserved.
2753
- * Licensed under the MIT License. See License.txt in the project root for
2754
- * license information.
2755
- *
2756
- * Code generated by Microsoft (R) AutoRest Code Generator.
2757
- * Changes may cause incorrect behavior and will be lost if the code is
2758
- * regenerated.
2759
- */
2760
- /** Class representing a BatchAccountOperations. */
2761
- var BatchAccountOperations = /** @class */ (function () {
2762
- /**
2763
- * Create a BatchAccountOperations.
2764
- * @param {BatchManagementClientContext} client Reference to the service client.
2765
- */
2766
- function BatchAccountOperations(client) {
2767
- this.client = client;
2768
- }
2769
- /**
2770
- * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated
2771
- * with this API and should instead be updated with the Update Batch Account API.
2772
- * @param resourceGroupName The name of the resource group that contains the Batch account.
2773
- * @param accountName A name for the Batch account which must be unique within the region. Batch
2774
- * account names must be between 3 and 24 characters in length and must use only numbers and
2775
- * lowercase letters. This name is used as part of the DNS name that is used to access the Batch
2776
- * service in the region in which the account is created. For example:
2777
- * http://accountname.region.batch.azure.com/.
2778
- * @param parameters Additional parameters for account creation.
2779
- * @param [options] The optional parameters
2780
- * @returns Promise<Models.BatchAccountCreateResponse>
2781
- */
2782
- BatchAccountOperations.prototype.create = function (resourceGroupName$$1, accountName$$1, parameters, options) {
2783
- return this.beginCreate(resourceGroupName$$1, accountName$$1, parameters, options)
2784
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2785
- };
2786
- BatchAccountOperations.prototype.update = function (resourceGroupName$$1, accountName$$1, parameters, options, callback) {
2787
- return this.client.sendOperationRequest({
2788
- resourceGroupName: resourceGroupName$$1,
2789
- accountName: accountName$$1,
2790
- parameters: parameters,
2791
- options: options
2792
- }, updateOperationSpec, callback);
2793
- };
2794
- /**
2795
- * Deletes the specified Batch account.
2796
- * @param resourceGroupName The name of the resource group that contains the Batch account.
2797
- * @param accountName The name of the Batch account.
2798
- * @param [options] The optional parameters
2799
- * @returns Promise<Models.BatchAccountDeleteResponse>
2800
- */
2801
- BatchAccountOperations.prototype.deleteMethod = function (resourceGroupName$$1, accountName$$1, options) {
2802
- return this.beginDeleteMethod(resourceGroupName$$1, accountName$$1, options)
2803
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2804
- };
2805
- BatchAccountOperations.prototype.get = function (resourceGroupName$$1, accountName$$1, options, callback) {
2806
- return this.client.sendOperationRequest({
2807
- resourceGroupName: resourceGroupName$$1,
2808
- accountName: accountName$$1,
2809
- options: options
2810
- }, getOperationSpec, callback);
2811
- };
2812
- BatchAccountOperations.prototype.list = function (options, callback) {
2813
- return this.client.sendOperationRequest({
2814
- options: options
2815
- }, listOperationSpec, callback);
2816
- };
2817
- BatchAccountOperations.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
2818
- return this.client.sendOperationRequest({
2819
- resourceGroupName: resourceGroupName$$1,
2820
- options: options
2821
- }, listByResourceGroupOperationSpec, callback);
2822
- };
2823
- BatchAccountOperations.prototype.synchronizeAutoStorageKeys = function (resourceGroupName$$1, accountName$$1, options, callback) {
2824
- return this.client.sendOperationRequest({
2825
- resourceGroupName: resourceGroupName$$1,
2826
- accountName: accountName$$1,
2827
- options: options
2828
- }, synchronizeAutoStorageKeysOperationSpec, callback);
2829
- };
2830
- BatchAccountOperations.prototype.regenerateKey = function (resourceGroupName$$1, accountName$$1, keyName, options, callback) {
2831
- return this.client.sendOperationRequest({
2832
- resourceGroupName: resourceGroupName$$1,
2833
- accountName: accountName$$1,
2834
- keyName: keyName,
2835
- options: options
2836
- }, regenerateKeyOperationSpec, callback);
2837
- };
2838
- BatchAccountOperations.prototype.getKeys = function (resourceGroupName$$1, accountName$$1, options, callback) {
2839
- return this.client.sendOperationRequest({
2840
- resourceGroupName: resourceGroupName$$1,
2841
- accountName: accountName$$1,
2842
- options: options
2843
- }, getKeysOperationSpec, callback);
2844
- };
2845
- /**
2846
- * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated
2847
- * with this API and should instead be updated with the Update Batch Account API.
2848
- * @param resourceGroupName The name of the resource group that contains the Batch account.
2849
- * @param accountName A name for the Batch account which must be unique within the region. Batch
2850
- * account names must be between 3 and 24 characters in length and must use only numbers and
2851
- * lowercase letters. This name is used as part of the DNS name that is used to access the Batch
2852
- * service in the region in which the account is created. For example:
2853
- * http://accountname.region.batch.azure.com/.
2854
- * @param parameters Additional parameters for account creation.
2855
- * @param [options] The optional parameters
2856
- * @returns Promise<msRestAzure.LROPoller>
2857
- */
2858
- BatchAccountOperations.prototype.beginCreate = function (resourceGroupName$$1, accountName$$1, parameters, options) {
2859
- return this.client.sendLRORequest({
2860
- resourceGroupName: resourceGroupName$$1,
2861
- accountName: accountName$$1,
2862
- parameters: parameters,
2863
- options: options
2864
- }, beginCreateOperationSpec, options);
2865
- };
2866
- /**
2867
- * Deletes the specified Batch account.
2868
- * @param resourceGroupName The name of the resource group that contains the Batch account.
2869
- * @param accountName The name of the Batch account.
2870
- * @param [options] The optional parameters
2871
- * @returns Promise<msRestAzure.LROPoller>
2872
- */
2873
- BatchAccountOperations.prototype.beginDeleteMethod = function (resourceGroupName$$1, accountName$$1, options) {
2874
- return this.client.sendLRORequest({
2875
- resourceGroupName: resourceGroupName$$1,
2876
- accountName: accountName$$1,
2877
- options: options
2878
- }, beginDeleteMethodOperationSpec, options);
2879
- };
2880
- BatchAccountOperations.prototype.listNext = function (nextPageLink$$1, options, callback) {
2881
- return this.client.sendOperationRequest({
2882
- nextPageLink: nextPageLink$$1,
2883
- options: options
2884
- }, listNextOperationSpec, callback);
2885
- };
2886
- BatchAccountOperations.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
2887
- return this.client.sendOperationRequest({
2888
- nextPageLink: nextPageLink$$1,
2889
- options: options
2890
- }, listByResourceGroupNextOperationSpec, callback);
2891
- };
2892
- return BatchAccountOperations;
2893
- }());
2894
- // Operation Specifications
2895
- var serializer = new msRest.Serializer(Mappers);
2896
- var updateOperationSpec = {
2897
- httpMethod: "PATCH",
2898
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
2899
- urlParameters: [
2900
- resourceGroupName,
2901
- accountName,
2902
- subscriptionId
2903
- ],
2904
- queryParameters: [
2905
- apiVersion
2906
- ],
2907
- headerParameters: [
2908
- acceptLanguage
2909
- ],
2910
- requestBody: {
2911
- parameterPath: "parameters",
2912
- mapper: __assign({}, BatchAccountUpdateParameters, { required: true })
2913
- },
2914
- responses: {
2915
- 200: {
2916
- bodyMapper: BatchAccount
2917
- },
2918
- default: {
2919
- bodyMapper: CloudError
2920
- }
2921
- },
2922
- serializer: serializer
2923
- };
2924
- var getOperationSpec = {
2925
- httpMethod: "GET",
2926
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
2927
- urlParameters: [
2928
- resourceGroupName,
2929
- accountName,
2930
- subscriptionId
2931
- ],
2932
- queryParameters: [
2933
- apiVersion
2934
- ],
2935
- headerParameters: [
2936
- acceptLanguage
2937
- ],
2938
- responses: {
2939
- 200: {
2940
- bodyMapper: BatchAccount
2941
- },
2942
- default: {
2943
- bodyMapper: CloudError
2944
- }
2945
- },
2946
- serializer: serializer
2947
- };
2948
- var listOperationSpec = {
2949
- httpMethod: "GET",
2950
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
2951
- urlParameters: [
2952
- subscriptionId
2953
- ],
2954
- queryParameters: [
2955
- apiVersion
2956
- ],
2957
- headerParameters: [
2958
- acceptLanguage
2959
- ],
2960
- responses: {
2961
- 200: {
2962
- bodyMapper: BatchAccountListResult
2963
- },
2964
- default: {
2965
- bodyMapper: CloudError
2966
- }
2967
- },
2968
- serializer: serializer
2969
- };
2970
- var listByResourceGroupOperationSpec = {
2971
- httpMethod: "GET",
2972
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
2973
- urlParameters: [
2974
- resourceGroupName,
2975
- subscriptionId
2976
- ],
2977
- queryParameters: [
2978
- apiVersion
2979
- ],
2980
- headerParameters: [
2981
- acceptLanguage
2982
- ],
2983
- responses: {
2984
- 200: {
2985
- bodyMapper: BatchAccountListResult
2986
- },
2987
- default: {
2988
- bodyMapper: CloudError
2989
- }
2990
- },
2991
- serializer: serializer
2992
- };
2993
- var synchronizeAutoStorageKeysOperationSpec = {
2994
- httpMethod: "POST",
2995
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
2996
- urlParameters: [
2997
- resourceGroupName,
2998
- accountName,
2999
- subscriptionId
3000
- ],
3001
- queryParameters: [
3002
- apiVersion
3003
- ],
3004
- headerParameters: [
3005
- acceptLanguage
3006
- ],
3007
- responses: {
3008
- 204: {},
3009
- default: {
3010
- bodyMapper: CloudError
3011
- }
3012
- },
3013
- serializer: serializer
3014
- };
3015
- var regenerateKeyOperationSpec = {
3016
- httpMethod: "POST",
3017
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
3018
- urlParameters: [
3019
- resourceGroupName,
3020
- accountName,
3021
- subscriptionId
3022
- ],
3023
- queryParameters: [
3024
- apiVersion
3025
- ],
3026
- headerParameters: [
3027
- acceptLanguage
3028
- ],
3029
- requestBody: {
3030
- parameterPath: {
3031
- keyName: "keyName"
3032
- },
3033
- mapper: __assign({}, BatchAccountRegenerateKeyParameters, { required: true })
3034
- },
3035
- responses: {
3036
- 200: {
3037
- bodyMapper: BatchAccountKeys
3038
- },
3039
- default: {
3040
- bodyMapper: CloudError
3041
- }
3042
- },
3043
- serializer: serializer
3044
- };
3045
- var getKeysOperationSpec = {
3046
- httpMethod: "POST",
3047
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
3048
- urlParameters: [
3049
- resourceGroupName,
3050
- accountName,
3051
- subscriptionId
3052
- ],
3053
- queryParameters: [
3054
- apiVersion
3055
- ],
3056
- headerParameters: [
3057
- acceptLanguage
3058
- ],
3059
- responses: {
3060
- 200: {
3061
- bodyMapper: BatchAccountKeys
3062
- },
3063
- default: {
3064
- bodyMapper: CloudError
3065
- }
3066
- },
3067
- serializer: serializer
3068
- };
3069
- var beginCreateOperationSpec = {
3070
- httpMethod: "PUT",
3071
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
3072
- urlParameters: [
3073
- resourceGroupName,
3074
- accountName,
3075
- subscriptionId
3076
- ],
3077
- queryParameters: [
3078
- apiVersion
3079
- ],
3080
- headerParameters: [
3081
- acceptLanguage
3082
- ],
3083
- requestBody: {
3084
- parameterPath: "parameters",
3085
- mapper: __assign({}, BatchAccountCreateParameters, { required: true })
3086
- },
3087
- responses: {
3088
- 200: {
3089
- bodyMapper: BatchAccount,
3090
- headersMapper: BatchAccountCreateHeaders
3091
- },
3092
- 202: {
3093
- headersMapper: BatchAccountCreateHeaders
3094
- },
3095
- default: {
3096
- bodyMapper: CloudError
3097
- }
3098
- },
3099
- serializer: serializer
3100
- };
3101
- var beginDeleteMethodOperationSpec = {
3102
- httpMethod: "DELETE",
3103
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
3104
- urlParameters: [
3105
- resourceGroupName,
3106
- accountName,
3107
- subscriptionId
3108
- ],
3109
- queryParameters: [
3110
- apiVersion
3111
- ],
3112
- headerParameters: [
3113
- acceptLanguage
3114
- ],
3115
- responses: {
3116
- 200: {
3117
- headersMapper: BatchAccountDeleteHeaders
3118
- },
3119
- 202: {
3120
- headersMapper: BatchAccountDeleteHeaders
3121
- },
3122
- 204: {
3123
- headersMapper: BatchAccountDeleteHeaders
3124
- },
3125
- default: {
3126
- bodyMapper: CloudError
3127
- }
3128
- },
3129
- serializer: serializer
3130
- };
3131
- var listNextOperationSpec = {
3132
- httpMethod: "GET",
3133
- baseUrl: "https://management.azure.com",
3134
- path: "{nextLink}",
3135
- urlParameters: [
3136
- nextPageLink
3137
- ],
3138
- headerParameters: [
3139
- acceptLanguage
3140
- ],
3141
- responses: {
3142
- 200: {
3143
- bodyMapper: BatchAccountListResult
3144
- },
3145
- default: {
3146
- bodyMapper: CloudError
3147
- }
3148
- },
3149
- serializer: serializer
3150
- };
3151
- var listByResourceGroupNextOperationSpec = {
3152
- httpMethod: "GET",
3153
- baseUrl: "https://management.azure.com",
3154
- path: "{nextLink}",
3155
- urlParameters: [
3156
- nextPageLink
3157
- ],
3158
- headerParameters: [
3159
- acceptLanguage
3160
- ],
3161
- responses: {
3162
- 200: {
3163
- bodyMapper: BatchAccountListResult
3164
- },
3165
- default: {
3166
- bodyMapper: CloudError
3167
- }
3168
- },
3169
- serializer: serializer
3170
- };
3171
-
3172
- /*
3173
- * Copyright (c) Microsoft Corporation. All rights reserved.
3174
- * Licensed under the MIT License. See License.txt in the project root for
3175
- * license information.
3176
- *
3177
- * Code generated by Microsoft (R) AutoRest Code Generator.
3178
- * Changes may cause incorrect behavior and will be lost if the code is
3179
- * regenerated.
3180
- */
3181
-
3182
- var Mappers$1 = /*#__PURE__*/Object.freeze({
3183
- ActivateApplicationPackageParameters: ActivateApplicationPackageParameters,
3184
- CloudError: CloudError,
3185
- ApplicationPackage: ApplicationPackage
3186
- });
3187
-
3188
- /*
3189
- * Copyright (c) Microsoft Corporation. All rights reserved.
3190
- * Licensed under the MIT License. See License.txt in the project root for
3191
- * license information.
3192
- *
3193
- * Code generated by Microsoft (R) AutoRest Code Generator.
3194
- * Changes may cause incorrect behavior and will be lost if the code is
3195
- * regenerated.
3196
- */
3197
- /** Class representing a ApplicationPackageOperations. */
3198
- var ApplicationPackageOperations = /** @class */ (function () {
3199
- /**
3200
- * Create a ApplicationPackageOperations.
3201
- * @param {BatchManagementClientContext} client Reference to the service client.
3202
- */
3203
- function ApplicationPackageOperations(client) {
3204
- this.client = client;
3205
- }
3206
- ApplicationPackageOperations.prototype.activate = function (resourceGroupName$$1, accountName$$1, applicationId$$1, version$$1, format, options, callback) {
3207
- return this.client.sendOperationRequest({
3208
- resourceGroupName: resourceGroupName$$1,
3209
- accountName: accountName$$1,
3210
- applicationId: applicationId$$1,
3211
- version: version$$1,
3212
- format: format,
3213
- options: options
3214
- }, activateOperationSpec, callback);
3215
- };
3216
- ApplicationPackageOperations.prototype.create = function (resourceGroupName$$1, accountName$$1, applicationId$$1, version$$1, options, callback) {
3217
- return this.client.sendOperationRequest({
3218
- resourceGroupName: resourceGroupName$$1,
3219
- accountName: accountName$$1,
3220
- applicationId: applicationId$$1,
3221
- version: version$$1,
3222
- options: options
3223
- }, createOperationSpec, callback);
3224
- };
3225
- ApplicationPackageOperations.prototype.deleteMethod = function (resourceGroupName$$1, accountName$$1, applicationId$$1, version$$1, options, callback) {
3226
- return this.client.sendOperationRequest({
3227
- resourceGroupName: resourceGroupName$$1,
3228
- accountName: accountName$$1,
3229
- applicationId: applicationId$$1,
3230
- version: version$$1,
3231
- options: options
3232
- }, deleteMethodOperationSpec, callback);
3233
- };
3234
- ApplicationPackageOperations.prototype.get = function (resourceGroupName$$1, accountName$$1, applicationId$$1, version$$1, options, callback) {
3235
- return this.client.sendOperationRequest({
3236
- resourceGroupName: resourceGroupName$$1,
3237
- accountName: accountName$$1,
3238
- applicationId: applicationId$$1,
3239
- version: version$$1,
3240
- options: options
3241
- }, getOperationSpec$1, callback);
3242
- };
3243
- return ApplicationPackageOperations;
3244
- }());
3245
- // Operation Specifications
3246
- var serializer$1 = new msRest.Serializer(Mappers$1);
3247
- var activateOperationSpec = {
3248
- httpMethod: "POST",
3249
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}/activate",
3250
- urlParameters: [
3251
- resourceGroupName,
3252
- accountName,
3253
- applicationId,
3254
- version,
3255
- subscriptionId
3256
- ],
3257
- queryParameters: [
3258
- apiVersion
3259
- ],
3260
- headerParameters: [
3261
- acceptLanguage
3262
- ],
3263
- requestBody: {
3264
- parameterPath: {
3265
- format: "format"
3266
- },
3267
- mapper: __assign({}, ActivateApplicationPackageParameters, { required: true })
3268
- },
3269
- responses: {
3270
- 204: {},
3271
- default: {
3272
- bodyMapper: CloudError
3273
- }
3274
- },
3275
- serializer: serializer$1
3276
- };
3277
- var createOperationSpec = {
3278
- httpMethod: "PUT",
3279
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}",
3280
- urlParameters: [
3281
- resourceGroupName,
3282
- accountName,
3283
- applicationId,
3284
- version,
3285
- subscriptionId
3286
- ],
3287
- queryParameters: [
3288
- apiVersion
3289
- ],
3290
- headerParameters: [
3291
- acceptLanguage
3292
- ],
3293
- responses: {
3294
- 201: {
3295
- bodyMapper: ApplicationPackage
3296
- },
3297
- default: {
3298
- bodyMapper: CloudError
3299
- }
3300
- },
3301
- serializer: serializer$1
3302
- };
3303
- var deleteMethodOperationSpec = {
3304
- httpMethod: "DELETE",
3305
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}",
3306
- urlParameters: [
3307
- resourceGroupName,
3308
- accountName,
3309
- applicationId,
3310
- version,
3311
- subscriptionId
3312
- ],
3313
- queryParameters: [
3314
- apiVersion
3315
- ],
3316
- headerParameters: [
3317
- acceptLanguage
3318
- ],
3319
- responses: {
3320
- 204: {},
3321
- default: {
3322
- bodyMapper: CloudError
3323
- }
3324
- },
3325
- serializer: serializer$1
3326
- };
3327
- var getOperationSpec$1 = {
3328
- httpMethod: "GET",
3329
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}",
3330
- urlParameters: [
3331
- resourceGroupName,
3332
- accountName,
3333
- applicationId,
3334
- version,
3335
- subscriptionId
3336
- ],
3337
- queryParameters: [
3338
- apiVersion
3339
- ],
3340
- headerParameters: [
3341
- acceptLanguage
3342
- ],
3343
- responses: {
3344
- 200: {
3345
- bodyMapper: ApplicationPackage
3346
- },
3347
- default: {
3348
- bodyMapper: CloudError
3349
- }
3350
- },
3351
- serializer: serializer$1
3352
- };
3353
-
3354
- /*
3355
- * Copyright (c) Microsoft Corporation. All rights reserved.
3356
- * Licensed under the MIT License. See License.txt in the project root for
3357
- * license information.
3358
- *
3359
- * Code generated by Microsoft (R) AutoRest Code Generator.
3360
- * Changes may cause incorrect behavior and will be lost if the code is
3361
- * regenerated.
3362
- */
3363
-
3364
- var Mappers$2 = /*#__PURE__*/Object.freeze({
3365
- ApplicationCreateParameters: ApplicationCreateParameters,
3366
- Application: Application,
3367
- ApplicationPackage: ApplicationPackage,
3368
- CloudError: CloudError,
3369
- ApplicationUpdateParameters: ApplicationUpdateParameters,
3370
- ListApplicationsResult: ListApplicationsResult
3371
- });
3372
-
3373
- /*
3374
- * Copyright (c) Microsoft Corporation. All rights reserved.
3375
- * Licensed under the MIT License. See License.txt in the project root for
3376
- * license information.
3377
- *
3378
- * Code generated by Microsoft (R) AutoRest Code Generator.
3379
- * Changes may cause incorrect behavior and will be lost if the code is
3380
- * regenerated.
3381
- */
3382
- /** Class representing a ApplicationOperations. */
3383
- var ApplicationOperations = /** @class */ (function () {
3384
- /**
3385
- * Create a ApplicationOperations.
3386
- * @param {BatchManagementClientContext} client Reference to the service client.
3387
- */
3388
- function ApplicationOperations(client) {
3389
- this.client = client;
3390
- }
3391
- ApplicationOperations.prototype.create = function (resourceGroupName$$1, accountName$$1, applicationId$$1, options, callback) {
3392
- return this.client.sendOperationRequest({
3393
- resourceGroupName: resourceGroupName$$1,
3394
- accountName: accountName$$1,
3395
- applicationId: applicationId$$1,
3396
- options: options
3397
- }, createOperationSpec$1, callback);
3398
- };
3399
- ApplicationOperations.prototype.deleteMethod = function (resourceGroupName$$1, accountName$$1, applicationId$$1, options, callback) {
3400
- return this.client.sendOperationRequest({
3401
- resourceGroupName: resourceGroupName$$1,
3402
- accountName: accountName$$1,
3403
- applicationId: applicationId$$1,
3404
- options: options
3405
- }, deleteMethodOperationSpec$1, callback);
3406
- };
3407
- ApplicationOperations.prototype.get = function (resourceGroupName$$1, accountName$$1, applicationId$$1, options, callback) {
3408
- return this.client.sendOperationRequest({
3409
- resourceGroupName: resourceGroupName$$1,
3410
- accountName: accountName$$1,
3411
- applicationId: applicationId$$1,
3412
- options: options
3413
- }, getOperationSpec$2, callback);
3414
- };
3415
- ApplicationOperations.prototype.update = function (resourceGroupName$$1, accountName$$1, applicationId$$1, parameters, options, callback) {
3416
- return this.client.sendOperationRequest({
3417
- resourceGroupName: resourceGroupName$$1,
3418
- accountName: accountName$$1,
3419
- applicationId: applicationId$$1,
3420
- parameters: parameters,
3421
- options: options
3422
- }, updateOperationSpec$1, callback);
3423
- };
3424
- ApplicationOperations.prototype.list = function (resourceGroupName$$1, accountName$$1, options, callback) {
3425
- return this.client.sendOperationRequest({
3426
- resourceGroupName: resourceGroupName$$1,
3427
- accountName: accountName$$1,
3428
- options: options
3429
- }, listOperationSpec$1, callback);
3430
- };
3431
- ApplicationOperations.prototype.listNext = function (nextPageLink$$1, options, callback) {
3432
- return this.client.sendOperationRequest({
3433
- nextPageLink: nextPageLink$$1,
3434
- options: options
3435
- }, listNextOperationSpec$1, callback);
3436
- };
3437
- return ApplicationOperations;
3438
- }());
3439
- // Operation Specifications
3440
- var serializer$2 = new msRest.Serializer(Mappers$2);
3441
- var createOperationSpec$1 = {
3442
- httpMethod: "PUT",
3443
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
3444
- urlParameters: [
3445
- resourceGroupName,
3446
- accountName,
3447
- applicationId,
3448
- subscriptionId
3449
- ],
3450
- queryParameters: [
3451
- apiVersion
3452
- ],
3453
- headerParameters: [
3454
- acceptLanguage
3455
- ],
3456
- requestBody: {
3457
- parameterPath: [
3458
- "options",
3459
- "parameters"
3460
- ],
3461
- mapper: ApplicationCreateParameters
3462
- },
3463
- responses: {
3464
- 201: {
3465
- bodyMapper: Application
3466
- },
3467
- default: {
3468
- bodyMapper: CloudError
3469
- }
3470
- },
3471
- serializer: serializer$2
3472
- };
3473
- var deleteMethodOperationSpec$1 = {
3474
- httpMethod: "DELETE",
3475
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
3476
- urlParameters: [
3477
- resourceGroupName,
3478
- accountName,
3479
- applicationId,
3480
- subscriptionId
3481
- ],
3482
- queryParameters: [
3483
- apiVersion
3484
- ],
3485
- headerParameters: [
3486
- acceptLanguage
3487
- ],
3488
- responses: {
3489
- 204: {},
3490
- default: {
3491
- bodyMapper: CloudError
3492
- }
3493
- },
3494
- serializer: serializer$2
3495
- };
3496
- var getOperationSpec$2 = {
3497
- httpMethod: "GET",
3498
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
3499
- urlParameters: [
3500
- resourceGroupName,
3501
- accountName,
3502
- applicationId,
3503
- subscriptionId
3504
- ],
3505
- queryParameters: [
3506
- apiVersion
3507
- ],
3508
- headerParameters: [
3509
- acceptLanguage
3510
- ],
3511
- responses: {
3512
- 200: {
3513
- bodyMapper: Application
3514
- },
3515
- default: {
3516
- bodyMapper: CloudError
3517
- }
3518
- },
3519
- serializer: serializer$2
3520
- };
3521
- var updateOperationSpec$1 = {
3522
- httpMethod: "PATCH",
3523
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}",
3524
- urlParameters: [
3525
- resourceGroupName,
3526
- accountName,
3527
- applicationId,
3528
- subscriptionId
3529
- ],
3530
- queryParameters: [
3531
- apiVersion
3532
- ],
3533
- headerParameters: [
3534
- acceptLanguage
3535
- ],
3536
- requestBody: {
3537
- parameterPath: "parameters",
3538
- mapper: __assign({}, ApplicationUpdateParameters, { required: true })
3539
- },
3540
- responses: {
3541
- 204: {},
3542
- default: {
3543
- bodyMapper: CloudError
3544
- }
3545
- },
3546
- serializer: serializer$2
3547
- };
3548
- var listOperationSpec$1 = {
3549
- httpMethod: "GET",
3550
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications",
3551
- urlParameters: [
3552
- resourceGroupName,
3553
- accountName,
3554
- subscriptionId
3555
- ],
3556
- queryParameters: [
3557
- maxresults,
3558
- apiVersion
3559
- ],
3560
- headerParameters: [
3561
- acceptLanguage
3562
- ],
3563
- responses: {
3564
- 200: {
3565
- bodyMapper: ListApplicationsResult
3566
- },
3567
- default: {
3568
- bodyMapper: CloudError
3569
- }
3570
- },
3571
- serializer: serializer$2
3572
- };
3573
- var listNextOperationSpec$1 = {
3574
- httpMethod: "GET",
3575
- baseUrl: "https://management.azure.com",
3576
- path: "{nextLink}",
3577
- urlParameters: [
3578
- nextPageLink
3579
- ],
3580
- headerParameters: [
3581
- acceptLanguage
3582
- ],
3583
- responses: {
3584
- 200: {
3585
- bodyMapper: ListApplicationsResult
3586
- },
3587
- default: {
3588
- bodyMapper: CloudError
3589
- }
3590
- },
3591
- serializer: serializer$2
3592
- };
3593
-
3594
- /*
3595
- * Copyright (c) Microsoft Corporation. All rights reserved.
3596
- * Licensed under the MIT License. See License.txt in the project root for
3597
- * license information.
3598
- *
3599
- * Code generated by Microsoft (R) AutoRest Code Generator.
3600
- * Changes may cause incorrect behavior and will be lost if the code is
3601
- * regenerated.
3602
- */
3603
-
3604
- var Mappers$3 = /*#__PURE__*/Object.freeze({
3605
- BatchLocationQuota: BatchLocationQuota,
3606
- CloudError: CloudError,
3607
- CheckNameAvailabilityParameters: CheckNameAvailabilityParameters,
3608
- CheckNameAvailabilityResult: CheckNameAvailabilityResult
3609
- });
3610
-
3611
- /*
3612
- * Copyright (c) Microsoft Corporation. All rights reserved.
3613
- * Licensed under the MIT License. See License.txt in the project root for
3614
- * license information.
3615
- *
3616
- * Code generated by Microsoft (R) AutoRest Code Generator.
3617
- * Changes may cause incorrect behavior and will be lost if the code is
3618
- * regenerated.
3619
- */
3620
- /** Class representing a Location. */
3621
- var Location = /** @class */ (function () {
3622
- /**
3623
- * Create a Location.
3624
- * @param {BatchManagementClientContext} client Reference to the service client.
3625
- */
3626
- function Location(client) {
3627
- this.client = client;
3628
- }
3629
- Location.prototype.getQuotas = function (locationName$$1, options, callback) {
3630
- return this.client.sendOperationRequest({
3631
- locationName: locationName$$1,
3632
- options: options
3633
- }, getQuotasOperationSpec, callback);
3634
- };
3635
- Location.prototype.checkNameAvailability = function (locationName$$1, name, options, callback) {
3636
- return this.client.sendOperationRequest({
3637
- locationName: locationName$$1,
3638
- name: name,
3639
- options: options
3640
- }, checkNameAvailabilityOperationSpec, callback);
3641
- };
3642
- return Location;
3643
- }());
3644
- // Operation Specifications
3645
- var serializer$3 = new msRest.Serializer(Mappers$3);
3646
- var getQuotasOperationSpec = {
3647
- httpMethod: "GET",
3648
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas",
3649
- urlParameters: [
3650
- locationName,
3651
- subscriptionId
3652
- ],
3653
- queryParameters: [
3654
- apiVersion
3655
- ],
3656
- headerParameters: [
3657
- acceptLanguage
3658
- ],
3659
- responses: {
3660
- 200: {
3661
- bodyMapper: BatchLocationQuota
3662
- },
3663
- default: {
3664
- bodyMapper: CloudError
3665
- }
3666
- },
3667
- serializer: serializer$3
3668
- };
3669
- var checkNameAvailabilityOperationSpec = {
3670
- httpMethod: "POST",
3671
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability",
3672
- urlParameters: [
3673
- locationName,
3674
- subscriptionId
3675
- ],
3676
- queryParameters: [
3677
- apiVersion
3678
- ],
3679
- headerParameters: [
3680
- acceptLanguage
3681
- ],
3682
- requestBody: {
3683
- parameterPath: {
3684
- name: "name"
3685
- },
3686
- mapper: __assign({}, CheckNameAvailabilityParameters, { required: true })
3687
- },
3688
- responses: {
3689
- 200: {
3690
- bodyMapper: CheckNameAvailabilityResult
3691
- },
3692
- default: {
3693
- bodyMapper: CloudError
3694
- }
3695
- },
3696
- serializer: serializer$3
3697
- };
3698
-
3699
- /*
3700
- * Copyright (c) Microsoft Corporation. All rights reserved.
3701
- * Licensed under the MIT License. See License.txt in the project root for
3702
- * license information.
3703
- *
3704
- * Code generated by Microsoft (R) AutoRest Code Generator.
3705
- * Changes may cause incorrect behavior and will be lost if the code is
3706
- * regenerated.
3707
- */
3708
-
3709
- var Mappers$4 = /*#__PURE__*/Object.freeze({
3710
- OperationListResult: OperationListResult,
3711
- Operation: Operation,
3712
- OperationDisplay: OperationDisplay,
3713
- CloudError: CloudError
3714
- });
3715
-
3716
- /*
3717
- * Copyright (c) Microsoft Corporation. All rights reserved.
3718
- * Licensed under the MIT License. See License.txt in the project root for
3719
- * license information.
3720
- *
3721
- * Code generated by Microsoft (R) AutoRest Code Generator.
3722
- * Changes may cause incorrect behavior and will be lost if the code is
3723
- * regenerated.
3724
- */
3725
- /** Class representing a Operations. */
3726
- var Operations = /** @class */ (function () {
3727
- /**
3728
- * Create a Operations.
3729
- * @param {BatchManagementClientContext} client Reference to the service client.
3730
- */
3731
- function Operations(client) {
3732
- this.client = client;
3733
- }
3734
- Operations.prototype.list = function (options, callback) {
3735
- return this.client.sendOperationRequest({
3736
- options: options
3737
- }, listOperationSpec$2, callback);
3738
- };
3739
- Operations.prototype.listNext = function (nextPageLink$$1, options, callback) {
3740
- return this.client.sendOperationRequest({
3741
- nextPageLink: nextPageLink$$1,
3742
- options: options
3743
- }, listNextOperationSpec$2, callback);
3744
- };
3745
- return Operations;
3746
- }());
3747
- // Operation Specifications
3748
- var serializer$4 = new msRest.Serializer(Mappers$4);
3749
- var listOperationSpec$2 = {
3750
- httpMethod: "GET",
3751
- path: "providers/Microsoft.Batch/operations",
3752
- queryParameters: [
3753
- apiVersion
3754
- ],
3755
- headerParameters: [
3756
- acceptLanguage
3757
- ],
3758
- responses: {
3759
- 200: {
3760
- bodyMapper: OperationListResult
3761
- },
3762
- default: {
3763
- bodyMapper: CloudError
3764
- }
3765
- },
3766
- serializer: serializer$4
3767
- };
3768
- var listNextOperationSpec$2 = {
3769
- httpMethod: "GET",
3770
- baseUrl: "https://management.azure.com",
3771
- path: "{nextLink}",
3772
- urlParameters: [
3773
- nextPageLink
3774
- ],
3775
- headerParameters: [
3776
- acceptLanguage
3777
- ],
3778
- responses: {
3779
- 200: {
3780
- bodyMapper: OperationListResult
3781
- },
3782
- default: {
3783
- bodyMapper: CloudError
3784
- }
3785
- },
3786
- serializer: serializer$4
3787
- };
3788
-
3789
- /*
3790
- * Copyright (c) Microsoft Corporation. All rights reserved.
3791
- * Licensed under the MIT License. See License.txt in the project root for
3792
- * license information.
3793
- *
3794
- * Code generated by Microsoft (R) AutoRest Code Generator.
3795
- * Changes may cause incorrect behavior and will be lost if the code is
3796
- * regenerated.
3797
- */
3798
-
3799
- var Mappers$5 = /*#__PURE__*/Object.freeze({
3800
- ListCertificatesResult: ListCertificatesResult,
3801
- Certificate: Certificate,
3802
- ProxyResource: ProxyResource,
3803
- BaseResource: BaseResource,
3804
- DeleteCertificateError: DeleteCertificateError,
3805
- CloudError: CloudError,
3806
- CertificateCreateOrUpdateParameters: CertificateCreateOrUpdateParameters,
3807
- CertificateCreateHeaders: CertificateCreateHeaders,
3808
- CertificateUpdateHeaders: CertificateUpdateHeaders,
3809
- CertificateDeleteHeaders: CertificateDeleteHeaders,
3810
- CertificateGetHeaders: CertificateGetHeaders,
3811
- CertificateCancelDeletionHeaders: CertificateCancelDeletionHeaders,
3812
- Resource: Resource,
3813
- Pool: Pool,
3814
- DeploymentConfiguration: DeploymentConfiguration,
3815
- CloudServiceConfiguration: CloudServiceConfiguration,
3816
- VirtualMachineConfiguration: VirtualMachineConfiguration,
3817
- ImageReference: ImageReference,
3818
- OSDisk: OSDisk,
3819
- WindowsConfiguration: WindowsConfiguration,
3820
- DataDisk: DataDisk,
3821
- ScaleSettings: ScaleSettings,
3822
- FixedScaleSettings: FixedScaleSettings,
3823
- AutoScaleSettings: AutoScaleSettings,
3824
- AutoScaleRun: AutoScaleRun,
3825
- AutoScaleRunError: AutoScaleRunError,
3826
- NetworkConfiguration: NetworkConfiguration,
3827
- PoolEndpointConfiguration: PoolEndpointConfiguration,
3828
- InboundNatPool: InboundNatPool,
3829
- NetworkSecurityGroupRule: NetworkSecurityGroupRule,
3830
- TaskSchedulingPolicy: TaskSchedulingPolicy,
3831
- UserAccount: UserAccount,
3832
- LinuxUserConfiguration: LinuxUserConfiguration,
3833
- MetadataItem: MetadataItem,
3834
- StartTask: StartTask,
3835
- ResourceFile: ResourceFile,
3836
- EnvironmentSetting: EnvironmentSetting,
3837
- UserIdentity: UserIdentity,
3838
- AutoUserSpecification: AutoUserSpecification,
3839
- CertificateReference: CertificateReference,
3840
- ApplicationPackageReference: ApplicationPackageReference,
3841
- ResizeOperationStatus: ResizeOperationStatus,
3842
- ResizeError: ResizeError,
3843
- BatchAccount: BatchAccount,
3844
- KeyVaultReference: KeyVaultReference,
3845
- AutoStorageProperties: AutoStorageProperties,
3846
- AutoStorageBaseProperties: AutoStorageBaseProperties
3847
- });
3848
-
3849
- /*
3850
- * Copyright (c) Microsoft Corporation. All rights reserved.
3851
- * Licensed under the MIT License. See License.txt in the project root for
3852
- * license information.
3853
- *
3854
- * Code generated by Microsoft (R) AutoRest Code Generator.
3855
- * Changes may cause incorrect behavior and will be lost if the code is
3856
- * regenerated.
3857
- */
3858
- /** Class representing a CertificateOperations. */
3859
- var CertificateOperations = /** @class */ (function () {
3860
- /**
3861
- * Create a CertificateOperations.
3862
- * @param {BatchManagementClientContext} client Reference to the service client.
3863
- */
3864
- function CertificateOperations(client) {
3865
- this.client = client;
3866
- }
3867
- CertificateOperations.prototype.listByBatchAccount = function (resourceGroupName$$1, accountName$$1, options, callback) {
3868
- return this.client.sendOperationRequest({
3869
- resourceGroupName: resourceGroupName$$1,
3870
- accountName: accountName$$1,
3871
- options: options
3872
- }, listByBatchAccountOperationSpec, callback);
3873
- };
3874
- /**
3875
- * Creates a new certificate inside the specified account.
3876
- * @param resourceGroupName The name of the resource group that contains the Batch account.
3877
- * @param accountName The name of the Batch account.
3878
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
3879
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
3880
- * SHA1-a3d1c5.
3881
- * @param parameters Additional parameters for certificate creation.
3882
- * @param [options] The optional parameters
3883
- * @returns Promise<Models.CertificateCreateResponse>
3884
- */
3885
- CertificateOperations.prototype.create = function (resourceGroupName$$1, accountName$$1, certificateName$$1, parameters, options) {
3886
- return this.beginCreate(resourceGroupName$$1, accountName$$1, certificateName$$1, parameters, options)
3887
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3888
- };
3889
- CertificateOperations.prototype.update = function (resourceGroupName$$1, accountName$$1, certificateName$$1, parameters, options, callback) {
3890
- return this.client.sendOperationRequest({
3891
- resourceGroupName: resourceGroupName$$1,
3892
- accountName: accountName$$1,
3893
- certificateName: certificateName$$1,
3894
- parameters: parameters,
3895
- options: options
3896
- }, updateOperationSpec$2, callback);
3897
- };
3898
- /**
3899
- * Deletes the specified certificate.
3900
- * @param resourceGroupName The name of the resource group that contains the Batch account.
3901
- * @param accountName The name of the Batch account.
3902
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
3903
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
3904
- * SHA1-a3d1c5.
3905
- * @param [options] The optional parameters
3906
- * @returns Promise<Models.CertificateDeleteResponse>
3907
- */
3908
- CertificateOperations.prototype.deleteMethod = function (resourceGroupName$$1, accountName$$1, certificateName$$1, options) {
3909
- return this.beginDeleteMethod(resourceGroupName$$1, accountName$$1, certificateName$$1, options)
3910
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3911
- };
3912
- CertificateOperations.prototype.get = function (resourceGroupName$$1, accountName$$1, certificateName$$1, options, callback) {
3913
- return this.client.sendOperationRequest({
3914
- resourceGroupName: resourceGroupName$$1,
3915
- accountName: accountName$$1,
3916
- certificateName: certificateName$$1,
3917
- options: options
3918
- }, getOperationSpec$3, callback);
3919
- };
3920
- CertificateOperations.prototype.cancelDeletion = function (resourceGroupName$$1, accountName$$1, certificateName$$1, options, callback) {
3921
- return this.client.sendOperationRequest({
3922
- resourceGroupName: resourceGroupName$$1,
3923
- accountName: accountName$$1,
3924
- certificateName: certificateName$$1,
3925
- options: options
3926
- }, cancelDeletionOperationSpec, callback);
3927
- };
3928
- /**
3929
- * Creates a new certificate inside the specified account.
3930
- * @param resourceGroupName The name of the resource group that contains the Batch account.
3931
- * @param accountName The name of the Batch account.
3932
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
3933
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
3934
- * SHA1-a3d1c5.
3935
- * @param parameters Additional parameters for certificate creation.
3936
- * @param [options] The optional parameters
3937
- * @returns Promise<msRestAzure.LROPoller>
3938
- */
3939
- CertificateOperations.prototype.beginCreate = function (resourceGroupName$$1, accountName$$1, certificateName$$1, parameters, options) {
3940
- return this.client.sendLRORequest({
3941
- resourceGroupName: resourceGroupName$$1,
3942
- accountName: accountName$$1,
3943
- certificateName: certificateName$$1,
3944
- parameters: parameters,
3945
- options: options
3946
- }, beginCreateOperationSpec$1, options);
3947
- };
3948
- /**
3949
- * Deletes the specified certificate.
3950
- * @param resourceGroupName The name of the resource group that contains the Batch account.
3951
- * @param accountName The name of the Batch account.
3952
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and
3953
- * thumbprint separated by a dash, and must match the certificate data in the request. For example
3954
- * SHA1-a3d1c5.
3955
- * @param [options] The optional parameters
3956
- * @returns Promise<msRestAzure.LROPoller>
3957
- */
3958
- CertificateOperations.prototype.beginDeleteMethod = function (resourceGroupName$$1, accountName$$1, certificateName$$1, options) {
3959
- return this.client.sendLRORequest({
3960
- resourceGroupName: resourceGroupName$$1,
3961
- accountName: accountName$$1,
3962
- certificateName: certificateName$$1,
3963
- options: options
3964
- }, beginDeleteMethodOperationSpec$1, options);
3965
- };
3966
- CertificateOperations.prototype.listByBatchAccountNext = function (nextPageLink$$1, options, callback) {
3967
- return this.client.sendOperationRequest({
3968
- nextPageLink: nextPageLink$$1,
3969
- options: options
3970
- }, listByBatchAccountNextOperationSpec, callback);
3971
- };
3972
- return CertificateOperations;
3973
- }());
3974
- // Operation Specifications
3975
- var serializer$5 = new msRest.Serializer(Mappers$5);
3976
- var listByBatchAccountOperationSpec = {
3977
- httpMethod: "GET",
3978
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates",
3979
- urlParameters: [
3980
- resourceGroupName,
3981
- accountName,
3982
- subscriptionId
3983
- ],
3984
- queryParameters: [
3985
- maxresults,
3986
- select,
3987
- filter,
3988
- apiVersion
3989
- ],
3990
- headerParameters: [
3991
- acceptLanguage
3992
- ],
3993
- responses: {
3994
- 200: {
3995
- bodyMapper: ListCertificatesResult
3996
- },
3997
- default: {
3998
- bodyMapper: CloudError
3999
- }
4000
- },
4001
- serializer: serializer$5
4002
- };
4003
- var updateOperationSpec$2 = {
4004
- httpMethod: "PATCH",
4005
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
4006
- urlParameters: [
4007
- resourceGroupName,
4008
- accountName,
4009
- certificateName,
4010
- subscriptionId
4011
- ],
4012
- queryParameters: [
4013
- apiVersion
4014
- ],
4015
- headerParameters: [
4016
- ifMatch,
4017
- acceptLanguage
4018
- ],
4019
- requestBody: {
4020
- parameterPath: "parameters",
4021
- mapper: __assign({}, CertificateCreateOrUpdateParameters, { required: true })
4022
- },
4023
- responses: {
4024
- 200: {
4025
- bodyMapper: Certificate,
4026
- headersMapper: CertificateUpdateHeaders
4027
- },
4028
- default: {
4029
- bodyMapper: CloudError
4030
- }
4031
- },
4032
- serializer: serializer$5
4033
- };
4034
- var getOperationSpec$3 = {
4035
- httpMethod: "GET",
4036
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
4037
- urlParameters: [
4038
- resourceGroupName,
4039
- accountName,
4040
- certificateName,
4041
- subscriptionId
4042
- ],
4043
- queryParameters: [
4044
- apiVersion
4045
- ],
4046
- headerParameters: [
4047
- acceptLanguage
4048
- ],
4049
- responses: {
4050
- 200: {
4051
- bodyMapper: Certificate,
4052
- headersMapper: CertificateGetHeaders
4053
- },
4054
- default: {
4055
- bodyMapper: CloudError
4056
- }
4057
- },
4058
- serializer: serializer$5
4059
- };
4060
- var cancelDeletionOperationSpec = {
4061
- httpMethod: "POST",
4062
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete",
4063
- urlParameters: [
4064
- resourceGroupName,
4065
- accountName,
4066
- certificateName,
4067
- subscriptionId
4068
- ],
4069
- queryParameters: [
4070
- apiVersion
4071
- ],
4072
- headerParameters: [
4073
- acceptLanguage
4074
- ],
4075
- responses: {
4076
- 200: {
4077
- bodyMapper: Certificate,
4078
- headersMapper: CertificateCancelDeletionHeaders
4079
- },
4080
- default: {
4081
- bodyMapper: CloudError
4082
- }
4083
- },
4084
- serializer: serializer$5
4085
- };
4086
- var beginCreateOperationSpec$1 = {
4087
- httpMethod: "PUT",
4088
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
4089
- urlParameters: [
4090
- resourceGroupName,
4091
- accountName,
4092
- certificateName,
4093
- subscriptionId
4094
- ],
4095
- queryParameters: [
4096
- apiVersion
4097
- ],
4098
- headerParameters: [
4099
- ifMatch,
4100
- ifNoneMatch,
4101
- acceptLanguage
4102
- ],
4103
- requestBody: {
4104
- parameterPath: "parameters",
4105
- mapper: __assign({}, CertificateCreateOrUpdateParameters, { required: true })
4106
- },
4107
- responses: {
4108
- 200: {
4109
- bodyMapper: Certificate,
4110
- headersMapper: CertificateCreateHeaders
4111
- },
4112
- default: {
4113
- bodyMapper: CloudError
4114
- }
4115
- },
4116
- serializer: serializer$5
4117
- };
4118
- var beginDeleteMethodOperationSpec$1 = {
4119
- httpMethod: "DELETE",
4120
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
4121
- urlParameters: [
4122
- resourceGroupName,
4123
- accountName,
4124
- certificateName,
4125
- subscriptionId
4126
- ],
4127
- queryParameters: [
4128
- apiVersion
4129
- ],
4130
- headerParameters: [
4131
- acceptLanguage
4132
- ],
4133
- responses: {
4134
- 200: {
4135
- headersMapper: CertificateDeleteHeaders
4136
- },
4137
- 202: {
4138
- headersMapper: CertificateDeleteHeaders
4139
- },
4140
- 204: {
4141
- headersMapper: CertificateDeleteHeaders
4142
- },
4143
- default: {
4144
- bodyMapper: CloudError
4145
- }
4146
- },
4147
- serializer: serializer$5
4148
- };
4149
- var listByBatchAccountNextOperationSpec = {
4150
- httpMethod: "GET",
4151
- baseUrl: "https://management.azure.com",
4152
- path: "{nextLink}",
4153
- urlParameters: [
4154
- nextPageLink
4155
- ],
4156
- headerParameters: [
4157
- acceptLanguage
4158
- ],
4159
- responses: {
4160
- 200: {
4161
- bodyMapper: ListCertificatesResult
4162
- },
4163
- default: {
4164
- bodyMapper: CloudError
4165
- }
4166
- },
4167
- serializer: serializer$5
4168
- };
4169
-
4170
- /*
4171
- * Copyright (c) Microsoft Corporation. All rights reserved.
4172
- * Licensed under the MIT License. See License.txt in the project root for
4173
- * license information.
4174
- *
4175
- * Code generated by Microsoft (R) AutoRest Code Generator.
4176
- * Changes may cause incorrect behavior and will be lost if the code is
4177
- * regenerated.
4178
- */
4179
-
4180
- var Mappers$6 = /*#__PURE__*/Object.freeze({
4181
- ListPoolsResult: ListPoolsResult,
4182
- Pool: Pool,
4183
- ProxyResource: ProxyResource,
4184
- BaseResource: BaseResource,
4185
- DeploymentConfiguration: DeploymentConfiguration,
4186
- CloudServiceConfiguration: CloudServiceConfiguration,
4187
- VirtualMachineConfiguration: VirtualMachineConfiguration,
4188
- ImageReference: ImageReference,
4189
- OSDisk: OSDisk,
4190
- WindowsConfiguration: WindowsConfiguration,
4191
- DataDisk: DataDisk,
4192
- ScaleSettings: ScaleSettings,
4193
- FixedScaleSettings: FixedScaleSettings,
4194
- AutoScaleSettings: AutoScaleSettings,
4195
- AutoScaleRun: AutoScaleRun,
4196
- AutoScaleRunError: AutoScaleRunError,
4197
- NetworkConfiguration: NetworkConfiguration,
4198
- PoolEndpointConfiguration: PoolEndpointConfiguration,
4199
- InboundNatPool: InboundNatPool,
4200
- NetworkSecurityGroupRule: NetworkSecurityGroupRule,
4201
- TaskSchedulingPolicy: TaskSchedulingPolicy,
4202
- UserAccount: UserAccount,
4203
- LinuxUserConfiguration: LinuxUserConfiguration,
4204
- MetadataItem: MetadataItem,
4205
- StartTask: StartTask,
4206
- ResourceFile: ResourceFile,
4207
- EnvironmentSetting: EnvironmentSetting,
4208
- UserIdentity: UserIdentity,
4209
- AutoUserSpecification: AutoUserSpecification,
4210
- CertificateReference: CertificateReference,
4211
- ApplicationPackageReference: ApplicationPackageReference,
4212
- ResizeOperationStatus: ResizeOperationStatus,
4213
- ResizeError: ResizeError,
4214
- CloudError: CloudError,
4215
- PoolCreateHeaders: PoolCreateHeaders,
4216
- PoolUpdateHeaders: PoolUpdateHeaders,
4217
- PoolDeleteHeaders: PoolDeleteHeaders,
4218
- PoolGetHeaders: PoolGetHeaders,
4219
- PoolDisableAutoScaleHeaders: PoolDisableAutoScaleHeaders,
4220
- PoolStopResizeHeaders: PoolStopResizeHeaders,
4221
- Resource: Resource,
4222
- Certificate: Certificate,
4223
- DeleteCertificateError: DeleteCertificateError,
4224
- CertificateCreateOrUpdateParameters: CertificateCreateOrUpdateParameters,
4225
- BatchAccount: BatchAccount,
4226
- KeyVaultReference: KeyVaultReference,
4227
- AutoStorageProperties: AutoStorageProperties,
4228
- AutoStorageBaseProperties: AutoStorageBaseProperties
4229
- });
4230
-
4231
- /*
4232
- * Copyright (c) Microsoft Corporation. All rights reserved.
4233
- * Licensed under the MIT License. See License.txt in the project root for
4234
- * license information.
4235
- *
4236
- * Code generated by Microsoft (R) AutoRest Code Generator.
4237
- * Changes may cause incorrect behavior and will be lost if the code is
4238
- * regenerated.
4239
- */
4240
- /** Class representing a PoolOperations. */
4241
- var PoolOperations = /** @class */ (function () {
4242
- /**
4243
- * Create a PoolOperations.
4244
- * @param {BatchManagementClientContext} client Reference to the service client.
4245
- */
4246
- function PoolOperations(client) {
4247
- this.client = client;
4248
- }
4249
- PoolOperations.prototype.listByBatchAccount = function (resourceGroupName$$1, accountName$$1, options, callback) {
4250
- return this.client.sendOperationRequest({
4251
- resourceGroupName: resourceGroupName$$1,
4252
- accountName: accountName$$1,
4253
- options: options
4254
- }, listByBatchAccountOperationSpec$1, callback);
4255
- };
4256
- /**
4257
- * Creates a new pool inside the specified account.
4258
- * @param resourceGroupName The name of the resource group that contains the Batch account.
4259
- * @param accountName The name of the Batch account.
4260
- * @param poolName The pool name. This must be unique within the account.
4261
- * @param parameters Additional parameters for pool creation.
4262
- * @param [options] The optional parameters
4263
- * @returns Promise<Models.PoolCreateResponse>
4264
- */
4265
- PoolOperations.prototype.create = function (resourceGroupName$$1, accountName$$1, poolName$$1, parameters, options) {
4266
- return this.beginCreate(resourceGroupName$$1, accountName$$1, poolName$$1, parameters, options)
4267
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
4268
- };
4269
- PoolOperations.prototype.update = function (resourceGroupName$$1, accountName$$1, poolName$$1, parameters, options, callback) {
4270
- return this.client.sendOperationRequest({
4271
- resourceGroupName: resourceGroupName$$1,
4272
- accountName: accountName$$1,
4273
- poolName: poolName$$1,
4274
- parameters: parameters,
4275
- options: options
4276
- }, updateOperationSpec$3, callback);
4277
- };
4278
- /**
4279
- * Deletes the specified pool.
4280
- * @param resourceGroupName The name of the resource group that contains the Batch account.
4281
- * @param accountName The name of the Batch account.
4282
- * @param poolName The pool name. This must be unique within the account.
4283
- * @param [options] The optional parameters
4284
- * @returns Promise<Models.PoolDeleteResponse>
4285
- */
4286
- PoolOperations.prototype.deleteMethod = function (resourceGroupName$$1, accountName$$1, poolName$$1, options) {
4287
- return this.beginDeleteMethod(resourceGroupName$$1, accountName$$1, poolName$$1, options)
4288
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
4289
- };
4290
- PoolOperations.prototype.get = function (resourceGroupName$$1, accountName$$1, poolName$$1, options, callback) {
4291
- return this.client.sendOperationRequest({
4292
- resourceGroupName: resourceGroupName$$1,
4293
- accountName: accountName$$1,
4294
- poolName: poolName$$1,
4295
- options: options
4296
- }, getOperationSpec$4, callback);
4297
- };
4298
- PoolOperations.prototype.disableAutoScale = function (resourceGroupName$$1, accountName$$1, poolName$$1, options, callback) {
4299
- return this.client.sendOperationRequest({
4300
- resourceGroupName: resourceGroupName$$1,
4301
- accountName: accountName$$1,
4302
- poolName: poolName$$1,
4303
- options: options
4304
- }, disableAutoScaleOperationSpec, callback);
4305
- };
4306
- PoolOperations.prototype.stopResize = function (resourceGroupName$$1, accountName$$1, poolName$$1, options, callback) {
4307
- return this.client.sendOperationRequest({
4308
- resourceGroupName: resourceGroupName$$1,
4309
- accountName: accountName$$1,
4310
- poolName: poolName$$1,
4311
- options: options
4312
- }, stopResizeOperationSpec, callback);
4313
- };
4314
- /**
4315
- * Creates a new pool inside the specified account.
4316
- * @param resourceGroupName The name of the resource group that contains the Batch account.
4317
- * @param accountName The name of the Batch account.
4318
- * @param poolName The pool name. This must be unique within the account.
4319
- * @param parameters Additional parameters for pool creation.
4320
- * @param [options] The optional parameters
4321
- * @returns Promise<msRestAzure.LROPoller>
4322
- */
4323
- PoolOperations.prototype.beginCreate = function (resourceGroupName$$1, accountName$$1, poolName$$1, parameters, options) {
4324
- return this.client.sendLRORequest({
4325
- resourceGroupName: resourceGroupName$$1,
4326
- accountName: accountName$$1,
4327
- poolName: poolName$$1,
4328
- parameters: parameters,
4329
- options: options
4330
- }, beginCreateOperationSpec$2, options);
4331
- };
4332
- /**
4333
- * Deletes the specified pool.
4334
- * @param resourceGroupName The name of the resource group that contains the Batch account.
4335
- * @param accountName The name of the Batch account.
4336
- * @param poolName The pool name. This must be unique within the account.
4337
- * @param [options] The optional parameters
4338
- * @returns Promise<msRestAzure.LROPoller>
4339
- */
4340
- PoolOperations.prototype.beginDeleteMethod = function (resourceGroupName$$1, accountName$$1, poolName$$1, options) {
4341
- return this.client.sendLRORequest({
4342
- resourceGroupName: resourceGroupName$$1,
4343
- accountName: accountName$$1,
4344
- poolName: poolName$$1,
4345
- options: options
4346
- }, beginDeleteMethodOperationSpec$2, options);
4347
- };
4348
- PoolOperations.prototype.listByBatchAccountNext = function (nextPageLink$$1, options, callback) {
4349
- return this.client.sendOperationRequest({
4350
- nextPageLink: nextPageLink$$1,
4351
- options: options
4352
- }, listByBatchAccountNextOperationSpec$1, callback);
4353
- };
4354
- return PoolOperations;
4355
- }());
4356
- // Operation Specifications
4357
- var serializer$6 = new msRest.Serializer(Mappers$6);
4358
- var listByBatchAccountOperationSpec$1 = {
4359
- httpMethod: "GET",
4360
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools",
4361
- urlParameters: [
4362
- resourceGroupName,
4363
- accountName,
4364
- subscriptionId
4365
- ],
4366
- queryParameters: [
4367
- maxresults,
4368
- select,
4369
- filter,
4370
- apiVersion
4371
- ],
4372
- headerParameters: [
4373
- acceptLanguage
4374
- ],
4375
- responses: {
4376
- 200: {
4377
- bodyMapper: ListPoolsResult
4378
- },
4379
- default: {
4380
- bodyMapper: CloudError
4381
- }
4382
- },
4383
- serializer: serializer$6
4384
- };
4385
- var updateOperationSpec$3 = {
4386
- httpMethod: "PATCH",
4387
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
4388
- urlParameters: [
4389
- resourceGroupName,
4390
- accountName,
4391
- poolName,
4392
- subscriptionId
4393
- ],
4394
- queryParameters: [
4395
- apiVersion
4396
- ],
4397
- headerParameters: [
4398
- ifMatch,
4399
- acceptLanguage
4400
- ],
4401
- requestBody: {
4402
- parameterPath: "parameters",
4403
- mapper: __assign({}, Pool, { required: true })
4404
- },
4405
- responses: {
4406
- 200: {
4407
- bodyMapper: Pool,
4408
- headersMapper: PoolUpdateHeaders
4409
- },
4410
- default: {
4411
- bodyMapper: CloudError
4412
- }
4413
- },
4414
- serializer: serializer$6
4415
- };
4416
- var getOperationSpec$4 = {
4417
- httpMethod: "GET",
4418
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
4419
- urlParameters: [
4420
- resourceGroupName,
4421
- accountName,
4422
- poolName,
4423
- subscriptionId
4424
- ],
4425
- queryParameters: [
4426
- apiVersion
4427
- ],
4428
- headerParameters: [
4429
- acceptLanguage
4430
- ],
4431
- responses: {
4432
- 200: {
4433
- bodyMapper: Pool,
4434
- headersMapper: PoolGetHeaders
4435
- },
4436
- default: {
4437
- bodyMapper: CloudError
4438
- }
4439
- },
4440
- serializer: serializer$6
4441
- };
4442
- var disableAutoScaleOperationSpec = {
4443
- httpMethod: "POST",
4444
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale",
4445
- urlParameters: [
4446
- resourceGroupName,
4447
- accountName,
4448
- poolName,
4449
- subscriptionId
4450
- ],
4451
- queryParameters: [
4452
- apiVersion
4453
- ],
4454
- headerParameters: [
4455
- acceptLanguage
4456
- ],
4457
- responses: {
4458
- 200: {
4459
- bodyMapper: Pool,
4460
- headersMapper: PoolDisableAutoScaleHeaders
4461
- },
4462
- default: {
4463
- bodyMapper: CloudError
4464
- }
4465
- },
4466
- serializer: serializer$6
4467
- };
4468
- var stopResizeOperationSpec = {
4469
- httpMethod: "POST",
4470
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize",
4471
- urlParameters: [
4472
- resourceGroupName,
4473
- accountName,
4474
- poolName,
4475
- subscriptionId
4476
- ],
4477
- queryParameters: [
4478
- apiVersion
4479
- ],
4480
- headerParameters: [
4481
- acceptLanguage
4482
- ],
4483
- responses: {
4484
- 200: {
4485
- bodyMapper: Pool,
4486
- headersMapper: PoolStopResizeHeaders
4487
- },
4488
- default: {
4489
- bodyMapper: CloudError
4490
- }
4491
- },
4492
- serializer: serializer$6
4493
- };
4494
- var beginCreateOperationSpec$2 = {
4495
- httpMethod: "PUT",
4496
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
4497
- urlParameters: [
4498
- resourceGroupName,
4499
- accountName,
4500
- poolName,
4501
- subscriptionId
4502
- ],
4503
- queryParameters: [
4504
- apiVersion
4505
- ],
4506
- headerParameters: [
4507
- ifMatch,
4508
- ifNoneMatch,
4509
- acceptLanguage
4510
- ],
4511
- requestBody: {
4512
- parameterPath: "parameters",
4513
- mapper: __assign({}, Pool, { required: true })
4514
- },
4515
- responses: {
4516
- 200: {
4517
- bodyMapper: Pool,
4518
- headersMapper: PoolCreateHeaders
4519
- },
4520
- default: {
4521
- bodyMapper: CloudError
4522
- }
4523
- },
4524
- serializer: serializer$6
4525
- };
4526
- var beginDeleteMethodOperationSpec$2 = {
4527
- httpMethod: "DELETE",
4528
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
4529
- urlParameters: [
4530
- resourceGroupName,
4531
- accountName,
4532
- poolName,
4533
- subscriptionId
4534
- ],
4535
- queryParameters: [
4536
- apiVersion
4537
- ],
4538
- headerParameters: [
4539
- acceptLanguage
4540
- ],
4541
- responses: {
4542
- 200: {
4543
- headersMapper: PoolDeleteHeaders
4544
- },
4545
- 202: {
4546
- headersMapper: PoolDeleteHeaders
4547
- },
4548
- 204: {
4549
- headersMapper: PoolDeleteHeaders
4550
- },
4551
- default: {
4552
- bodyMapper: CloudError
4553
- }
4554
- },
4555
- serializer: serializer$6
4556
- };
4557
- var listByBatchAccountNextOperationSpec$1 = {
4558
- httpMethod: "GET",
4559
- baseUrl: "https://management.azure.com",
4560
- path: "{nextLink}",
4561
- urlParameters: [
4562
- nextPageLink
4563
- ],
4564
- headerParameters: [
4565
- acceptLanguage
4566
- ],
4567
- responses: {
4568
- 200: {
4569
- bodyMapper: ListPoolsResult
4570
- },
4571
- default: {
4572
- bodyMapper: CloudError
4573
- }
4574
- },
4575
- serializer: serializer$6
4576
- };
4577
-
4578
- /*
4579
- * Copyright (c) Microsoft Corporation. All rights reserved.
4580
- * Licensed under the MIT License. See License.txt in the project root for
4581
- * license information.
4582
- *
4583
- * Code generated by Microsoft (R) AutoRest Code Generator.
4584
- * Changes may cause incorrect behavior and will be lost if the code is
4585
- * regenerated.
4586
- */
4587
-
4588
- /*
4589
- * Copyright (c) Microsoft Corporation. All rights reserved.
4590
- * Licensed under the MIT License. See License.txt in the project root for
4591
- * license information.
4592
- *
4593
- * Code generated by Microsoft (R) AutoRest Code Generator.
4594
- * Changes may cause incorrect behavior and will be lost if the code is
4595
- * regenerated.
4596
- */
4597
- var packageName = "@azure/arm-batch";
4598
- var packageVersion = "0.1.0";
4599
- var BatchManagementClientContext = /** @class */ (function (_super) {
4600
- __extends(BatchManagementClientContext, _super);
4601
- /**
4602
- * Initializes a new instance of the BatchManagementClient class.
4603
- * @param credentials Credentials needed for the client to connect to Azure.
4604
- * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
4605
- * 00000000-0000-0000-0000-000000000000)
4606
- * @param [options] The parameter options
4607
- */
4608
- function BatchManagementClientContext(credentials, subscriptionId, options) {
4609
- var _this = this;
4610
- if (credentials == undefined) {
4611
- throw new Error('\'credentials\' cannot be null.');
4612
- }
4613
- if (subscriptionId == undefined) {
4614
- throw new Error('\'subscriptionId\' cannot be null.');
4615
- }
4616
- if (!options) {
4617
- options = {};
4618
- }
4619
- if (!options.userAgent) {
4620
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4621
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
4622
- }
4623
- _this = _super.call(this, credentials, options) || this;
4624
- _this.apiVersion = '2017-09-01';
4625
- _this.acceptLanguage = 'en-US';
4626
- _this.longRunningOperationRetryTimeout = 30;
4627
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
4628
- _this.requestContentType = "application/json; charset=utf-8";
4629
- _this.credentials = credentials;
4630
- _this.subscriptionId = subscriptionId;
4631
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
4632
- _this.acceptLanguage = options.acceptLanguage;
4633
- }
4634
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
4635
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
4636
- }
4637
- return _this;
4638
- }
4639
- return BatchManagementClientContext;
4640
- }(msRestAzure.AzureServiceClient));
4641
-
4642
- /*
4643
- * Copyright (c) Microsoft Corporation. All rights reserved.
4644
- * Licensed under the MIT License. See License.txt in the project root for
4645
- * license information.
4646
- *
4647
- * Code generated by Microsoft (R) AutoRest Code Generator.
4648
- * Changes may cause incorrect behavior and will be lost if the code is
4649
- * regenerated.
4650
- */
4651
- var BatchManagementClient = /** @class */ (function (_super) {
4652
- __extends(BatchManagementClient, _super);
4653
- /**
4654
- * Initializes a new instance of the BatchManagementClient class.
4655
- * @param credentials Credentials needed for the client to connect to Azure.
4656
- * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
4657
- * 00000000-0000-0000-0000-000000000000)
4658
- * @param [options] The parameter options
4659
- */
4660
- function BatchManagementClient(credentials, subscriptionId, options) {
4661
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
4662
- _this.batchAccount = new BatchAccountOperations(_this);
4663
- _this.applicationPackage = new ApplicationPackageOperations(_this);
4664
- _this.application = new ApplicationOperations(_this);
4665
- _this.location = new Location(_this);
4666
- _this.operations = new Operations(_this);
4667
- _this.certificate = new CertificateOperations(_this);
4668
- _this.pool = new PoolOperations(_this);
4669
- return _this;
4670
- }
4671
- return BatchManagementClient;
4672
- }(BatchManagementClientContext));
4673
-
4674
- exports.BatchManagementClient = BatchManagementClient;
4675
- exports.BatchManagementClientContext = BatchManagementClientContext;
4676
- exports.BatchManagementModels = index;
4677
- exports.BatchManagementMappers = mappers;
4678
- exports.BatchAccountOperations = BatchAccountOperations;
4679
- exports.ApplicationPackageOperations = ApplicationPackageOperations;
4680
- exports.ApplicationOperations = ApplicationOperations;
4681
- exports.Location = Location;
4682
- exports.Operations = Operations;
4683
- exports.CertificateOperations = CertificateOperations;
4684
- exports.PoolOperations = PoolOperations;
4685
-
4686
- Object.defineProperty(exports, '__esModule', { value: true });
4687
-
4688
- })));
4689
- //# sourceMappingURL=arm-batch.js.map