@alicloud/ehpcinstant20230701 1.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.
- package/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +1304 -0
- package/dist/client.js +2297 -0
- package/dist/client.js.map +1 -0
- package/package.json +32 -0
- package/src/client.ts +2816 -0
package/src/client.ts
ADDED
|
@@ -0,0 +1,2816 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
import Util, * as $Util from '@alicloud/tea-util';
|
|
6
|
+
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
7
|
+
import OpenApiUtil from '@alicloud/openapi-util';
|
|
8
|
+
import EndpointUtil from '@alicloud/endpoint-util';
|
|
9
|
+
import * as $tea from '@alicloud/tea-typescript';
|
|
10
|
+
|
|
11
|
+
export class AddImageRequest extends $tea.Model {
|
|
12
|
+
containerImageSpec?: AddImageRequestContainerImageSpec;
|
|
13
|
+
description?: string;
|
|
14
|
+
imageVersion?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
VMImageSpec?: AddImageRequestVMImageSpec;
|
|
17
|
+
static names(): { [key: string]: string } {
|
|
18
|
+
return {
|
|
19
|
+
containerImageSpec: 'ContainerImageSpec',
|
|
20
|
+
description: 'Description',
|
|
21
|
+
imageVersion: 'ImageVersion',
|
|
22
|
+
name: 'Name',
|
|
23
|
+
VMImageSpec: 'VMImageSpec',
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
static types(): { [key: string]: any } {
|
|
28
|
+
return {
|
|
29
|
+
containerImageSpec: AddImageRequestContainerImageSpec,
|
|
30
|
+
description: 'string',
|
|
31
|
+
imageVersion: 'string',
|
|
32
|
+
name: 'string',
|
|
33
|
+
VMImageSpec: AddImageRequestVMImageSpec,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class AddImageShrinkRequest extends $tea.Model {
|
|
43
|
+
containerImageSpecShrink?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
imageVersion?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
VMImageSpecShrink?: string;
|
|
48
|
+
static names(): { [key: string]: string } {
|
|
49
|
+
return {
|
|
50
|
+
containerImageSpecShrink: 'ContainerImageSpec',
|
|
51
|
+
description: 'Description',
|
|
52
|
+
imageVersion: 'ImageVersion',
|
|
53
|
+
name: 'Name',
|
|
54
|
+
VMImageSpecShrink: 'VMImageSpec',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static types(): { [key: string]: any } {
|
|
59
|
+
return {
|
|
60
|
+
containerImageSpecShrink: 'string',
|
|
61
|
+
description: 'string',
|
|
62
|
+
imageVersion: 'string',
|
|
63
|
+
name: 'string',
|
|
64
|
+
VMImageSpecShrink: 'string',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
constructor(map?: { [key: string]: any }) {
|
|
69
|
+
super(map);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class AddImageResponseBody extends $tea.Model {
|
|
74
|
+
imageId?: string;
|
|
75
|
+
requestId?: string;
|
|
76
|
+
success?: boolean;
|
|
77
|
+
static names(): { [key: string]: string } {
|
|
78
|
+
return {
|
|
79
|
+
imageId: 'ImageId',
|
|
80
|
+
requestId: 'RequestId',
|
|
81
|
+
success: 'Success',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static types(): { [key: string]: any } {
|
|
86
|
+
return {
|
|
87
|
+
imageId: 'string',
|
|
88
|
+
requestId: 'string',
|
|
89
|
+
success: 'boolean',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
constructor(map?: { [key: string]: any }) {
|
|
94
|
+
super(map);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export class AddImageResponse extends $tea.Model {
|
|
99
|
+
headers?: { [key: string]: string };
|
|
100
|
+
statusCode?: number;
|
|
101
|
+
body?: AddImageResponseBody;
|
|
102
|
+
static names(): { [key: string]: string } {
|
|
103
|
+
return {
|
|
104
|
+
headers: 'headers',
|
|
105
|
+
statusCode: 'statusCode',
|
|
106
|
+
body: 'body',
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static types(): { [key: string]: any } {
|
|
111
|
+
return {
|
|
112
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
113
|
+
statusCode: 'number',
|
|
114
|
+
body: AddImageResponseBody,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
constructor(map?: { [key: string]: any }) {
|
|
119
|
+
super(map);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export class CreateJobRequest extends $tea.Model {
|
|
124
|
+
deploymentPolicy?: CreateJobRequestDeploymentPolicy;
|
|
125
|
+
jobDescription?: string;
|
|
126
|
+
jobName?: string;
|
|
127
|
+
tasks?: CreateJobRequestTasks[];
|
|
128
|
+
static names(): { [key: string]: string } {
|
|
129
|
+
return {
|
|
130
|
+
deploymentPolicy: 'DeploymentPolicy',
|
|
131
|
+
jobDescription: 'JobDescription',
|
|
132
|
+
jobName: 'JobName',
|
|
133
|
+
tasks: 'Tasks',
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
static types(): { [key: string]: any } {
|
|
138
|
+
return {
|
|
139
|
+
deploymentPolicy: CreateJobRequestDeploymentPolicy,
|
|
140
|
+
jobDescription: 'string',
|
|
141
|
+
jobName: 'string',
|
|
142
|
+
tasks: { 'type': 'array', 'itemType': CreateJobRequestTasks },
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
constructor(map?: { [key: string]: any }) {
|
|
147
|
+
super(map);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export class CreateJobShrinkRequest extends $tea.Model {
|
|
152
|
+
deploymentPolicyShrink?: string;
|
|
153
|
+
jobDescription?: string;
|
|
154
|
+
jobName?: string;
|
|
155
|
+
tasksShrink?: string;
|
|
156
|
+
static names(): { [key: string]: string } {
|
|
157
|
+
return {
|
|
158
|
+
deploymentPolicyShrink: 'DeploymentPolicy',
|
|
159
|
+
jobDescription: 'JobDescription',
|
|
160
|
+
jobName: 'JobName',
|
|
161
|
+
tasksShrink: 'Tasks',
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
static types(): { [key: string]: any } {
|
|
166
|
+
return {
|
|
167
|
+
deploymentPolicyShrink: 'string',
|
|
168
|
+
jobDescription: 'string',
|
|
169
|
+
jobName: 'string',
|
|
170
|
+
tasksShrink: 'string',
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
constructor(map?: { [key: string]: any }) {
|
|
175
|
+
super(map);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export class CreateJobResponseBody extends $tea.Model {
|
|
180
|
+
jobId?: string;
|
|
181
|
+
requestId?: string;
|
|
182
|
+
static names(): { [key: string]: string } {
|
|
183
|
+
return {
|
|
184
|
+
jobId: 'JobId',
|
|
185
|
+
requestId: 'RequestId',
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static types(): { [key: string]: any } {
|
|
190
|
+
return {
|
|
191
|
+
jobId: 'string',
|
|
192
|
+
requestId: 'string',
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
constructor(map?: { [key: string]: any }) {
|
|
197
|
+
super(map);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export class CreateJobResponse extends $tea.Model {
|
|
202
|
+
headers?: { [key: string]: string };
|
|
203
|
+
statusCode?: number;
|
|
204
|
+
body?: CreateJobResponseBody;
|
|
205
|
+
static names(): { [key: string]: string } {
|
|
206
|
+
return {
|
|
207
|
+
headers: 'headers',
|
|
208
|
+
statusCode: 'statusCode',
|
|
209
|
+
body: 'body',
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
static types(): { [key: string]: any } {
|
|
214
|
+
return {
|
|
215
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
216
|
+
statusCode: 'number',
|
|
217
|
+
body: CreateJobResponseBody,
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
constructor(map?: { [key: string]: any }) {
|
|
222
|
+
super(map);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export class DeleteJobsRequest extends $tea.Model {
|
|
227
|
+
executorIds?: string[];
|
|
228
|
+
jobSpec?: DeleteJobsRequestJobSpec[];
|
|
229
|
+
static names(): { [key: string]: string } {
|
|
230
|
+
return {
|
|
231
|
+
executorIds: 'ExecutorIds',
|
|
232
|
+
jobSpec: 'JobSpec',
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
static types(): { [key: string]: any } {
|
|
237
|
+
return {
|
|
238
|
+
executorIds: { 'type': 'array', 'itemType': 'string' },
|
|
239
|
+
jobSpec: { 'type': 'array', 'itemType': DeleteJobsRequestJobSpec },
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
constructor(map?: { [key: string]: any }) {
|
|
244
|
+
super(map);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export class DeleteJobsShrinkRequest extends $tea.Model {
|
|
249
|
+
executorIdsShrink?: string;
|
|
250
|
+
jobSpecShrink?: string;
|
|
251
|
+
static names(): { [key: string]: string } {
|
|
252
|
+
return {
|
|
253
|
+
executorIdsShrink: 'ExecutorIds',
|
|
254
|
+
jobSpecShrink: 'JobSpec',
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
static types(): { [key: string]: any } {
|
|
259
|
+
return {
|
|
260
|
+
executorIdsShrink: 'string',
|
|
261
|
+
jobSpecShrink: 'string',
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
constructor(map?: { [key: string]: any }) {
|
|
266
|
+
super(map);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export class DeleteJobsResponseBody extends $tea.Model {
|
|
271
|
+
requestId?: string;
|
|
272
|
+
static names(): { [key: string]: string } {
|
|
273
|
+
return {
|
|
274
|
+
requestId: 'RequestId',
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
static types(): { [key: string]: any } {
|
|
279
|
+
return {
|
|
280
|
+
requestId: 'string',
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
constructor(map?: { [key: string]: any }) {
|
|
285
|
+
super(map);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export class DeleteJobsResponse extends $tea.Model {
|
|
290
|
+
headers?: { [key: string]: string };
|
|
291
|
+
statusCode?: number;
|
|
292
|
+
body?: DeleteJobsResponseBody;
|
|
293
|
+
static names(): { [key: string]: string } {
|
|
294
|
+
return {
|
|
295
|
+
headers: 'headers',
|
|
296
|
+
statusCode: 'statusCode',
|
|
297
|
+
body: 'body',
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
static types(): { [key: string]: any } {
|
|
302
|
+
return {
|
|
303
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
304
|
+
statusCode: 'number',
|
|
305
|
+
body: DeleteJobsResponseBody,
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
constructor(map?: { [key: string]: any }) {
|
|
310
|
+
super(map);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export class DescribeJobMetricDataRequest extends $tea.Model {
|
|
315
|
+
arrayIndex?: number[];
|
|
316
|
+
jobId?: string;
|
|
317
|
+
metricName?: string;
|
|
318
|
+
taskName?: string;
|
|
319
|
+
static names(): { [key: string]: string } {
|
|
320
|
+
return {
|
|
321
|
+
arrayIndex: 'ArrayIndex',
|
|
322
|
+
jobId: 'JobId',
|
|
323
|
+
metricName: 'MetricName',
|
|
324
|
+
taskName: 'TaskName',
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
static types(): { [key: string]: any } {
|
|
329
|
+
return {
|
|
330
|
+
arrayIndex: { 'type': 'array', 'itemType': 'number' },
|
|
331
|
+
jobId: 'string',
|
|
332
|
+
metricName: 'string',
|
|
333
|
+
taskName: 'string',
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
constructor(map?: { [key: string]: any }) {
|
|
338
|
+
super(map);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export class DescribeJobMetricDataShrinkRequest extends $tea.Model {
|
|
343
|
+
arrayIndexShrink?: string;
|
|
344
|
+
jobId?: string;
|
|
345
|
+
metricName?: string;
|
|
346
|
+
taskName?: string;
|
|
347
|
+
static names(): { [key: string]: string } {
|
|
348
|
+
return {
|
|
349
|
+
arrayIndexShrink: 'ArrayIndex',
|
|
350
|
+
jobId: 'JobId',
|
|
351
|
+
metricName: 'MetricName',
|
|
352
|
+
taskName: 'TaskName',
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
static types(): { [key: string]: any } {
|
|
357
|
+
return {
|
|
358
|
+
arrayIndexShrink: 'string',
|
|
359
|
+
jobId: 'string',
|
|
360
|
+
metricName: 'string',
|
|
361
|
+
taskName: 'string',
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
constructor(map?: { [key: string]: any }) {
|
|
366
|
+
super(map);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export class DescribeJobMetricDataResponseBody extends $tea.Model {
|
|
371
|
+
dataPoints?: string;
|
|
372
|
+
period?: number;
|
|
373
|
+
requestId?: string;
|
|
374
|
+
static names(): { [key: string]: string } {
|
|
375
|
+
return {
|
|
376
|
+
dataPoints: 'DataPoints',
|
|
377
|
+
period: 'Period',
|
|
378
|
+
requestId: 'RequestId',
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
static types(): { [key: string]: any } {
|
|
383
|
+
return {
|
|
384
|
+
dataPoints: 'string',
|
|
385
|
+
period: 'number',
|
|
386
|
+
requestId: 'string',
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
constructor(map?: { [key: string]: any }) {
|
|
391
|
+
super(map);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export class DescribeJobMetricDataResponse extends $tea.Model {
|
|
396
|
+
headers?: { [key: string]: string };
|
|
397
|
+
statusCode?: number;
|
|
398
|
+
body?: DescribeJobMetricDataResponseBody;
|
|
399
|
+
static names(): { [key: string]: string } {
|
|
400
|
+
return {
|
|
401
|
+
headers: 'headers',
|
|
402
|
+
statusCode: 'statusCode',
|
|
403
|
+
body: 'body',
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
static types(): { [key: string]: any } {
|
|
408
|
+
return {
|
|
409
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
410
|
+
statusCode: 'number',
|
|
411
|
+
body: DescribeJobMetricDataResponseBody,
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
constructor(map?: { [key: string]: any }) {
|
|
416
|
+
super(map);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export class DescribeJobMetricLastRequest extends $tea.Model {
|
|
421
|
+
arrayIndex?: number[];
|
|
422
|
+
jobId?: string;
|
|
423
|
+
taskName?: string;
|
|
424
|
+
static names(): { [key: string]: string } {
|
|
425
|
+
return {
|
|
426
|
+
arrayIndex: 'ArrayIndex',
|
|
427
|
+
jobId: 'JobId',
|
|
428
|
+
taskName: 'TaskName',
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
static types(): { [key: string]: any } {
|
|
433
|
+
return {
|
|
434
|
+
arrayIndex: { 'type': 'array', 'itemType': 'number' },
|
|
435
|
+
jobId: 'string',
|
|
436
|
+
taskName: 'string',
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
constructor(map?: { [key: string]: any }) {
|
|
441
|
+
super(map);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export class DescribeJobMetricLastShrinkRequest extends $tea.Model {
|
|
446
|
+
arrayIndexShrink?: string;
|
|
447
|
+
jobId?: string;
|
|
448
|
+
taskName?: string;
|
|
449
|
+
static names(): { [key: string]: string } {
|
|
450
|
+
return {
|
|
451
|
+
arrayIndexShrink: 'ArrayIndex',
|
|
452
|
+
jobId: 'JobId',
|
|
453
|
+
taskName: 'TaskName',
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
static types(): { [key: string]: any } {
|
|
458
|
+
return {
|
|
459
|
+
arrayIndexShrink: 'string',
|
|
460
|
+
jobId: 'string',
|
|
461
|
+
taskName: 'string',
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
constructor(map?: { [key: string]: any }) {
|
|
466
|
+
super(map);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export class DescribeJobMetricLastResponseBody extends $tea.Model {
|
|
471
|
+
metrics?: DescribeJobMetricLastResponseBodyMetrics[];
|
|
472
|
+
requestId?: string;
|
|
473
|
+
static names(): { [key: string]: string } {
|
|
474
|
+
return {
|
|
475
|
+
metrics: 'Metrics',
|
|
476
|
+
requestId: 'RequestId',
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
static types(): { [key: string]: any } {
|
|
481
|
+
return {
|
|
482
|
+
metrics: { 'type': 'array', 'itemType': DescribeJobMetricLastResponseBodyMetrics },
|
|
483
|
+
requestId: 'string',
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
constructor(map?: { [key: string]: any }) {
|
|
488
|
+
super(map);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export class DescribeJobMetricLastResponse extends $tea.Model {
|
|
493
|
+
headers?: { [key: string]: string };
|
|
494
|
+
statusCode?: number;
|
|
495
|
+
body?: DescribeJobMetricLastResponseBody;
|
|
496
|
+
static names(): { [key: string]: string } {
|
|
497
|
+
return {
|
|
498
|
+
headers: 'headers',
|
|
499
|
+
statusCode: 'statusCode',
|
|
500
|
+
body: 'body',
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
static types(): { [key: string]: any } {
|
|
505
|
+
return {
|
|
506
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
507
|
+
statusCode: 'number',
|
|
508
|
+
body: DescribeJobMetricLastResponseBody,
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
constructor(map?: { [key: string]: any }) {
|
|
513
|
+
super(map);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export class GetImageRequest extends $tea.Model {
|
|
518
|
+
imageId?: string;
|
|
519
|
+
static names(): { [key: string]: string } {
|
|
520
|
+
return {
|
|
521
|
+
imageId: 'ImageId',
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
static types(): { [key: string]: any } {
|
|
526
|
+
return {
|
|
527
|
+
imageId: 'string',
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
constructor(map?: { [key: string]: any }) {
|
|
532
|
+
super(map);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
export class GetImageResponseBody extends $tea.Model {
|
|
537
|
+
image?: GetImageResponseBodyImage;
|
|
538
|
+
requestId?: string;
|
|
539
|
+
success?: boolean;
|
|
540
|
+
totalCount?: number;
|
|
541
|
+
static names(): { [key: string]: string } {
|
|
542
|
+
return {
|
|
543
|
+
image: 'Image',
|
|
544
|
+
requestId: 'RequestId',
|
|
545
|
+
success: 'Success',
|
|
546
|
+
totalCount: 'TotalCount',
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
static types(): { [key: string]: any } {
|
|
551
|
+
return {
|
|
552
|
+
image: GetImageResponseBodyImage,
|
|
553
|
+
requestId: 'string',
|
|
554
|
+
success: 'boolean',
|
|
555
|
+
totalCount: 'number',
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
constructor(map?: { [key: string]: any }) {
|
|
560
|
+
super(map);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export class GetImageResponse extends $tea.Model {
|
|
565
|
+
headers?: { [key: string]: string };
|
|
566
|
+
statusCode?: number;
|
|
567
|
+
body?: GetImageResponseBody;
|
|
568
|
+
static names(): { [key: string]: string } {
|
|
569
|
+
return {
|
|
570
|
+
headers: 'headers',
|
|
571
|
+
statusCode: 'statusCode',
|
|
572
|
+
body: 'body',
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
static types(): { [key: string]: any } {
|
|
577
|
+
return {
|
|
578
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
579
|
+
statusCode: 'number',
|
|
580
|
+
body: GetImageResponseBody,
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
constructor(map?: { [key: string]: any }) {
|
|
585
|
+
super(map);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export class GetJobRequest extends $tea.Model {
|
|
590
|
+
jobId?: string;
|
|
591
|
+
static names(): { [key: string]: string } {
|
|
592
|
+
return {
|
|
593
|
+
jobId: 'JobId',
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
static types(): { [key: string]: any } {
|
|
598
|
+
return {
|
|
599
|
+
jobId: 'string',
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
constructor(map?: { [key: string]: any }) {
|
|
604
|
+
super(map);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export class GetJobResponseBody extends $tea.Model {
|
|
609
|
+
jobInfo?: GetJobResponseBodyJobInfo;
|
|
610
|
+
requestId?: string;
|
|
611
|
+
static names(): { [key: string]: string } {
|
|
612
|
+
return {
|
|
613
|
+
jobInfo: 'JobInfo',
|
|
614
|
+
requestId: 'RequestId',
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
static types(): { [key: string]: any } {
|
|
619
|
+
return {
|
|
620
|
+
jobInfo: GetJobResponseBodyJobInfo,
|
|
621
|
+
requestId: 'string',
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
constructor(map?: { [key: string]: any }) {
|
|
626
|
+
super(map);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export class GetJobResponse extends $tea.Model {
|
|
631
|
+
headers?: { [key: string]: string };
|
|
632
|
+
statusCode?: number;
|
|
633
|
+
body?: GetJobResponseBody;
|
|
634
|
+
static names(): { [key: string]: string } {
|
|
635
|
+
return {
|
|
636
|
+
headers: 'headers',
|
|
637
|
+
statusCode: 'statusCode',
|
|
638
|
+
body: 'body',
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
static types(): { [key: string]: any } {
|
|
643
|
+
return {
|
|
644
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
645
|
+
statusCode: 'number',
|
|
646
|
+
body: GetJobResponseBody,
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
constructor(map?: { [key: string]: any }) {
|
|
651
|
+
super(map);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export class ListExecutorsRequest extends $tea.Model {
|
|
656
|
+
filter?: ListExecutorsRequestFilter;
|
|
657
|
+
pageNumber?: string;
|
|
658
|
+
pageSize?: string;
|
|
659
|
+
static names(): { [key: string]: string } {
|
|
660
|
+
return {
|
|
661
|
+
filter: 'Filter',
|
|
662
|
+
pageNumber: 'PageNumber',
|
|
663
|
+
pageSize: 'PageSize',
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
static types(): { [key: string]: any } {
|
|
668
|
+
return {
|
|
669
|
+
filter: ListExecutorsRequestFilter,
|
|
670
|
+
pageNumber: 'string',
|
|
671
|
+
pageSize: 'string',
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
constructor(map?: { [key: string]: any }) {
|
|
676
|
+
super(map);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export class ListExecutorsShrinkRequest extends $tea.Model {
|
|
681
|
+
filterShrink?: string;
|
|
682
|
+
pageNumber?: string;
|
|
683
|
+
pageSize?: string;
|
|
684
|
+
static names(): { [key: string]: string } {
|
|
685
|
+
return {
|
|
686
|
+
filterShrink: 'Filter',
|
|
687
|
+
pageNumber: 'PageNumber',
|
|
688
|
+
pageSize: 'PageSize',
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
static types(): { [key: string]: any } {
|
|
693
|
+
return {
|
|
694
|
+
filterShrink: 'string',
|
|
695
|
+
pageNumber: 'string',
|
|
696
|
+
pageSize: 'string',
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
constructor(map?: { [key: string]: any }) {
|
|
701
|
+
super(map);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export class ListExecutorsResponseBody extends $tea.Model {
|
|
706
|
+
executors?: ListExecutorsResponseBodyExecutors[];
|
|
707
|
+
pageNumber?: string;
|
|
708
|
+
pageSize?: string;
|
|
709
|
+
requestId?: string;
|
|
710
|
+
totalCount?: string;
|
|
711
|
+
static names(): { [key: string]: string } {
|
|
712
|
+
return {
|
|
713
|
+
executors: 'Executors',
|
|
714
|
+
pageNumber: 'PageNumber',
|
|
715
|
+
pageSize: 'PageSize',
|
|
716
|
+
requestId: 'RequestId',
|
|
717
|
+
totalCount: 'TotalCount',
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
static types(): { [key: string]: any } {
|
|
722
|
+
return {
|
|
723
|
+
executors: { 'type': 'array', 'itemType': ListExecutorsResponseBodyExecutors },
|
|
724
|
+
pageNumber: 'string',
|
|
725
|
+
pageSize: 'string',
|
|
726
|
+
requestId: 'string',
|
|
727
|
+
totalCount: 'string',
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
constructor(map?: { [key: string]: any }) {
|
|
732
|
+
super(map);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export class ListExecutorsResponse extends $tea.Model {
|
|
737
|
+
headers?: { [key: string]: string };
|
|
738
|
+
statusCode?: number;
|
|
739
|
+
body?: ListExecutorsResponseBody;
|
|
740
|
+
static names(): { [key: string]: string } {
|
|
741
|
+
return {
|
|
742
|
+
headers: 'headers',
|
|
743
|
+
statusCode: 'statusCode',
|
|
744
|
+
body: 'body',
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
static types(): { [key: string]: any } {
|
|
749
|
+
return {
|
|
750
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
751
|
+
statusCode: 'number',
|
|
752
|
+
body: ListExecutorsResponseBody,
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
constructor(map?: { [key: string]: any }) {
|
|
757
|
+
super(map);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export class ListImagesRequest extends $tea.Model {
|
|
762
|
+
imageIds?: string[];
|
|
763
|
+
imageNames?: string[];
|
|
764
|
+
pageNumber?: number;
|
|
765
|
+
pageSize?: number;
|
|
766
|
+
static names(): { [key: string]: string } {
|
|
767
|
+
return {
|
|
768
|
+
imageIds: 'ImageIds',
|
|
769
|
+
imageNames: 'ImageNames',
|
|
770
|
+
pageNumber: 'PageNumber',
|
|
771
|
+
pageSize: 'PageSize',
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
static types(): { [key: string]: any } {
|
|
776
|
+
return {
|
|
777
|
+
imageIds: { 'type': 'array', 'itemType': 'string' },
|
|
778
|
+
imageNames: { 'type': 'array', 'itemType': 'string' },
|
|
779
|
+
pageNumber: 'number',
|
|
780
|
+
pageSize: 'number',
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
constructor(map?: { [key: string]: any }) {
|
|
785
|
+
super(map);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export class ListImagesShrinkRequest extends $tea.Model {
|
|
790
|
+
imageIdsShrink?: string;
|
|
791
|
+
imageNamesShrink?: string;
|
|
792
|
+
pageNumber?: number;
|
|
793
|
+
pageSize?: number;
|
|
794
|
+
static names(): { [key: string]: string } {
|
|
795
|
+
return {
|
|
796
|
+
imageIdsShrink: 'ImageIds',
|
|
797
|
+
imageNamesShrink: 'ImageNames',
|
|
798
|
+
pageNumber: 'PageNumber',
|
|
799
|
+
pageSize: 'PageSize',
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
static types(): { [key: string]: any } {
|
|
804
|
+
return {
|
|
805
|
+
imageIdsShrink: 'string',
|
|
806
|
+
imageNamesShrink: 'string',
|
|
807
|
+
pageNumber: 'number',
|
|
808
|
+
pageSize: 'number',
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
constructor(map?: { [key: string]: any }) {
|
|
813
|
+
super(map);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export class ListImagesResponseBody extends $tea.Model {
|
|
818
|
+
images?: ListImagesResponseBodyImages[];
|
|
819
|
+
pageNumber?: number;
|
|
820
|
+
pageSize?: number;
|
|
821
|
+
requestId?: string;
|
|
822
|
+
success?: boolean;
|
|
823
|
+
totalCount?: number;
|
|
824
|
+
static names(): { [key: string]: string } {
|
|
825
|
+
return {
|
|
826
|
+
images: 'Images',
|
|
827
|
+
pageNumber: 'PageNumber',
|
|
828
|
+
pageSize: 'PageSize',
|
|
829
|
+
requestId: 'RequestId',
|
|
830
|
+
success: 'Success',
|
|
831
|
+
totalCount: 'TotalCount',
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
static types(): { [key: string]: any } {
|
|
836
|
+
return {
|
|
837
|
+
images: { 'type': 'array', 'itemType': ListImagesResponseBodyImages },
|
|
838
|
+
pageNumber: 'number',
|
|
839
|
+
pageSize: 'number',
|
|
840
|
+
requestId: 'string',
|
|
841
|
+
success: 'boolean',
|
|
842
|
+
totalCount: 'number',
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
constructor(map?: { [key: string]: any }) {
|
|
847
|
+
super(map);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
export class ListImagesResponse extends $tea.Model {
|
|
852
|
+
headers?: { [key: string]: string };
|
|
853
|
+
statusCode?: number;
|
|
854
|
+
body?: ListImagesResponseBody;
|
|
855
|
+
static names(): { [key: string]: string } {
|
|
856
|
+
return {
|
|
857
|
+
headers: 'headers',
|
|
858
|
+
statusCode: 'statusCode',
|
|
859
|
+
body: 'body',
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
static types(): { [key: string]: any } {
|
|
864
|
+
return {
|
|
865
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
866
|
+
statusCode: 'number',
|
|
867
|
+
body: ListImagesResponseBody,
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
constructor(map?: { [key: string]: any }) {
|
|
872
|
+
super(map);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export class ListJobExecutorsRequest extends $tea.Model {
|
|
877
|
+
jobId?: string;
|
|
878
|
+
pageNumber?: string;
|
|
879
|
+
pageSize?: string;
|
|
880
|
+
taskName?: string;
|
|
881
|
+
static names(): { [key: string]: string } {
|
|
882
|
+
return {
|
|
883
|
+
jobId: 'JobId',
|
|
884
|
+
pageNumber: 'PageNumber',
|
|
885
|
+
pageSize: 'PageSize',
|
|
886
|
+
taskName: 'TaskName',
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
static types(): { [key: string]: any } {
|
|
891
|
+
return {
|
|
892
|
+
jobId: 'string',
|
|
893
|
+
pageNumber: 'string',
|
|
894
|
+
pageSize: 'string',
|
|
895
|
+
taskName: 'string',
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
constructor(map?: { [key: string]: any }) {
|
|
900
|
+
super(map);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export class ListJobExecutorsResponseBody extends $tea.Model {
|
|
905
|
+
executors?: ListJobExecutorsResponseBodyExecutors[];
|
|
906
|
+
jobId?: string;
|
|
907
|
+
pageNumber?: string;
|
|
908
|
+
pageSize?: string;
|
|
909
|
+
requestId?: string;
|
|
910
|
+
taskName?: string;
|
|
911
|
+
totalCount?: string;
|
|
912
|
+
static names(): { [key: string]: string } {
|
|
913
|
+
return {
|
|
914
|
+
executors: 'Executors',
|
|
915
|
+
jobId: 'JobId',
|
|
916
|
+
pageNumber: 'PageNumber',
|
|
917
|
+
pageSize: 'PageSize',
|
|
918
|
+
requestId: 'RequestId',
|
|
919
|
+
taskName: 'TaskName',
|
|
920
|
+
totalCount: 'TotalCount',
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
static types(): { [key: string]: any } {
|
|
925
|
+
return {
|
|
926
|
+
executors: { 'type': 'array', 'itemType': ListJobExecutorsResponseBodyExecutors },
|
|
927
|
+
jobId: 'string',
|
|
928
|
+
pageNumber: 'string',
|
|
929
|
+
pageSize: 'string',
|
|
930
|
+
requestId: 'string',
|
|
931
|
+
taskName: 'string',
|
|
932
|
+
totalCount: 'string',
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
constructor(map?: { [key: string]: any }) {
|
|
937
|
+
super(map);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export class ListJobExecutorsResponse extends $tea.Model {
|
|
942
|
+
headers?: { [key: string]: string };
|
|
943
|
+
statusCode?: number;
|
|
944
|
+
body?: ListJobExecutorsResponseBody;
|
|
945
|
+
static names(): { [key: string]: string } {
|
|
946
|
+
return {
|
|
947
|
+
headers: 'headers',
|
|
948
|
+
statusCode: 'statusCode',
|
|
949
|
+
body: 'body',
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
static types(): { [key: string]: any } {
|
|
954
|
+
return {
|
|
955
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
956
|
+
statusCode: 'number',
|
|
957
|
+
body: ListJobExecutorsResponseBody,
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
constructor(map?: { [key: string]: any }) {
|
|
962
|
+
super(map);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
export class ListJobsRequest extends $tea.Model {
|
|
967
|
+
filter?: ListJobsRequestFilter;
|
|
968
|
+
pageNumber?: string;
|
|
969
|
+
pageSize?: string;
|
|
970
|
+
sortBy?: ListJobsRequestSortBy;
|
|
971
|
+
static names(): { [key: string]: string } {
|
|
972
|
+
return {
|
|
973
|
+
filter: 'Filter',
|
|
974
|
+
pageNumber: 'PageNumber',
|
|
975
|
+
pageSize: 'PageSize',
|
|
976
|
+
sortBy: 'SortBy',
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
static types(): { [key: string]: any } {
|
|
981
|
+
return {
|
|
982
|
+
filter: ListJobsRequestFilter,
|
|
983
|
+
pageNumber: 'string',
|
|
984
|
+
pageSize: 'string',
|
|
985
|
+
sortBy: ListJobsRequestSortBy,
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
constructor(map?: { [key: string]: any }) {
|
|
990
|
+
super(map);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
export class ListJobsShrinkRequest extends $tea.Model {
|
|
995
|
+
filterShrink?: string;
|
|
996
|
+
pageNumber?: string;
|
|
997
|
+
pageSize?: string;
|
|
998
|
+
sortByShrink?: string;
|
|
999
|
+
static names(): { [key: string]: string } {
|
|
1000
|
+
return {
|
|
1001
|
+
filterShrink: 'Filter',
|
|
1002
|
+
pageNumber: 'PageNumber',
|
|
1003
|
+
pageSize: 'PageSize',
|
|
1004
|
+
sortByShrink: 'SortBy',
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
static types(): { [key: string]: any } {
|
|
1009
|
+
return {
|
|
1010
|
+
filterShrink: 'string',
|
|
1011
|
+
pageNumber: 'string',
|
|
1012
|
+
pageSize: 'string',
|
|
1013
|
+
sortByShrink: 'string',
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
constructor(map?: { [key: string]: any }) {
|
|
1018
|
+
super(map);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
export class ListJobsResponseBody extends $tea.Model {
|
|
1023
|
+
jobList?: ListJobsResponseBodyJobList[];
|
|
1024
|
+
pageNumber?: number;
|
|
1025
|
+
pageSize?: number;
|
|
1026
|
+
requestId?: string;
|
|
1027
|
+
totalCount?: number;
|
|
1028
|
+
static names(): { [key: string]: string } {
|
|
1029
|
+
return {
|
|
1030
|
+
jobList: 'JobList',
|
|
1031
|
+
pageNumber: 'PageNumber',
|
|
1032
|
+
pageSize: 'PageSize',
|
|
1033
|
+
requestId: 'RequestId',
|
|
1034
|
+
totalCount: 'TotalCount',
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
static types(): { [key: string]: any } {
|
|
1039
|
+
return {
|
|
1040
|
+
jobList: { 'type': 'array', 'itemType': ListJobsResponseBodyJobList },
|
|
1041
|
+
pageNumber: 'number',
|
|
1042
|
+
pageSize: 'number',
|
|
1043
|
+
requestId: 'string',
|
|
1044
|
+
totalCount: 'number',
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
constructor(map?: { [key: string]: any }) {
|
|
1049
|
+
super(map);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export class ListJobsResponse extends $tea.Model {
|
|
1054
|
+
headers?: { [key: string]: string };
|
|
1055
|
+
statusCode?: number;
|
|
1056
|
+
body?: ListJobsResponseBody;
|
|
1057
|
+
static names(): { [key: string]: string } {
|
|
1058
|
+
return {
|
|
1059
|
+
headers: 'headers',
|
|
1060
|
+
statusCode: 'statusCode',
|
|
1061
|
+
body: 'body',
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
static types(): { [key: string]: any } {
|
|
1066
|
+
return {
|
|
1067
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1068
|
+
statusCode: 'number',
|
|
1069
|
+
body: ListJobsResponseBody,
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
constructor(map?: { [key: string]: any }) {
|
|
1074
|
+
super(map);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
export class RemoveImageRequest extends $tea.Model {
|
|
1079
|
+
imageId?: string;
|
|
1080
|
+
static names(): { [key: string]: string } {
|
|
1081
|
+
return {
|
|
1082
|
+
imageId: 'ImageId',
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
static types(): { [key: string]: any } {
|
|
1087
|
+
return {
|
|
1088
|
+
imageId: 'string',
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
constructor(map?: { [key: string]: any }) {
|
|
1093
|
+
super(map);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export class RemoveImageResponseBody extends $tea.Model {
|
|
1098
|
+
requestId?: string;
|
|
1099
|
+
success?: boolean;
|
|
1100
|
+
static names(): { [key: string]: string } {
|
|
1101
|
+
return {
|
|
1102
|
+
requestId: 'RequestId',
|
|
1103
|
+
success: 'Success',
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
static types(): { [key: string]: any } {
|
|
1108
|
+
return {
|
|
1109
|
+
requestId: 'string',
|
|
1110
|
+
success: 'boolean',
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
constructor(map?: { [key: string]: any }) {
|
|
1115
|
+
super(map);
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
export class RemoveImageResponse extends $tea.Model {
|
|
1120
|
+
headers?: { [key: string]: string };
|
|
1121
|
+
statusCode?: number;
|
|
1122
|
+
body?: RemoveImageResponseBody;
|
|
1123
|
+
static names(): { [key: string]: string } {
|
|
1124
|
+
return {
|
|
1125
|
+
headers: 'headers',
|
|
1126
|
+
statusCode: 'statusCode',
|
|
1127
|
+
body: 'body',
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
static types(): { [key: string]: any } {
|
|
1132
|
+
return {
|
|
1133
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1134
|
+
statusCode: 'number',
|
|
1135
|
+
body: RemoveImageResponseBody,
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
constructor(map?: { [key: string]: any }) {
|
|
1140
|
+
super(map);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
export class AddImageRequestContainerImageSpecRegistryCredential extends $tea.Model {
|
|
1145
|
+
password?: string;
|
|
1146
|
+
server?: string;
|
|
1147
|
+
userName?: string;
|
|
1148
|
+
static names(): { [key: string]: string } {
|
|
1149
|
+
return {
|
|
1150
|
+
password: 'Password',
|
|
1151
|
+
server: 'Server',
|
|
1152
|
+
userName: 'UserName',
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
static types(): { [key: string]: any } {
|
|
1157
|
+
return {
|
|
1158
|
+
password: 'string',
|
|
1159
|
+
server: 'string',
|
|
1160
|
+
userName: 'string',
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
constructor(map?: { [key: string]: any }) {
|
|
1165
|
+
super(map);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
export class AddImageRequestContainerImageSpec extends $tea.Model {
|
|
1170
|
+
isACREnterprise?: boolean;
|
|
1171
|
+
isACRRegistry?: boolean;
|
|
1172
|
+
registryCredential?: AddImageRequestContainerImageSpecRegistryCredential;
|
|
1173
|
+
registryCriId?: string;
|
|
1174
|
+
registryUrl?: string;
|
|
1175
|
+
static names(): { [key: string]: string } {
|
|
1176
|
+
return {
|
|
1177
|
+
isACREnterprise: 'IsACREnterprise',
|
|
1178
|
+
isACRRegistry: 'IsACRRegistry',
|
|
1179
|
+
registryCredential: 'RegistryCredential',
|
|
1180
|
+
registryCriId: 'RegistryCriId',
|
|
1181
|
+
registryUrl: 'RegistryUrl',
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
static types(): { [key: string]: any } {
|
|
1186
|
+
return {
|
|
1187
|
+
isACREnterprise: 'boolean',
|
|
1188
|
+
isACRRegistry: 'boolean',
|
|
1189
|
+
registryCredential: AddImageRequestContainerImageSpecRegistryCredential,
|
|
1190
|
+
registryCriId: 'string',
|
|
1191
|
+
registryUrl: 'string',
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
constructor(map?: { [key: string]: any }) {
|
|
1196
|
+
super(map);
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export class AddImageRequestVMImageSpec extends $tea.Model {
|
|
1201
|
+
imageId?: string;
|
|
1202
|
+
static names(): { [key: string]: string } {
|
|
1203
|
+
return {
|
|
1204
|
+
imageId: 'ImageId',
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
static types(): { [key: string]: any } {
|
|
1209
|
+
return {
|
|
1210
|
+
imageId: 'string',
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
constructor(map?: { [key: string]: any }) {
|
|
1215
|
+
super(map);
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
export class CreateJobRequestDeploymentPolicyNetwork extends $tea.Model {
|
|
1220
|
+
vswitch?: string[];
|
|
1221
|
+
static names(): { [key: string]: string } {
|
|
1222
|
+
return {
|
|
1223
|
+
vswitch: 'Vswitch',
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
static types(): { [key: string]: any } {
|
|
1228
|
+
return {
|
|
1229
|
+
vswitch: { 'type': 'array', 'itemType': 'string' },
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
constructor(map?: { [key: string]: any }) {
|
|
1234
|
+
super(map);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
export class CreateJobRequestDeploymentPolicy extends $tea.Model {
|
|
1239
|
+
allocationSpec?: string;
|
|
1240
|
+
network?: CreateJobRequestDeploymentPolicyNetwork;
|
|
1241
|
+
static names(): { [key: string]: string } {
|
|
1242
|
+
return {
|
|
1243
|
+
allocationSpec: 'AllocationSpec',
|
|
1244
|
+
network: 'Network',
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
static types(): { [key: string]: any } {
|
|
1249
|
+
return {
|
|
1250
|
+
allocationSpec: 'string',
|
|
1251
|
+
network: CreateJobRequestDeploymentPolicyNetwork,
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
constructor(map?: { [key: string]: any }) {
|
|
1256
|
+
super(map);
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export class CreateJobRequestTasksExecutorPolicyArraySpec extends $tea.Model {
|
|
1261
|
+
indexEnd?: number;
|
|
1262
|
+
indexStart?: number;
|
|
1263
|
+
indexStep?: number;
|
|
1264
|
+
static names(): { [key: string]: string } {
|
|
1265
|
+
return {
|
|
1266
|
+
indexEnd: 'IndexEnd',
|
|
1267
|
+
indexStart: 'IndexStart',
|
|
1268
|
+
indexStep: 'IndexStep',
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
static types(): { [key: string]: any } {
|
|
1273
|
+
return {
|
|
1274
|
+
indexEnd: 'number',
|
|
1275
|
+
indexStart: 'number',
|
|
1276
|
+
indexStep: 'number',
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
constructor(map?: { [key: string]: any }) {
|
|
1281
|
+
super(map);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export class CreateJobRequestTasksExecutorPolicy extends $tea.Model {
|
|
1286
|
+
arraySpec?: CreateJobRequestTasksExecutorPolicyArraySpec;
|
|
1287
|
+
maxCount?: number;
|
|
1288
|
+
static names(): { [key: string]: string } {
|
|
1289
|
+
return {
|
|
1290
|
+
arraySpec: 'ArraySpec',
|
|
1291
|
+
maxCount: 'MaxCount',
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
static types(): { [key: string]: any } {
|
|
1296
|
+
return {
|
|
1297
|
+
arraySpec: CreateJobRequestTasksExecutorPolicyArraySpec,
|
|
1298
|
+
maxCount: 'number',
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
constructor(map?: { [key: string]: any }) {
|
|
1303
|
+
super(map);
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export class CreateJobRequestTasksTaskSpecResourceDisks extends $tea.Model {
|
|
1308
|
+
size?: number;
|
|
1309
|
+
type?: string;
|
|
1310
|
+
static names(): { [key: string]: string } {
|
|
1311
|
+
return {
|
|
1312
|
+
size: 'Size',
|
|
1313
|
+
type: 'Type',
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
static types(): { [key: string]: any } {
|
|
1318
|
+
return {
|
|
1319
|
+
size: 'number',
|
|
1320
|
+
type: 'string',
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
constructor(map?: { [key: string]: any }) {
|
|
1325
|
+
super(map);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
export class CreateJobRequestTasksTaskSpecResource extends $tea.Model {
|
|
1330
|
+
cores?: number;
|
|
1331
|
+
disks?: CreateJobRequestTasksTaskSpecResourceDisks[];
|
|
1332
|
+
memory?: number;
|
|
1333
|
+
static names(): { [key: string]: string } {
|
|
1334
|
+
return {
|
|
1335
|
+
cores: 'Cores',
|
|
1336
|
+
disks: 'Disks',
|
|
1337
|
+
memory: 'Memory',
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
static types(): { [key: string]: any } {
|
|
1342
|
+
return {
|
|
1343
|
+
cores: 'number',
|
|
1344
|
+
disks: { 'type': 'array', 'itemType': CreateJobRequestTasksTaskSpecResourceDisks },
|
|
1345
|
+
memory: 'number',
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
constructor(map?: { [key: string]: any }) {
|
|
1350
|
+
super(map);
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
export class CreateJobRequestTasksTaskSpecTaskExecutorContainerEnvironmentVars extends $tea.Model {
|
|
1355
|
+
name?: string;
|
|
1356
|
+
value?: string;
|
|
1357
|
+
static names(): { [key: string]: string } {
|
|
1358
|
+
return {
|
|
1359
|
+
name: 'Name',
|
|
1360
|
+
value: 'Value',
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
static types(): { [key: string]: any } {
|
|
1365
|
+
return {
|
|
1366
|
+
name: 'string',
|
|
1367
|
+
value: 'string',
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
constructor(map?: { [key: string]: any }) {
|
|
1372
|
+
super(map);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
export class CreateJobRequestTasksTaskSpecTaskExecutorContainer extends $tea.Model {
|
|
1377
|
+
command?: string[];
|
|
1378
|
+
environmentVars?: CreateJobRequestTasksTaskSpecTaskExecutorContainerEnvironmentVars[];
|
|
1379
|
+
image?: string;
|
|
1380
|
+
workingDir?: string;
|
|
1381
|
+
static names(): { [key: string]: string } {
|
|
1382
|
+
return {
|
|
1383
|
+
command: 'Command',
|
|
1384
|
+
environmentVars: 'EnvironmentVars',
|
|
1385
|
+
image: 'Image',
|
|
1386
|
+
workingDir: 'WorkingDir',
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
static types(): { [key: string]: any } {
|
|
1391
|
+
return {
|
|
1392
|
+
command: { 'type': 'array', 'itemType': 'string' },
|
|
1393
|
+
environmentVars: { 'type': 'array', 'itemType': CreateJobRequestTasksTaskSpecTaskExecutorContainerEnvironmentVars },
|
|
1394
|
+
image: 'string',
|
|
1395
|
+
workingDir: 'string',
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
constructor(map?: { [key: string]: any }) {
|
|
1400
|
+
super(map);
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
export class CreateJobRequestTasksTaskSpecTaskExecutorVM extends $tea.Model {
|
|
1405
|
+
image?: string;
|
|
1406
|
+
prologScript?: string;
|
|
1407
|
+
script?: string;
|
|
1408
|
+
static names(): { [key: string]: string } {
|
|
1409
|
+
return {
|
|
1410
|
+
image: 'Image',
|
|
1411
|
+
prologScript: 'PrologScript',
|
|
1412
|
+
script: 'Script',
|
|
1413
|
+
};
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
static types(): { [key: string]: any } {
|
|
1417
|
+
return {
|
|
1418
|
+
image: 'string',
|
|
1419
|
+
prologScript: 'string',
|
|
1420
|
+
script: 'string',
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
constructor(map?: { [key: string]: any }) {
|
|
1425
|
+
super(map);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
export class CreateJobRequestTasksTaskSpecTaskExecutor extends $tea.Model {
|
|
1430
|
+
container?: CreateJobRequestTasksTaskSpecTaskExecutorContainer;
|
|
1431
|
+
VM?: CreateJobRequestTasksTaskSpecTaskExecutorVM;
|
|
1432
|
+
static names(): { [key: string]: string } {
|
|
1433
|
+
return {
|
|
1434
|
+
container: 'Container',
|
|
1435
|
+
VM: 'VM',
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
static types(): { [key: string]: any } {
|
|
1440
|
+
return {
|
|
1441
|
+
container: CreateJobRequestTasksTaskSpecTaskExecutorContainer,
|
|
1442
|
+
VM: CreateJobRequestTasksTaskSpecTaskExecutorVM,
|
|
1443
|
+
};
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
constructor(map?: { [key: string]: any }) {
|
|
1447
|
+
super(map);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
export class CreateJobRequestTasksTaskSpecVolumeMount extends $tea.Model {
|
|
1452
|
+
mountOptions?: string;
|
|
1453
|
+
mountPath?: string;
|
|
1454
|
+
volumeDriver?: string;
|
|
1455
|
+
static names(): { [key: string]: string } {
|
|
1456
|
+
return {
|
|
1457
|
+
mountOptions: 'MountOptions',
|
|
1458
|
+
mountPath: 'MountPath',
|
|
1459
|
+
volumeDriver: 'VolumeDriver',
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
static types(): { [key: string]: any } {
|
|
1464
|
+
return {
|
|
1465
|
+
mountOptions: 'string',
|
|
1466
|
+
mountPath: 'string',
|
|
1467
|
+
volumeDriver: 'string',
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
constructor(map?: { [key: string]: any }) {
|
|
1472
|
+
super(map);
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
export class CreateJobRequestTasksTaskSpec extends $tea.Model {
|
|
1477
|
+
resource?: CreateJobRequestTasksTaskSpecResource;
|
|
1478
|
+
taskExecutor?: CreateJobRequestTasksTaskSpecTaskExecutor[];
|
|
1479
|
+
volumeMount?: CreateJobRequestTasksTaskSpecVolumeMount[];
|
|
1480
|
+
static names(): { [key: string]: string } {
|
|
1481
|
+
return {
|
|
1482
|
+
resource: 'Resource',
|
|
1483
|
+
taskExecutor: 'TaskExecutor',
|
|
1484
|
+
volumeMount: 'VolumeMount',
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
static types(): { [key: string]: any } {
|
|
1489
|
+
return {
|
|
1490
|
+
resource: CreateJobRequestTasksTaskSpecResource,
|
|
1491
|
+
taskExecutor: { 'type': 'array', 'itemType': CreateJobRequestTasksTaskSpecTaskExecutor },
|
|
1492
|
+
volumeMount: { 'type': 'array', 'itemType': CreateJobRequestTasksTaskSpecVolumeMount },
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
constructor(map?: { [key: string]: any }) {
|
|
1497
|
+
super(map);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
export class CreateJobRequestTasks extends $tea.Model {
|
|
1502
|
+
executorPolicy?: CreateJobRequestTasksExecutorPolicy;
|
|
1503
|
+
taskName?: string;
|
|
1504
|
+
taskSpec?: CreateJobRequestTasksTaskSpec;
|
|
1505
|
+
taskSustainable?: boolean;
|
|
1506
|
+
static names(): { [key: string]: string } {
|
|
1507
|
+
return {
|
|
1508
|
+
executorPolicy: 'ExecutorPolicy',
|
|
1509
|
+
taskName: 'TaskName',
|
|
1510
|
+
taskSpec: 'TaskSpec',
|
|
1511
|
+
taskSustainable: 'TaskSustainable',
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
static types(): { [key: string]: any } {
|
|
1516
|
+
return {
|
|
1517
|
+
executorPolicy: CreateJobRequestTasksExecutorPolicy,
|
|
1518
|
+
taskName: 'string',
|
|
1519
|
+
taskSpec: CreateJobRequestTasksTaskSpec,
|
|
1520
|
+
taskSustainable: 'boolean',
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
constructor(map?: { [key: string]: any }) {
|
|
1525
|
+
super(map);
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
export class DeleteJobsRequestJobSpecTaskSpec extends $tea.Model {
|
|
1530
|
+
arrayIndex?: number[];
|
|
1531
|
+
taskName?: string;
|
|
1532
|
+
static names(): { [key: string]: string } {
|
|
1533
|
+
return {
|
|
1534
|
+
arrayIndex: 'ArrayIndex',
|
|
1535
|
+
taskName: 'TaskName',
|
|
1536
|
+
};
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
static types(): { [key: string]: any } {
|
|
1540
|
+
return {
|
|
1541
|
+
arrayIndex: { 'type': 'array', 'itemType': 'number' },
|
|
1542
|
+
taskName: 'string',
|
|
1543
|
+
};
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
constructor(map?: { [key: string]: any }) {
|
|
1547
|
+
super(map);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
export class DeleteJobsRequestJobSpec extends $tea.Model {
|
|
1552
|
+
jobId?: string;
|
|
1553
|
+
taskSpec?: DeleteJobsRequestJobSpecTaskSpec[];
|
|
1554
|
+
static names(): { [key: string]: string } {
|
|
1555
|
+
return {
|
|
1556
|
+
jobId: 'JobId',
|
|
1557
|
+
taskSpec: 'TaskSpec',
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
static types(): { [key: string]: any } {
|
|
1562
|
+
return {
|
|
1563
|
+
jobId: 'string',
|
|
1564
|
+
taskSpec: { 'type': 'array', 'itemType': DeleteJobsRequestJobSpecTaskSpec },
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
constructor(map?: { [key: string]: any }) {
|
|
1569
|
+
super(map);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
export class DescribeJobMetricLastResponseBodyMetrics extends $tea.Model {
|
|
1574
|
+
arrayIndex?: number;
|
|
1575
|
+
metric?: string;
|
|
1576
|
+
static names(): { [key: string]: string } {
|
|
1577
|
+
return {
|
|
1578
|
+
arrayIndex: 'ArrayIndex',
|
|
1579
|
+
metric: 'Metric',
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
static types(): { [key: string]: any } {
|
|
1584
|
+
return {
|
|
1585
|
+
arrayIndex: 'number',
|
|
1586
|
+
metric: 'string',
|
|
1587
|
+
};
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
constructor(map?: { [key: string]: any }) {
|
|
1591
|
+
super(map);
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
export class GetImageResponseBodyImageContainerImageSpecRegistryCredential extends $tea.Model {
|
|
1596
|
+
password?: string;
|
|
1597
|
+
server?: string;
|
|
1598
|
+
userName?: string;
|
|
1599
|
+
static names(): { [key: string]: string } {
|
|
1600
|
+
return {
|
|
1601
|
+
password: 'Password',
|
|
1602
|
+
server: 'Server',
|
|
1603
|
+
userName: 'UserName',
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
static types(): { [key: string]: any } {
|
|
1608
|
+
return {
|
|
1609
|
+
password: 'string',
|
|
1610
|
+
server: 'string',
|
|
1611
|
+
userName: 'string',
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
constructor(map?: { [key: string]: any }) {
|
|
1616
|
+
super(map);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
export class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
|
|
1621
|
+
isACREnterprise?: boolean;
|
|
1622
|
+
isACRRegistry?: boolean;
|
|
1623
|
+
registryCredential?: GetImageResponseBodyImageContainerImageSpecRegistryCredential;
|
|
1624
|
+
registryCriId?: string;
|
|
1625
|
+
registryUrl?: string;
|
|
1626
|
+
static names(): { [key: string]: string } {
|
|
1627
|
+
return {
|
|
1628
|
+
isACREnterprise: 'IsACREnterprise',
|
|
1629
|
+
isACRRegistry: 'IsACRRegistry',
|
|
1630
|
+
registryCredential: 'RegistryCredential',
|
|
1631
|
+
registryCriId: 'RegistryCriId',
|
|
1632
|
+
registryUrl: 'RegistryUrl',
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
static types(): { [key: string]: any } {
|
|
1637
|
+
return {
|
|
1638
|
+
isACREnterprise: 'boolean',
|
|
1639
|
+
isACRRegistry: 'boolean',
|
|
1640
|
+
registryCredential: GetImageResponseBodyImageContainerImageSpecRegistryCredential,
|
|
1641
|
+
registryCriId: 'string',
|
|
1642
|
+
registryUrl: 'string',
|
|
1643
|
+
};
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
constructor(map?: { [key: string]: any }) {
|
|
1647
|
+
super(map);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
export class GetImageResponseBodyImageVMImageSpec extends $tea.Model {
|
|
1652
|
+
architecture?: string;
|
|
1653
|
+
imageId?: string;
|
|
1654
|
+
osTag?: string;
|
|
1655
|
+
platform?: string;
|
|
1656
|
+
static names(): { [key: string]: string } {
|
|
1657
|
+
return {
|
|
1658
|
+
architecture: 'Architecture',
|
|
1659
|
+
imageId: 'ImageId',
|
|
1660
|
+
osTag: 'OsTag',
|
|
1661
|
+
platform: 'Platform',
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
static types(): { [key: string]: any } {
|
|
1666
|
+
return {
|
|
1667
|
+
architecture: 'string',
|
|
1668
|
+
imageId: 'string',
|
|
1669
|
+
osTag: 'string',
|
|
1670
|
+
platform: 'string',
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
constructor(map?: { [key: string]: any }) {
|
|
1675
|
+
super(map);
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
export class GetImageResponseBodyImage extends $tea.Model {
|
|
1680
|
+
containerImageSpec?: GetImageResponseBodyImageContainerImageSpec;
|
|
1681
|
+
createTime?: string;
|
|
1682
|
+
description?: string;
|
|
1683
|
+
imageType?: string;
|
|
1684
|
+
name?: string;
|
|
1685
|
+
size?: string;
|
|
1686
|
+
VMImageSpec?: GetImageResponseBodyImageVMImageSpec;
|
|
1687
|
+
version?: string;
|
|
1688
|
+
static names(): { [key: string]: string } {
|
|
1689
|
+
return {
|
|
1690
|
+
containerImageSpec: 'ContainerImageSpec',
|
|
1691
|
+
createTime: 'CreateTime',
|
|
1692
|
+
description: 'Description',
|
|
1693
|
+
imageType: 'ImageType',
|
|
1694
|
+
name: 'Name',
|
|
1695
|
+
size: 'Size',
|
|
1696
|
+
VMImageSpec: 'VMImageSpec',
|
|
1697
|
+
version: 'Version',
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
static types(): { [key: string]: any } {
|
|
1702
|
+
return {
|
|
1703
|
+
containerImageSpec: GetImageResponseBodyImageContainerImageSpec,
|
|
1704
|
+
createTime: 'string',
|
|
1705
|
+
description: 'string',
|
|
1706
|
+
imageType: 'string',
|
|
1707
|
+
name: 'string',
|
|
1708
|
+
size: 'string',
|
|
1709
|
+
VMImageSpec: GetImageResponseBodyImageVMImageSpec,
|
|
1710
|
+
version: 'string',
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
constructor(map?: { [key: string]: any }) {
|
|
1715
|
+
super(map);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
export class GetJobResponseBodyJobInfoDeploymentPolicyNetwork extends $tea.Model {
|
|
1720
|
+
vswitch?: string[];
|
|
1721
|
+
static names(): { [key: string]: string } {
|
|
1722
|
+
return {
|
|
1723
|
+
vswitch: 'Vswitch',
|
|
1724
|
+
};
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
static types(): { [key: string]: any } {
|
|
1728
|
+
return {
|
|
1729
|
+
vswitch: { 'type': 'array', 'itemType': 'string' },
|
|
1730
|
+
};
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
constructor(map?: { [key: string]: any }) {
|
|
1734
|
+
super(map);
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
export class GetJobResponseBodyJobInfoDeploymentPolicy extends $tea.Model {
|
|
1739
|
+
allocationSpec?: string;
|
|
1740
|
+
network?: GetJobResponseBodyJobInfoDeploymentPolicyNetwork;
|
|
1741
|
+
static names(): { [key: string]: string } {
|
|
1742
|
+
return {
|
|
1743
|
+
allocationSpec: 'AllocationSpec',
|
|
1744
|
+
network: 'Network',
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
static types(): { [key: string]: any } {
|
|
1749
|
+
return {
|
|
1750
|
+
allocationSpec: 'string',
|
|
1751
|
+
network: GetJobResponseBodyJobInfoDeploymentPolicyNetwork,
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
constructor(map?: { [key: string]: any }) {
|
|
1756
|
+
super(map);
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
export class GetJobResponseBodyJobInfoTasksExecutorPolicyArraySpec extends $tea.Model {
|
|
1761
|
+
indexEnd?: number;
|
|
1762
|
+
indexStart?: number;
|
|
1763
|
+
indexStep?: number;
|
|
1764
|
+
static names(): { [key: string]: string } {
|
|
1765
|
+
return {
|
|
1766
|
+
indexEnd: 'IndexEnd',
|
|
1767
|
+
indexStart: 'IndexStart',
|
|
1768
|
+
indexStep: 'IndexStep',
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
static types(): { [key: string]: any } {
|
|
1773
|
+
return {
|
|
1774
|
+
indexEnd: 'number',
|
|
1775
|
+
indexStart: 'number',
|
|
1776
|
+
indexStep: 'number',
|
|
1777
|
+
};
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
constructor(map?: { [key: string]: any }) {
|
|
1781
|
+
super(map);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
export class GetJobResponseBodyJobInfoTasksExecutorPolicy extends $tea.Model {
|
|
1786
|
+
arraySpec?: GetJobResponseBodyJobInfoTasksExecutorPolicyArraySpec;
|
|
1787
|
+
maxCount?: number;
|
|
1788
|
+
static names(): { [key: string]: string } {
|
|
1789
|
+
return {
|
|
1790
|
+
arraySpec: 'ArraySpec',
|
|
1791
|
+
maxCount: 'MaxCount',
|
|
1792
|
+
};
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
static types(): { [key: string]: any } {
|
|
1796
|
+
return {
|
|
1797
|
+
arraySpec: GetJobResponseBodyJobInfoTasksExecutorPolicyArraySpec,
|
|
1798
|
+
maxCount: 'number',
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
constructor(map?: { [key: string]: any }) {
|
|
1803
|
+
super(map);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
export class GetJobResponseBodyJobInfoTasksExecutorStatus extends $tea.Model {
|
|
1808
|
+
arrayId?: number;
|
|
1809
|
+
createTime?: string;
|
|
1810
|
+
endTime?: string;
|
|
1811
|
+
startTime?: string;
|
|
1812
|
+
status?: string;
|
|
1813
|
+
statusReason?: string;
|
|
1814
|
+
static names(): { [key: string]: string } {
|
|
1815
|
+
return {
|
|
1816
|
+
arrayId: 'ArrayId',
|
|
1817
|
+
createTime: 'CreateTime',
|
|
1818
|
+
endTime: 'EndTime',
|
|
1819
|
+
startTime: 'StartTime',
|
|
1820
|
+
status: 'Status',
|
|
1821
|
+
statusReason: 'StatusReason',
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
static types(): { [key: string]: any } {
|
|
1826
|
+
return {
|
|
1827
|
+
arrayId: 'number',
|
|
1828
|
+
createTime: 'string',
|
|
1829
|
+
endTime: 'string',
|
|
1830
|
+
startTime: 'string',
|
|
1831
|
+
status: 'string',
|
|
1832
|
+
statusReason: 'string',
|
|
1833
|
+
};
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
constructor(map?: { [key: string]: any }) {
|
|
1837
|
+
super(map);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
export class GetJobResponseBodyJobInfoTasksTaskSpecResourceDisks extends $tea.Model {
|
|
1842
|
+
size?: number;
|
|
1843
|
+
type?: string;
|
|
1844
|
+
static names(): { [key: string]: string } {
|
|
1845
|
+
return {
|
|
1846
|
+
size: 'Size',
|
|
1847
|
+
type: 'Type',
|
|
1848
|
+
};
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
static types(): { [key: string]: any } {
|
|
1852
|
+
return {
|
|
1853
|
+
size: 'number',
|
|
1854
|
+
type: 'string',
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
constructor(map?: { [key: string]: any }) {
|
|
1859
|
+
super(map);
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
export class GetJobResponseBodyJobInfoTasksTaskSpecResource extends $tea.Model {
|
|
1864
|
+
cores?: number;
|
|
1865
|
+
disks?: GetJobResponseBodyJobInfoTasksTaskSpecResourceDisks[];
|
|
1866
|
+
memory?: number;
|
|
1867
|
+
static names(): { [key: string]: string } {
|
|
1868
|
+
return {
|
|
1869
|
+
cores: 'Cores',
|
|
1870
|
+
disks: 'Disks',
|
|
1871
|
+
memory: 'Memory',
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
static types(): { [key: string]: any } {
|
|
1876
|
+
return {
|
|
1877
|
+
cores: 'number',
|
|
1878
|
+
disks: { 'type': 'array', 'itemType': GetJobResponseBodyJobInfoTasksTaskSpecResourceDisks },
|
|
1879
|
+
memory: 'number',
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
constructor(map?: { [key: string]: any }) {
|
|
1884
|
+
super(map);
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export class GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutorVM extends $tea.Model {
|
|
1889
|
+
image?: string;
|
|
1890
|
+
prologScript?: string;
|
|
1891
|
+
script?: string;
|
|
1892
|
+
static names(): { [key: string]: string } {
|
|
1893
|
+
return {
|
|
1894
|
+
image: 'Image',
|
|
1895
|
+
prologScript: 'PrologScript',
|
|
1896
|
+
script: 'Script',
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
static types(): { [key: string]: any } {
|
|
1901
|
+
return {
|
|
1902
|
+
image: 'string',
|
|
1903
|
+
prologScript: 'string',
|
|
1904
|
+
script: 'string',
|
|
1905
|
+
};
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
constructor(map?: { [key: string]: any }) {
|
|
1909
|
+
super(map);
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
export class GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutor extends $tea.Model {
|
|
1914
|
+
VM?: GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutorVM;
|
|
1915
|
+
static names(): { [key: string]: string } {
|
|
1916
|
+
return {
|
|
1917
|
+
VM: 'VM',
|
|
1918
|
+
};
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
static types(): { [key: string]: any } {
|
|
1922
|
+
return {
|
|
1923
|
+
VM: GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutorVM,
|
|
1924
|
+
};
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
constructor(map?: { [key: string]: any }) {
|
|
1928
|
+
super(map);
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
export class GetJobResponseBodyJobInfoTasksTaskSpec extends $tea.Model {
|
|
1933
|
+
resource?: GetJobResponseBodyJobInfoTasksTaskSpecResource;
|
|
1934
|
+
taskExecutor?: GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutor[];
|
|
1935
|
+
static names(): { [key: string]: string } {
|
|
1936
|
+
return {
|
|
1937
|
+
resource: 'Resource',
|
|
1938
|
+
taskExecutor: 'TaskExecutor',
|
|
1939
|
+
};
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
static types(): { [key: string]: any } {
|
|
1943
|
+
return {
|
|
1944
|
+
resource: GetJobResponseBodyJobInfoTasksTaskSpecResource,
|
|
1945
|
+
taskExecutor: { 'type': 'array', 'itemType': GetJobResponseBodyJobInfoTasksTaskSpecTaskExecutor },
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
constructor(map?: { [key: string]: any }) {
|
|
1950
|
+
super(map);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
export class GetJobResponseBodyJobInfoTasks extends $tea.Model {
|
|
1955
|
+
executorPolicy?: GetJobResponseBodyJobInfoTasksExecutorPolicy;
|
|
1956
|
+
executorStatus?: GetJobResponseBodyJobInfoTasksExecutorStatus[];
|
|
1957
|
+
taskName?: string;
|
|
1958
|
+
taskSpec?: GetJobResponseBodyJobInfoTasksTaskSpec;
|
|
1959
|
+
taskSustainable?: boolean;
|
|
1960
|
+
static names(): { [key: string]: string } {
|
|
1961
|
+
return {
|
|
1962
|
+
executorPolicy: 'ExecutorPolicy',
|
|
1963
|
+
executorStatus: 'ExecutorStatus',
|
|
1964
|
+
taskName: 'TaskName',
|
|
1965
|
+
taskSpec: 'TaskSpec',
|
|
1966
|
+
taskSustainable: 'TaskSustainable',
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
static types(): { [key: string]: any } {
|
|
1971
|
+
return {
|
|
1972
|
+
executorPolicy: GetJobResponseBodyJobInfoTasksExecutorPolicy,
|
|
1973
|
+
executorStatus: { 'type': 'array', 'itemType': GetJobResponseBodyJobInfoTasksExecutorStatus },
|
|
1974
|
+
taskName: 'string',
|
|
1975
|
+
taskSpec: GetJobResponseBodyJobInfoTasksTaskSpec,
|
|
1976
|
+
taskSustainable: 'boolean',
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
constructor(map?: { [key: string]: any }) {
|
|
1981
|
+
super(map);
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
export class GetJobResponseBodyJobInfo extends $tea.Model {
|
|
1986
|
+
createTime?: string;
|
|
1987
|
+
deploymentPolicy?: GetJobResponseBodyJobInfoDeploymentPolicy;
|
|
1988
|
+
endTime?: string;
|
|
1989
|
+
jobDescription?: string;
|
|
1990
|
+
jobId?: string;
|
|
1991
|
+
jobName?: string;
|
|
1992
|
+
startTime?: string;
|
|
1993
|
+
status?: string;
|
|
1994
|
+
tasks?: GetJobResponseBodyJobInfoTasks[];
|
|
1995
|
+
static names(): { [key: string]: string } {
|
|
1996
|
+
return {
|
|
1997
|
+
createTime: 'CreateTime',
|
|
1998
|
+
deploymentPolicy: 'DeploymentPolicy',
|
|
1999
|
+
endTime: 'EndTime',
|
|
2000
|
+
jobDescription: 'JobDescription',
|
|
2001
|
+
jobId: 'JobId',
|
|
2002
|
+
jobName: 'JobName',
|
|
2003
|
+
startTime: 'StartTime',
|
|
2004
|
+
status: 'Status',
|
|
2005
|
+
tasks: 'Tasks',
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
static types(): { [key: string]: any } {
|
|
2010
|
+
return {
|
|
2011
|
+
createTime: 'string',
|
|
2012
|
+
deploymentPolicy: GetJobResponseBodyJobInfoDeploymentPolicy,
|
|
2013
|
+
endTime: 'string',
|
|
2014
|
+
jobDescription: 'string',
|
|
2015
|
+
jobId: 'string',
|
|
2016
|
+
jobName: 'string',
|
|
2017
|
+
startTime: 'string',
|
|
2018
|
+
status: 'string',
|
|
2019
|
+
tasks: { 'type': 'array', 'itemType': GetJobResponseBodyJobInfoTasks },
|
|
2020
|
+
};
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
constructor(map?: { [key: string]: any }) {
|
|
2024
|
+
super(map);
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
export class ListExecutorsRequestFilter extends $tea.Model {
|
|
2029
|
+
executorIds?: string[];
|
|
2030
|
+
ipAddresses?: string[];
|
|
2031
|
+
jobName?: string;
|
|
2032
|
+
timeCreatedAfter?: number;
|
|
2033
|
+
timeCreatedBefore?: number;
|
|
2034
|
+
static names(): { [key: string]: string } {
|
|
2035
|
+
return {
|
|
2036
|
+
executorIds: 'ExecutorIds',
|
|
2037
|
+
ipAddresses: 'IpAddresses',
|
|
2038
|
+
jobName: 'JobName',
|
|
2039
|
+
timeCreatedAfter: 'TimeCreatedAfter',
|
|
2040
|
+
timeCreatedBefore: 'TimeCreatedBefore',
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
static types(): { [key: string]: any } {
|
|
2045
|
+
return {
|
|
2046
|
+
executorIds: { 'type': 'array', 'itemType': 'string' },
|
|
2047
|
+
ipAddresses: { 'type': 'array', 'itemType': 'string' },
|
|
2048
|
+
jobName: 'string',
|
|
2049
|
+
timeCreatedAfter: 'number',
|
|
2050
|
+
timeCreatedBefore: 'number',
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
constructor(map?: { [key: string]: any }) {
|
|
2055
|
+
super(map);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
export class ListExecutorsResponseBodyExecutors extends $tea.Model {
|
|
2060
|
+
arrayIndex?: number;
|
|
2061
|
+
createTime?: string;
|
|
2062
|
+
endTime?: string;
|
|
2063
|
+
executorId?: string;
|
|
2064
|
+
hostName?: string[];
|
|
2065
|
+
ipAddress?: string[];
|
|
2066
|
+
jobId?: string;
|
|
2067
|
+
jobName?: string;
|
|
2068
|
+
status?: string;
|
|
2069
|
+
statusReason?: string;
|
|
2070
|
+
taskName?: string;
|
|
2071
|
+
static names(): { [key: string]: string } {
|
|
2072
|
+
return {
|
|
2073
|
+
arrayIndex: 'ArrayIndex',
|
|
2074
|
+
createTime: 'CreateTime',
|
|
2075
|
+
endTime: 'EndTime',
|
|
2076
|
+
executorId: 'ExecutorId',
|
|
2077
|
+
hostName: 'HostName',
|
|
2078
|
+
ipAddress: 'IpAddress',
|
|
2079
|
+
jobId: 'JobId',
|
|
2080
|
+
jobName: 'JobName',
|
|
2081
|
+
status: 'Status',
|
|
2082
|
+
statusReason: 'StatusReason',
|
|
2083
|
+
taskName: 'TaskName',
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
static types(): { [key: string]: any } {
|
|
2088
|
+
return {
|
|
2089
|
+
arrayIndex: 'number',
|
|
2090
|
+
createTime: 'string',
|
|
2091
|
+
endTime: 'string',
|
|
2092
|
+
executorId: 'string',
|
|
2093
|
+
hostName: { 'type': 'array', 'itemType': 'string' },
|
|
2094
|
+
ipAddress: { 'type': 'array', 'itemType': 'string' },
|
|
2095
|
+
jobId: 'string',
|
|
2096
|
+
jobName: 'string',
|
|
2097
|
+
status: 'string',
|
|
2098
|
+
statusReason: 'string',
|
|
2099
|
+
taskName: 'string',
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
constructor(map?: { [key: string]: any }) {
|
|
2104
|
+
super(map);
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
export class ListImagesResponseBodyImages extends $tea.Model {
|
|
2109
|
+
createTime?: string;
|
|
2110
|
+
description?: string;
|
|
2111
|
+
imageId?: string;
|
|
2112
|
+
imageType?: string;
|
|
2113
|
+
name?: string;
|
|
2114
|
+
version?: string;
|
|
2115
|
+
static names(): { [key: string]: string } {
|
|
2116
|
+
return {
|
|
2117
|
+
createTime: 'CreateTime',
|
|
2118
|
+
description: 'Description',
|
|
2119
|
+
imageId: 'ImageId',
|
|
2120
|
+
imageType: 'ImageType',
|
|
2121
|
+
name: 'Name',
|
|
2122
|
+
version: 'Version',
|
|
2123
|
+
};
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
static types(): { [key: string]: any } {
|
|
2127
|
+
return {
|
|
2128
|
+
createTime: 'string',
|
|
2129
|
+
description: 'string',
|
|
2130
|
+
imageId: 'string',
|
|
2131
|
+
imageType: 'string',
|
|
2132
|
+
name: 'string',
|
|
2133
|
+
version: 'string',
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
constructor(map?: { [key: string]: any }) {
|
|
2138
|
+
super(map);
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
export class ListJobExecutorsResponseBodyExecutors extends $tea.Model {
|
|
2143
|
+
arrayIndex?: number;
|
|
2144
|
+
createTime?: string;
|
|
2145
|
+
endTime?: string;
|
|
2146
|
+
hostName?: string[];
|
|
2147
|
+
ipAddress?: string[];
|
|
2148
|
+
status?: string;
|
|
2149
|
+
statusReason?: string;
|
|
2150
|
+
static names(): { [key: string]: string } {
|
|
2151
|
+
return {
|
|
2152
|
+
arrayIndex: 'ArrayIndex',
|
|
2153
|
+
createTime: 'CreateTime',
|
|
2154
|
+
endTime: 'EndTime',
|
|
2155
|
+
hostName: 'HostName',
|
|
2156
|
+
ipAddress: 'IpAddress',
|
|
2157
|
+
status: 'Status',
|
|
2158
|
+
statusReason: 'StatusReason',
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
static types(): { [key: string]: any } {
|
|
2163
|
+
return {
|
|
2164
|
+
arrayIndex: 'number',
|
|
2165
|
+
createTime: 'string',
|
|
2166
|
+
endTime: 'string',
|
|
2167
|
+
hostName: { 'type': 'array', 'itemType': 'string' },
|
|
2168
|
+
ipAddress: { 'type': 'array', 'itemType': 'string' },
|
|
2169
|
+
status: 'string',
|
|
2170
|
+
statusReason: 'string',
|
|
2171
|
+
};
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
constructor(map?: { [key: string]: any }) {
|
|
2175
|
+
super(map);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
export class ListJobsRequestFilter extends $tea.Model {
|
|
2180
|
+
jobId?: string;
|
|
2181
|
+
jobName?: string;
|
|
2182
|
+
status?: string;
|
|
2183
|
+
timeCreatedAfter?: number;
|
|
2184
|
+
timeCreatedBefore?: number;
|
|
2185
|
+
static names(): { [key: string]: string } {
|
|
2186
|
+
return {
|
|
2187
|
+
jobId: 'JobId',
|
|
2188
|
+
jobName: 'JobName',
|
|
2189
|
+
status: 'Status',
|
|
2190
|
+
timeCreatedAfter: 'TimeCreatedAfter',
|
|
2191
|
+
timeCreatedBefore: 'TimeCreatedBefore',
|
|
2192
|
+
};
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
static types(): { [key: string]: any } {
|
|
2196
|
+
return {
|
|
2197
|
+
jobId: 'string',
|
|
2198
|
+
jobName: 'string',
|
|
2199
|
+
status: 'string',
|
|
2200
|
+
timeCreatedAfter: 'number',
|
|
2201
|
+
timeCreatedBefore: 'number',
|
|
2202
|
+
};
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
constructor(map?: { [key: string]: any }) {
|
|
2206
|
+
super(map);
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
export class ListJobsRequestSortBy extends $tea.Model {
|
|
2211
|
+
label?: string;
|
|
2212
|
+
order?: string;
|
|
2213
|
+
static names(): { [key: string]: string } {
|
|
2214
|
+
return {
|
|
2215
|
+
label: 'Label',
|
|
2216
|
+
order: 'Order',
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
static types(): { [key: string]: any } {
|
|
2221
|
+
return {
|
|
2222
|
+
label: 'string',
|
|
2223
|
+
order: 'string',
|
|
2224
|
+
};
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
constructor(map?: { [key: string]: any }) {
|
|
2228
|
+
super(map);
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
export class ListJobsResponseBodyJobList extends $tea.Model {
|
|
2233
|
+
createTime?: string;
|
|
2234
|
+
endTime?: string;
|
|
2235
|
+
executorCount?: number;
|
|
2236
|
+
jobDescription?: string;
|
|
2237
|
+
jobId?: string;
|
|
2238
|
+
jobName?: string;
|
|
2239
|
+
ownerUid?: string;
|
|
2240
|
+
startTime?: string;
|
|
2241
|
+
status?: string;
|
|
2242
|
+
taskCount?: number;
|
|
2243
|
+
taskSustainable?: boolean;
|
|
2244
|
+
static names(): { [key: string]: string } {
|
|
2245
|
+
return {
|
|
2246
|
+
createTime: 'CreateTime',
|
|
2247
|
+
endTime: 'EndTime',
|
|
2248
|
+
executorCount: 'ExecutorCount',
|
|
2249
|
+
jobDescription: 'JobDescription',
|
|
2250
|
+
jobId: 'JobId',
|
|
2251
|
+
jobName: 'JobName',
|
|
2252
|
+
ownerUid: 'OwnerUid',
|
|
2253
|
+
startTime: 'StartTime',
|
|
2254
|
+
status: 'Status',
|
|
2255
|
+
taskCount: 'TaskCount',
|
|
2256
|
+
taskSustainable: 'TaskSustainable',
|
|
2257
|
+
};
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
static types(): { [key: string]: any } {
|
|
2261
|
+
return {
|
|
2262
|
+
createTime: 'string',
|
|
2263
|
+
endTime: 'string',
|
|
2264
|
+
executorCount: 'number',
|
|
2265
|
+
jobDescription: 'string',
|
|
2266
|
+
jobId: 'string',
|
|
2267
|
+
jobName: 'string',
|
|
2268
|
+
ownerUid: 'string',
|
|
2269
|
+
startTime: 'string',
|
|
2270
|
+
status: 'string',
|
|
2271
|
+
taskCount: 'number',
|
|
2272
|
+
taskSustainable: 'boolean',
|
|
2273
|
+
};
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
constructor(map?: { [key: string]: any }) {
|
|
2277
|
+
super(map);
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
export default class Client extends OpenApi {
|
|
2283
|
+
|
|
2284
|
+
constructor(config: $OpenApi.Config) {
|
|
2285
|
+
super(config);
|
|
2286
|
+
this._endpointRule = "";
|
|
2287
|
+
this.checkConfig(config);
|
|
2288
|
+
this._endpoint = this.getEndpoint("ehpcinstant", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
|
|
2292
|
+
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
|
|
2293
|
+
if (!Util.empty(endpoint)) {
|
|
2294
|
+
return endpoint;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
|
|
2298
|
+
return endpointMap[regionId];
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
async addImageWithOptions(tmpReq: AddImageRequest, runtime: $Util.RuntimeOptions): Promise<AddImageResponse> {
|
|
2305
|
+
Util.validateModel(tmpReq);
|
|
2306
|
+
let request = new AddImageShrinkRequest({ });
|
|
2307
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2308
|
+
if (!Util.isUnset(tmpReq.containerImageSpec)) {
|
|
2309
|
+
request.containerImageSpecShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.containerImageSpec, "ContainerImageSpec", "json");
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
if (!Util.isUnset(tmpReq.VMImageSpec)) {
|
|
2313
|
+
request.VMImageSpecShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.VMImageSpec, "VMImageSpec", "json");
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
let query = { };
|
|
2317
|
+
if (!Util.isUnset(request.containerImageSpecShrink)) {
|
|
2318
|
+
query["ContainerImageSpec"] = request.containerImageSpecShrink;
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
if (!Util.isUnset(request.description)) {
|
|
2322
|
+
query["Description"] = request.description;
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
if (!Util.isUnset(request.imageVersion)) {
|
|
2326
|
+
query["ImageVersion"] = request.imageVersion;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
if (!Util.isUnset(request.name)) {
|
|
2330
|
+
query["Name"] = request.name;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
if (!Util.isUnset(request.VMImageSpecShrink)) {
|
|
2334
|
+
query["VMImageSpec"] = request.VMImageSpecShrink;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2338
|
+
query: OpenApiUtil.query(query),
|
|
2339
|
+
});
|
|
2340
|
+
let params = new $OpenApi.Params({
|
|
2341
|
+
action: "AddImage",
|
|
2342
|
+
version: "2023-07-01",
|
|
2343
|
+
protocol: "HTTPS",
|
|
2344
|
+
pathname: "/",
|
|
2345
|
+
method: "POST",
|
|
2346
|
+
authType: "AK",
|
|
2347
|
+
style: "RPC",
|
|
2348
|
+
reqBodyType: "formData",
|
|
2349
|
+
bodyType: "json",
|
|
2350
|
+
});
|
|
2351
|
+
return $tea.cast<AddImageResponse>(await this.callApi(params, req, runtime), new AddImageResponse({}));
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
async addImage(request: AddImageRequest): Promise<AddImageResponse> {
|
|
2355
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2356
|
+
return await this.addImageWithOptions(request, runtime);
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
async createJobWithOptions(tmpReq: CreateJobRequest, runtime: $Util.RuntimeOptions): Promise<CreateJobResponse> {
|
|
2360
|
+
Util.validateModel(tmpReq);
|
|
2361
|
+
let request = new CreateJobShrinkRequest({ });
|
|
2362
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2363
|
+
if (!Util.isUnset(tmpReq.deploymentPolicy)) {
|
|
2364
|
+
request.deploymentPolicyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.deploymentPolicy, "DeploymentPolicy", "json");
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
if (!Util.isUnset(tmpReq.tasks)) {
|
|
2368
|
+
request.tasksShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tasks, "Tasks", "json");
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
let query = { };
|
|
2372
|
+
if (!Util.isUnset(request.deploymentPolicyShrink)) {
|
|
2373
|
+
query["DeploymentPolicy"] = request.deploymentPolicyShrink;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
if (!Util.isUnset(request.jobDescription)) {
|
|
2377
|
+
query["JobDescription"] = request.jobDescription;
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
if (!Util.isUnset(request.jobName)) {
|
|
2381
|
+
query["JobName"] = request.jobName;
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
if (!Util.isUnset(request.tasksShrink)) {
|
|
2385
|
+
query["Tasks"] = request.tasksShrink;
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2389
|
+
query: OpenApiUtil.query(query),
|
|
2390
|
+
});
|
|
2391
|
+
let params = new $OpenApi.Params({
|
|
2392
|
+
action: "CreateJob",
|
|
2393
|
+
version: "2023-07-01",
|
|
2394
|
+
protocol: "HTTPS",
|
|
2395
|
+
pathname: "/",
|
|
2396
|
+
method: "POST",
|
|
2397
|
+
authType: "AK",
|
|
2398
|
+
style: "RPC",
|
|
2399
|
+
reqBodyType: "formData",
|
|
2400
|
+
bodyType: "json",
|
|
2401
|
+
});
|
|
2402
|
+
return $tea.cast<CreateJobResponse>(await this.callApi(params, req, runtime), new CreateJobResponse({}));
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
async createJob(request: CreateJobRequest): Promise<CreateJobResponse> {
|
|
2406
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2407
|
+
return await this.createJobWithOptions(request, runtime);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
async deleteJobsWithOptions(tmpReq: DeleteJobsRequest, runtime: $Util.RuntimeOptions): Promise<DeleteJobsResponse> {
|
|
2411
|
+
Util.validateModel(tmpReq);
|
|
2412
|
+
let request = new DeleteJobsShrinkRequest({ });
|
|
2413
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2414
|
+
if (!Util.isUnset(tmpReq.executorIds)) {
|
|
2415
|
+
request.executorIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.executorIds, "ExecutorIds", "json");
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
if (!Util.isUnset(tmpReq.jobSpec)) {
|
|
2419
|
+
request.jobSpecShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.jobSpec, "JobSpec", "json");
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
let query = { };
|
|
2423
|
+
if (!Util.isUnset(request.executorIdsShrink)) {
|
|
2424
|
+
query["ExecutorIds"] = request.executorIdsShrink;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
if (!Util.isUnset(request.jobSpecShrink)) {
|
|
2428
|
+
query["JobSpec"] = request.jobSpecShrink;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2432
|
+
query: OpenApiUtil.query(query),
|
|
2433
|
+
});
|
|
2434
|
+
let params = new $OpenApi.Params({
|
|
2435
|
+
action: "DeleteJobs",
|
|
2436
|
+
version: "2023-07-01",
|
|
2437
|
+
protocol: "HTTPS",
|
|
2438
|
+
pathname: "/",
|
|
2439
|
+
method: "POST",
|
|
2440
|
+
authType: "AK",
|
|
2441
|
+
style: "RPC",
|
|
2442
|
+
reqBodyType: "formData",
|
|
2443
|
+
bodyType: "json",
|
|
2444
|
+
});
|
|
2445
|
+
return $tea.cast<DeleteJobsResponse>(await this.callApi(params, req, runtime), new DeleteJobsResponse({}));
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
async deleteJobs(request: DeleteJobsRequest): Promise<DeleteJobsResponse> {
|
|
2449
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2450
|
+
return await this.deleteJobsWithOptions(request, runtime);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
async describeJobMetricDataWithOptions(tmpReq: DescribeJobMetricDataRequest, runtime: $Util.RuntimeOptions): Promise<DescribeJobMetricDataResponse> {
|
|
2454
|
+
Util.validateModel(tmpReq);
|
|
2455
|
+
let request = new DescribeJobMetricDataShrinkRequest({ });
|
|
2456
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2457
|
+
if (!Util.isUnset(tmpReq.arrayIndex)) {
|
|
2458
|
+
request.arrayIndexShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.arrayIndex, "ArrayIndex", "json");
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
let query = { };
|
|
2462
|
+
if (!Util.isUnset(request.arrayIndexShrink)) {
|
|
2463
|
+
query["ArrayIndex"] = request.arrayIndexShrink;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
if (!Util.isUnset(request.jobId)) {
|
|
2467
|
+
query["JobId"] = request.jobId;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
if (!Util.isUnset(request.metricName)) {
|
|
2471
|
+
query["MetricName"] = request.metricName;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
if (!Util.isUnset(request.taskName)) {
|
|
2475
|
+
query["TaskName"] = request.taskName;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2479
|
+
query: OpenApiUtil.query(query),
|
|
2480
|
+
});
|
|
2481
|
+
let params = new $OpenApi.Params({
|
|
2482
|
+
action: "DescribeJobMetricData",
|
|
2483
|
+
version: "2023-07-01",
|
|
2484
|
+
protocol: "HTTPS",
|
|
2485
|
+
pathname: "/",
|
|
2486
|
+
method: "POST",
|
|
2487
|
+
authType: "AK",
|
|
2488
|
+
style: "RPC",
|
|
2489
|
+
reqBodyType: "formData",
|
|
2490
|
+
bodyType: "json",
|
|
2491
|
+
});
|
|
2492
|
+
return $tea.cast<DescribeJobMetricDataResponse>(await this.callApi(params, req, runtime), new DescribeJobMetricDataResponse({}));
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
async describeJobMetricData(request: DescribeJobMetricDataRequest): Promise<DescribeJobMetricDataResponse> {
|
|
2496
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2497
|
+
return await this.describeJobMetricDataWithOptions(request, runtime);
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
async describeJobMetricLastWithOptions(tmpReq: DescribeJobMetricLastRequest, runtime: $Util.RuntimeOptions): Promise<DescribeJobMetricLastResponse> {
|
|
2501
|
+
Util.validateModel(tmpReq);
|
|
2502
|
+
let request = new DescribeJobMetricLastShrinkRequest({ });
|
|
2503
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2504
|
+
if (!Util.isUnset(tmpReq.arrayIndex)) {
|
|
2505
|
+
request.arrayIndexShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.arrayIndex, "ArrayIndex", "json");
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
let query = { };
|
|
2509
|
+
if (!Util.isUnset(request.arrayIndexShrink)) {
|
|
2510
|
+
query["ArrayIndex"] = request.arrayIndexShrink;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
if (!Util.isUnset(request.jobId)) {
|
|
2514
|
+
query["JobId"] = request.jobId;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
if (!Util.isUnset(request.taskName)) {
|
|
2518
|
+
query["TaskName"] = request.taskName;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2522
|
+
query: OpenApiUtil.query(query),
|
|
2523
|
+
});
|
|
2524
|
+
let params = new $OpenApi.Params({
|
|
2525
|
+
action: "DescribeJobMetricLast",
|
|
2526
|
+
version: "2023-07-01",
|
|
2527
|
+
protocol: "HTTPS",
|
|
2528
|
+
pathname: "/",
|
|
2529
|
+
method: "POST",
|
|
2530
|
+
authType: "AK",
|
|
2531
|
+
style: "RPC",
|
|
2532
|
+
reqBodyType: "formData",
|
|
2533
|
+
bodyType: "json",
|
|
2534
|
+
});
|
|
2535
|
+
return $tea.cast<DescribeJobMetricLastResponse>(await this.callApi(params, req, runtime), new DescribeJobMetricLastResponse({}));
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
async describeJobMetricLast(request: DescribeJobMetricLastRequest): Promise<DescribeJobMetricLastResponse> {
|
|
2539
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2540
|
+
return await this.describeJobMetricLastWithOptions(request, runtime);
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
async getImageWithOptions(request: GetImageRequest, runtime: $Util.RuntimeOptions): Promise<GetImageResponse> {
|
|
2544
|
+
Util.validateModel(request);
|
|
2545
|
+
let query = { };
|
|
2546
|
+
if (!Util.isUnset(request.imageId)) {
|
|
2547
|
+
query["ImageId"] = request.imageId;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2551
|
+
query: OpenApiUtil.query(query),
|
|
2552
|
+
});
|
|
2553
|
+
let params = new $OpenApi.Params({
|
|
2554
|
+
action: "GetImage",
|
|
2555
|
+
version: "2023-07-01",
|
|
2556
|
+
protocol: "HTTPS",
|
|
2557
|
+
pathname: "/",
|
|
2558
|
+
method: "POST",
|
|
2559
|
+
authType: "AK",
|
|
2560
|
+
style: "RPC",
|
|
2561
|
+
reqBodyType: "formData",
|
|
2562
|
+
bodyType: "json",
|
|
2563
|
+
});
|
|
2564
|
+
return $tea.cast<GetImageResponse>(await this.callApi(params, req, runtime), new GetImageResponse({}));
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
async getImage(request: GetImageRequest): Promise<GetImageResponse> {
|
|
2568
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2569
|
+
return await this.getImageWithOptions(request, runtime);
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
async getJobWithOptions(request: GetJobRequest, runtime: $Util.RuntimeOptions): Promise<GetJobResponse> {
|
|
2573
|
+
Util.validateModel(request);
|
|
2574
|
+
let query = { };
|
|
2575
|
+
if (!Util.isUnset(request.jobId)) {
|
|
2576
|
+
query["JobId"] = request.jobId;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2580
|
+
query: OpenApiUtil.query(query),
|
|
2581
|
+
});
|
|
2582
|
+
let params = new $OpenApi.Params({
|
|
2583
|
+
action: "GetJob",
|
|
2584
|
+
version: "2023-07-01",
|
|
2585
|
+
protocol: "HTTPS",
|
|
2586
|
+
pathname: "/",
|
|
2587
|
+
method: "POST",
|
|
2588
|
+
authType: "AK",
|
|
2589
|
+
style: "RPC",
|
|
2590
|
+
reqBodyType: "formData",
|
|
2591
|
+
bodyType: "json",
|
|
2592
|
+
});
|
|
2593
|
+
return $tea.cast<GetJobResponse>(await this.callApi(params, req, runtime), new GetJobResponse({}));
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
async getJob(request: GetJobRequest): Promise<GetJobResponse> {
|
|
2597
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2598
|
+
return await this.getJobWithOptions(request, runtime);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
async listExecutorsWithOptions(tmpReq: ListExecutorsRequest, runtime: $Util.RuntimeOptions): Promise<ListExecutorsResponse> {
|
|
2602
|
+
Util.validateModel(tmpReq);
|
|
2603
|
+
let request = new ListExecutorsShrinkRequest({ });
|
|
2604
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2605
|
+
if (!Util.isUnset(tmpReq.filter)) {
|
|
2606
|
+
request.filterShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.filter, "Filter", "json");
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
let query = { };
|
|
2610
|
+
if (!Util.isUnset(request.filterShrink)) {
|
|
2611
|
+
query["Filter"] = request.filterShrink;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
2615
|
+
query["PageNumber"] = request.pageNumber;
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
2619
|
+
query["PageSize"] = request.pageSize;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2623
|
+
query: OpenApiUtil.query(query),
|
|
2624
|
+
});
|
|
2625
|
+
let params = new $OpenApi.Params({
|
|
2626
|
+
action: "ListExecutors",
|
|
2627
|
+
version: "2023-07-01",
|
|
2628
|
+
protocol: "HTTPS",
|
|
2629
|
+
pathname: "/",
|
|
2630
|
+
method: "POST",
|
|
2631
|
+
authType: "AK",
|
|
2632
|
+
style: "RPC",
|
|
2633
|
+
reqBodyType: "formData",
|
|
2634
|
+
bodyType: "json",
|
|
2635
|
+
});
|
|
2636
|
+
return $tea.cast<ListExecutorsResponse>(await this.callApi(params, req, runtime), new ListExecutorsResponse({}));
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
async listExecutors(request: ListExecutorsRequest): Promise<ListExecutorsResponse> {
|
|
2640
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2641
|
+
return await this.listExecutorsWithOptions(request, runtime);
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
async listImagesWithOptions(tmpReq: ListImagesRequest, runtime: $Util.RuntimeOptions): Promise<ListImagesResponse> {
|
|
2645
|
+
Util.validateModel(tmpReq);
|
|
2646
|
+
let request = new ListImagesShrinkRequest({ });
|
|
2647
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2648
|
+
if (!Util.isUnset(tmpReq.imageIds)) {
|
|
2649
|
+
request.imageIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.imageIds, "ImageIds", "json");
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
if (!Util.isUnset(tmpReq.imageNames)) {
|
|
2653
|
+
request.imageNamesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.imageNames, "ImageNames", "json");
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
let query = { };
|
|
2657
|
+
if (!Util.isUnset(request.imageIdsShrink)) {
|
|
2658
|
+
query["ImageIds"] = request.imageIdsShrink;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
if (!Util.isUnset(request.imageNamesShrink)) {
|
|
2662
|
+
query["ImageNames"] = request.imageNamesShrink;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
2666
|
+
query["PageNumber"] = request.pageNumber;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
2670
|
+
query["PageSize"] = request.pageSize;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2674
|
+
query: OpenApiUtil.query(query),
|
|
2675
|
+
});
|
|
2676
|
+
let params = new $OpenApi.Params({
|
|
2677
|
+
action: "ListImages",
|
|
2678
|
+
version: "2023-07-01",
|
|
2679
|
+
protocol: "HTTPS",
|
|
2680
|
+
pathname: "/",
|
|
2681
|
+
method: "POST",
|
|
2682
|
+
authType: "AK",
|
|
2683
|
+
style: "RPC",
|
|
2684
|
+
reqBodyType: "formData",
|
|
2685
|
+
bodyType: "json",
|
|
2686
|
+
});
|
|
2687
|
+
return $tea.cast<ListImagesResponse>(await this.callApi(params, req, runtime), new ListImagesResponse({}));
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
async listImages(request: ListImagesRequest): Promise<ListImagesResponse> {
|
|
2691
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2692
|
+
return await this.listImagesWithOptions(request, runtime);
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
async listJobExecutorsWithOptions(request: ListJobExecutorsRequest, runtime: $Util.RuntimeOptions): Promise<ListJobExecutorsResponse> {
|
|
2696
|
+
Util.validateModel(request);
|
|
2697
|
+
let query = { };
|
|
2698
|
+
if (!Util.isUnset(request.jobId)) {
|
|
2699
|
+
query["JobId"] = request.jobId;
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
2703
|
+
query["PageNumber"] = request.pageNumber;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
2707
|
+
query["PageSize"] = request.pageSize;
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
if (!Util.isUnset(request.taskName)) {
|
|
2711
|
+
query["TaskName"] = request.taskName;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2715
|
+
query: OpenApiUtil.query(query),
|
|
2716
|
+
});
|
|
2717
|
+
let params = new $OpenApi.Params({
|
|
2718
|
+
action: "ListJobExecutors",
|
|
2719
|
+
version: "2023-07-01",
|
|
2720
|
+
protocol: "HTTPS",
|
|
2721
|
+
pathname: "/",
|
|
2722
|
+
method: "POST",
|
|
2723
|
+
authType: "AK",
|
|
2724
|
+
style: "RPC",
|
|
2725
|
+
reqBodyType: "formData",
|
|
2726
|
+
bodyType: "json",
|
|
2727
|
+
});
|
|
2728
|
+
return $tea.cast<ListJobExecutorsResponse>(await this.callApi(params, req, runtime), new ListJobExecutorsResponse({}));
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
async listJobExecutors(request: ListJobExecutorsRequest): Promise<ListJobExecutorsResponse> {
|
|
2732
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2733
|
+
return await this.listJobExecutorsWithOptions(request, runtime);
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
async listJobsWithOptions(tmpReq: ListJobsRequest, runtime: $Util.RuntimeOptions): Promise<ListJobsResponse> {
|
|
2737
|
+
Util.validateModel(tmpReq);
|
|
2738
|
+
let request = new ListJobsShrinkRequest({ });
|
|
2739
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2740
|
+
if (!Util.isUnset(tmpReq.filter)) {
|
|
2741
|
+
request.filterShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.filter, "Filter", "json");
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
if (!Util.isUnset(tmpReq.sortBy)) {
|
|
2745
|
+
request.sortByShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sortBy, "SortBy", "json");
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
let query = { };
|
|
2749
|
+
if (!Util.isUnset(request.filterShrink)) {
|
|
2750
|
+
query["Filter"] = request.filterShrink;
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
2754
|
+
query["PageNumber"] = request.pageNumber;
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
2758
|
+
query["PageSize"] = request.pageSize;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
if (!Util.isUnset(request.sortByShrink)) {
|
|
2762
|
+
query["SortBy"] = request.sortByShrink;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2766
|
+
query: OpenApiUtil.query(query),
|
|
2767
|
+
});
|
|
2768
|
+
let params = new $OpenApi.Params({
|
|
2769
|
+
action: "ListJobs",
|
|
2770
|
+
version: "2023-07-01",
|
|
2771
|
+
protocol: "HTTPS",
|
|
2772
|
+
pathname: "/",
|
|
2773
|
+
method: "POST",
|
|
2774
|
+
authType: "AK",
|
|
2775
|
+
style: "RPC",
|
|
2776
|
+
reqBodyType: "formData",
|
|
2777
|
+
bodyType: "json",
|
|
2778
|
+
});
|
|
2779
|
+
return $tea.cast<ListJobsResponse>(await this.callApi(params, req, runtime), new ListJobsResponse({}));
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
async listJobs(request: ListJobsRequest): Promise<ListJobsResponse> {
|
|
2783
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2784
|
+
return await this.listJobsWithOptions(request, runtime);
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
async removeImageWithOptions(request: RemoveImageRequest, runtime: $Util.RuntimeOptions): Promise<RemoveImageResponse> {
|
|
2788
|
+
Util.validateModel(request);
|
|
2789
|
+
let query = { };
|
|
2790
|
+
if (!Util.isUnset(request.imageId)) {
|
|
2791
|
+
query["ImageId"] = request.imageId;
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2795
|
+
query: OpenApiUtil.query(query),
|
|
2796
|
+
});
|
|
2797
|
+
let params = new $OpenApi.Params({
|
|
2798
|
+
action: "RemoveImage",
|
|
2799
|
+
version: "2023-07-01",
|
|
2800
|
+
protocol: "HTTPS",
|
|
2801
|
+
pathname: "/",
|
|
2802
|
+
method: "POST",
|
|
2803
|
+
authType: "AK",
|
|
2804
|
+
style: "RPC",
|
|
2805
|
+
reqBodyType: "formData",
|
|
2806
|
+
bodyType: "json",
|
|
2807
|
+
});
|
|
2808
|
+
return $tea.cast<RemoveImageResponse>(await this.callApi(params, req, runtime), new RemoveImageResponse({}));
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
async removeImage(request: RemoveImageRequest): Promise<RemoveImageResponse> {
|
|
2812
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2813
|
+
return await this.removeImageWithOptions(request, runtime);
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
}
|