@alicloud/pai-dlc20201203 1.2.1 → 1.2.4
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 +123 -22
- package/dist/client.js +233 -78
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +296 -83
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,16 +513,22 @@ class JobElasticSpec extends $tea.Model {
|
|
|
413
513
|
}
|
|
414
514
|
static names() {
|
|
415
515
|
return {
|
|
516
|
+
AIMasterDockerImage: 'AIMasterDockerImage',
|
|
416
517
|
AIMasterType: 'AIMasterType',
|
|
518
|
+
enableAIMaster: 'EnableAIMaster',
|
|
417
519
|
enableElasticTraining: 'EnableElasticTraining',
|
|
520
|
+
enablePsJobElasticWorker: 'EnablePsJobElasticWorker',
|
|
418
521
|
maxParallelism: 'MaxParallelism',
|
|
419
522
|
minParallelism: 'MinParallelism',
|
|
420
523
|
};
|
|
421
524
|
}
|
|
422
525
|
static types() {
|
|
423
526
|
return {
|
|
527
|
+
AIMasterDockerImage: 'string',
|
|
424
528
|
AIMasterType: 'string',
|
|
529
|
+
enableAIMaster: 'boolean',
|
|
425
530
|
enableElasticTraining: 'boolean',
|
|
531
|
+
enablePsJobElasticWorker: 'boolean',
|
|
426
532
|
maxParallelism: 'number',
|
|
427
533
|
minParallelism: 'number',
|
|
428
534
|
};
|
|
@@ -459,6 +565,7 @@ class JobItem extends $tea.Model {
|
|
|
459
565
|
resourceName: 'ResourceName',
|
|
460
566
|
settings: 'Settings',
|
|
461
567
|
status: 'Status',
|
|
568
|
+
subStatus: 'SubStatus',
|
|
462
569
|
thirdpartyLibDir: 'ThirdpartyLibDir',
|
|
463
570
|
thirdpartyLibs: 'ThirdpartyLibs',
|
|
464
571
|
userCommand: 'UserCommand',
|
|
@@ -493,6 +600,7 @@ class JobItem extends $tea.Model {
|
|
|
493
600
|
resourceName: 'string',
|
|
494
601
|
settings: JobSettings,
|
|
495
602
|
status: 'string',
|
|
603
|
+
subStatus: 'string',
|
|
496
604
|
thirdpartyLibDir: 'string',
|
|
497
605
|
thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
|
|
498
606
|
userCommand: 'string',
|
|
@@ -509,24 +617,30 @@ class JobSettings extends $tea.Model {
|
|
|
509
617
|
}
|
|
510
618
|
static names() {
|
|
511
619
|
return {
|
|
620
|
+
advancedSettings: 'AdvancedSettings',
|
|
512
621
|
businessUserId: 'BusinessUserId',
|
|
513
622
|
caller: 'Caller',
|
|
514
623
|
enableErrorMonitoringInAIMaster: 'EnableErrorMonitoringInAIMaster',
|
|
624
|
+
enableOssAppend: 'EnableOssAppend',
|
|
515
625
|
enableRDMA: 'EnableRDMA',
|
|
516
626
|
enableTideResource: 'EnableTideResource',
|
|
517
627
|
errorMonitoringArgs: 'ErrorMonitoringArgs',
|
|
628
|
+
oversoldType: 'OversoldType',
|
|
518
629
|
pipelineId: 'PipelineId',
|
|
519
630
|
tags: 'Tags',
|
|
520
631
|
};
|
|
521
632
|
}
|
|
522
633
|
static types() {
|
|
523
634
|
return {
|
|
635
|
+
advancedSettings: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
524
636
|
businessUserId: 'string',
|
|
525
637
|
caller: 'string',
|
|
526
638
|
enableErrorMonitoringInAIMaster: 'boolean',
|
|
639
|
+
enableOssAppend: 'boolean',
|
|
527
640
|
enableRDMA: 'boolean',
|
|
528
641
|
enableTideResource: 'boolean',
|
|
529
642
|
errorMonitoringArgs: 'string',
|
|
643
|
+
oversoldType: 'string',
|
|
530
644
|
pipelineId: 'string',
|
|
531
645
|
tags: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
532
646
|
};
|
|
@@ -542,6 +656,7 @@ class JobSpec extends $tea.Model {
|
|
|
542
656
|
ecsSpec: 'EcsSpec',
|
|
543
657
|
extraPodSpec: 'ExtraPodSpec',
|
|
544
658
|
image: 'Image',
|
|
659
|
+
imageConfig: 'ImageConfig',
|
|
545
660
|
podCount: 'PodCount',
|
|
546
661
|
resourceConfig: 'ResourceConfig',
|
|
547
662
|
type: 'Type',
|
|
@@ -553,6 +668,7 @@ class JobSpec extends $tea.Model {
|
|
|
553
668
|
ecsSpec: 'string',
|
|
554
669
|
extraPodSpec: ExtraPodSpec,
|
|
555
670
|
image: 'string',
|
|
671
|
+
imageConfig: ImageConfig,
|
|
556
672
|
podCount: 'number',
|
|
557
673
|
resourceConfig: ResourceConfig,
|
|
558
674
|
type: 'string',
|
|
@@ -641,12 +757,10 @@ class Quota extends $tea.Model {
|
|
|
641
757
|
return {
|
|
642
758
|
clusterId: 'ClusterId',
|
|
643
759
|
clusterName: 'ClusterName',
|
|
644
|
-
|
|
645
|
-
isExclusiveQuota: 'IsExclusiveQuota',
|
|
760
|
+
quotaConfig: 'QuotaConfig',
|
|
646
761
|
quotaId: 'QuotaId',
|
|
647
762
|
quotaName: 'QuotaName',
|
|
648
763
|
quotaType: 'QuotaType',
|
|
649
|
-
resourceLevel: 'ResourceLevel',
|
|
650
764
|
totalQuota: 'TotalQuota',
|
|
651
765
|
totalTideQuota: 'TotalTideQuota',
|
|
652
766
|
usedQuota: 'UsedQuota',
|
|
@@ -657,12 +771,10 @@ class Quota extends $tea.Model {
|
|
|
657
771
|
return {
|
|
658
772
|
clusterId: 'string',
|
|
659
773
|
clusterName: 'string',
|
|
660
|
-
|
|
661
|
-
isExclusiveQuota: 'boolean',
|
|
774
|
+
quotaConfig: QuotaConfig,
|
|
662
775
|
quotaId: 'string',
|
|
663
776
|
quotaName: 'string',
|
|
664
777
|
quotaType: 'string',
|
|
665
|
-
resourceLevel: 'string',
|
|
666
778
|
totalQuota: QuotaDetail,
|
|
667
779
|
totalTideQuota: QuotaDetail,
|
|
668
780
|
usedQuota: QuotaDetail,
|
|
@@ -671,6 +783,30 @@ class Quota extends $tea.Model {
|
|
|
671
783
|
}
|
|
672
784
|
}
|
|
673
785
|
exports.Quota = Quota;
|
|
786
|
+
class QuotaConfig extends $tea.Model {
|
|
787
|
+
constructor(map) {
|
|
788
|
+
super(map);
|
|
789
|
+
}
|
|
790
|
+
static names() {
|
|
791
|
+
return {
|
|
792
|
+
allowedMaxPriority: 'AllowedMaxPriority',
|
|
793
|
+
enableDLC: 'EnableDLC',
|
|
794
|
+
enableDSW: 'EnableDSW',
|
|
795
|
+
enableTideResource: 'EnableTideResource',
|
|
796
|
+
resourceLevel: 'ResourceLevel',
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
static types() {
|
|
800
|
+
return {
|
|
801
|
+
allowedMaxPriority: 'number',
|
|
802
|
+
enableDLC: 'boolean',
|
|
803
|
+
enableDSW: 'boolean',
|
|
804
|
+
enableTideResource: 'boolean',
|
|
805
|
+
resourceLevel: 'string',
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
exports.QuotaConfig = QuotaConfig;
|
|
674
810
|
class QuotaDetail extends $tea.Model {
|
|
675
811
|
constructor(map) {
|
|
676
812
|
super(map);
|
|
@@ -898,6 +1034,7 @@ class CreateJobRequest extends $tea.Model {
|
|
|
898
1034
|
priority: 'Priority',
|
|
899
1035
|
resourceId: 'ResourceId',
|
|
900
1036
|
settings: 'Settings',
|
|
1037
|
+
successPolicy: 'SuccessPolicy',
|
|
901
1038
|
thirdpartyLibDir: 'ThirdpartyLibDir',
|
|
902
1039
|
thirdpartyLibs: 'ThirdpartyLibs',
|
|
903
1040
|
userCommand: 'UserCommand',
|
|
@@ -920,6 +1057,7 @@ class CreateJobRequest extends $tea.Model {
|
|
|
920
1057
|
priority: 'number',
|
|
921
1058
|
resourceId: 'string',
|
|
922
1059
|
settings: JobSettings,
|
|
1060
|
+
successPolicy: 'string',
|
|
923
1061
|
thirdpartyLibDir: 'string',
|
|
924
1062
|
thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
|
|
925
1063
|
userCommand: 'string',
|
|
@@ -973,12 +1111,14 @@ class CreateTensorboardRequest extends $tea.Model {
|
|
|
973
1111
|
}
|
|
974
1112
|
static names() {
|
|
975
1113
|
return {
|
|
1114
|
+
cpu: 'Cpu',
|
|
976
1115
|
dataSourceId: 'DataSourceId',
|
|
977
1116
|
dataSourceType: 'DataSourceType',
|
|
978
1117
|
dataSources: 'DataSources',
|
|
979
1118
|
displayName: 'DisplayName',
|
|
980
1119
|
jobId: 'JobId',
|
|
981
1120
|
maxRunningTimeMinutes: 'MaxRunningTimeMinutes',
|
|
1121
|
+
memory: 'Memory',
|
|
982
1122
|
options: 'Options',
|
|
983
1123
|
sourceId: 'SourceId',
|
|
984
1124
|
sourceType: 'SourceType',
|
|
@@ -990,12 +1130,14 @@ class CreateTensorboardRequest extends $tea.Model {
|
|
|
990
1130
|
}
|
|
991
1131
|
static types() {
|
|
992
1132
|
return {
|
|
1133
|
+
cpu: 'number',
|
|
993
1134
|
dataSourceId: 'string',
|
|
994
1135
|
dataSourceType: 'string',
|
|
995
1136
|
dataSources: { 'type': 'array', 'itemType': DataSourceItem },
|
|
996
1137
|
displayName: 'string',
|
|
997
1138
|
jobId: 'string',
|
|
998
1139
|
maxRunningTimeMinutes: 'number',
|
|
1140
|
+
memory: 'number',
|
|
999
1141
|
options: 'string',
|
|
1000
1142
|
sourceId: 'string',
|
|
1001
1143
|
sourceType: 'string',
|
|
@@ -1172,8 +1314,10 @@ class GetJobResponseBody extends $tea.Model {
|
|
|
1172
1314
|
requestId: 'RequestId',
|
|
1173
1315
|
resourceId: 'ResourceId',
|
|
1174
1316
|
resourceLevel: 'ResourceLevel',
|
|
1317
|
+
restartTimes: 'RestartTimes',
|
|
1175
1318
|
settings: 'Settings',
|
|
1176
1319
|
status: 'Status',
|
|
1320
|
+
subStatus: 'SubStatus',
|
|
1177
1321
|
thirdpartyLibDir: 'ThirdpartyLibDir',
|
|
1178
1322
|
thirdpartyLibs: 'ThirdpartyLibs',
|
|
1179
1323
|
userCommand: 'UserCommand',
|
|
@@ -1209,8 +1353,10 @@ class GetJobResponseBody extends $tea.Model {
|
|
|
1209
1353
|
requestId: 'string',
|
|
1210
1354
|
resourceId: 'string',
|
|
1211
1355
|
resourceLevel: 'string',
|
|
1356
|
+
restartTimes: 'string',
|
|
1212
1357
|
settings: JobSettings,
|
|
1213
1358
|
status: 'string',
|
|
1359
|
+
subStatus: 'string',
|
|
1214
1360
|
thirdpartyLibDir: 'string',
|
|
1215
1361
|
thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
|
|
1216
1362
|
userCommand: 'string',
|
|
@@ -1276,7 +1422,7 @@ class GetJobEventsResponseBody extends $tea.Model {
|
|
|
1276
1422
|
return {
|
|
1277
1423
|
events: { 'type': 'array', 'itemType': 'string' },
|
|
1278
1424
|
jobId: 'string',
|
|
1279
|
-
requestId: '
|
|
1425
|
+
requestId: 'string',
|
|
1280
1426
|
};
|
|
1281
1427
|
}
|
|
1282
1428
|
}
|
|
@@ -1612,6 +1758,7 @@ class ListJobsRequest extends $tea.Model {
|
|
|
1612
1758
|
displayName: 'DisplayName',
|
|
1613
1759
|
endTime: 'EndTime',
|
|
1614
1760
|
fromAllWorkspaces: 'FromAllWorkspaces',
|
|
1761
|
+
jobId: 'JobId',
|
|
1615
1762
|
jobType: 'JobType',
|
|
1616
1763
|
order: 'Order',
|
|
1617
1764
|
pageNumber: 'PageNumber',
|
|
@@ -1633,6 +1780,7 @@ class ListJobsRequest extends $tea.Model {
|
|
|
1633
1780
|
displayName: 'string',
|
|
1634
1781
|
endTime: 'string',
|
|
1635
1782
|
fromAllWorkspaces: 'boolean',
|
|
1783
|
+
jobId: 'string',
|
|
1636
1784
|
jobType: 'string',
|
|
1637
1785
|
order: 'string',
|
|
1638
1786
|
pageNumber: 'number',
|
|
@@ -1660,6 +1808,7 @@ class ListJobsShrinkRequest extends $tea.Model {
|
|
|
1660
1808
|
displayName: 'DisplayName',
|
|
1661
1809
|
endTime: 'EndTime',
|
|
1662
1810
|
fromAllWorkspaces: 'FromAllWorkspaces',
|
|
1811
|
+
jobId: 'JobId',
|
|
1663
1812
|
jobType: 'JobType',
|
|
1664
1813
|
order: 'Order',
|
|
1665
1814
|
pageNumber: 'PageNumber',
|
|
@@ -1681,6 +1830,7 @@ class ListJobsShrinkRequest extends $tea.Model {
|
|
|
1681
1830
|
displayName: 'string',
|
|
1682
1831
|
endTime: 'string',
|
|
1683
1832
|
fromAllWorkspaces: 'boolean',
|
|
1833
|
+
jobId: 'string',
|
|
1684
1834
|
jobType: 'string',
|
|
1685
1835
|
order: 'string',
|
|
1686
1836
|
pageNumber: 'number',
|
|
@@ -2229,7 +2379,9 @@ class GetJobResponseBodyPodsHistoryPods extends $tea.Model {
|
|
|
2229
2379
|
ip: 'Ip',
|
|
2230
2380
|
podId: 'PodId',
|
|
2231
2381
|
podUid: 'PodUid',
|
|
2382
|
+
resourceType: 'ResourceType',
|
|
2232
2383
|
status: 'Status',
|
|
2384
|
+
subStatus: 'SubStatus',
|
|
2233
2385
|
type: 'Type',
|
|
2234
2386
|
};
|
|
2235
2387
|
}
|
|
@@ -2241,7 +2393,9 @@ class GetJobResponseBodyPodsHistoryPods extends $tea.Model {
|
|
|
2241
2393
|
ip: 'string',
|
|
2242
2394
|
podId: 'string',
|
|
2243
2395
|
podUid: 'string',
|
|
2396
|
+
resourceType: 'string',
|
|
2244
2397
|
status: 'string',
|
|
2398
|
+
subStatus: 'string',
|
|
2245
2399
|
type: 'string',
|
|
2246
2400
|
};
|
|
2247
2401
|
}
|
|
@@ -2260,7 +2414,9 @@ class GetJobResponseBodyPods extends $tea.Model {
|
|
|
2260
2414
|
ip: 'Ip',
|
|
2261
2415
|
podId: 'PodId',
|
|
2262
2416
|
podUid: 'PodUid',
|
|
2417
|
+
resourceType: 'ResourceType',
|
|
2263
2418
|
status: 'Status',
|
|
2419
|
+
subStatus: 'SubStatus',
|
|
2264
2420
|
type: 'Type',
|
|
2265
2421
|
};
|
|
2266
2422
|
}
|
|
@@ -2273,7 +2429,9 @@ class GetJobResponseBodyPods extends $tea.Model {
|
|
|
2273
2429
|
ip: 'string',
|
|
2274
2430
|
podId: 'string',
|
|
2275
2431
|
podUid: 'string',
|
|
2432
|
+
resourceType: 'string',
|
|
2276
2433
|
status: 'string',
|
|
2434
|
+
subStatus: 'string',
|
|
2277
2435
|
type: 'string',
|
|
2278
2436
|
};
|
|
2279
2437
|
}
|
|
@@ -2347,15 +2505,10 @@ class Client extends openapi_client_1.default {
|
|
|
2347
2505
|
}
|
|
2348
2506
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
2349
2507
|
}
|
|
2350
|
-
async createJob(request) {
|
|
2351
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
2352
|
-
let headers = {};
|
|
2353
|
-
return await this.createJobWithOptions(request, headers, runtime);
|
|
2354
|
-
}
|
|
2355
2508
|
async createJobWithOptions(request, headers, runtime) {
|
|
2356
2509
|
tea_util_1.default.validateModel(request);
|
|
2357
2510
|
let body = {};
|
|
2358
|
-
if (!tea_util_1.default.isUnset(
|
|
2511
|
+
if (!tea_util_1.default.isUnset(request.codeSource)) {
|
|
2359
2512
|
body["CodeSource"] = request.codeSource;
|
|
2360
2513
|
}
|
|
2361
2514
|
if (!tea_util_1.default.isUnset(request.dataSources)) {
|
|
@@ -2367,7 +2520,7 @@ class Client extends openapi_client_1.default {
|
|
|
2367
2520
|
if (!tea_util_1.default.isUnset(request.displayName)) {
|
|
2368
2521
|
body["DisplayName"] = request.displayName;
|
|
2369
2522
|
}
|
|
2370
|
-
if (!tea_util_1.default.isUnset(
|
|
2523
|
+
if (!tea_util_1.default.isUnset(request.elasticSpec)) {
|
|
2371
2524
|
body["ElasticSpec"] = request.elasticSpec;
|
|
2372
2525
|
}
|
|
2373
2526
|
if (!tea_util_1.default.isUnset(request.envs)) {
|
|
@@ -2391,9 +2544,12 @@ class Client extends openapi_client_1.default {
|
|
|
2391
2544
|
if (!tea_util_1.default.isUnset(request.resourceId)) {
|
|
2392
2545
|
body["ResourceId"] = request.resourceId;
|
|
2393
2546
|
}
|
|
2394
|
-
if (!tea_util_1.default.isUnset(
|
|
2547
|
+
if (!tea_util_1.default.isUnset(request.settings)) {
|
|
2395
2548
|
body["Settings"] = request.settings;
|
|
2396
2549
|
}
|
|
2550
|
+
if (!tea_util_1.default.isUnset(request.successPolicy)) {
|
|
2551
|
+
body["SuccessPolicy"] = request.successPolicy;
|
|
2552
|
+
}
|
|
2397
2553
|
if (!tea_util_1.default.isUnset(request.thirdpartyLibDir)) {
|
|
2398
2554
|
body["ThirdpartyLibDir"] = request.thirdpartyLibDir;
|
|
2399
2555
|
}
|
|
@@ -2403,7 +2559,7 @@ class Client extends openapi_client_1.default {
|
|
|
2403
2559
|
if (!tea_util_1.default.isUnset(request.userCommand)) {
|
|
2404
2560
|
body["UserCommand"] = request.userCommand;
|
|
2405
2561
|
}
|
|
2406
|
-
if (!tea_util_1.default.isUnset(
|
|
2562
|
+
if (!tea_util_1.default.isUnset(request.userVpc)) {
|
|
2407
2563
|
body["UserVpc"] = request.userVpc;
|
|
2408
2564
|
}
|
|
2409
2565
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
@@ -2426,14 +2582,17 @@ class Client extends openapi_client_1.default {
|
|
|
2426
2582
|
});
|
|
2427
2583
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateJobResponse({}));
|
|
2428
2584
|
}
|
|
2429
|
-
async
|
|
2585
|
+
async createJob(request) {
|
|
2430
2586
|
let runtime = new $Util.RuntimeOptions({});
|
|
2431
2587
|
let headers = {};
|
|
2432
|
-
return await this.
|
|
2588
|
+
return await this.createJobWithOptions(request, headers, runtime);
|
|
2433
2589
|
}
|
|
2434
2590
|
async createTensorboardWithOptions(request, headers, runtime) {
|
|
2435
2591
|
tea_util_1.default.validateModel(request);
|
|
2436
2592
|
let body = {};
|
|
2593
|
+
if (!tea_util_1.default.isUnset(request.cpu)) {
|
|
2594
|
+
body["Cpu"] = request.cpu;
|
|
2595
|
+
}
|
|
2437
2596
|
if (!tea_util_1.default.isUnset(request.dataSourceId)) {
|
|
2438
2597
|
body["DataSourceId"] = request.dataSourceId;
|
|
2439
2598
|
}
|
|
@@ -2452,6 +2611,9 @@ class Client extends openapi_client_1.default {
|
|
|
2452
2611
|
if (!tea_util_1.default.isUnset(request.maxRunningTimeMinutes)) {
|
|
2453
2612
|
body["MaxRunningTimeMinutes"] = request.maxRunningTimeMinutes;
|
|
2454
2613
|
}
|
|
2614
|
+
if (!tea_util_1.default.isUnset(request.memory)) {
|
|
2615
|
+
body["Memory"] = request.memory;
|
|
2616
|
+
}
|
|
2455
2617
|
if (!tea_util_1.default.isUnset(request.options)) {
|
|
2456
2618
|
body["Options"] = request.options;
|
|
2457
2619
|
}
|
|
@@ -2490,13 +2652,12 @@ class Client extends openapi_client_1.default {
|
|
|
2490
2652
|
});
|
|
2491
2653
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateTensorboardResponse({}));
|
|
2492
2654
|
}
|
|
2493
|
-
async
|
|
2655
|
+
async createTensorboard(request) {
|
|
2494
2656
|
let runtime = new $Util.RuntimeOptions({});
|
|
2495
2657
|
let headers = {};
|
|
2496
|
-
return await this.
|
|
2658
|
+
return await this.createTensorboardWithOptions(request, headers, runtime);
|
|
2497
2659
|
}
|
|
2498
2660
|
async deleteJobWithOptions(JobId, headers, runtime) {
|
|
2499
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2500
2661
|
let req = new $OpenApi.OpenApiRequest({
|
|
2501
2662
|
headers: headers,
|
|
2502
2663
|
});
|
|
@@ -2504,7 +2665,7 @@ class Client extends openapi_client_1.default {
|
|
|
2504
2665
|
action: "DeleteJob",
|
|
2505
2666
|
version: "2020-12-03",
|
|
2506
2667
|
protocol: "HTTPS",
|
|
2507
|
-
pathname: `/api/v1/jobs/${JobId}`,
|
|
2668
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
|
|
2508
2669
|
method: "DELETE",
|
|
2509
2670
|
authType: "AK",
|
|
2510
2671
|
style: "ROA",
|
|
@@ -2513,14 +2674,13 @@ class Client extends openapi_client_1.default {
|
|
|
2513
2674
|
});
|
|
2514
2675
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteJobResponse({}));
|
|
2515
2676
|
}
|
|
2516
|
-
async
|
|
2677
|
+
async deleteJob(JobId) {
|
|
2517
2678
|
let runtime = new $Util.RuntimeOptions({});
|
|
2518
2679
|
let headers = {};
|
|
2519
|
-
return await this.
|
|
2680
|
+
return await this.deleteJobWithOptions(JobId, headers, runtime);
|
|
2520
2681
|
}
|
|
2521
2682
|
async deleteTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
2522
2683
|
tea_util_1.default.validateModel(request);
|
|
2523
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
2524
2684
|
let query = {};
|
|
2525
2685
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
2526
2686
|
query["WorkspaceId"] = request.workspaceId;
|
|
@@ -2533,7 +2693,7 @@ class Client extends openapi_client_1.default {
|
|
|
2533
2693
|
action: "DeleteTensorboard",
|
|
2534
2694
|
version: "2020-12-03",
|
|
2535
2695
|
protocol: "HTTPS",
|
|
2536
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}`,
|
|
2696
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
|
|
2537
2697
|
method: "DELETE",
|
|
2538
2698
|
authType: "AK",
|
|
2539
2699
|
style: "ROA",
|
|
@@ -2542,13 +2702,12 @@ class Client extends openapi_client_1.default {
|
|
|
2542
2702
|
});
|
|
2543
2703
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTensorboardResponse({}));
|
|
2544
2704
|
}
|
|
2545
|
-
async
|
|
2705
|
+
async deleteTensorboard(TensorboardId, request) {
|
|
2546
2706
|
let runtime = new $Util.RuntimeOptions({});
|
|
2547
2707
|
let headers = {};
|
|
2548
|
-
return await this.
|
|
2708
|
+
return await this.deleteTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
2549
2709
|
}
|
|
2550
2710
|
async getJobWithOptions(JobId, headers, runtime) {
|
|
2551
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2552
2711
|
let req = new $OpenApi.OpenApiRequest({
|
|
2553
2712
|
headers: headers,
|
|
2554
2713
|
});
|
|
@@ -2556,7 +2715,7 @@ class Client extends openapi_client_1.default {
|
|
|
2556
2715
|
action: "GetJob",
|
|
2557
2716
|
version: "2020-12-03",
|
|
2558
2717
|
protocol: "HTTPS",
|
|
2559
|
-
pathname: `/api/v1/jobs/${JobId}`,
|
|
2718
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
|
|
2560
2719
|
method: "GET",
|
|
2561
2720
|
authType: "AK",
|
|
2562
2721
|
style: "ROA",
|
|
@@ -2565,14 +2724,13 @@ class Client extends openapi_client_1.default {
|
|
|
2565
2724
|
});
|
|
2566
2725
|
return $tea.cast(await this.callApi(params, req, runtime), new GetJobResponse({}));
|
|
2567
2726
|
}
|
|
2568
|
-
async
|
|
2727
|
+
async getJob(JobId) {
|
|
2569
2728
|
let runtime = new $Util.RuntimeOptions({});
|
|
2570
2729
|
let headers = {};
|
|
2571
|
-
return await this.
|
|
2730
|
+
return await this.getJobWithOptions(JobId, headers, runtime);
|
|
2572
2731
|
}
|
|
2573
2732
|
async getJobEventsWithOptions(JobId, request, headers, runtime) {
|
|
2574
2733
|
tea_util_1.default.validateModel(request);
|
|
2575
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2576
2734
|
let query = {};
|
|
2577
2735
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
2578
2736
|
query["EndTime"] = request.endTime;
|
|
@@ -2591,7 +2749,7 @@ class Client extends openapi_client_1.default {
|
|
|
2591
2749
|
action: "GetJobEvents",
|
|
2592
2750
|
version: "2020-12-03",
|
|
2593
2751
|
protocol: "HTTPS",
|
|
2594
|
-
pathname: `/api/v1/jobs/${JobId}/events`,
|
|
2752
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/events`,
|
|
2595
2753
|
method: "GET",
|
|
2596
2754
|
authType: "AK",
|
|
2597
2755
|
style: "ROA",
|
|
@@ -2600,14 +2758,13 @@ class Client extends openapi_client_1.default {
|
|
|
2600
2758
|
});
|
|
2601
2759
|
return $tea.cast(await this.callApi(params, req, runtime), new GetJobEventsResponse({}));
|
|
2602
2760
|
}
|
|
2603
|
-
async
|
|
2761
|
+
async getJobEvents(JobId, request) {
|
|
2604
2762
|
let runtime = new $Util.RuntimeOptions({});
|
|
2605
2763
|
let headers = {};
|
|
2606
|
-
return await this.
|
|
2764
|
+
return await this.getJobEventsWithOptions(JobId, request, headers, runtime);
|
|
2607
2765
|
}
|
|
2608
2766
|
async getJobMetricsWithOptions(JobId, request, headers, runtime) {
|
|
2609
2767
|
tea_util_1.default.validateModel(request);
|
|
2610
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2611
2768
|
let query = {};
|
|
2612
2769
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
2613
2770
|
query["EndTime"] = request.endTime;
|
|
@@ -2632,7 +2789,7 @@ class Client extends openapi_client_1.default {
|
|
|
2632
2789
|
action: "GetJobMetrics",
|
|
2633
2790
|
version: "2020-12-03",
|
|
2634
2791
|
protocol: "HTTPS",
|
|
2635
|
-
pathname: `/api/v1/jobs/${JobId}/metrics`,
|
|
2792
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/metrics`,
|
|
2636
2793
|
method: "GET",
|
|
2637
2794
|
authType: "AK",
|
|
2638
2795
|
style: "ROA",
|
|
@@ -2641,15 +2798,13 @@ class Client extends openapi_client_1.default {
|
|
|
2641
2798
|
});
|
|
2642
2799
|
return $tea.cast(await this.callApi(params, req, runtime), new GetJobMetricsResponse({}));
|
|
2643
2800
|
}
|
|
2644
|
-
async
|
|
2801
|
+
async getJobMetrics(JobId, request) {
|
|
2645
2802
|
let runtime = new $Util.RuntimeOptions({});
|
|
2646
2803
|
let headers = {};
|
|
2647
|
-
return await this.
|
|
2804
|
+
return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
|
|
2648
2805
|
}
|
|
2649
2806
|
async getPodEventsWithOptions(JobId, PodId, request, headers, runtime) {
|
|
2650
2807
|
tea_util_1.default.validateModel(request);
|
|
2651
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2652
|
-
PodId = openapi_util_1.default.getEncodeParam(PodId);
|
|
2653
2808
|
let query = {};
|
|
2654
2809
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
2655
2810
|
query["EndTime"] = request.endTime;
|
|
@@ -2671,7 +2826,7 @@ class Client extends openapi_client_1.default {
|
|
|
2671
2826
|
action: "GetPodEvents",
|
|
2672
2827
|
version: "2020-12-03",
|
|
2673
2828
|
protocol: "HTTPS",
|
|
2674
|
-
pathname: `/api/v1/jobs/${JobId}/pods/${PodId}/events`,
|
|
2829
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/pods/${openapi_util_1.default.getEncodeParam(PodId)}/events`,
|
|
2675
2830
|
method: "GET",
|
|
2676
2831
|
authType: "AK",
|
|
2677
2832
|
style: "ROA",
|
|
@@ -2680,15 +2835,13 @@ class Client extends openapi_client_1.default {
|
|
|
2680
2835
|
});
|
|
2681
2836
|
return $tea.cast(await this.callApi(params, req, runtime), new GetPodEventsResponse({}));
|
|
2682
2837
|
}
|
|
2683
|
-
async
|
|
2838
|
+
async getPodEvents(JobId, PodId, request) {
|
|
2684
2839
|
let runtime = new $Util.RuntimeOptions({});
|
|
2685
2840
|
let headers = {};
|
|
2686
|
-
return await this.
|
|
2841
|
+
return await this.getPodEventsWithOptions(JobId, PodId, request, headers, runtime);
|
|
2687
2842
|
}
|
|
2688
2843
|
async getPodLogsWithOptions(JobId, PodId, request, headers, runtime) {
|
|
2689
2844
|
tea_util_1.default.validateModel(request);
|
|
2690
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2691
|
-
PodId = openapi_util_1.default.getEncodeParam(PodId);
|
|
2692
2845
|
let query = {};
|
|
2693
2846
|
if (!tea_util_1.default.isUnset(request.downloadToFile)) {
|
|
2694
2847
|
query["DownloadToFile"] = request.downloadToFile;
|
|
@@ -2713,7 +2866,7 @@ class Client extends openapi_client_1.default {
|
|
|
2713
2866
|
action: "GetPodLogs",
|
|
2714
2867
|
version: "2020-12-03",
|
|
2715
2868
|
protocol: "HTTPS",
|
|
2716
|
-
pathname: `/api/v1/jobs/${JobId}/pods/${PodId}/logs`,
|
|
2869
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/pods/${openapi_util_1.default.getEncodeParam(PodId)}/logs`,
|
|
2717
2870
|
method: "GET",
|
|
2718
2871
|
authType: "AK",
|
|
2719
2872
|
style: "ROA",
|
|
@@ -2722,14 +2875,13 @@ class Client extends openapi_client_1.default {
|
|
|
2722
2875
|
});
|
|
2723
2876
|
return $tea.cast(await this.callApi(params, req, runtime), new GetPodLogsResponse({}));
|
|
2724
2877
|
}
|
|
2725
|
-
async
|
|
2878
|
+
async getPodLogs(JobId, PodId, request) {
|
|
2726
2879
|
let runtime = new $Util.RuntimeOptions({});
|
|
2727
2880
|
let headers = {};
|
|
2728
|
-
return await this.
|
|
2881
|
+
return await this.getPodLogsWithOptions(JobId, PodId, request, headers, runtime);
|
|
2729
2882
|
}
|
|
2730
2883
|
async getTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
2731
2884
|
tea_util_1.default.validateModel(request);
|
|
2732
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
2733
2885
|
let query = {};
|
|
2734
2886
|
if (!tea_util_1.default.isUnset(request.jodId)) {
|
|
2735
2887
|
query["JodId"] = request.jodId;
|
|
@@ -2745,7 +2897,7 @@ class Client extends openapi_client_1.default {
|
|
|
2745
2897
|
action: "GetTensorboard",
|
|
2746
2898
|
version: "2020-12-03",
|
|
2747
2899
|
protocol: "HTTPS",
|
|
2748
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}`,
|
|
2900
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
|
|
2749
2901
|
method: "GET",
|
|
2750
2902
|
authType: "AK",
|
|
2751
2903
|
style: "ROA",
|
|
@@ -2754,10 +2906,10 @@ class Client extends openapi_client_1.default {
|
|
|
2754
2906
|
});
|
|
2755
2907
|
return $tea.cast(await this.callApi(params, req, runtime), new GetTensorboardResponse({}));
|
|
2756
2908
|
}
|
|
2757
|
-
async
|
|
2909
|
+
async getTensorboard(TensorboardId, request) {
|
|
2758
2910
|
let runtime = new $Util.RuntimeOptions({});
|
|
2759
2911
|
let headers = {};
|
|
2760
|
-
return await this.
|
|
2912
|
+
return await this.getTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
2761
2913
|
}
|
|
2762
2914
|
async listEcsSpecsWithOptions(request, headers, runtime) {
|
|
2763
2915
|
tea_util_1.default.validateModel(request);
|
|
@@ -2794,10 +2946,10 @@ class Client extends openapi_client_1.default {
|
|
|
2794
2946
|
});
|
|
2795
2947
|
return $tea.cast(await this.callApi(params, req, runtime), new ListEcsSpecsResponse({}));
|
|
2796
2948
|
}
|
|
2797
|
-
async
|
|
2949
|
+
async listEcsSpecs(request) {
|
|
2798
2950
|
let runtime = new $Util.RuntimeOptions({});
|
|
2799
2951
|
let headers = {};
|
|
2800
|
-
return await this.
|
|
2952
|
+
return await this.listEcsSpecsWithOptions(request, headers, runtime);
|
|
2801
2953
|
}
|
|
2802
2954
|
async listJobsWithOptions(tmpReq, headers, runtime) {
|
|
2803
2955
|
tea_util_1.default.validateModel(tmpReq);
|
|
@@ -2822,6 +2974,9 @@ class Client extends openapi_client_1.default {
|
|
|
2822
2974
|
if (!tea_util_1.default.isUnset(request.fromAllWorkspaces)) {
|
|
2823
2975
|
query["FromAllWorkspaces"] = request.fromAllWorkspaces;
|
|
2824
2976
|
}
|
|
2977
|
+
if (!tea_util_1.default.isUnset(request.jobId)) {
|
|
2978
|
+
query["JobId"] = request.jobId;
|
|
2979
|
+
}
|
|
2825
2980
|
if (!tea_util_1.default.isUnset(request.jobType)) {
|
|
2826
2981
|
query["JobType"] = request.jobType;
|
|
2827
2982
|
}
|
|
@@ -2875,10 +3030,10 @@ class Client extends openapi_client_1.default {
|
|
|
2875
3030
|
});
|
|
2876
3031
|
return $tea.cast(await this.callApi(params, req, runtime), new ListJobsResponse({}));
|
|
2877
3032
|
}
|
|
2878
|
-
async
|
|
3033
|
+
async listJobs(request) {
|
|
2879
3034
|
let runtime = new $Util.RuntimeOptions({});
|
|
2880
3035
|
let headers = {};
|
|
2881
|
-
return await this.
|
|
3036
|
+
return await this.listJobsWithOptions(request, headers, runtime);
|
|
2882
3037
|
}
|
|
2883
3038
|
async listTensorboardsWithOptions(request, headers, runtime) {
|
|
2884
3039
|
tea_util_1.default.validateModel(request);
|
|
@@ -2942,14 +3097,13 @@ class Client extends openapi_client_1.default {
|
|
|
2942
3097
|
});
|
|
2943
3098
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTensorboardsResponse({}));
|
|
2944
3099
|
}
|
|
2945
|
-
async
|
|
3100
|
+
async listTensorboards(request) {
|
|
2946
3101
|
let runtime = new $Util.RuntimeOptions({});
|
|
2947
3102
|
let headers = {};
|
|
2948
|
-
return await this.
|
|
3103
|
+
return await this.listTensorboardsWithOptions(request, headers, runtime);
|
|
2949
3104
|
}
|
|
2950
3105
|
async startTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
2951
3106
|
tea_util_1.default.validateModel(request);
|
|
2952
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
2953
3107
|
let query = {};
|
|
2954
3108
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
2955
3109
|
query["WorkspaceId"] = request.workspaceId;
|
|
@@ -2962,7 +3116,7 @@ class Client extends openapi_client_1.default {
|
|
|
2962
3116
|
action: "StartTensorboard",
|
|
2963
3117
|
version: "2020-12-03",
|
|
2964
3118
|
protocol: "HTTPS",
|
|
2965
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}/start`,
|
|
3119
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}/start`,
|
|
2966
3120
|
method: "PUT",
|
|
2967
3121
|
authType: "AK",
|
|
2968
3122
|
style: "ROA",
|
|
@@ -2971,13 +3125,12 @@ class Client extends openapi_client_1.default {
|
|
|
2971
3125
|
});
|
|
2972
3126
|
return $tea.cast(await this.callApi(params, req, runtime), new StartTensorboardResponse({}));
|
|
2973
3127
|
}
|
|
2974
|
-
async
|
|
3128
|
+
async startTensorboard(TensorboardId, request) {
|
|
2975
3129
|
let runtime = new $Util.RuntimeOptions({});
|
|
2976
3130
|
let headers = {};
|
|
2977
|
-
return await this.
|
|
3131
|
+
return await this.startTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
2978
3132
|
}
|
|
2979
3133
|
async stopJobWithOptions(JobId, headers, runtime) {
|
|
2980
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2981
3134
|
let req = new $OpenApi.OpenApiRequest({
|
|
2982
3135
|
headers: headers,
|
|
2983
3136
|
});
|
|
@@ -2985,7 +3138,7 @@ class Client extends openapi_client_1.default {
|
|
|
2985
3138
|
action: "StopJob",
|
|
2986
3139
|
version: "2020-12-03",
|
|
2987
3140
|
protocol: "HTTPS",
|
|
2988
|
-
pathname: `/api/v1/jobs/${JobId}/stop`,
|
|
3141
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/stop`,
|
|
2989
3142
|
method: "POST",
|
|
2990
3143
|
authType: "AK",
|
|
2991
3144
|
style: "ROA",
|
|
@@ -2994,14 +3147,13 @@ class Client extends openapi_client_1.default {
|
|
|
2994
3147
|
});
|
|
2995
3148
|
return $tea.cast(await this.callApi(params, req, runtime), new StopJobResponse({}));
|
|
2996
3149
|
}
|
|
2997
|
-
async
|
|
3150
|
+
async stopJob(JobId) {
|
|
2998
3151
|
let runtime = new $Util.RuntimeOptions({});
|
|
2999
3152
|
let headers = {};
|
|
3000
|
-
return await this.
|
|
3153
|
+
return await this.stopJobWithOptions(JobId, headers, runtime);
|
|
3001
3154
|
}
|
|
3002
3155
|
async stopTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
3003
3156
|
tea_util_1.default.validateModel(request);
|
|
3004
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
3005
3157
|
let query = {};
|
|
3006
3158
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
3007
3159
|
query["WorkspaceId"] = request.workspaceId;
|
|
@@ -3014,7 +3166,7 @@ class Client extends openapi_client_1.default {
|
|
|
3014
3166
|
action: "StopTensorboard",
|
|
3015
3167
|
version: "2020-12-03",
|
|
3016
3168
|
protocol: "HTTPS",
|
|
3017
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}/stop`,
|
|
3169
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}/stop`,
|
|
3018
3170
|
method: "PUT",
|
|
3019
3171
|
authType: "AK",
|
|
3020
3172
|
style: "ROA",
|
|
@@ -3023,14 +3175,13 @@ class Client extends openapi_client_1.default {
|
|
|
3023
3175
|
});
|
|
3024
3176
|
return $tea.cast(await this.callApi(params, req, runtime), new StopTensorboardResponse({}));
|
|
3025
3177
|
}
|
|
3026
|
-
async
|
|
3178
|
+
async stopTensorboard(TensorboardId, request) {
|
|
3027
3179
|
let runtime = new $Util.RuntimeOptions({});
|
|
3028
3180
|
let headers = {};
|
|
3029
|
-
return await this.
|
|
3181
|
+
return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
3030
3182
|
}
|
|
3031
3183
|
async updateJobWithOptions(JobId, request, headers, runtime) {
|
|
3032
3184
|
tea_util_1.default.validateModel(request);
|
|
3033
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
3034
3185
|
let body = {};
|
|
3035
3186
|
if (!tea_util_1.default.isUnset(request.priority)) {
|
|
3036
3187
|
body["Priority"] = request.priority;
|
|
@@ -3043,7 +3194,7 @@ class Client extends openapi_client_1.default {
|
|
|
3043
3194
|
action: "UpdateJob",
|
|
3044
3195
|
version: "2020-12-03",
|
|
3045
3196
|
protocol: "HTTPS",
|
|
3046
|
-
pathname: `/api/v1/jobs/${JobId}`,
|
|
3197
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
|
|
3047
3198
|
method: "PUT",
|
|
3048
3199
|
authType: "AK",
|
|
3049
3200
|
style: "ROA",
|
|
@@ -3052,14 +3203,13 @@ class Client extends openapi_client_1.default {
|
|
|
3052
3203
|
});
|
|
3053
3204
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateJobResponse({}));
|
|
3054
3205
|
}
|
|
3055
|
-
async
|
|
3206
|
+
async updateJob(JobId, request) {
|
|
3056
3207
|
let runtime = new $Util.RuntimeOptions({});
|
|
3057
3208
|
let headers = {};
|
|
3058
|
-
return await this.
|
|
3209
|
+
return await this.updateJobWithOptions(JobId, request, headers, runtime);
|
|
3059
3210
|
}
|
|
3060
3211
|
async updateTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
3061
3212
|
tea_util_1.default.validateModel(request);
|
|
3062
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
3063
3213
|
let query = {};
|
|
3064
3214
|
if (!tea_util_1.default.isUnset(request.maxRunningTimeMinutes)) {
|
|
3065
3215
|
query["MaxRunningTimeMinutes"] = request.maxRunningTimeMinutes;
|
|
@@ -3075,7 +3225,7 @@ class Client extends openapi_client_1.default {
|
|
|
3075
3225
|
action: "UpdateTensorboard",
|
|
3076
3226
|
version: "2020-12-03",
|
|
3077
3227
|
protocol: "HTTPS",
|
|
3078
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}`,
|
|
3228
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
|
|
3079
3229
|
method: "PUT",
|
|
3080
3230
|
authType: "AK",
|
|
3081
3231
|
style: "ROA",
|
|
@@ -3084,6 +3234,11 @@ class Client extends openapi_client_1.default {
|
|
|
3084
3234
|
});
|
|
3085
3235
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateTensorboardResponse({}));
|
|
3086
3236
|
}
|
|
3237
|
+
async updateTensorboard(TensorboardId, request) {
|
|
3238
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3239
|
+
let headers = {};
|
|
3240
|
+
return await this.updateTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
3241
|
+
}
|
|
3087
3242
|
}
|
|
3088
3243
|
exports.default = Client;
|
|
3089
3244
|
//# sourceMappingURL=client.js.map
|