@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.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,8 +325,11 @@ 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
|
+
enableAIMaster?: boolean;
|
|
263
331
|
enableElasticTraining?: boolean;
|
|
332
|
+
enablePsJobElasticWorker?: boolean;
|
|
264
333
|
maxParallelism?: number;
|
|
265
334
|
minParallelism?: number;
|
|
266
335
|
static names(): {
|
|
@@ -300,6 +369,7 @@ export declare class JobItem extends $tea.Model {
|
|
|
300
369
|
resourceName?: string;
|
|
301
370
|
settings?: JobSettings;
|
|
302
371
|
status?: string;
|
|
372
|
+
subStatus?: string;
|
|
303
373
|
thirdpartyLibDir?: string;
|
|
304
374
|
thirdpartyLibs?: string[];
|
|
305
375
|
userCommand?: string;
|
|
@@ -317,12 +387,17 @@ export declare class JobItem extends $tea.Model {
|
|
|
317
387
|
});
|
|
318
388
|
}
|
|
319
389
|
export declare class JobSettings extends $tea.Model {
|
|
390
|
+
advancedSettings?: {
|
|
391
|
+
[key: string]: any;
|
|
392
|
+
};
|
|
320
393
|
businessUserId?: string;
|
|
321
394
|
caller?: string;
|
|
322
395
|
enableErrorMonitoringInAIMaster?: boolean;
|
|
396
|
+
enableOssAppend?: boolean;
|
|
323
397
|
enableRDMA?: boolean;
|
|
324
398
|
enableTideResource?: boolean;
|
|
325
399
|
errorMonitoringArgs?: string;
|
|
400
|
+
oversoldType?: string;
|
|
326
401
|
pipelineId?: string;
|
|
327
402
|
tags?: {
|
|
328
403
|
[key: string]: string;
|
|
@@ -341,6 +416,7 @@ export declare class JobSpec extends $tea.Model {
|
|
|
341
416
|
ecsSpec?: string;
|
|
342
417
|
extraPodSpec?: ExtraPodSpec;
|
|
343
418
|
image?: string;
|
|
419
|
+
imageConfig?: ImageConfig;
|
|
344
420
|
podCount?: number;
|
|
345
421
|
resourceConfig?: ResourceConfig;
|
|
346
422
|
type?: string;
|
|
@@ -410,12 +486,10 @@ export declare class PodMetric extends $tea.Model {
|
|
|
410
486
|
export declare class Quota extends $tea.Model {
|
|
411
487
|
clusterId?: string;
|
|
412
488
|
clusterName?: string;
|
|
413
|
-
|
|
414
|
-
isExclusiveQuota?: boolean;
|
|
489
|
+
quotaConfig?: QuotaConfig;
|
|
415
490
|
quotaId?: string;
|
|
416
491
|
quotaName?: string;
|
|
417
492
|
quotaType?: string;
|
|
418
|
-
resourceLevel?: string;
|
|
419
493
|
totalQuota?: QuotaDetail;
|
|
420
494
|
totalTideQuota?: QuotaDetail;
|
|
421
495
|
usedQuota?: QuotaDetail;
|
|
@@ -430,6 +504,22 @@ export declare class Quota extends $tea.Model {
|
|
|
430
504
|
[key: string]: any;
|
|
431
505
|
});
|
|
432
506
|
}
|
|
507
|
+
export declare class QuotaConfig extends $tea.Model {
|
|
508
|
+
allowedMaxPriority?: number;
|
|
509
|
+
enableDLC?: boolean;
|
|
510
|
+
enableDSW?: boolean;
|
|
511
|
+
enableTideResource?: boolean;
|
|
512
|
+
resourceLevel?: string;
|
|
513
|
+
static names(): {
|
|
514
|
+
[key: string]: string;
|
|
515
|
+
};
|
|
516
|
+
static types(): {
|
|
517
|
+
[key: string]: any;
|
|
518
|
+
};
|
|
519
|
+
constructor(map?: {
|
|
520
|
+
[key: string]: any;
|
|
521
|
+
});
|
|
522
|
+
}
|
|
433
523
|
export declare class QuotaDetail extends $tea.Model {
|
|
434
524
|
CPU?: string;
|
|
435
525
|
GPU?: string;
|
|
@@ -582,6 +672,7 @@ export declare class CreateJobRequest extends $tea.Model {
|
|
|
582
672
|
priority?: number;
|
|
583
673
|
resourceId?: string;
|
|
584
674
|
settings?: JobSettings;
|
|
675
|
+
successPolicy?: string;
|
|
585
676
|
thirdpartyLibDir?: string;
|
|
586
677
|
thirdpartyLibs?: string[];
|
|
587
678
|
userCommand?: string;
|
|
@@ -627,12 +718,14 @@ export declare class CreateJobResponse extends $tea.Model {
|
|
|
627
718
|
});
|
|
628
719
|
}
|
|
629
720
|
export declare class CreateTensorboardRequest extends $tea.Model {
|
|
721
|
+
cpu?: number;
|
|
630
722
|
dataSourceId?: string;
|
|
631
723
|
dataSourceType?: string;
|
|
632
724
|
dataSources?: DataSourceItem[];
|
|
633
725
|
displayName?: string;
|
|
634
726
|
jobId?: string;
|
|
635
727
|
maxRunningTimeMinutes?: number;
|
|
728
|
+
memory?: number;
|
|
636
729
|
options?: string;
|
|
637
730
|
sourceId?: string;
|
|
638
731
|
sourceType?: string;
|
|
@@ -779,8 +872,10 @@ export declare class GetJobResponseBody extends $tea.Model {
|
|
|
779
872
|
requestId?: string;
|
|
780
873
|
resourceId?: string;
|
|
781
874
|
resourceLevel?: string;
|
|
875
|
+
restartTimes?: string;
|
|
782
876
|
settings?: JobSettings;
|
|
783
877
|
status?: string;
|
|
878
|
+
subStatus?: string;
|
|
784
879
|
thirdpartyLibDir?: string;
|
|
785
880
|
thirdpartyLibs?: string[];
|
|
786
881
|
userCommand?: string;
|
|
@@ -830,7 +925,7 @@ export declare class GetJobEventsRequest extends $tea.Model {
|
|
|
830
925
|
export declare class GetJobEventsResponseBody extends $tea.Model {
|
|
831
926
|
events?: string[];
|
|
832
927
|
jobId?: string;
|
|
833
|
-
requestId?:
|
|
928
|
+
requestId?: string;
|
|
834
929
|
static names(): {
|
|
835
930
|
[key: string]: string;
|
|
836
931
|
};
|
|
@@ -1079,6 +1174,7 @@ export declare class ListJobsRequest extends $tea.Model {
|
|
|
1079
1174
|
displayName?: string;
|
|
1080
1175
|
endTime?: string;
|
|
1081
1176
|
fromAllWorkspaces?: boolean;
|
|
1177
|
+
jobId?: string;
|
|
1082
1178
|
jobType?: string;
|
|
1083
1179
|
order?: string;
|
|
1084
1180
|
pageNumber?: number;
|
|
@@ -1109,6 +1205,7 @@ export declare class ListJobsShrinkRequest extends $tea.Model {
|
|
|
1109
1205
|
displayName?: string;
|
|
1110
1206
|
endTime?: string;
|
|
1111
1207
|
fromAllWorkspaces?: boolean;
|
|
1208
|
+
jobId?: string;
|
|
1112
1209
|
jobType?: string;
|
|
1113
1210
|
order?: string;
|
|
1114
1211
|
pageNumber?: number;
|
|
@@ -1516,7 +1613,9 @@ export declare class GetJobResponseBodyPodsHistoryPods extends $tea.Model {
|
|
|
1516
1613
|
ip?: string;
|
|
1517
1614
|
podId?: string;
|
|
1518
1615
|
podUid?: string;
|
|
1616
|
+
resourceType?: string;
|
|
1519
1617
|
status?: string;
|
|
1618
|
+
subStatus?: string;
|
|
1520
1619
|
type?: string;
|
|
1521
1620
|
static names(): {
|
|
1522
1621
|
[key: string]: string;
|
|
@@ -1536,7 +1635,9 @@ export declare class GetJobResponseBodyPods extends $tea.Model {
|
|
|
1536
1635
|
ip?: string;
|
|
1537
1636
|
podId?: string;
|
|
1538
1637
|
podUid?: string;
|
|
1638
|
+
resourceType?: string;
|
|
1539
1639
|
status?: string;
|
|
1640
|
+
subStatus?: string;
|
|
1540
1641
|
type?: string;
|
|
1541
1642
|
static names(): {
|
|
1542
1643
|
[key: string]: string;
|
|
@@ -1553,76 +1654,76 @@ export default class Client extends OpenApi {
|
|
|
1553
1654
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
1554
1655
|
[key: string]: string;
|
|
1555
1656
|
}, endpoint: string): string;
|
|
1556
|
-
createJob(request: CreateJobRequest): Promise<CreateJobResponse>;
|
|
1557
1657
|
createJobWithOptions(request: CreateJobRequest, headers: {
|
|
1558
1658
|
[key: string]: string;
|
|
1559
1659
|
}, runtime: $Util.RuntimeOptions): Promise<CreateJobResponse>;
|
|
1560
|
-
|
|
1660
|
+
createJob(request: CreateJobRequest): Promise<CreateJobResponse>;
|
|
1561
1661
|
createTensorboardWithOptions(request: CreateTensorboardRequest, headers: {
|
|
1562
1662
|
[key: string]: string;
|
|
1563
1663
|
}, runtime: $Util.RuntimeOptions): Promise<CreateTensorboardResponse>;
|
|
1564
|
-
|
|
1664
|
+
createTensorboard(request: CreateTensorboardRequest): Promise<CreateTensorboardResponse>;
|
|
1565
1665
|
deleteJobWithOptions(JobId: string, headers: {
|
|
1566
1666
|
[key: string]: string;
|
|
1567
1667
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteJobResponse>;
|
|
1568
|
-
|
|
1668
|
+
deleteJob(JobId: string): Promise<DeleteJobResponse>;
|
|
1569
1669
|
deleteTensorboardWithOptions(TensorboardId: string, request: DeleteTensorboardRequest, headers: {
|
|
1570
1670
|
[key: string]: string;
|
|
1571
1671
|
}, runtime: $Util.RuntimeOptions): Promise<DeleteTensorboardResponse>;
|
|
1572
|
-
|
|
1672
|
+
deleteTensorboard(TensorboardId: string, request: DeleteTensorboardRequest): Promise<DeleteTensorboardResponse>;
|
|
1573
1673
|
getJobWithOptions(JobId: string, headers: {
|
|
1574
1674
|
[key: string]: string;
|
|
1575
1675
|
}, runtime: $Util.RuntimeOptions): Promise<GetJobResponse>;
|
|
1576
|
-
|
|
1676
|
+
getJob(JobId: string): Promise<GetJobResponse>;
|
|
1577
1677
|
getJobEventsWithOptions(JobId: string, request: GetJobEventsRequest, headers: {
|
|
1578
1678
|
[key: string]: string;
|
|
1579
1679
|
}, runtime: $Util.RuntimeOptions): Promise<GetJobEventsResponse>;
|
|
1580
|
-
|
|
1680
|
+
getJobEvents(JobId: string, request: GetJobEventsRequest): Promise<GetJobEventsResponse>;
|
|
1581
1681
|
getJobMetricsWithOptions(JobId: string, request: GetJobMetricsRequest, headers: {
|
|
1582
1682
|
[key: string]: string;
|
|
1583
1683
|
}, runtime: $Util.RuntimeOptions): Promise<GetJobMetricsResponse>;
|
|
1584
|
-
|
|
1684
|
+
getJobMetrics(JobId: string, request: GetJobMetricsRequest): Promise<GetJobMetricsResponse>;
|
|
1585
1685
|
getPodEventsWithOptions(JobId: string, PodId: string, request: GetPodEventsRequest, headers: {
|
|
1586
1686
|
[key: string]: string;
|
|
1587
1687
|
}, runtime: $Util.RuntimeOptions): Promise<GetPodEventsResponse>;
|
|
1588
|
-
|
|
1688
|
+
getPodEvents(JobId: string, PodId: string, request: GetPodEventsRequest): Promise<GetPodEventsResponse>;
|
|
1589
1689
|
getPodLogsWithOptions(JobId: string, PodId: string, request: GetPodLogsRequest, headers: {
|
|
1590
1690
|
[key: string]: string;
|
|
1591
1691
|
}, runtime: $Util.RuntimeOptions): Promise<GetPodLogsResponse>;
|
|
1592
|
-
|
|
1692
|
+
getPodLogs(JobId: string, PodId: string, request: GetPodLogsRequest): Promise<GetPodLogsResponse>;
|
|
1593
1693
|
getTensorboardWithOptions(TensorboardId: string, request: GetTensorboardRequest, headers: {
|
|
1594
1694
|
[key: string]: string;
|
|
1595
1695
|
}, runtime: $Util.RuntimeOptions): Promise<GetTensorboardResponse>;
|
|
1596
|
-
|
|
1696
|
+
getTensorboard(TensorboardId: string, request: GetTensorboardRequest): Promise<GetTensorboardResponse>;
|
|
1597
1697
|
listEcsSpecsWithOptions(request: ListEcsSpecsRequest, headers: {
|
|
1598
1698
|
[key: string]: string;
|
|
1599
1699
|
}, runtime: $Util.RuntimeOptions): Promise<ListEcsSpecsResponse>;
|
|
1600
|
-
|
|
1700
|
+
listEcsSpecs(request: ListEcsSpecsRequest): Promise<ListEcsSpecsResponse>;
|
|
1601
1701
|
listJobsWithOptions(tmpReq: ListJobsRequest, headers: {
|
|
1602
1702
|
[key: string]: string;
|
|
1603
1703
|
}, runtime: $Util.RuntimeOptions): Promise<ListJobsResponse>;
|
|
1604
|
-
|
|
1704
|
+
listJobs(request: ListJobsRequest): Promise<ListJobsResponse>;
|
|
1605
1705
|
listTensorboardsWithOptions(request: ListTensorboardsRequest, headers: {
|
|
1606
1706
|
[key: string]: string;
|
|
1607
1707
|
}, runtime: $Util.RuntimeOptions): Promise<ListTensorboardsResponse>;
|
|
1608
|
-
|
|
1708
|
+
listTensorboards(request: ListTensorboardsRequest): Promise<ListTensorboardsResponse>;
|
|
1609
1709
|
startTensorboardWithOptions(TensorboardId: string, request: StartTensorboardRequest, headers: {
|
|
1610
1710
|
[key: string]: string;
|
|
1611
1711
|
}, runtime: $Util.RuntimeOptions): Promise<StartTensorboardResponse>;
|
|
1612
|
-
|
|
1712
|
+
startTensorboard(TensorboardId: string, request: StartTensorboardRequest): Promise<StartTensorboardResponse>;
|
|
1613
1713
|
stopJobWithOptions(JobId: string, headers: {
|
|
1614
1714
|
[key: string]: string;
|
|
1615
1715
|
}, runtime: $Util.RuntimeOptions): Promise<StopJobResponse>;
|
|
1616
|
-
|
|
1716
|
+
stopJob(JobId: string): Promise<StopJobResponse>;
|
|
1617
1717
|
stopTensorboardWithOptions(TensorboardId: string, request: StopTensorboardRequest, headers: {
|
|
1618
1718
|
[key: string]: string;
|
|
1619
1719
|
}, runtime: $Util.RuntimeOptions): Promise<StopTensorboardResponse>;
|
|
1620
|
-
|
|
1720
|
+
stopTensorboard(TensorboardId: string, request: StopTensorboardRequest): Promise<StopTensorboardResponse>;
|
|
1621
1721
|
updateJobWithOptions(JobId: string, request: UpdateJobRequest, headers: {
|
|
1622
1722
|
[key: string]: string;
|
|
1623
1723
|
}, runtime: $Util.RuntimeOptions): Promise<UpdateJobResponse>;
|
|
1624
|
-
|
|
1724
|
+
updateJob(JobId: string, request: UpdateJobRequest): Promise<UpdateJobResponse>;
|
|
1625
1725
|
updateTensorboardWithOptions(TensorboardId: string, request: UpdateTensorboardRequest, headers: {
|
|
1626
1726
|
[key: string]: string;
|
|
1627
1727
|
}, runtime: $Util.RuntimeOptions): Promise<UpdateTensorboardResponse>;
|
|
1728
|
+
updateTensorboard(TensorboardId: string, request: UpdateTensorboardRequest): Promise<UpdateTensorboardResponse>;
|
|
1628
1729
|
}
|