@alicloud/pai-dlc20201203 1.2.3 → 1.2.5
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.d.ts +126 -3
- package/dist/client.js +210 -4
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +281 -5
package/dist/client.d.ts
CHANGED
|
@@ -211,6 +211,57 @@ export declare class ExtraPodSpec extends $tea.Model {
|
|
|
211
211
|
[key: string]: any;
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
+
export declare class FreeResourceClusterControlItem extends $tea.Model {
|
|
215
|
+
clusterID?: string;
|
|
216
|
+
clusterName?: string;
|
|
217
|
+
crossClusters?: boolean;
|
|
218
|
+
enableFreeResource?: boolean;
|
|
219
|
+
freeResourceClusterControlId?: string;
|
|
220
|
+
gmtCreateTime?: string;
|
|
221
|
+
gmtModifyTime?: string;
|
|
222
|
+
regionID?: string;
|
|
223
|
+
static names(): {
|
|
224
|
+
[key: string]: string;
|
|
225
|
+
};
|
|
226
|
+
static types(): {
|
|
227
|
+
[key: string]: any;
|
|
228
|
+
};
|
|
229
|
+
constructor(map?: {
|
|
230
|
+
[key: string]: any;
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
export declare class FreeResourceDetail extends $tea.Model {
|
|
234
|
+
amount?: number;
|
|
235
|
+
resourceType?: string;
|
|
236
|
+
static names(): {
|
|
237
|
+
[key: string]: string;
|
|
238
|
+
};
|
|
239
|
+
static types(): {
|
|
240
|
+
[key: string]: any;
|
|
241
|
+
};
|
|
242
|
+
constructor(map?: {
|
|
243
|
+
[key: string]: any;
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
export declare class FreeResourceItem extends $tea.Model {
|
|
247
|
+
availableNumber?: number;
|
|
248
|
+
clusterID?: string;
|
|
249
|
+
clusterName?: string;
|
|
250
|
+
freeResourceId?: string;
|
|
251
|
+
gmtCreateTime?: string;
|
|
252
|
+
gmtModifyTime?: string;
|
|
253
|
+
regionID?: string;
|
|
254
|
+
resourceType?: string;
|
|
255
|
+
static names(): {
|
|
256
|
+
[key: string]: string;
|
|
257
|
+
};
|
|
258
|
+
static types(): {
|
|
259
|
+
[key: string]: any;
|
|
260
|
+
};
|
|
261
|
+
constructor(map?: {
|
|
262
|
+
[key: string]: any;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
214
265
|
export declare class GPUDetail extends $tea.Model {
|
|
215
266
|
GPU?: string;
|
|
216
267
|
GPUType?: string;
|
|
@@ -225,6 +276,21 @@ export declare class GPUDetail extends $tea.Model {
|
|
|
225
276
|
[key: string]: any;
|
|
226
277
|
});
|
|
227
278
|
}
|
|
279
|
+
export declare class ImageConfig extends $tea.Model {
|
|
280
|
+
auth?: string;
|
|
281
|
+
dockerRegistry?: string;
|
|
282
|
+
password?: string;
|
|
283
|
+
username?: string;
|
|
284
|
+
static names(): {
|
|
285
|
+
[key: string]: string;
|
|
286
|
+
};
|
|
287
|
+
static types(): {
|
|
288
|
+
[key: string]: any;
|
|
289
|
+
};
|
|
290
|
+
constructor(map?: {
|
|
291
|
+
[key: string]: any;
|
|
292
|
+
});
|
|
293
|
+
}
|
|
228
294
|
export declare class ImageItem extends $tea.Model {
|
|
229
295
|
acceleratorType?: string;
|
|
230
296
|
authorId?: string;
|
|
@@ -259,10 +325,21 @@ export declare class JobDebuggerConfig extends $tea.Model {
|
|
|
259
325
|
});
|
|
260
326
|
}
|
|
261
327
|
export declare class JobElasticSpec extends $tea.Model {
|
|
328
|
+
AIMasterDockerImage?: string;
|
|
262
329
|
AIMasterType?: string;
|
|
330
|
+
EDPMaxParallelism?: number;
|
|
331
|
+
EDPMinParallelism?: number;
|
|
332
|
+
elasticStrategy?: string;
|
|
333
|
+
enableAIMaster?: boolean;
|
|
334
|
+
enableEDP?: boolean;
|
|
263
335
|
enableElasticTraining?: boolean;
|
|
336
|
+
enablePsJobElasticPS?: boolean;
|
|
337
|
+
enablePsJobElasticWorker?: boolean;
|
|
338
|
+
enablePsResourceEstimate?: boolean;
|
|
264
339
|
maxParallelism?: number;
|
|
265
340
|
minParallelism?: number;
|
|
341
|
+
PSMaxParallelism?: number;
|
|
342
|
+
PSMinParallelism?: number;
|
|
266
343
|
static names(): {
|
|
267
344
|
[key: string]: string;
|
|
268
345
|
};
|
|
@@ -300,6 +377,7 @@ export declare class JobItem extends $tea.Model {
|
|
|
300
377
|
resourceName?: string;
|
|
301
378
|
settings?: JobSettings;
|
|
302
379
|
status?: string;
|
|
380
|
+
subStatus?: string;
|
|
303
381
|
thirdpartyLibDir?: string;
|
|
304
382
|
thirdpartyLibs?: string[];
|
|
305
383
|
userCommand?: string;
|
|
@@ -317,6 +395,9 @@ export declare class JobItem extends $tea.Model {
|
|
|
317
395
|
});
|
|
318
396
|
}
|
|
319
397
|
export declare class JobSettings extends $tea.Model {
|
|
398
|
+
advancedSettings?: {
|
|
399
|
+
[key: string]: any;
|
|
400
|
+
};
|
|
320
401
|
businessUserId?: string;
|
|
321
402
|
caller?: string;
|
|
322
403
|
enableErrorMonitoringInAIMaster?: boolean;
|
|
@@ -324,6 +405,7 @@ export declare class JobSettings extends $tea.Model {
|
|
|
324
405
|
enableRDMA?: boolean;
|
|
325
406
|
enableTideResource?: boolean;
|
|
326
407
|
errorMonitoringArgs?: string;
|
|
408
|
+
oversoldType?: string;
|
|
327
409
|
pipelineId?: string;
|
|
328
410
|
tags?: {
|
|
329
411
|
[key: string]: string;
|
|
@@ -342,6 +424,7 @@ export declare class JobSpec extends $tea.Model {
|
|
|
342
424
|
ecsSpec?: string;
|
|
343
425
|
extraPodSpec?: ExtraPodSpec;
|
|
344
426
|
image?: string;
|
|
427
|
+
imageConfig?: ImageConfig;
|
|
345
428
|
podCount?: number;
|
|
346
429
|
resourceConfig?: ResourceConfig;
|
|
347
430
|
type?: string;
|
|
@@ -395,6 +478,26 @@ export declare class NodeMetric extends $tea.Model {
|
|
|
395
478
|
[key: string]: any;
|
|
396
479
|
});
|
|
397
480
|
}
|
|
481
|
+
export declare class PodItem extends $tea.Model {
|
|
482
|
+
gmtCreateTime?: string;
|
|
483
|
+
gmtFinishTime?: string;
|
|
484
|
+
gmtStartTime?: string;
|
|
485
|
+
historyPods?: PodItem[];
|
|
486
|
+
ip?: string;
|
|
487
|
+
podId?: string;
|
|
488
|
+
podUid?: string;
|
|
489
|
+
status?: string;
|
|
490
|
+
type?: string;
|
|
491
|
+
static names(): {
|
|
492
|
+
[key: string]: string;
|
|
493
|
+
};
|
|
494
|
+
static types(): {
|
|
495
|
+
[key: string]: any;
|
|
496
|
+
};
|
|
497
|
+
constructor(map?: {
|
|
498
|
+
[key: string]: any;
|
|
499
|
+
});
|
|
500
|
+
}
|
|
398
501
|
export declare class PodMetric extends $tea.Model {
|
|
399
502
|
metrics?: Metric[];
|
|
400
503
|
podId?: string;
|
|
@@ -643,12 +746,14 @@ export declare class CreateJobResponse extends $tea.Model {
|
|
|
643
746
|
});
|
|
644
747
|
}
|
|
645
748
|
export declare class CreateTensorboardRequest extends $tea.Model {
|
|
749
|
+
cpu?: number;
|
|
646
750
|
dataSourceId?: string;
|
|
647
751
|
dataSourceType?: string;
|
|
648
752
|
dataSources?: DataSourceItem[];
|
|
649
753
|
displayName?: string;
|
|
650
754
|
jobId?: string;
|
|
651
755
|
maxRunningTimeMinutes?: number;
|
|
756
|
+
memory?: number;
|
|
652
757
|
options?: string;
|
|
653
758
|
sourceId?: string;
|
|
654
759
|
sourceType?: string;
|
|
@@ -767,6 +872,18 @@ export declare class DeleteTensorboardResponse extends $tea.Model {
|
|
|
767
872
|
[key: string]: any;
|
|
768
873
|
});
|
|
769
874
|
}
|
|
875
|
+
export declare class GetJobRequest extends $tea.Model {
|
|
876
|
+
needDetail?: boolean;
|
|
877
|
+
static names(): {
|
|
878
|
+
[key: string]: string;
|
|
879
|
+
};
|
|
880
|
+
static types(): {
|
|
881
|
+
[key: string]: any;
|
|
882
|
+
};
|
|
883
|
+
constructor(map?: {
|
|
884
|
+
[key: string]: any;
|
|
885
|
+
});
|
|
886
|
+
}
|
|
770
887
|
export declare class GetJobResponseBody extends $tea.Model {
|
|
771
888
|
clusterId?: string;
|
|
772
889
|
codeSource?: GetJobResponseBodyCodeSource;
|
|
@@ -795,8 +912,10 @@ export declare class GetJobResponseBody extends $tea.Model {
|
|
|
795
912
|
requestId?: string;
|
|
796
913
|
resourceId?: string;
|
|
797
914
|
resourceLevel?: string;
|
|
915
|
+
restartTimes?: string;
|
|
798
916
|
settings?: JobSettings;
|
|
799
917
|
status?: string;
|
|
918
|
+
subStatus?: string;
|
|
800
919
|
thirdpartyLibDir?: string;
|
|
801
920
|
thirdpartyLibs?: string[];
|
|
802
921
|
userCommand?: string;
|
|
@@ -846,7 +965,7 @@ export declare class GetJobEventsRequest extends $tea.Model {
|
|
|
846
965
|
export declare class GetJobEventsResponseBody extends $tea.Model {
|
|
847
966
|
events?: string[];
|
|
848
967
|
jobId?: string;
|
|
849
|
-
requestId?:
|
|
968
|
+
requestId?: string;
|
|
850
969
|
static names(): {
|
|
851
970
|
[key: string]: string;
|
|
852
971
|
};
|
|
@@ -1534,7 +1653,9 @@ export declare class GetJobResponseBodyPodsHistoryPods extends $tea.Model {
|
|
|
1534
1653
|
ip?: string;
|
|
1535
1654
|
podId?: string;
|
|
1536
1655
|
podUid?: string;
|
|
1656
|
+
resourceType?: string;
|
|
1537
1657
|
status?: string;
|
|
1658
|
+
subStatus?: string;
|
|
1538
1659
|
type?: string;
|
|
1539
1660
|
static names(): {
|
|
1540
1661
|
[key: string]: string;
|
|
@@ -1554,7 +1675,9 @@ export declare class GetJobResponseBodyPods extends $tea.Model {
|
|
|
1554
1675
|
ip?: string;
|
|
1555
1676
|
podId?: string;
|
|
1556
1677
|
podUid?: string;
|
|
1678
|
+
resourceType?: string;
|
|
1557
1679
|
status?: string;
|
|
1680
|
+
subStatus?: string;
|
|
1558
1681
|
type?: string;
|
|
1559
1682
|
static names(): {
|
|
1560
1683
|
[key: string]: string;
|
|
@@ -1587,10 +1710,10 @@ export default class Client extends OpenApi {
|
|
|
1587
1710
|
[key: string]: string;
|
|
1588
1711
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteTensorboardResponse>;
|
|
1589
1712
|
deleteTensorboard(TensorboardId: string, request: DeleteTensorboardRequest): Promise<DeleteTensorboardResponse>;
|
|
1590
|
-
getJobWithOptions(JobId: string, headers: {
|
|
1713
|
+
getJobWithOptions(JobId: string, request: GetJobRequest, headers: {
|
|
1591
1714
|
[key: string]: string;
|
|
1592
1715
|
}, runtime: $Util.RuntimeOptions): Promise<GetJobResponse>;
|
|
1593
|
-
getJob(JobId: string): Promise<GetJobResponse>;
|
|
1716
|
+
getJob(JobId: string, request: GetJobRequest): Promise<GetJobResponse>;
|
|
1594
1717
|
getJobEventsWithOptions(JobId: string, request: GetJobEventsRequest, headers: {
|
|
1595
1718
|
[key: string]: string;
|
|
1596
1719
|
}, runtime: $Util.RuntimeOptions): Promise<GetJobEventsResponse>;
|
package/dist/client.js
CHANGED
|
@@ -337,6 +337,84 @@ class ExtraPodSpec extends $tea.Model {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
exports.ExtraPodSpec = ExtraPodSpec;
|
|
340
|
+
class FreeResourceClusterControlItem extends $tea.Model {
|
|
341
|
+
constructor(map) {
|
|
342
|
+
super(map);
|
|
343
|
+
}
|
|
344
|
+
static names() {
|
|
345
|
+
return {
|
|
346
|
+
clusterID: 'ClusterID',
|
|
347
|
+
clusterName: 'ClusterName',
|
|
348
|
+
crossClusters: 'CrossClusters',
|
|
349
|
+
enableFreeResource: 'EnableFreeResource',
|
|
350
|
+
freeResourceClusterControlId: 'FreeResourceClusterControlId',
|
|
351
|
+
gmtCreateTime: 'GmtCreateTime',
|
|
352
|
+
gmtModifyTime: 'GmtModifyTime',
|
|
353
|
+
regionID: 'RegionID',
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
static types() {
|
|
357
|
+
return {
|
|
358
|
+
clusterID: 'string',
|
|
359
|
+
clusterName: 'string',
|
|
360
|
+
crossClusters: 'boolean',
|
|
361
|
+
enableFreeResource: 'boolean',
|
|
362
|
+
freeResourceClusterControlId: 'string',
|
|
363
|
+
gmtCreateTime: 'string',
|
|
364
|
+
gmtModifyTime: 'string',
|
|
365
|
+
regionID: 'string',
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
exports.FreeResourceClusterControlItem = FreeResourceClusterControlItem;
|
|
370
|
+
class FreeResourceDetail extends $tea.Model {
|
|
371
|
+
constructor(map) {
|
|
372
|
+
super(map);
|
|
373
|
+
}
|
|
374
|
+
static names() {
|
|
375
|
+
return {
|
|
376
|
+
amount: 'Amount',
|
|
377
|
+
resourceType: 'ResourceType',
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
static types() {
|
|
381
|
+
return {
|
|
382
|
+
amount: 'number',
|
|
383
|
+
resourceType: 'string',
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
exports.FreeResourceDetail = FreeResourceDetail;
|
|
388
|
+
class FreeResourceItem extends $tea.Model {
|
|
389
|
+
constructor(map) {
|
|
390
|
+
super(map);
|
|
391
|
+
}
|
|
392
|
+
static names() {
|
|
393
|
+
return {
|
|
394
|
+
availableNumber: 'AvailableNumber',
|
|
395
|
+
clusterID: 'ClusterID',
|
|
396
|
+
clusterName: 'ClusterName',
|
|
397
|
+
freeResourceId: 'FreeResourceId',
|
|
398
|
+
gmtCreateTime: 'GmtCreateTime',
|
|
399
|
+
gmtModifyTime: 'GmtModifyTime',
|
|
400
|
+
regionID: 'RegionID',
|
|
401
|
+
resourceType: 'ResourceType',
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
static types() {
|
|
405
|
+
return {
|
|
406
|
+
availableNumber: 'number',
|
|
407
|
+
clusterID: 'string',
|
|
408
|
+
clusterName: 'string',
|
|
409
|
+
freeResourceId: 'string',
|
|
410
|
+
gmtCreateTime: 'string',
|
|
411
|
+
gmtModifyTime: 'string',
|
|
412
|
+
regionID: 'string',
|
|
413
|
+
resourceType: 'string',
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
exports.FreeResourceItem = FreeResourceItem;
|
|
340
418
|
class GPUDetail extends $tea.Model {
|
|
341
419
|
constructor(map) {
|
|
342
420
|
super(map);
|
|
@@ -357,6 +435,28 @@ class GPUDetail extends $tea.Model {
|
|
|
357
435
|
}
|
|
358
436
|
}
|
|
359
437
|
exports.GPUDetail = GPUDetail;
|
|
438
|
+
class ImageConfig extends $tea.Model {
|
|
439
|
+
constructor(map) {
|
|
440
|
+
super(map);
|
|
441
|
+
}
|
|
442
|
+
static names() {
|
|
443
|
+
return {
|
|
444
|
+
auth: 'Auth',
|
|
445
|
+
dockerRegistry: 'DockerRegistry',
|
|
446
|
+
password: 'Password',
|
|
447
|
+
username: 'Username',
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
static types() {
|
|
451
|
+
return {
|
|
452
|
+
auth: 'string',
|
|
453
|
+
dockerRegistry: 'string',
|
|
454
|
+
password: 'string',
|
|
455
|
+
username: 'string',
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
exports.ImageConfig = ImageConfig;
|
|
360
460
|
class ImageItem extends $tea.Model {
|
|
361
461
|
constructor(map) {
|
|
362
462
|
super(map);
|
|
@@ -413,18 +513,40 @@ class JobElasticSpec extends $tea.Model {
|
|
|
413
513
|
}
|
|
414
514
|
static names() {
|
|
415
515
|
return {
|
|
516
|
+
AIMasterDockerImage: 'AIMasterDockerImage',
|
|
416
517
|
AIMasterType: 'AIMasterType',
|
|
518
|
+
EDPMaxParallelism: 'EDPMaxParallelism',
|
|
519
|
+
EDPMinParallelism: 'EDPMinParallelism',
|
|
520
|
+
elasticStrategy: 'ElasticStrategy',
|
|
521
|
+
enableAIMaster: 'EnableAIMaster',
|
|
522
|
+
enableEDP: 'EnableEDP',
|
|
417
523
|
enableElasticTraining: 'EnableElasticTraining',
|
|
524
|
+
enablePsJobElasticPS: 'EnablePsJobElasticPS',
|
|
525
|
+
enablePsJobElasticWorker: 'EnablePsJobElasticWorker',
|
|
526
|
+
enablePsResourceEstimate: 'EnablePsResourceEstimate',
|
|
418
527
|
maxParallelism: 'MaxParallelism',
|
|
419
528
|
minParallelism: 'MinParallelism',
|
|
529
|
+
PSMaxParallelism: 'PSMaxParallelism',
|
|
530
|
+
PSMinParallelism: 'PSMinParallelism',
|
|
420
531
|
};
|
|
421
532
|
}
|
|
422
533
|
static types() {
|
|
423
534
|
return {
|
|
535
|
+
AIMasterDockerImage: 'string',
|
|
424
536
|
AIMasterType: 'string',
|
|
537
|
+
EDPMaxParallelism: 'number',
|
|
538
|
+
EDPMinParallelism: 'number',
|
|
539
|
+
elasticStrategy: 'string',
|
|
540
|
+
enableAIMaster: 'boolean',
|
|
541
|
+
enableEDP: 'boolean',
|
|
425
542
|
enableElasticTraining: 'boolean',
|
|
543
|
+
enablePsJobElasticPS: 'boolean',
|
|
544
|
+
enablePsJobElasticWorker: 'boolean',
|
|
545
|
+
enablePsResourceEstimate: 'boolean',
|
|
426
546
|
maxParallelism: 'number',
|
|
427
547
|
minParallelism: 'number',
|
|
548
|
+
PSMaxParallelism: 'number',
|
|
549
|
+
PSMinParallelism: 'number',
|
|
428
550
|
};
|
|
429
551
|
}
|
|
430
552
|
}
|
|
@@ -459,6 +581,7 @@ class JobItem extends $tea.Model {
|
|
|
459
581
|
resourceName: 'ResourceName',
|
|
460
582
|
settings: 'Settings',
|
|
461
583
|
status: 'Status',
|
|
584
|
+
subStatus: 'SubStatus',
|
|
462
585
|
thirdpartyLibDir: 'ThirdpartyLibDir',
|
|
463
586
|
thirdpartyLibs: 'ThirdpartyLibs',
|
|
464
587
|
userCommand: 'UserCommand',
|
|
@@ -493,6 +616,7 @@ class JobItem extends $tea.Model {
|
|
|
493
616
|
resourceName: 'string',
|
|
494
617
|
settings: JobSettings,
|
|
495
618
|
status: 'string',
|
|
619
|
+
subStatus: 'string',
|
|
496
620
|
thirdpartyLibDir: 'string',
|
|
497
621
|
thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
|
|
498
622
|
userCommand: 'string',
|
|
@@ -509,6 +633,7 @@ class JobSettings extends $tea.Model {
|
|
|
509
633
|
}
|
|
510
634
|
static names() {
|
|
511
635
|
return {
|
|
636
|
+
advancedSettings: 'AdvancedSettings',
|
|
512
637
|
businessUserId: 'BusinessUserId',
|
|
513
638
|
caller: 'Caller',
|
|
514
639
|
enableErrorMonitoringInAIMaster: 'EnableErrorMonitoringInAIMaster',
|
|
@@ -516,12 +641,14 @@ class JobSettings extends $tea.Model {
|
|
|
516
641
|
enableRDMA: 'EnableRDMA',
|
|
517
642
|
enableTideResource: 'EnableTideResource',
|
|
518
643
|
errorMonitoringArgs: 'ErrorMonitoringArgs',
|
|
644
|
+
oversoldType: 'OversoldType',
|
|
519
645
|
pipelineId: 'PipelineId',
|
|
520
646
|
tags: 'Tags',
|
|
521
647
|
};
|
|
522
648
|
}
|
|
523
649
|
static types() {
|
|
524
650
|
return {
|
|
651
|
+
advancedSettings: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
525
652
|
businessUserId: 'string',
|
|
526
653
|
caller: 'string',
|
|
527
654
|
enableErrorMonitoringInAIMaster: 'boolean',
|
|
@@ -529,6 +656,7 @@ class JobSettings extends $tea.Model {
|
|
|
529
656
|
enableRDMA: 'boolean',
|
|
530
657
|
enableTideResource: 'boolean',
|
|
531
658
|
errorMonitoringArgs: 'string',
|
|
659
|
+
oversoldType: 'string',
|
|
532
660
|
pipelineId: 'string',
|
|
533
661
|
tags: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
534
662
|
};
|
|
@@ -544,6 +672,7 @@ class JobSpec extends $tea.Model {
|
|
|
544
672
|
ecsSpec: 'EcsSpec',
|
|
545
673
|
extraPodSpec: 'ExtraPodSpec',
|
|
546
674
|
image: 'Image',
|
|
675
|
+
imageConfig: 'ImageConfig',
|
|
547
676
|
podCount: 'PodCount',
|
|
548
677
|
resourceConfig: 'ResourceConfig',
|
|
549
678
|
type: 'Type',
|
|
@@ -555,6 +684,7 @@ class JobSpec extends $tea.Model {
|
|
|
555
684
|
ecsSpec: 'string',
|
|
556
685
|
extraPodSpec: ExtraPodSpec,
|
|
557
686
|
image: 'string',
|
|
687
|
+
imageConfig: ImageConfig,
|
|
558
688
|
podCount: 'number',
|
|
559
689
|
resourceConfig: ResourceConfig,
|
|
560
690
|
type: 'string',
|
|
@@ -617,6 +747,38 @@ class NodeMetric extends $tea.Model {
|
|
|
617
747
|
}
|
|
618
748
|
}
|
|
619
749
|
exports.NodeMetric = NodeMetric;
|
|
750
|
+
class PodItem extends $tea.Model {
|
|
751
|
+
constructor(map) {
|
|
752
|
+
super(map);
|
|
753
|
+
}
|
|
754
|
+
static names() {
|
|
755
|
+
return {
|
|
756
|
+
gmtCreateTime: 'GmtCreateTime',
|
|
757
|
+
gmtFinishTime: 'GmtFinishTime',
|
|
758
|
+
gmtStartTime: 'GmtStartTime',
|
|
759
|
+
historyPods: 'HistoryPods',
|
|
760
|
+
ip: 'Ip',
|
|
761
|
+
podId: 'PodId',
|
|
762
|
+
podUid: 'PodUid',
|
|
763
|
+
status: 'Status',
|
|
764
|
+
type: 'Type',
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
static types() {
|
|
768
|
+
return {
|
|
769
|
+
gmtCreateTime: 'string',
|
|
770
|
+
gmtFinishTime: 'string',
|
|
771
|
+
gmtStartTime: 'string',
|
|
772
|
+
historyPods: { 'type': 'array', 'itemType': PodItem },
|
|
773
|
+
ip: 'string',
|
|
774
|
+
podId: 'string',
|
|
775
|
+
podUid: 'string',
|
|
776
|
+
status: 'string',
|
|
777
|
+
type: 'string',
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
exports.PodItem = PodItem;
|
|
620
782
|
class PodMetric extends $tea.Model {
|
|
621
783
|
constructor(map) {
|
|
622
784
|
super(map);
|
|
@@ -997,12 +1159,14 @@ class CreateTensorboardRequest extends $tea.Model {
|
|
|
997
1159
|
}
|
|
998
1160
|
static names() {
|
|
999
1161
|
return {
|
|
1162
|
+
cpu: 'Cpu',
|
|
1000
1163
|
dataSourceId: 'DataSourceId',
|
|
1001
1164
|
dataSourceType: 'DataSourceType',
|
|
1002
1165
|
dataSources: 'DataSources',
|
|
1003
1166
|
displayName: 'DisplayName',
|
|
1004
1167
|
jobId: 'JobId',
|
|
1005
1168
|
maxRunningTimeMinutes: 'MaxRunningTimeMinutes',
|
|
1169
|
+
memory: 'Memory',
|
|
1006
1170
|
options: 'Options',
|
|
1007
1171
|
sourceId: 'SourceId',
|
|
1008
1172
|
sourceType: 'SourceType',
|
|
@@ -1014,12 +1178,14 @@ class CreateTensorboardRequest extends $tea.Model {
|
|
|
1014
1178
|
}
|
|
1015
1179
|
static types() {
|
|
1016
1180
|
return {
|
|
1181
|
+
cpu: 'number',
|
|
1017
1182
|
dataSourceId: 'string',
|
|
1018
1183
|
dataSourceType: 'string',
|
|
1019
1184
|
dataSources: { 'type': 'array', 'itemType': DataSourceItem },
|
|
1020
1185
|
displayName: 'string',
|
|
1021
1186
|
jobId: 'string',
|
|
1022
1187
|
maxRunningTimeMinutes: 'number',
|
|
1188
|
+
memory: 'number',
|
|
1023
1189
|
options: 'string',
|
|
1024
1190
|
sourceId: 'string',
|
|
1025
1191
|
sourceType: 'string',
|
|
@@ -1165,6 +1331,22 @@ class DeleteTensorboardResponse extends $tea.Model {
|
|
|
1165
1331
|
}
|
|
1166
1332
|
}
|
|
1167
1333
|
exports.DeleteTensorboardResponse = DeleteTensorboardResponse;
|
|
1334
|
+
class GetJobRequest extends $tea.Model {
|
|
1335
|
+
constructor(map) {
|
|
1336
|
+
super(map);
|
|
1337
|
+
}
|
|
1338
|
+
static names() {
|
|
1339
|
+
return {
|
|
1340
|
+
needDetail: 'NeedDetail',
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
static types() {
|
|
1344
|
+
return {
|
|
1345
|
+
needDetail: 'boolean',
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
exports.GetJobRequest = GetJobRequest;
|
|
1168
1350
|
class GetJobResponseBody extends $tea.Model {
|
|
1169
1351
|
constructor(map) {
|
|
1170
1352
|
super(map);
|
|
@@ -1196,8 +1378,10 @@ class GetJobResponseBody extends $tea.Model {
|
|
|
1196
1378
|
requestId: 'RequestId',
|
|
1197
1379
|
resourceId: 'ResourceId',
|
|
1198
1380
|
resourceLevel: 'ResourceLevel',
|
|
1381
|
+
restartTimes: 'RestartTimes',
|
|
1199
1382
|
settings: 'Settings',
|
|
1200
1383
|
status: 'Status',
|
|
1384
|
+
subStatus: 'SubStatus',
|
|
1201
1385
|
thirdpartyLibDir: 'ThirdpartyLibDir',
|
|
1202
1386
|
thirdpartyLibs: 'ThirdpartyLibs',
|
|
1203
1387
|
userCommand: 'UserCommand',
|
|
@@ -1233,8 +1417,10 @@ class GetJobResponseBody extends $tea.Model {
|
|
|
1233
1417
|
requestId: 'string',
|
|
1234
1418
|
resourceId: 'string',
|
|
1235
1419
|
resourceLevel: 'string',
|
|
1420
|
+
restartTimes: 'string',
|
|
1236
1421
|
settings: JobSettings,
|
|
1237
1422
|
status: 'string',
|
|
1423
|
+
subStatus: 'string',
|
|
1238
1424
|
thirdpartyLibDir: 'string',
|
|
1239
1425
|
thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
|
|
1240
1426
|
userCommand: 'string',
|
|
@@ -1300,7 +1486,7 @@ class GetJobEventsResponseBody extends $tea.Model {
|
|
|
1300
1486
|
return {
|
|
1301
1487
|
events: { 'type': 'array', 'itemType': 'string' },
|
|
1302
1488
|
jobId: 'string',
|
|
1303
|
-
requestId: '
|
|
1489
|
+
requestId: 'string',
|
|
1304
1490
|
};
|
|
1305
1491
|
}
|
|
1306
1492
|
}
|
|
@@ -2257,7 +2443,9 @@ class GetJobResponseBodyPodsHistoryPods extends $tea.Model {
|
|
|
2257
2443
|
ip: 'Ip',
|
|
2258
2444
|
podId: 'PodId',
|
|
2259
2445
|
podUid: 'PodUid',
|
|
2446
|
+
resourceType: 'ResourceType',
|
|
2260
2447
|
status: 'Status',
|
|
2448
|
+
subStatus: 'SubStatus',
|
|
2261
2449
|
type: 'Type',
|
|
2262
2450
|
};
|
|
2263
2451
|
}
|
|
@@ -2269,7 +2457,9 @@ class GetJobResponseBodyPodsHistoryPods extends $tea.Model {
|
|
|
2269
2457
|
ip: 'string',
|
|
2270
2458
|
podId: 'string',
|
|
2271
2459
|
podUid: 'string',
|
|
2460
|
+
resourceType: 'string',
|
|
2272
2461
|
status: 'string',
|
|
2462
|
+
subStatus: 'string',
|
|
2273
2463
|
type: 'string',
|
|
2274
2464
|
};
|
|
2275
2465
|
}
|
|
@@ -2288,7 +2478,9 @@ class GetJobResponseBodyPods extends $tea.Model {
|
|
|
2288
2478
|
ip: 'Ip',
|
|
2289
2479
|
podId: 'PodId',
|
|
2290
2480
|
podUid: 'PodUid',
|
|
2481
|
+
resourceType: 'ResourceType',
|
|
2291
2482
|
status: 'Status',
|
|
2483
|
+
subStatus: 'SubStatus',
|
|
2292
2484
|
type: 'Type',
|
|
2293
2485
|
};
|
|
2294
2486
|
}
|
|
@@ -2301,7 +2493,9 @@ class GetJobResponseBodyPods extends $tea.Model {
|
|
|
2301
2493
|
ip: 'string',
|
|
2302
2494
|
podId: 'string',
|
|
2303
2495
|
podUid: 'string',
|
|
2496
|
+
resourceType: 'string',
|
|
2304
2497
|
status: 'string',
|
|
2498
|
+
subStatus: 'string',
|
|
2305
2499
|
type: 'string',
|
|
2306
2500
|
};
|
|
2307
2501
|
}
|
|
@@ -2460,6 +2654,9 @@ class Client extends openapi_client_1.default {
|
|
|
2460
2654
|
async createTensorboardWithOptions(request, headers, runtime) {
|
|
2461
2655
|
tea_util_1.default.validateModel(request);
|
|
2462
2656
|
let body = {};
|
|
2657
|
+
if (!tea_util_1.default.isUnset(request.cpu)) {
|
|
2658
|
+
body["Cpu"] = request.cpu;
|
|
2659
|
+
}
|
|
2463
2660
|
if (!tea_util_1.default.isUnset(request.dataSourceId)) {
|
|
2464
2661
|
body["DataSourceId"] = request.dataSourceId;
|
|
2465
2662
|
}
|
|
@@ -2478,6 +2675,9 @@ class Client extends openapi_client_1.default {
|
|
|
2478
2675
|
if (!tea_util_1.default.isUnset(request.maxRunningTimeMinutes)) {
|
|
2479
2676
|
body["MaxRunningTimeMinutes"] = request.maxRunningTimeMinutes;
|
|
2480
2677
|
}
|
|
2678
|
+
if (!tea_util_1.default.isUnset(request.memory)) {
|
|
2679
|
+
body["Memory"] = request.memory;
|
|
2680
|
+
}
|
|
2481
2681
|
if (!tea_util_1.default.isUnset(request.options)) {
|
|
2482
2682
|
body["Options"] = request.options;
|
|
2483
2683
|
}
|
|
@@ -2571,9 +2771,15 @@ class Client extends openapi_client_1.default {
|
|
|
2571
2771
|
let headers = {};
|
|
2572
2772
|
return await this.deleteTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
2573
2773
|
}
|
|
2574
|
-
async getJobWithOptions(JobId, headers, runtime) {
|
|
2774
|
+
async getJobWithOptions(JobId, request, headers, runtime) {
|
|
2775
|
+
tea_util_1.default.validateModel(request);
|
|
2776
|
+
let query = {};
|
|
2777
|
+
if (!tea_util_1.default.isUnset(request.needDetail)) {
|
|
2778
|
+
query["NeedDetail"] = request.needDetail;
|
|
2779
|
+
}
|
|
2575
2780
|
let req = new $OpenApi.OpenApiRequest({
|
|
2576
2781
|
headers: headers,
|
|
2782
|
+
query: openapi_util_1.default.query(query),
|
|
2577
2783
|
});
|
|
2578
2784
|
let params = new $OpenApi.Params({
|
|
2579
2785
|
action: "GetJob",
|
|
@@ -2588,10 +2794,10 @@ class Client extends openapi_client_1.default {
|
|
|
2588
2794
|
});
|
|
2589
2795
|
return $tea.cast(await this.callApi(params, req, runtime), new GetJobResponse({}));
|
|
2590
2796
|
}
|
|
2591
|
-
async getJob(JobId) {
|
|
2797
|
+
async getJob(JobId, request) {
|
|
2592
2798
|
let runtime = new $Util.RuntimeOptions({});
|
|
2593
2799
|
let headers = {};
|
|
2594
|
-
return await this.getJobWithOptions(JobId, headers, runtime);
|
|
2800
|
+
return await this.getJobWithOptions(JobId, request, headers, runtime);
|
|
2595
2801
|
}
|
|
2596
2802
|
async getJobEventsWithOptions(JobId, request, headers, runtime) {
|
|
2597
2803
|
tea_util_1.default.validateModel(request);
|