Skip to content

Commit 25f5d62

Browse files
committed
Support API ListExecutorEvents.
1 parent aa5159c commit 25f5d62

File tree

7 files changed

+355
-1
lines changed

7 files changed

+355
-1
lines changed

ehpcinstant-20230701/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/ehpcinstant20230701",
3-
"version": "3.3.0",
3+
"version": "3.4.0",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

ehpcinstant-20230701/src/client.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,62 @@ export default class Client extends OpenApi {
10011001
return await this.listActionPlansWithOptions(request, runtime);
10021002
}
10031003

1004+
/**
1005+
* 查询Executor的事件信息
1006+
*
1007+
* @param tmpReq - ListExecutorEventsRequest
1008+
* @param runtime - runtime options for this request RuntimeOptions
1009+
* @returns ListExecutorEventsResponse
1010+
*/
1011+
async listExecutorEventsWithOptions(tmpReq: $_model.ListExecutorEventsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListExecutorEventsResponse> {
1012+
tmpReq.validate();
1013+
let request = new $_model.ListExecutorEventsShrinkRequest({ });
1014+
OpenApiUtil.convert(tmpReq, request);
1015+
if (!$dara.isNull(tmpReq.filter)) {
1016+
request.filterShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.filter, "Filter", "json");
1017+
}
1018+
1019+
let query = { };
1020+
if (!$dara.isNull(request.filterShrink)) {
1021+
query["Filter"] = request.filterShrink;
1022+
}
1023+
1024+
if (!$dara.isNull(request.pageNumber)) {
1025+
query["PageNumber"] = request.pageNumber;
1026+
}
1027+
1028+
if (!$dara.isNull(request.pageSize)) {
1029+
query["PageSize"] = request.pageSize;
1030+
}
1031+
1032+
let req = new $OpenApiUtil.OpenApiRequest({
1033+
query: OpenApiUtil.query(query),
1034+
});
1035+
let params = new $OpenApiUtil.Params({
1036+
action: "ListExecutorEvents",
1037+
version: "2023-07-01",
1038+
protocol: "HTTPS",
1039+
pathname: "/",
1040+
method: "POST",
1041+
authType: "AK",
1042+
style: "RPC",
1043+
reqBodyType: "formData",
1044+
bodyType: "json",
1045+
});
1046+
return $dara.cast<$_model.ListExecutorEventsResponse>(await this.callApi(params, req, runtime), new $_model.ListExecutorEventsResponse({}));
1047+
}
1048+
1049+
/**
1050+
* 查询Executor的事件信息
1051+
*
1052+
* @param request - ListExecutorEventsRequest
1053+
* @returns ListExecutorEventsResponse
1054+
*/
1055+
async listExecutorEvents(request: $_model.ListExecutorEventsRequest): Promise<$_model.ListExecutorEventsResponse> {
1056+
let runtime = new $dara.RuntimeOptions({ });
1057+
return await this.listExecutorEventsWithOptions(request, runtime);
1058+
}
1059+
10041060
/**
10051061
* Querying Global Executor Information
10061062
*
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class ListExecutorEventsRequestFilter extends $dara.Model {
6+
executorIds?: string[];
7+
/**
8+
* @example
9+
* job-xxxx
10+
*/
11+
jobId?: string;
12+
/**
13+
* @example
14+
* Normal
15+
*/
16+
level?: string;
17+
/**
18+
* @example
19+
* 1703820113
20+
*/
21+
timeAfter?: number;
22+
/**
23+
* @example
24+
* 1703819914
25+
*/
26+
timeBefore?: number;
27+
static names(): { [key: string]: string } {
28+
return {
29+
executorIds: 'ExecutorIds',
30+
jobId: 'JobId',
31+
level: 'Level',
32+
timeAfter: 'TimeAfter',
33+
timeBefore: 'TimeBefore',
34+
};
35+
}
36+
37+
static types(): { [key: string]: any } {
38+
return {
39+
executorIds: { 'type': 'array', 'itemType': 'string' },
40+
jobId: 'string',
41+
level: 'string',
42+
timeAfter: 'number',
43+
timeBefore: 'number',
44+
};
45+
}
46+
47+
validate() {
48+
if(Array.isArray(this.executorIds)) {
49+
$dara.Model.validateArray(this.executorIds);
50+
}
51+
super.validate();
52+
}
53+
54+
constructor(map?: { [key: string]: any }) {
55+
super(map);
56+
}
57+
}
58+
59+
export class ListExecutorEventsRequest extends $dara.Model {
60+
filter?: ListExecutorEventsRequestFilter;
61+
/**
62+
* @example
63+
* 1
64+
*/
65+
pageNumber?: number;
66+
/**
67+
* @example
68+
* 50
69+
*/
70+
pageSize?: number;
71+
static names(): { [key: string]: string } {
72+
return {
73+
filter: 'Filter',
74+
pageNumber: 'PageNumber',
75+
pageSize: 'PageSize',
76+
};
77+
}
78+
79+
static types(): { [key: string]: any } {
80+
return {
81+
filter: ListExecutorEventsRequestFilter,
82+
pageNumber: 'number',
83+
pageSize: 'number',
84+
};
85+
}
86+
87+
validate() {
88+
if(this.filter && typeof (this.filter as any).validate === 'function') {
89+
(this.filter as any).validate();
90+
}
91+
super.validate();
92+
}
93+
94+
constructor(map?: { [key: string]: any }) {
95+
super(map);
96+
}
97+
}
98+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { ListExecutorEventsResponseBody } from "./ListExecutorEventsResponseBody";
4+
5+
6+
export class ListExecutorEventsResponse extends $dara.Model {
7+
headers?: { [key: string]: string };
8+
statusCode?: number;
9+
body?: ListExecutorEventsResponseBody;
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: ListExecutorEventsResponseBody,
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+
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class ListExecutorEventsResponseBodyExecutorEventList extends $dara.Model {
6+
/**
7+
* @example
8+
* Executor created successfully
9+
*/
10+
content?: string;
11+
/**
12+
* @example
13+
* job-xxxx-Task0-1
14+
*/
15+
executorId?: string;
16+
/**
17+
* @example
18+
* job-xxxx
19+
*/
20+
jobId?: string;
21+
/**
22+
* @example
23+
* Normal
24+
*/
25+
level?: string;
26+
/**
27+
* @example
28+
* 2024-02-20 10:04:13
29+
*/
30+
time?: string;
31+
static names(): { [key: string]: string } {
32+
return {
33+
content: 'Content',
34+
executorId: 'ExecutorId',
35+
jobId: 'JobId',
36+
level: 'Level',
37+
time: 'Time',
38+
};
39+
}
40+
41+
static types(): { [key: string]: any } {
42+
return {
43+
content: 'string',
44+
executorId: 'string',
45+
jobId: 'string',
46+
level: 'string',
47+
time: 'string',
48+
};
49+
}
50+
51+
validate() {
52+
super.validate();
53+
}
54+
55+
constructor(map?: { [key: string]: any }) {
56+
super(map);
57+
}
58+
}
59+
60+
export class ListExecutorEventsResponseBody extends $dara.Model {
61+
executorEventList?: ListExecutorEventsResponseBodyExecutorEventList[];
62+
/**
63+
* @example
64+
* 1
65+
*/
66+
pageNumber?: number;
67+
/**
68+
* @example
69+
* 50
70+
*/
71+
pageSize?: number;
72+
/**
73+
* @example
74+
* 896D338C-E4F4-41EC-A154-D605E5DE****
75+
*/
76+
requestId?: string;
77+
/**
78+
* @example
79+
* 40
80+
*/
81+
totalCount?: number;
82+
static names(): { [key: string]: string } {
83+
return {
84+
executorEventList: 'ExecutorEventList',
85+
pageNumber: 'PageNumber',
86+
pageSize: 'PageSize',
87+
requestId: 'RequestId',
88+
totalCount: 'TotalCount',
89+
};
90+
}
91+
92+
static types(): { [key: string]: any } {
93+
return {
94+
executorEventList: { 'type': 'array', 'itemType': ListExecutorEventsResponseBodyExecutorEventList },
95+
pageNumber: 'number',
96+
pageSize: 'number',
97+
requestId: 'string',
98+
totalCount: 'number',
99+
};
100+
}
101+
102+
validate() {
103+
if(Array.isArray(this.executorEventList)) {
104+
$dara.Model.validateArray(this.executorEventList);
105+
}
106+
super.validate();
107+
}
108+
109+
constructor(map?: { [key: string]: any }) {
110+
super(map);
111+
}
112+
}
113+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ListExecutorEventsShrinkRequest extends $dara.Model {
6+
filterShrink?: string;
7+
/**
8+
* @example
9+
* 1
10+
*/
11+
pageNumber?: number;
12+
/**
13+
* @example
14+
* 50
15+
*/
16+
pageSize?: number;
17+
static names(): { [key: string]: string } {
18+
return {
19+
filterShrink: 'Filter',
20+
pageNumber: 'PageNumber',
21+
pageSize: 'PageSize',
22+
};
23+
}
24+
25+
static types(): { [key: string]: any } {
26+
return {
27+
filterShrink: 'string',
28+
pageNumber: 'number',
29+
pageSize: 'number',
30+
};
31+
}
32+
33+
validate() {
34+
super.validate();
35+
}
36+
37+
constructor(map?: { [key: string]: any }) {
38+
super(map);
39+
}
40+
}
41+

ehpcinstant-20230701/src/models/model.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export { GetPoolResponseBodyPoolInfo } from './GetPoolResponseBody';
5858
export { ListActionPlanActivitiesResponseBodyActionPlanActivitiesJobs } from './ListActionPlanActivitiesResponseBody';
5959
export { ListActionPlanActivitiesResponseBodyActionPlanActivities } from './ListActionPlanActivitiesResponseBody';
6060
export { ListActionPlansResponseBodyActionPlans } from './ListActionPlansResponseBody';
61+
export { ListExecutorEventsRequestFilter } from './ListExecutorEventsRequest';
62+
export { ListExecutorEventsResponseBodyExecutorEventList } from './ListExecutorEventsResponseBody';
6163
export { ListExecutorsRequestFilter } from './ListExecutorsRequest';
6264
export { ListExecutorsResponseBodyExecutorsResourceDisks } from './ListExecutorsResponseBody';
6365
export { ListExecutorsResponseBodyExecutorsResource } from './ListExecutorsResponseBody';
@@ -139,6 +141,10 @@ export { ListActionPlansRequest } from './ListActionPlansRequest';
139141
export { ListActionPlansShrinkRequest } from './ListActionPlansShrinkRequest';
140142
export { ListActionPlansResponseBody } from './ListActionPlansResponseBody';
141143
export { ListActionPlansResponse } from './ListActionPlansResponse';
144+
export { ListExecutorEventsRequest } from './ListExecutorEventsRequest';
145+
export { ListExecutorEventsShrinkRequest } from './ListExecutorEventsShrinkRequest';
146+
export { ListExecutorEventsResponseBody } from './ListExecutorEventsResponseBody';
147+
export { ListExecutorEventsResponse } from './ListExecutorEventsResponse';
142148
export { ListExecutorsRequest } from './ListExecutorsRequest';
143149
export { ListExecutorsShrinkRequest } from './ListExecutorsShrinkRequest';
144150
export { ListExecutorsResponseBody } from './ListExecutorsResponseBody';

0 commit comments

Comments
 (0)