@alicloud/ehpcinstant20230701 3.2.1 → 3.3.0

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 (231) hide show
  1. package/dist/client.d.ts +91 -56
  2. package/dist/client.js +120 -56
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddImageRequest.d.ts +64 -0
  5. package/dist/models/AddImageRequest.js.map +1 -1
  6. package/dist/models/AddImageResponseBody.d.ts +12 -0
  7. package/dist/models/AddImageResponseBody.js.map +1 -1
  8. package/dist/models/AddImageShrinkRequest.d.ts +30 -0
  9. package/dist/models/AddImageShrinkRequest.js.map +1 -1
  10. package/dist/models/CreateActionPlanRequest.d.ts +64 -0
  11. package/dist/models/CreateActionPlanRequest.js.map +1 -1
  12. package/dist/models/CreateActionPlanResponseBody.d.ts +6 -0
  13. package/dist/models/CreateActionPlanResponseBody.js.map +1 -1
  14. package/dist/models/CreateActionPlanShrinkRequest.d.ts +47 -0
  15. package/dist/models/CreateActionPlanShrinkRequest.js.map +1 -1
  16. package/dist/models/CreateJobRequest.d.ts +337 -0
  17. package/dist/models/CreateJobRequest.js.map +1 -1
  18. package/dist/models/CreateJobResponseBody.d.ts +21 -0
  19. package/dist/models/CreateJobResponseBody.js.map +1 -1
  20. package/dist/models/CreateJobShrinkRequest.d.ts +31 -0
  21. package/dist/models/CreateJobShrinkRequest.js.map +1 -1
  22. package/dist/models/CreatePoolRequest.d.ts +18 -0
  23. package/dist/models/CreatePoolRequest.js.map +1 -1
  24. package/dist/models/CreatePoolShrinkRequest.d.ts +15 -0
  25. package/dist/models/CreatePoolShrinkRequest.js.map +1 -1
  26. package/dist/models/DeleteActionPlanRequest.d.ts +3 -0
  27. package/dist/models/DeleteActionPlanRequest.js.map +1 -1
  28. package/dist/models/DeleteActionPlanResponseBody.d.ts +3 -0
  29. package/dist/models/DeleteActionPlanResponseBody.js.map +1 -1
  30. package/dist/models/DeleteJobRecordsRequest.d.ts +18 -0
  31. package/dist/models/DeleteJobRecordsRequest.js +61 -0
  32. package/dist/models/DeleteJobRecordsRequest.js.map +1 -0
  33. package/dist/models/DeleteJobRecordsResponse.d.ts +19 -0
  34. package/dist/models/DeleteJobRecordsResponse.js +69 -0
  35. package/dist/models/DeleteJobRecordsResponse.js.map +1 -0
  36. package/dist/models/DeleteJobRecordsResponseBody.d.ts +21 -0
  37. package/dist/models/DeleteJobRecordsResponseBody.js +58 -0
  38. package/dist/models/DeleteJobRecordsResponseBody.js.map +1 -0
  39. package/dist/models/DeleteJobRecordsShrinkRequest.d.ts +18 -0
  40. package/dist/models/DeleteJobRecordsShrinkRequest.js +58 -0
  41. package/dist/models/DeleteJobRecordsShrinkRequest.js.map +1 -0
  42. package/dist/models/DeleteJobsRequest.d.ts +35 -0
  43. package/dist/models/DeleteJobsRequest.js.map +1 -1
  44. package/dist/models/DeleteJobsResponseBody.d.ts +3 -0
  45. package/dist/models/DeleteJobsResponseBody.js.map +1 -1
  46. package/dist/models/DeleteJobsShrinkRequest.d.ts +20 -0
  47. package/dist/models/DeleteJobsShrinkRequest.js.map +1 -1
  48. package/dist/models/DeletePoolRequest.d.ts +5 -0
  49. package/dist/models/DeletePoolRequest.js.map +1 -1
  50. package/dist/models/DescribeJobMetricDataRequest.d.ts +13 -0
  51. package/dist/models/DescribeJobMetricDataRequest.js.map +1 -1
  52. package/dist/models/DescribeJobMetricDataResponseBody.d.ts +9 -0
  53. package/dist/models/DescribeJobMetricDataResponseBody.js.map +1 -1
  54. package/dist/models/DescribeJobMetricDataShrinkRequest.d.ts +13 -0
  55. package/dist/models/DescribeJobMetricDataShrinkRequest.js.map +1 -1
  56. package/dist/models/DescribeJobMetricLastRequest.d.ts +10 -0
  57. package/dist/models/DescribeJobMetricLastRequest.js.map +1 -1
  58. package/dist/models/DescribeJobMetricLastResponseBody.d.ts +13 -0
  59. package/dist/models/DescribeJobMetricLastResponseBody.js.map +1 -1
  60. package/dist/models/DescribeJobMetricLastShrinkRequest.d.ts +10 -0
  61. package/dist/models/DescribeJobMetricLastShrinkRequest.js.map +1 -1
  62. package/dist/models/GetActionPlanRequest.d.ts +3 -0
  63. package/dist/models/GetActionPlanRequest.js.map +1 -1
  64. package/dist/models/GetActionPlanResponseBody.d.ts +71 -0
  65. package/dist/models/GetActionPlanResponseBody.js.map +1 -1
  66. package/dist/models/GetAppVersionsRequest.d.ts +22 -0
  67. package/dist/models/GetAppVersionsRequest.js.map +1 -1
  68. package/dist/models/GetAppVersionsResponseBody.d.ts +31 -0
  69. package/dist/models/GetAppVersionsResponseBody.js.map +1 -1
  70. package/dist/models/GetImageRequest.d.ts +25 -0
  71. package/dist/models/GetImageRequest.js.map +1 -1
  72. package/dist/models/GetImageResponseBody.d.ts +85 -0
  73. package/dist/models/GetImageResponseBody.js.map +1 -1
  74. package/dist/models/GetImageShrinkRequest.d.ts +25 -0
  75. package/dist/models/GetImageShrinkRequest.js.map +1 -1
  76. package/dist/models/GetJobRequest.d.ts +3 -0
  77. package/dist/models/GetJobRequest.js.map +1 -1
  78. package/dist/models/GetJobResponseBody.d.ts +219 -0
  79. package/dist/models/GetJobResponseBody.js.map +1 -1
  80. package/dist/models/GetPoolRequest.d.ts +5 -0
  81. package/dist/models/GetPoolRequest.js.map +1 -1
  82. package/dist/models/GetPoolResponseBody.d.ts +46 -0
  83. package/dist/models/GetPoolResponseBody.js.map +1 -1
  84. package/dist/models/ListActionPlanActivitiesRequest.d.ts +13 -0
  85. package/dist/models/ListActionPlanActivitiesRequest.js.map +1 -1
  86. package/dist/models/ListActionPlanActivitiesResponseBody.d.ts +53 -0
  87. package/dist/models/ListActionPlanActivitiesResponseBody.js.map +1 -1
  88. package/dist/models/ListActionPlansRequest.d.ts +14 -0
  89. package/dist/models/ListActionPlansRequest.js.map +1 -1
  90. package/dist/models/ListActionPlansResponseBody.d.ts +34 -0
  91. package/dist/models/ListActionPlansResponseBody.js.map +1 -1
  92. package/dist/models/ListActionPlansShrinkRequest.d.ts +14 -0
  93. package/dist/models/ListActionPlansShrinkRequest.js.map +1 -1
  94. package/dist/models/ListExecutorsRequest.d.ts +48 -0
  95. package/dist/models/ListExecutorsRequest.js +2 -0
  96. package/dist/models/ListExecutorsRequest.js.map +1 -1
  97. package/dist/models/ListExecutorsResponseBody.d.ts +159 -0
  98. package/dist/models/ListExecutorsResponseBody.js +2 -0
  99. package/dist/models/ListExecutorsResponseBody.js.map +1 -1
  100. package/dist/models/ListExecutorsShrinkRequest.d.ts +12 -0
  101. package/dist/models/ListExecutorsShrinkRequest.js.map +1 -1
  102. package/dist/models/ListImagesRequest.d.ts +48 -0
  103. package/dist/models/ListImagesRequest.js.map +1 -1
  104. package/dist/models/ListImagesResponseBody.d.ts +72 -0
  105. package/dist/models/ListImagesResponseBody.js.map +1 -1
  106. package/dist/models/ListImagesShrinkRequest.d.ts +48 -0
  107. package/dist/models/ListImagesShrinkRequest.js.map +1 -1
  108. package/dist/models/ListJobExecutorsRequest.d.ts +12 -0
  109. package/dist/models/ListJobExecutorsRequest.js.map +1 -1
  110. package/dist/models/ListJobExecutorsResponseBody.d.ts +145 -0
  111. package/dist/models/ListJobExecutorsResponseBody.js.map +1 -1
  112. package/dist/models/ListJobsRequest.d.ts +57 -0
  113. package/dist/models/ListJobsRequest.js.map +1 -1
  114. package/dist/models/ListJobsResponseBody.d.ts +85 -0
  115. package/dist/models/ListJobsResponseBody.js.map +1 -1
  116. package/dist/models/ListJobsShrinkRequest.d.ts +18 -0
  117. package/dist/models/ListJobsShrinkRequest.js.map +1 -1
  118. package/dist/models/ListPoolsRequest.d.ts +24 -0
  119. package/dist/models/ListPoolsRequest.js.map +1 -1
  120. package/dist/models/ListPoolsResponseBody.d.ts +43 -0
  121. package/dist/models/ListPoolsResponseBody.js.map +1 -1
  122. package/dist/models/ListPoolsShrinkRequest.d.ts +10 -0
  123. package/dist/models/ListPoolsShrinkRequest.js.map +1 -1
  124. package/dist/models/ListTagResourcesRequest.d.ts +25 -0
  125. package/dist/models/ListTagResourcesRequest.js.map +1 -1
  126. package/dist/models/ListTagResourcesResponseBody.d.ts +22 -0
  127. package/dist/models/ListTagResourcesResponseBody.js.map +1 -1
  128. package/dist/models/RemoveImageRequest.d.ts +12 -0
  129. package/dist/models/RemoveImageRequest.js.map +1 -1
  130. package/dist/models/RemoveImageResponseBody.d.ts +9 -0
  131. package/dist/models/RemoveImageResponseBody.js.map +1 -1
  132. package/dist/models/SynchronizeAppRequest.d.ts +6 -0
  133. package/dist/models/SynchronizeAppRequest.js.map +1 -1
  134. package/dist/models/SynchronizeAppResponseBody.d.ts +3 -0
  135. package/dist/models/SynchronizeAppResponseBody.js.map +1 -1
  136. package/dist/models/SynchronizeAppShrinkRequest.d.ts +6 -0
  137. package/dist/models/SynchronizeAppShrinkRequest.js.map +1 -1
  138. package/dist/models/TagResourcesRequest.d.ts +14 -0
  139. package/dist/models/TagResourcesRequest.js.map +1 -1
  140. package/dist/models/TagResourcesResponseBody.d.ts +3 -0
  141. package/dist/models/TagResourcesResponseBody.js.map +1 -1
  142. package/dist/models/UnTagResourcesRequest.d.ts +14 -0
  143. package/dist/models/UnTagResourcesRequest.js.map +1 -1
  144. package/dist/models/UnTagResourcesResponseBody.d.ts +3 -0
  145. package/dist/models/UnTagResourcesResponseBody.js.map +1 -1
  146. package/dist/models/UpdateActionPlanRequest.d.ts +17 -0
  147. package/dist/models/UpdateActionPlanRequest.js.map +1 -1
  148. package/dist/models/UpdateActionPlanResponseBody.d.ts +3 -0
  149. package/dist/models/UpdateActionPlanResponseBody.js.map +1 -1
  150. package/dist/models/UpdatePoolRequest.d.ts +18 -0
  151. package/dist/models/UpdatePoolRequest.js.map +1 -1
  152. package/dist/models/UpdatePoolShrinkRequest.d.ts +15 -0
  153. package/dist/models/UpdatePoolShrinkRequest.js.map +1 -1
  154. package/dist/models/model.d.ts +4 -0
  155. package/dist/models/model.js +11 -3
  156. package/dist/models/model.js.map +1 -1
  157. package/package.json +1 -1
  158. package/src/client.ts +124 -56
  159. package/src/models/AddImageRequest.ts +64 -0
  160. package/src/models/AddImageResponseBody.ts +12 -0
  161. package/src/models/AddImageShrinkRequest.ts +30 -0
  162. package/src/models/CreateActionPlanRequest.ts +64 -0
  163. package/src/models/CreateActionPlanResponseBody.ts +6 -0
  164. package/src/models/CreateActionPlanShrinkRequest.ts +47 -0
  165. package/src/models/CreateJobRequest.ts +337 -0
  166. package/src/models/CreateJobResponseBody.ts +21 -0
  167. package/src/models/CreateJobShrinkRequest.ts +31 -0
  168. package/src/models/CreatePoolRequest.ts +18 -0
  169. package/src/models/CreatePoolShrinkRequest.ts +15 -0
  170. package/src/models/DeleteActionPlanRequest.ts +3 -0
  171. package/src/models/DeleteActionPlanResponseBody.ts +3 -0
  172. package/src/models/DeleteJobRecordsRequest.ts +34 -0
  173. package/src/models/DeleteJobRecordsResponse.ts +40 -0
  174. package/src/models/DeleteJobRecordsResponseBody.ts +34 -0
  175. package/src/models/DeleteJobRecordsShrinkRequest.ts +31 -0
  176. package/src/models/DeleteJobsRequest.ts +35 -0
  177. package/src/models/DeleteJobsResponseBody.ts +3 -0
  178. package/src/models/DeleteJobsShrinkRequest.ts +20 -0
  179. package/src/models/DeletePoolRequest.ts +5 -0
  180. package/src/models/DescribeJobMetricDataRequest.ts +13 -0
  181. package/src/models/DescribeJobMetricDataResponseBody.ts +9 -0
  182. package/src/models/DescribeJobMetricDataShrinkRequest.ts +13 -0
  183. package/src/models/DescribeJobMetricLastRequest.ts +10 -0
  184. package/src/models/DescribeJobMetricLastResponseBody.ts +13 -0
  185. package/src/models/DescribeJobMetricLastShrinkRequest.ts +10 -0
  186. package/src/models/GetActionPlanRequest.ts +3 -0
  187. package/src/models/GetActionPlanResponseBody.ts +71 -0
  188. package/src/models/GetAppVersionsRequest.ts +22 -0
  189. package/src/models/GetAppVersionsResponseBody.ts +31 -0
  190. package/src/models/GetImageRequest.ts +25 -0
  191. package/src/models/GetImageResponseBody.ts +85 -0
  192. package/src/models/GetImageShrinkRequest.ts +25 -0
  193. package/src/models/GetJobRequest.ts +3 -0
  194. package/src/models/GetJobResponseBody.ts +219 -0
  195. package/src/models/GetPoolRequest.ts +5 -0
  196. package/src/models/GetPoolResponseBody.ts +46 -0
  197. package/src/models/ListActionPlanActivitiesRequest.ts +13 -0
  198. package/src/models/ListActionPlanActivitiesResponseBody.ts +53 -0
  199. package/src/models/ListActionPlansRequest.ts +14 -0
  200. package/src/models/ListActionPlansResponseBody.ts +34 -0
  201. package/src/models/ListActionPlansShrinkRequest.ts +14 -0
  202. package/src/models/ListExecutorsRequest.ts +50 -0
  203. package/src/models/ListExecutorsResponseBody.ts +161 -0
  204. package/src/models/ListExecutorsShrinkRequest.ts +12 -0
  205. package/src/models/ListImagesRequest.ts +48 -0
  206. package/src/models/ListImagesResponseBody.ts +72 -0
  207. package/src/models/ListImagesShrinkRequest.ts +48 -0
  208. package/src/models/ListJobExecutorsRequest.ts +12 -0
  209. package/src/models/ListJobExecutorsResponseBody.ts +145 -0
  210. package/src/models/ListJobsRequest.ts +57 -0
  211. package/src/models/ListJobsResponseBody.ts +85 -0
  212. package/src/models/ListJobsShrinkRequest.ts +18 -0
  213. package/src/models/ListPoolsRequest.ts +24 -0
  214. package/src/models/ListPoolsResponseBody.ts +43 -0
  215. package/src/models/ListPoolsShrinkRequest.ts +10 -0
  216. package/src/models/ListTagResourcesRequest.ts +25 -0
  217. package/src/models/ListTagResourcesResponseBody.ts +22 -0
  218. package/src/models/RemoveImageRequest.ts +12 -0
  219. package/src/models/RemoveImageResponseBody.ts +9 -0
  220. package/src/models/SynchronizeAppRequest.ts +6 -0
  221. package/src/models/SynchronizeAppResponseBody.ts +3 -0
  222. package/src/models/SynchronizeAppShrinkRequest.ts +6 -0
  223. package/src/models/TagResourcesRequest.ts +14 -0
  224. package/src/models/TagResourcesResponseBody.ts +3 -0
  225. package/src/models/UnTagResourcesRequest.ts +14 -0
  226. package/src/models/UnTagResourcesResponseBody.ts +3 -0
  227. package/src/models/UpdateActionPlanRequest.ts +17 -0
  228. package/src/models/UpdateActionPlanResponseBody.ts +3 -0
  229. package/src/models/UpdatePoolRequest.ts +18 -0
  230. package/src/models/UpdatePoolShrinkRequest.ts +15 -0
  231. package/src/models/model.ts +4 -0
@@ -5,9 +5,28 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateJobRequestDependencyPolicyJobDependency extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
+ * The ID of the job.
9
+ *
8
10
  * This parameter is required.
11
+ *
12
+ * @example
13
+ * job-bjxxxxxxxxxxxx
9
14
  */
10
15
  jobId?: string;
16
+ /**
17
+ * @remarks
18
+ * The type of the dependency. Valid values:
19
+ *
20
+ * * AfterSucceeded: **All subtasks** of the dependent job or array job succeed. The exit code is 0.
21
+ * * AfterFailed: **All subtasks** of the dependent job or array job fail. The exit code is not 0.
22
+ * * AfterAny: The dependent job completes (succeeds or fails).
23
+ * * AfterCorresponding: The subtask corresponding to the dependent array job succeeds. The exit code is 0.
24
+ *
25
+ * Default value: AfterSucceeded.
26
+ *
27
+ * @example
28
+ * AfterSucceeded
29
+ */
11
30
  type?: string;
12
31
  static names(): { [key: string]: string } {
13
32
  return {
@@ -33,6 +52,10 @@ export class CreateJobRequestDependencyPolicyJobDependency extends $dara.Model {
33
52
  }
34
53
 
35
54
  export class CreateJobRequestDependencyPolicy extends $dara.Model {
55
+ /**
56
+ * @remarks
57
+ * The job dependency. A maximum of 10 groups.
58
+ */
36
59
  jobDependency?: CreateJobRequestDependencyPolicyJobDependency[];
37
60
  static names(): { [key: string]: string } {
38
61
  return {
@@ -59,7 +82,23 @@ export class CreateJobRequestDependencyPolicy extends $dara.Model {
59
82
  }
60
83
 
61
84
  export class CreateJobRequestDeploymentPolicyNetwork extends $dara.Model {
85
+ /**
86
+ * @remarks
87
+ * Whether the job creates a public IP address.
88
+ *
89
+ * * true: creates a public IP address.
90
+ * * false: does not create a public IP address.
91
+ *
92
+ * Default value: false.
93
+ *
94
+ * @example
95
+ * true
96
+ */
62
97
  enableExternalIpAddress?: boolean;
98
+ /**
99
+ * @remarks
100
+ * The VSwitch array.
101
+ */
63
102
  vswitch?: string[];
64
103
  static names(): { [key: string]: string } {
65
104
  return {
@@ -90,9 +129,21 @@ export class CreateJobRequestDeploymentPolicyNetwork extends $dara.Model {
90
129
  export class CreateJobRequestDeploymentPolicyTag extends $dara.Model {
91
130
  /**
92
131
  * @remarks
132
+ * The key of the job tag. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.
133
+ *
93
134
  * This parameter is required.
135
+ *
136
+ * @example
137
+ * TestKey
94
138
  */
95
139
  key?: string;
140
+ /**
141
+ * @remarks
142
+ * The value of the job tag. You can specify empty strings as tag values. The tag value can be up to 128 characters in length and cannot contain http:// or https://.
143
+ *
144
+ * @example
145
+ * TestValue
146
+ */
96
147
  value?: string;
97
148
  static names(): { [key: string]: string } {
98
149
  return {
@@ -119,14 +170,55 @@ export class CreateJobRequestDeploymentPolicyTag extends $dara.Model {
119
170
 
120
171
  export class CreateJobRequestDeploymentPolicy extends $dara.Model {
121
172
  /**
173
+ * @remarks
174
+ * The resource type,
175
+ *
176
+ * * Standard
177
+ * * Dedicated: You must enable a whitelist for use.
178
+ * * Economic: You must enable a whitelist for use.
179
+ *
122
180
  * @example
123
181
  * Dedicated
124
182
  */
125
183
  allocationSpec?: string;
184
+ /**
185
+ * @remarks
186
+ * The computing power level. This value is valid only when the resource type is Economic. The following disk categories are supported:
187
+ *
188
+ * * General
189
+ * * Performance
190
+ *
191
+ * Default value: General.
192
+ *
193
+ * @example
194
+ * General
195
+ */
126
196
  level?: string;
197
+ /**
198
+ * @remarks
199
+ * The network configuration information.
200
+ */
127
201
  network?: CreateJobRequestDeploymentPolicyNetwork;
202
+ /**
203
+ * @remarks
204
+ * The resource pool of the job.
205
+ *
206
+ * @example
207
+ * compute
208
+ */
128
209
  pool?: string;
210
+ /**
211
+ * @remarks
212
+ * The priorities of the jobs. A larger value indicates a higher job scheduling priority. Valid values: 1 to 100.
213
+ *
214
+ * @example
215
+ * 1
216
+ */
129
217
  priority?: number;
218
+ /**
219
+ * @remarks
220
+ * The tag information of the job. A maximum of 20 groups.
221
+ */
130
222
  tag?: CreateJobRequestDeploymentPolicyTag[];
131
223
  static names(): { [key: string]: string } {
132
224
  return {
@@ -166,6 +258,10 @@ export class CreateJobRequestDeploymentPolicy extends $dara.Model {
166
258
  }
167
259
 
168
260
  export class CreateJobRequestSecurityPolicySecurityGroup extends $dara.Model {
261
+ /**
262
+ * @remarks
263
+ * The array of security group IDs.
264
+ */
169
265
  securityGroupIds?: string[];
170
266
  static names(): { [key: string]: string } {
171
267
  return {
@@ -192,6 +288,10 @@ export class CreateJobRequestSecurityPolicySecurityGroup extends $dara.Model {
192
288
  }
193
289
 
194
290
  export class CreateJobRequestSecurityPolicy extends $dara.Model {
291
+ /**
292
+ * @remarks
293
+ * The security group ID.
294
+ */
195
295
  securityGroup?: CreateJobRequestSecurityPolicySecurityGroup;
196
296
  static names(): { [key: string]: string } {
197
297
  return {
@@ -219,16 +319,27 @@ export class CreateJobRequestSecurityPolicy extends $dara.Model {
219
319
 
220
320
  export class CreateJobRequestTasksExecutorPolicyArraySpec extends $dara.Model {
221
321
  /**
322
+ * @remarks
323
+ * The end value of the array job index. Valid values: 0 to 4999. The value must be greater than or equal to the value of IndexStart.
324
+ *
222
325
  * @example
223
326
  * 9
224
327
  */
225
328
  indexEnd?: number;
226
329
  /**
330
+ * @remarks
331
+ * The starting value of the array job index. Valid values: 0 to 4999.
332
+ *
227
333
  * @example
228
334
  * 0
229
335
  */
230
336
  indexStart?: number;
231
337
  /**
338
+ * @remarks
339
+ * The interval of the array job index.
340
+ *
341
+ * > If the array job property is IndexStart=1,IndexEnd=5, and IndexStep=2, the array job contains three sub-jobs. The index values of the sub-jobs are 1,3, and 5. You can access the sub-jobs by using environment variables.
342
+ *
232
343
  * @example
233
344
  * 1
234
345
  */
@@ -259,8 +370,27 @@ export class CreateJobRequestTasksExecutorPolicyArraySpec extends $dara.Model {
259
370
  }
260
371
 
261
372
  export class CreateJobRequestTasksExecutorPolicy extends $dara.Model {
373
+ /**
374
+ * @remarks
375
+ * The details of the array job. The index value of the sub-job is passed to the running environment through environment variables to support user business program reference. Environment variables include:
376
+ *
377
+ * * EHPC_JOB_NAME: the name of the job. This parameter corresponds to the JobName parameter.
378
+ * * EHPC_JOB_ID: The ID of the job.
379
+ * * EHPC_TASK_NAME: the name of the task. This parameter corresponds to the TaskName parameter.
380
+ * * EHPC_EXECUTOR_ID: The ID of the execution unit.
381
+ * * EHPC_ARRAY_TASK_ID: the sub-job index value.
382
+ * * EHPC_ARRAY_TASK_COUNT: the total number of sub-jobs.
383
+ * * EHPC_ARRAY_TASK_MAX: the maximum sub-job index, which corresponds to the IndexStart parameter.
384
+ * * EHPC_ARRAY_TASK_MIN: the minimum value of the sub-job index, which corresponds to the IndexEnd parameter.
385
+ * * EHPC_ARRAY_TASK_STEP: the index step size of the sub-job, which corresponds to the IndexStep parameter.
386
+ */
262
387
  arraySpec?: CreateJobRequestTasksExecutorPolicyArraySpec;
263
388
  /**
389
+ * @remarks
390
+ * The maximum number of nodes to run the job.
391
+ *
392
+ * > Follow the calculation formula: `MaxCount = (IndexEnd - IndexStart) / IndexStep +1`
393
+ *
264
394
  * @example
265
395
  * 1
266
396
  */
@@ -293,11 +423,17 @@ export class CreateJobRequestTasksExecutorPolicy extends $dara.Model {
293
423
 
294
424
  export class CreateJobRequestTasksTaskSpecResourceDisks extends $dara.Model {
295
425
  /**
426
+ * @remarks
427
+ * The size of the disk. Unit: GiB.
428
+ *
296
429
  * @example
297
430
  * 40
298
431
  */
299
432
  size?: number;
300
433
  /**
434
+ * @remarks
435
+ * The type of the disk. Currently, only System is supported, which indicates the system disk.
436
+ *
301
437
  * @example
302
438
  * System
303
439
  */
@@ -327,15 +463,29 @@ export class CreateJobRequestTasksTaskSpecResourceDisks extends $dara.Model {
327
463
 
328
464
  export class CreateJobRequestTasksTaskSpecResource extends $dara.Model {
329
465
  /**
466
+ * @remarks
467
+ * The number of CPUs in the running environment.
468
+ *
330
469
  * @example
331
470
  * 2
332
471
  */
333
472
  cores?: number;
473
+ /**
474
+ * @remarks
475
+ * The array of the disks.
476
+ */
334
477
  disks?: CreateJobRequestTasksTaskSpecResourceDisks[];
335
478
  enableHT?: boolean;
336
479
  hostNamePrefix?: string;
480
+ /**
481
+ * @remarks
482
+ * The instance type of the running environment. A maximum of 5 groups.
483
+ */
337
484
  instanceTypes?: string[];
338
485
  /**
486
+ * @remarks
487
+ * The memory size of the running environment. Unit: GiB.
488
+ *
339
489
  * @example
340
490
  * 4
341
491
  */
@@ -380,12 +530,25 @@ export class CreateJobRequestTasksTaskSpecResource extends $dara.Model {
380
530
  export class CreateJobRequestTasksTaskSpecRetryPolicyExitCodeActions extends $dara.Model {
381
531
  /**
382
532
  * @remarks
533
+ * The next step behavior of the task.
534
+ *
535
+ * * Retry: The job starts a retry when a specific exit code is hit.
536
+ * * Exit: The job exits when a specific exit code is hit.
537
+ *
383
538
  * This parameter is required.
539
+ *
540
+ * @example
541
+ * Retry
384
542
  */
385
543
  action?: string;
386
544
  /**
387
545
  * @remarks
546
+ * The task exit code, which is used together with the action to form a job retry rule. Valid values: 0 to 255.
547
+ *
388
548
  * This parameter is required.
549
+ *
550
+ * @example
551
+ * 1
389
552
  */
390
553
  exitCode?: number;
391
554
  static names(): { [key: string]: string } {
@@ -412,7 +575,18 @@ export class CreateJobRequestTasksTaskSpecRetryPolicyExitCodeActions extends $da
412
575
  }
413
576
 
414
577
  export class CreateJobRequestTasksTaskSpecRetryPolicy extends $dara.Model {
578
+ /**
579
+ * @remarks
580
+ * The retry rule. A maximum of 10 groups.
581
+ */
415
582
  exitCodeActions?: CreateJobRequestTasksTaskSpecRetryPolicyExitCodeActions[];
583
+ /**
584
+ * @remarks
585
+ * The maximum number of retries. Valid values: 1 to 10. Default value: 3.
586
+ *
587
+ * @example
588
+ * 5
589
+ */
416
590
  retryCount?: number;
417
591
  static names(): { [key: string]: string } {
418
592
  return {
@@ -442,11 +616,17 @@ export class CreateJobRequestTasksTaskSpecRetryPolicy extends $dara.Model {
442
616
 
443
617
  export class CreateJobRequestTasksTaskSpecTaskExecutorContainerEnvironmentVars extends $dara.Model {
444
618
  /**
619
+ * @remarks
620
+ * The name of the environment variable for the container. It can be 1 to 128 characters in length. Format requirement: [0-9a-zA-Z], and underscores, cannot start with a number.
621
+ *
445
622
  * @example
446
623
  * PATH
447
624
  */
448
625
  name?: string;
449
626
  /**
627
+ * @remarks
628
+ * The value of the environment variable for the container. The value must be 0 to 256 bits in length.
629
+ *
450
630
  * @example
451
631
  * /usr/local/bin
452
632
  */
@@ -475,12 +655,39 @@ export class CreateJobRequestTasksTaskSpecTaskExecutorContainerEnvironmentVars e
475
655
  }
476
656
 
477
657
  export class CreateJobRequestTasksTaskSpecTaskExecutorContainer extends $dara.Model {
658
+ /**
659
+ * @remarks
660
+ * The application ID.
661
+ *
662
+ * @example
663
+ * ci-vm-32k6LXAi3cOG
664
+ */
478
665
  appId?: string;
666
+ /**
667
+ * @remarks
668
+ * The startup argument of the init container. A maximum of 10 groups.
669
+ */
479
670
  arg?: string[];
671
+ /**
672
+ * @remarks
673
+ * The container startup commands. You can specify up to 20 commands. Each command can be up to 256 characters in length.
674
+ *
675
+ * >
676
+ *
677
+ * * If the start command contains spaces (for example, `sleep 60s` ), the input JSON format parameter is `["sleep", "60s"]`.
678
+ *
679
+ * * If the startup command is complex, the parameter format may be a combination of `Command: ["/bin/bash"]` and `Arg:["-c", "<customized command>"]`. The `<customized command>` is a user-defined combination of commands and can contain characters such as spaces.
680
+ */
480
681
  command?: string[];
682
+ /**
683
+ * @remarks
684
+ * The environment variables of the container. A maximum of 20 groups.
685
+ */
481
686
  environmentVars?: CreateJobRequestTasksTaskSpecTaskExecutorContainerEnvironmentVars[];
482
687
  /**
483
688
  * @remarks
689
+ * The image of the container.
690
+ *
484
691
  * This parameter is required.
485
692
  *
486
693
  * @example
@@ -488,6 +695,9 @@ export class CreateJobRequestTasksTaskSpecTaskExecutorContainer extends $dara.Mo
488
695
  */
489
696
  image?: string;
490
697
  /**
698
+ * @remarks
699
+ * The working directory of the container.
700
+ *
491
701
  * @example
492
702
  * /usr/local/
493
703
  */
@@ -533,22 +743,48 @@ export class CreateJobRequestTasksTaskSpecTaskExecutorContainer extends $dara.Mo
533
743
  }
534
744
 
535
745
  export class CreateJobRequestTasksTaskSpecTaskExecutorVM extends $dara.Model {
746
+ /**
747
+ * @remarks
748
+ * The ID of the virtual machine application.
749
+ *
750
+ * @example
751
+ * ci-vm-9jc58Pm5Leky
752
+ */
536
753
  appId?: string;
537
754
  /**
538
755
  * @remarks
756
+ * The ID of the image.
757
+ *
539
758
  * This parameter is required.
540
759
  *
541
760
  * @example
542
761
  * m-xxxx
543
762
  */
544
763
  image?: string;
764
+ /**
765
+ * @remarks
766
+ * The logon password of the virtual machine environment. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported:
767
+ *
768
+ * ()\\`~!@#$%^&\\*-_+=|{}[]:;\\"<>,.?/ In Windows, the password cannot contain a forward slash (/) as the first character.
769
+ *
770
+ * > We recommend that you use HTTPS to send requests if you specify Password to avoid password leakage.
771
+ *
772
+ * @example
773
+ * EHPC@1234
774
+ */
545
775
  password?: string;
546
776
  /**
777
+ * @remarks
778
+ * The pre-processing script. Base64 encoding is required.
779
+ *
547
780
  * @example
548
781
  * ZWNobyBoZWxsbyBlY3Mh
549
782
  */
550
783
  prologScript?: string;
551
784
  /**
785
+ * @remarks
786
+ * The running-job script. Base64 encoding is required.
787
+ *
552
788
  * @example
553
789
  * ZWNobyBoZWxsbyBlY3Mh
554
790
  */
@@ -583,7 +819,15 @@ export class CreateJobRequestTasksTaskSpecTaskExecutorVM extends $dara.Model {
583
819
  }
584
820
 
585
821
  export class CreateJobRequestTasksTaskSpecTaskExecutor extends $dara.Model {
822
+ /**
823
+ * @remarks
824
+ * Use the container environment.
825
+ */
586
826
  container?: CreateJobRequestTasksTaskSpecTaskExecutorContainer;
827
+ /**
828
+ * @remarks
829
+ * Use a virtual machine environment.
830
+ */
587
831
  VM?: CreateJobRequestTasksTaskSpecTaskExecutorVM;
588
832
  static names(): { [key: string]: string } {
589
833
  return {
@@ -616,17 +860,46 @@ export class CreateJobRequestTasksTaskSpecTaskExecutor extends $dara.Model {
616
860
 
617
861
  export class CreateJobRequestTasksTaskSpecVolumeMount extends $dara.Model {
618
862
  /**
863
+ * @remarks
864
+ * The list of data volume mount parameters. Each option is a key-value pair in a JSON string.
865
+ *
866
+ * * Format for mounting a NAS file system:{"server":"xxxxx-xxxxx.cn-heyuan.nas.aliyuncs.com","vers":"3","path":"/data","options":"nolock,tcp,noresvport"}
867
+ *
868
+ * > server indicates the address of the mount point of the NAS file system. path indicates the subdirectory of the NAS file system. The subdirectory must start with a (/) and must already exist. vers indicates the version number of the NFS protocol used to mount the file system. We recommend that you use v3. options indicates the custom parameters in the format of "xxx,xxx,xxx".
869
+ *
870
+ * * OSS mount format:{"bucket":"xxxxx", "url":"oss-cn-heyuan-internal.aliyuncs.com","path":"/data","akId":"xxxxx","akSecret":"xxxxx"}
871
+ *
872
+ * > bucket indicates the name of the OSS bucket. url indicates the endpoint of the OSS bucket. You can log on to the OSS console and obtain the endpoint on the Overview page of the destination bucket. path indicates the directory structure of the root file of the bucket. The default value is /, which requires that the directory already exists. akId indicates the AccessKey ID. akSecret indicates the AccessKey secret.
873
+ *
619
874
  * @example
620
875
  * {"server":"xxxxx-xxxxx.cn-heyuan.nas.aliyuncs.com","vers":"3","path":"/data","options":"nolock,tcp,noresvport"}
621
876
  */
622
877
  mountOptions?: string;
623
878
  /**
879
+ * @remarks
880
+ * The directory where the task mounts the data volume.
881
+ *
882
+ * > The content of the mounted directory is overwritten by the content of the volume. Exercise caution when you use the directory.
883
+ *
624
884
  * @example
625
885
  * /mnt
626
886
  */
627
887
  mountPath?: string;
888
+ /**
889
+ * @remarks
890
+ * Specifies whether the volume is read-only. Default value: false.
891
+ *
892
+ * @example
893
+ * false
894
+ */
628
895
  readOnly?: boolean;
629
896
  /**
897
+ * @remarks
898
+ * Currently supported data volume types.
899
+ *
900
+ * * alicloud/nas: mounts NAS.
901
+ * * alicloud/oss: mounts OSS.
902
+ *
630
903
  * @example
631
904
  * alicloud/nas
632
905
  */
@@ -659,13 +932,27 @@ export class CreateJobRequestTasksTaskSpecVolumeMount extends $dara.Model {
659
932
  }
660
933
 
661
934
  export class CreateJobRequestTasksTaskSpec extends $dara.Model {
935
+ /**
936
+ * @remarks
937
+ * The resource information of the running environment.
938
+ */
662
939
  resource?: CreateJobRequestTasksTaskSpecResource;
940
+ /**
941
+ * @remarks
942
+ * Task retry policy.
943
+ */
663
944
  retryPolicy?: CreateJobRequestTasksTaskSpecRetryPolicy;
664
945
  /**
665
946
  * @remarks
947
+ * The task execution configurations.
948
+ *
666
949
  * This parameter is required.
667
950
  */
668
951
  taskExecutor?: CreateJobRequestTasksTaskSpecTaskExecutor[];
952
+ /**
953
+ * @remarks
954
+ * The list of data volumes mounted to the task. A maximum of 10 groups.
955
+ */
669
956
  volumeMount?: CreateJobRequestTasksTaskSpecVolumeMount[];
670
957
  static names(): { [key: string]: string } {
671
958
  return {
@@ -707,14 +994,33 @@ export class CreateJobRequestTasksTaskSpec extends $dara.Model {
707
994
  }
708
995
 
709
996
  export class CreateJobRequestTasks extends $dara.Model {
997
+ /**
998
+ * @remarks
999
+ * The task execution policy.
1000
+ */
710
1001
  executorPolicy?: CreateJobRequestTasksExecutorPolicy;
711
1002
  /**
1003
+ * @remarks
1004
+ * The job name. It must be 2 to 32 characters in length and can contain letters, digits, and Chinese characters. It can contain hyphens (-) and underscores (_).
1005
+ *
712
1006
  * @example
713
1007
  * task0
714
1008
  */
715
1009
  taskName?: string;
1010
+ /**
1011
+ * @remarks
1012
+ * The details of the task specification.
1013
+ */
716
1014
  taskSpec?: CreateJobRequestTasksTaskSpec;
717
1015
  /**
1016
+ * @remarks
1017
+ * Indicate whether the job is a long-running job.
1018
+ *
1019
+ * * true: background service the job.
1020
+ * * false: batch jobs.
1021
+ *
1022
+ * Default value: false.
1023
+ *
718
1024
  * @example
719
1025
  * true
720
1026
  */
@@ -753,25 +1059,56 @@ export class CreateJobRequestTasks extends $dara.Model {
753
1059
  }
754
1060
 
755
1061
  export class CreateJobRequest extends $dara.Model {
1062
+ /**
1063
+ * @remarks
1064
+ * Dependency policy.
1065
+ */
756
1066
  dependencyPolicy?: CreateJobRequestDependencyPolicy;
1067
+ /**
1068
+ * @remarks
1069
+ * The resource deployment policy.
1070
+ */
757
1071
  deploymentPolicy?: CreateJobRequestDeploymentPolicy;
758
1072
  /**
1073
+ * @remarks
1074
+ * The description of the job.
1075
+ *
759
1076
  * @example
760
1077
  * Demo
761
1078
  */
762
1079
  jobDescription?: string;
763
1080
  /**
764
1081
  * @remarks
1082
+ * The job name. The name must be 2 to 64 characters in length and can contain letters, digits, and Chinese characters. It can contain hyphens (-) and underscores (_).
1083
+ *
765
1084
  * This parameter is required.
766
1085
  *
767
1086
  * @example
768
1087
  * testjob
769
1088
  */
770
1089
  jobName?: string;
1090
+ /**
1091
+ * @remarks
1092
+ * The type of the job scheduler.
1093
+ *
1094
+ * * HPC
1095
+ * * K8S
1096
+ *
1097
+ * Default value: HPC
1098
+ *
1099
+ * @example
1100
+ * HPC
1101
+ */
771
1102
  jobScheduler?: string;
1103
+ /**
1104
+ * @remarks
1105
+ * The security policy.
1106
+ */
772
1107
  securityPolicy?: CreateJobRequestSecurityPolicy;
773
1108
  /**
774
1109
  * @remarks
1110
+ * The list of tasks. Only one task is supported.
1111
+ *
775
1112
  * This parameter is required.
776
1113
  */
777
1114
  tasks?: CreateJobRequestTasks[];
@@ -3,7 +3,18 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateJobResponseBodyTasks extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The list of executor IDs contained in the task.
9
+ */
6
10
  executorIds?: string[];
11
+ /**
12
+ * @remarks
13
+ * The name of the task.
14
+ *
15
+ * @example
16
+ * task0
17
+ */
7
18
  taskName?: string;
8
19
  static names(): { [key: string]: string } {
9
20
  return {
@@ -33,15 +44,25 @@ export class CreateJobResponseBodyTasks extends $dara.Model {
33
44
 
34
45
  export class CreateJobResponseBody extends $dara.Model {
35
46
  /**
47
+ * @remarks
48
+ * The job ID.
49
+ *
36
50
  * @example
37
51
  * job-xxxx
38
52
  */
39
53
  jobId?: string;
40
54
  /**
55
+ * @remarks
56
+ * The request ID.
57
+ *
41
58
  * @example
42
59
  * 896D338C-E4F4-41EC-A154-D605E5DE****
43
60
  */
44
61
  requestId?: string;
62
+ /**
63
+ * @remarks
64
+ * The list of tasks.
65
+ */
45
66
  tasks?: CreateJobResponseBodyTasks[];
46
67
  static names(): { [key: string]: string } {
47
68
  return {
@@ -3,25 +3,56 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class CreateJobShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Dependency policy.
9
+ */
6
10
  dependencyPolicyShrink?: string;
11
+ /**
12
+ * @remarks
13
+ * The resource deployment policy.
14
+ */
7
15
  deploymentPolicyShrink?: string;
8
16
  /**
17
+ * @remarks
18
+ * The description of the job.
19
+ *
9
20
  * @example
10
21
  * Demo
11
22
  */
12
23
  jobDescription?: string;
13
24
  /**
14
25
  * @remarks
26
+ * The job name. The name must be 2 to 64 characters in length and can contain letters, digits, and Chinese characters. It can contain hyphens (-) and underscores (_).
27
+ *
15
28
  * This parameter is required.
16
29
  *
17
30
  * @example
18
31
  * testjob
19
32
  */
20
33
  jobName?: string;
34
+ /**
35
+ * @remarks
36
+ * The type of the job scheduler.
37
+ *
38
+ * * HPC
39
+ * * K8S
40
+ *
41
+ * Default value: HPC
42
+ *
43
+ * @example
44
+ * HPC
45
+ */
21
46
  jobScheduler?: string;
47
+ /**
48
+ * @remarks
49
+ * The security policy.
50
+ */
22
51
  securityPolicyShrink?: string;
23
52
  /**
24
53
  * @remarks
54
+ * The list of tasks. Only one task is supported.
55
+ *
25
56
  * This parameter is required.
26
57
  */
27
58
  tasksShrink?: string;