@alicloud/ehpcinstant20230701 3.5.1 → 4.0.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 (68) hide show
  1. package/dist/client.d.ts +32 -2
  2. package/dist/client.js +80 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateJobRequest.d.ts +1 -0
  5. package/dist/models/CreateJobRequest.js +2 -0
  6. package/dist/models/CreateJobRequest.js.map +1 -1
  7. package/dist/models/CreatePoolRequest.d.ts +6 -8
  8. package/dist/models/CreatePoolRequest.js +4 -2
  9. package/dist/models/CreatePoolRequest.js.map +1 -1
  10. package/dist/models/CreatePoolShrinkRequest.d.ts +5 -0
  11. package/dist/models/CreatePoolShrinkRequest.js +2 -0
  12. package/dist/models/CreatePoolShrinkRequest.js.map +1 -1
  13. package/dist/models/GetJobRecordDurationRequest.d.ts +13 -0
  14. package/dist/models/GetJobRecordDurationRequest.js +54 -0
  15. package/dist/models/GetJobRecordDurationRequest.js.map +1 -0
  16. package/dist/models/GetJobRecordDurationResponse.d.ts +19 -0
  17. package/dist/models/GetJobRecordDurationResponse.js +69 -0
  18. package/dist/models/GetJobRecordDurationResponse.js.map +1 -0
  19. package/dist/models/GetJobRecordDurationResponseBody.d.ts +26 -0
  20. package/dist/models/GetJobRecordDurationResponseBody.js +60 -0
  21. package/dist/models/GetJobRecordDurationResponseBody.js.map +1 -0
  22. package/dist/models/GetJobResponseBody.d.ts +5 -0
  23. package/dist/models/GetJobResponseBody.js +2 -0
  24. package/dist/models/GetJobResponseBody.js.map +1 -1
  25. package/dist/models/GetPoolResponseBody.d.ts +7 -16
  26. package/dist/models/GetPoolResponseBody.js +6 -4
  27. package/dist/models/GetPoolResponseBody.js.map +1 -1
  28. package/dist/models/ListPoolsResponseBody.d.ts +16 -8
  29. package/dist/models/ListPoolsResponseBody.js +8 -2
  30. package/dist/models/ListPoolsResponseBody.js.map +1 -1
  31. package/dist/models/ListTagResourcesResponseBody.d.ts +0 -32
  32. package/dist/models/ListTagResourcesResponseBody.js.map +1 -1
  33. package/dist/models/UpdateJobRecordDurationRequest.d.ts +21 -0
  34. package/dist/models/UpdateJobRecordDurationRequest.js +58 -0
  35. package/dist/models/UpdateJobRecordDurationRequest.js.map +1 -0
  36. package/dist/models/UpdateJobRecordDurationResponse.d.ts +19 -0
  37. package/dist/models/UpdateJobRecordDurationResponse.js +69 -0
  38. package/dist/models/UpdateJobRecordDurationResponse.js.map +1 -0
  39. package/dist/models/UpdateJobRecordDurationResponseBody.d.ts +21 -0
  40. package/dist/models/UpdateJobRecordDurationResponseBody.js +58 -0
  41. package/dist/models/UpdateJobRecordDurationResponseBody.js.map +1 -0
  42. package/dist/models/UpdatePoolRequest.d.ts +6 -8
  43. package/dist/models/UpdatePoolRequest.js +4 -2
  44. package/dist/models/UpdatePoolRequest.js.map +1 -1
  45. package/dist/models/UpdatePoolShrinkRequest.d.ts +5 -0
  46. package/dist/models/UpdatePoolShrinkRequest.js +2 -0
  47. package/dist/models/UpdatePoolShrinkRequest.js.map +1 -1
  48. package/dist/models/model.d.ts +6 -0
  49. package/dist/models/model.js +15 -2
  50. package/dist/models/model.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/client.ts +87 -2
  53. package/src/models/CreateJobRequest.ts +3 -0
  54. package/src/models/CreatePoolRequest.ts +10 -10
  55. package/src/models/CreatePoolShrinkRequest.ts +7 -0
  56. package/src/models/GetJobRecordDurationRequest.ts +24 -0
  57. package/src/models/GetJobRecordDurationResponse.ts +40 -0
  58. package/src/models/GetJobRecordDurationResponseBody.ts +41 -0
  59. package/src/models/GetJobResponseBody.ts +7 -0
  60. package/src/models/GetPoolResponseBody.ts +13 -20
  61. package/src/models/ListPoolsResponseBody.ts +24 -10
  62. package/src/models/ListTagResourcesResponseBody.ts +0 -32
  63. package/src/models/UpdateJobRecordDurationRequest.ts +34 -0
  64. package/src/models/UpdateJobRecordDurationResponse.ts +40 -0
  65. package/src/models/UpdateJobRecordDurationResponseBody.ts +34 -0
  66. package/src/models/UpdatePoolRequest.ts +10 -10
  67. package/src/models/UpdatePoolShrinkRequest.ts +7 -0
  68. package/src/models/model.ts +6 -0
@@ -0,0 +1,24 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetJobRecordDurationRequest extends $dara.Model {
6
+ static names(): { [key: string]: string } {
7
+ return {
8
+ };
9
+ }
10
+
11
+ static types(): { [key: string]: any } {
12
+ return {
13
+ };
14
+ }
15
+
16
+ validate() {
17
+ super.validate();
18
+ }
19
+
20
+ constructor(map?: { [key: string]: any }) {
21
+ super(map);
22
+ }
23
+ }
24
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetJobRecordDurationResponseBody } from "./GetJobRecordDurationResponseBody";
4
+
5
+
6
+ export class GetJobRecordDurationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetJobRecordDurationResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: GetJobRecordDurationResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetJobRecordDurationResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 30
9
+ */
10
+ jobRecordDuration?: number;
11
+ /**
12
+ * @remarks
13
+ * Id of the request
14
+ *
15
+ * @example
16
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
17
+ */
18
+ requestId?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ jobRecordDuration: 'JobRecordDuration',
22
+ requestId: 'RequestId',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ jobRecordDuration: 'number',
29
+ requestId: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
@@ -179,6 +179,11 @@ export class GetJobResponseBodyJobInfoDeploymentPolicy extends $dara.Model {
179
179
  * The network configuration information.
180
180
  */
181
181
  network?: GetJobResponseBodyJobInfoDeploymentPolicyNetwork;
182
+ /**
183
+ * @example
184
+ * testpool
185
+ */
186
+ pool?: string;
182
187
  /**
183
188
  * @remarks
184
189
  * The list of job tags.
@@ -189,6 +194,7 @@ export class GetJobResponseBodyJobInfoDeploymentPolicy extends $dara.Model {
189
194
  allocationSpec: 'AllocationSpec',
190
195
  level: 'Level',
191
196
  network: 'Network',
197
+ pool: 'Pool',
192
198
  tags: 'Tags',
193
199
  };
194
200
  }
@@ -198,6 +204,7 @@ export class GetJobResponseBodyJobInfoDeploymentPolicy extends $dara.Model {
198
204
  allocationSpec: 'string',
199
205
  level: 'string',
200
206
  network: GetJobResponseBodyJobInfoDeploymentPolicyNetwork,
207
+ pool: 'string',
201
208
  tags: { 'type': 'array', 'itemType': GetJobResponseBodyJobInfoDeploymentPolicyTags },
202
209
  };
203
210
  }
@@ -11,14 +11,7 @@ export class GetPoolResponseBodyPoolInfo extends $dara.Model {
11
11
  * 2024-12-01 20:00:00
12
12
  */
13
13
  createTime?: string;
14
- /**
15
- * @remarks
16
- * The usage of execution nodes that are running in a resource pool.
17
- *
18
- * @example
19
- * 1
20
- */
21
- exectorUsage?: number;
14
+ executorUsage?: number;
22
15
  /**
23
16
  * @remarks
24
17
  * Indices whether the resource pool is the default resource pool. Valid values:
@@ -30,14 +23,7 @@ export class GetPoolResponseBodyPoolInfo extends $dara.Model {
30
23
  * true
31
24
  */
32
25
  isDefault?: boolean;
33
- /**
34
- * @remarks
35
- * The maximum number of execution nodes that can run concurrently in a resource pool.
36
- *
37
- * @example
38
- * 2000
39
- */
40
- maxExectorNum?: number;
26
+ maxExecutorNum?: number;
41
27
  /**
42
28
  * @remarks
43
29
  * The name of the resource group.
@@ -68,6 +54,11 @@ export class GetPoolResponseBodyPoolInfo extends $dara.Model {
68
54
  * Fails to *** pool: ***.
69
55
  */
70
56
  reason?: string;
57
+ /**
58
+ * @example
59
+ * policy-xxx
60
+ */
61
+ schedulingPolicyId?: string;
71
62
  /**
72
63
  * @remarks
73
64
  * The status of the resource pool. Valid values:
@@ -93,12 +84,13 @@ export class GetPoolResponseBodyPoolInfo extends $dara.Model {
93
84
  static names(): { [key: string]: string } {
94
85
  return {
95
86
  createTime: 'CreateTime',
96
- exectorUsage: 'ExectorUsage',
87
+ executorUsage: 'ExecutorUsage',
97
88
  isDefault: 'IsDefault',
98
- maxExectorNum: 'MaxExectorNum',
89
+ maxExecutorNum: 'MaxExecutorNum',
99
90
  poolName: 'PoolName',
100
91
  priority: 'Priority',
101
92
  reason: 'Reason',
93
+ schedulingPolicyId: 'SchedulingPolicyId',
102
94
  status: 'Status',
103
95
  updateTime: 'UpdateTime',
104
96
  };
@@ -107,12 +99,13 @@ export class GetPoolResponseBodyPoolInfo extends $dara.Model {
107
99
  static types(): { [key: string]: any } {
108
100
  return {
109
101
  createTime: 'string',
110
- exectorUsage: 'number',
102
+ executorUsage: 'number',
111
103
  isDefault: 'boolean',
112
- maxExectorNum: 'number',
104
+ maxExecutorNum: 'number',
113
105
  poolName: 'string',
114
106
  priority: 'number',
115
107
  reason: 'string',
108
+ schedulingPolicyId: 'string',
116
109
  status: 'string',
117
110
  updateTime: 'string',
118
111
  };
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListPoolsResponseBodyPoolList extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 2026-04-20 11:09:59
9
+ */
10
+ createTime?: string;
6
11
  /**
7
12
  * @remarks
8
13
  * Indices whether the resource pool is the default resource pool. Valid values:
@@ -14,14 +19,7 @@ export class ListPoolsResponseBodyPoolList extends $dara.Model {
14
19
  * true
15
20
  */
16
21
  isDefault?: boolean;
17
- /**
18
- * @remarks
19
- * The maximum number of execution nodes that can run concurrently in a resource pool.
20
- *
21
- * @example
22
- * 2000
23
- */
24
- maxExectorNum?: number;
22
+ maxExecutorNum?: number;
25
23
  /**
26
24
  * @remarks
27
25
  * The name of the resource pool.
@@ -44,6 +42,11 @@ export class ListPoolsResponseBodyPoolList extends $dara.Model {
44
42
  * 1
45
43
  */
46
44
  priority?: number;
45
+ /**
46
+ * @example
47
+ * policy-xxx
48
+ */
49
+ schedulingPolicyId?: string;
47
50
  /**
48
51
  * @remarks
49
52
  * The status of the resource pool. Valid values:
@@ -58,23 +61,34 @@ export class ListPoolsResponseBodyPoolList extends $dara.Model {
58
61
  * Working
59
62
  */
60
63
  status?: string;
64
+ /**
65
+ * @example
66
+ * 2026-04-20 11:09:59
67
+ */
68
+ updateTime?: string;
61
69
  static names(): { [key: string]: string } {
62
70
  return {
71
+ createTime: 'CreateTime',
63
72
  isDefault: 'IsDefault',
64
- maxExectorNum: 'MaxExectorNum',
73
+ maxExecutorNum: 'MaxExecutorNum',
65
74
  poolName: 'PoolName',
66
75
  priority: 'Priority',
76
+ schedulingPolicyId: 'SchedulingPolicyId',
67
77
  status: 'Status',
78
+ updateTime: 'UpdateTime',
68
79
  };
69
80
  }
70
81
 
71
82
  static types(): { [key: string]: any } {
72
83
  return {
84
+ createTime: 'string',
73
85
  isDefault: 'boolean',
74
- maxExectorNum: 'number',
86
+ maxExecutorNum: 'number',
75
87
  poolName: 'string',
76
88
  priority: 'number',
89
+ schedulingPolicyId: 'string',
77
90
  status: 'string',
91
+ updateTime: 'string',
78
92
  };
79
93
  }
80
94
 
@@ -3,37 +3,9 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListTagResourcesResponseBodyTagResourcesTagResource extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The ID of the resource.
9
- *
10
- * @example
11
- * job-xxxxxxxx
12
- */
13
6
  resourceId?: string;
14
- /**
15
- * @remarks
16
- * The type of the resource.
17
- *
18
- * @example
19
- * Job
20
- */
21
7
  resourceType?: string;
22
- /**
23
- * @remarks
24
- * The key of the tag that is added to the resource.
25
- *
26
- * @example
27
- * TestKey
28
- */
29
8
  tagKey?: string;
30
- /**
31
- * @remarks
32
- * The value of the tag.
33
- *
34
- * @example
35
- * TestValue
36
- */
37
9
  tagValue?: string;
38
10
  static names(): { [key: string]: string } {
39
11
  return {
@@ -105,10 +77,6 @@ export class ListTagResourcesResponseBody extends $dara.Model {
105
77
  * 04F0F334-1335-436C-A1D7-6C044FE7****
106
78
  */
107
79
  requestId?: string;
108
- /**
109
- * @remarks
110
- * The resource list.
111
- */
112
80
  tagResources?: ListTagResourcesResponseBodyTagResources;
113
81
  static names(): { [key: string]: string } {
114
82
  return {
@@ -0,0 +1,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateJobRecordDurationRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * 30
12
+ */
13
+ jobRecordDuration?: number;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ jobRecordDuration: 'JobRecordDuration',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ jobRecordDuration: 'number',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateJobRecordDurationResponseBody } from "./UpdateJobRecordDurationResponseBody";
4
+
5
+
6
+ export class UpdateJobRecordDurationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateJobRecordDurationResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: UpdateJobRecordDurationResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateJobRecordDurationResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Id of the request
9
+ *
10
+ * @example
11
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
12
+ */
13
+ requestId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ requestId: 'RequestId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ requestId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -3,23 +3,16 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class UpdatePoolRequestResourceLimits extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The maximum number of concurrent execution nodes in a resource pool.
9
- *
10
- * @example
11
- * 2000
12
- */
13
- maxExectorNum?: number;
6
+ maxExecutorNum?: number;
14
7
  static names(): { [key: string]: string } {
15
8
  return {
16
- maxExectorNum: 'MaxExectorNum',
9
+ maxExecutorNum: 'MaxExecutorNum',
17
10
  };
18
11
  }
19
12
 
20
13
  static types(): { [key: string]: any } {
21
14
  return {
22
- maxExectorNum: 'number',
15
+ maxExecutorNum: 'number',
23
16
  };
24
17
  }
25
18
 
@@ -62,11 +55,17 @@ export class UpdatePoolRequest extends $dara.Model {
62
55
  * The quota of resources that users are allowed to concurrently use in a resource pool.
63
56
  */
64
57
  resourceLimits?: UpdatePoolRequestResourceLimits;
58
+ /**
59
+ * @example
60
+ * policy-xxxx
61
+ */
62
+ schedulingPolicyId?: string;
65
63
  static names(): { [key: string]: string } {
66
64
  return {
67
65
  poolName: 'PoolName',
68
66
  priority: 'Priority',
69
67
  resourceLimits: 'ResourceLimits',
68
+ schedulingPolicyId: 'SchedulingPolicyId',
70
69
  };
71
70
  }
72
71
 
@@ -75,6 +74,7 @@ export class UpdatePoolRequest extends $dara.Model {
75
74
  poolName: 'string',
76
75
  priority: 'number',
77
76
  resourceLimits: UpdatePoolRequestResourceLimits,
77
+ schedulingPolicyId: 'string',
78
78
  };
79
79
  }
80
80
 
@@ -32,11 +32,17 @@ export class UpdatePoolShrinkRequest extends $dara.Model {
32
32
  * The quota of resources that users are allowed to concurrently use in a resource pool.
33
33
  */
34
34
  resourceLimitsShrink?: string;
35
+ /**
36
+ * @example
37
+ * policy-xxxx
38
+ */
39
+ schedulingPolicyId?: string;
35
40
  static names(): { [key: string]: string } {
36
41
  return {
37
42
  poolName: 'PoolName',
38
43
  priority: 'Priority',
39
44
  resourceLimitsShrink: 'ResourceLimits',
45
+ schedulingPolicyId: 'SchedulingPolicyId',
40
46
  };
41
47
  }
42
48
 
@@ -45,6 +51,7 @@ export class UpdatePoolShrinkRequest extends $dara.Model {
45
51
  poolName: 'string',
46
52
  priority: 'number',
47
53
  resourceLimitsShrink: 'string',
54
+ schedulingPolicyId: 'string',
48
55
  };
49
56
  }
50
57
 
@@ -137,6 +137,9 @@ export { GetImageResponse } from './GetImageResponse';
137
137
  export { GetJobRequest } from './GetJobRequest';
138
138
  export { GetJobResponseBody } from './GetJobResponseBody';
139
139
  export { GetJobResponse } from './GetJobResponse';
140
+ export { GetJobRecordDurationRequest } from './GetJobRecordDurationRequest';
141
+ export { GetJobRecordDurationResponseBody } from './GetJobRecordDurationResponseBody';
142
+ export { GetJobRecordDurationResponse } from './GetJobRecordDurationResponse';
140
143
  export { GetPoolRequest } from './GetPoolRequest';
141
144
  export { GetPoolResponseBody } from './GetPoolResponseBody';
142
145
  export { GetPoolResponse } from './GetPoolResponse';
@@ -189,6 +192,9 @@ export { UnTagResourcesResponse } from './UnTagResourcesResponse';
189
192
  export { UpdateActionPlanRequest } from './UpdateActionPlanRequest';
190
193
  export { UpdateActionPlanResponseBody } from './UpdateActionPlanResponseBody';
191
194
  export { UpdateActionPlanResponse } from './UpdateActionPlanResponse';
195
+ export { UpdateJobRecordDurationRequest } from './UpdateJobRecordDurationRequest';
196
+ export { UpdateJobRecordDurationResponseBody } from './UpdateJobRecordDurationResponseBody';
197
+ export { UpdateJobRecordDurationResponse } from './UpdateJobRecordDurationResponse';
192
198
  export { UpdatePoolRequest } from './UpdatePoolRequest';
193
199
  export { UpdatePoolShrinkRequest } from './UpdatePoolShrinkRequest';
194
200
  export { UpdatePoolResponseBody } from './UpdatePoolResponseBody';