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