@alicloud/pai-dlc20201203 1.2.1 → 1.2.3
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 +39 -21
- package/dist/client.js +96 -77
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +111 -81
package/dist/client.js
CHANGED
|
@@ -512,6 +512,7 @@ class JobSettings extends $tea.Model {
|
|
|
512
512
|
businessUserId: 'BusinessUserId',
|
|
513
513
|
caller: 'Caller',
|
|
514
514
|
enableErrorMonitoringInAIMaster: 'EnableErrorMonitoringInAIMaster',
|
|
515
|
+
enableOssAppend: 'EnableOssAppend',
|
|
515
516
|
enableRDMA: 'EnableRDMA',
|
|
516
517
|
enableTideResource: 'EnableTideResource',
|
|
517
518
|
errorMonitoringArgs: 'ErrorMonitoringArgs',
|
|
@@ -524,6 +525,7 @@ class JobSettings extends $tea.Model {
|
|
|
524
525
|
businessUserId: 'string',
|
|
525
526
|
caller: 'string',
|
|
526
527
|
enableErrorMonitoringInAIMaster: 'boolean',
|
|
528
|
+
enableOssAppend: 'boolean',
|
|
527
529
|
enableRDMA: 'boolean',
|
|
528
530
|
enableTideResource: 'boolean',
|
|
529
531
|
errorMonitoringArgs: 'string',
|
|
@@ -641,12 +643,10 @@ class Quota extends $tea.Model {
|
|
|
641
643
|
return {
|
|
642
644
|
clusterId: 'ClusterId',
|
|
643
645
|
clusterName: 'ClusterName',
|
|
644
|
-
|
|
645
|
-
isExclusiveQuota: 'IsExclusiveQuota',
|
|
646
|
+
quotaConfig: 'QuotaConfig',
|
|
646
647
|
quotaId: 'QuotaId',
|
|
647
648
|
quotaName: 'QuotaName',
|
|
648
649
|
quotaType: 'QuotaType',
|
|
649
|
-
resourceLevel: 'ResourceLevel',
|
|
650
650
|
totalQuota: 'TotalQuota',
|
|
651
651
|
totalTideQuota: 'TotalTideQuota',
|
|
652
652
|
usedQuota: 'UsedQuota',
|
|
@@ -657,12 +657,10 @@ class Quota extends $tea.Model {
|
|
|
657
657
|
return {
|
|
658
658
|
clusterId: 'string',
|
|
659
659
|
clusterName: 'string',
|
|
660
|
-
|
|
661
|
-
isExclusiveQuota: 'boolean',
|
|
660
|
+
quotaConfig: QuotaConfig,
|
|
662
661
|
quotaId: 'string',
|
|
663
662
|
quotaName: 'string',
|
|
664
663
|
quotaType: 'string',
|
|
665
|
-
resourceLevel: 'string',
|
|
666
664
|
totalQuota: QuotaDetail,
|
|
667
665
|
totalTideQuota: QuotaDetail,
|
|
668
666
|
usedQuota: QuotaDetail,
|
|
@@ -671,6 +669,30 @@ class Quota extends $tea.Model {
|
|
|
671
669
|
}
|
|
672
670
|
}
|
|
673
671
|
exports.Quota = Quota;
|
|
672
|
+
class QuotaConfig extends $tea.Model {
|
|
673
|
+
constructor(map) {
|
|
674
|
+
super(map);
|
|
675
|
+
}
|
|
676
|
+
static names() {
|
|
677
|
+
return {
|
|
678
|
+
allowedMaxPriority: 'AllowedMaxPriority',
|
|
679
|
+
enableDLC: 'EnableDLC',
|
|
680
|
+
enableDSW: 'EnableDSW',
|
|
681
|
+
enableTideResource: 'EnableTideResource',
|
|
682
|
+
resourceLevel: 'ResourceLevel',
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
static types() {
|
|
686
|
+
return {
|
|
687
|
+
allowedMaxPriority: 'number',
|
|
688
|
+
enableDLC: 'boolean',
|
|
689
|
+
enableDSW: 'boolean',
|
|
690
|
+
enableTideResource: 'boolean',
|
|
691
|
+
resourceLevel: 'string',
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
exports.QuotaConfig = QuotaConfig;
|
|
674
696
|
class QuotaDetail extends $tea.Model {
|
|
675
697
|
constructor(map) {
|
|
676
698
|
super(map);
|
|
@@ -898,6 +920,7 @@ class CreateJobRequest extends $tea.Model {
|
|
|
898
920
|
priority: 'Priority',
|
|
899
921
|
resourceId: 'ResourceId',
|
|
900
922
|
settings: 'Settings',
|
|
923
|
+
successPolicy: 'SuccessPolicy',
|
|
901
924
|
thirdpartyLibDir: 'ThirdpartyLibDir',
|
|
902
925
|
thirdpartyLibs: 'ThirdpartyLibs',
|
|
903
926
|
userCommand: 'UserCommand',
|
|
@@ -920,6 +943,7 @@ class CreateJobRequest extends $tea.Model {
|
|
|
920
943
|
priority: 'number',
|
|
921
944
|
resourceId: 'string',
|
|
922
945
|
settings: JobSettings,
|
|
946
|
+
successPolicy: 'string',
|
|
923
947
|
thirdpartyLibDir: 'string',
|
|
924
948
|
thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
|
|
925
949
|
userCommand: 'string',
|
|
@@ -1612,6 +1636,7 @@ class ListJobsRequest extends $tea.Model {
|
|
|
1612
1636
|
displayName: 'DisplayName',
|
|
1613
1637
|
endTime: 'EndTime',
|
|
1614
1638
|
fromAllWorkspaces: 'FromAllWorkspaces',
|
|
1639
|
+
jobId: 'JobId',
|
|
1615
1640
|
jobType: 'JobType',
|
|
1616
1641
|
order: 'Order',
|
|
1617
1642
|
pageNumber: 'PageNumber',
|
|
@@ -1633,6 +1658,7 @@ class ListJobsRequest extends $tea.Model {
|
|
|
1633
1658
|
displayName: 'string',
|
|
1634
1659
|
endTime: 'string',
|
|
1635
1660
|
fromAllWorkspaces: 'boolean',
|
|
1661
|
+
jobId: 'string',
|
|
1636
1662
|
jobType: 'string',
|
|
1637
1663
|
order: 'string',
|
|
1638
1664
|
pageNumber: 'number',
|
|
@@ -1660,6 +1686,7 @@ class ListJobsShrinkRequest extends $tea.Model {
|
|
|
1660
1686
|
displayName: 'DisplayName',
|
|
1661
1687
|
endTime: 'EndTime',
|
|
1662
1688
|
fromAllWorkspaces: 'FromAllWorkspaces',
|
|
1689
|
+
jobId: 'JobId',
|
|
1663
1690
|
jobType: 'JobType',
|
|
1664
1691
|
order: 'Order',
|
|
1665
1692
|
pageNumber: 'PageNumber',
|
|
@@ -1681,6 +1708,7 @@ class ListJobsShrinkRequest extends $tea.Model {
|
|
|
1681
1708
|
displayName: 'string',
|
|
1682
1709
|
endTime: 'string',
|
|
1683
1710
|
fromAllWorkspaces: 'boolean',
|
|
1711
|
+
jobId: 'string',
|
|
1684
1712
|
jobType: 'string',
|
|
1685
1713
|
order: 'string',
|
|
1686
1714
|
pageNumber: 'number',
|
|
@@ -2347,15 +2375,10 @@ class Client extends openapi_client_1.default {
|
|
|
2347
2375
|
}
|
|
2348
2376
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
2349
2377
|
}
|
|
2350
|
-
async createJob(request) {
|
|
2351
|
-
let runtime = new $Util.RuntimeOptions({});
|
|
2352
|
-
let headers = {};
|
|
2353
|
-
return await this.createJobWithOptions(request, headers, runtime);
|
|
2354
|
-
}
|
|
2355
2378
|
async createJobWithOptions(request, headers, runtime) {
|
|
2356
2379
|
tea_util_1.default.validateModel(request);
|
|
2357
2380
|
let body = {};
|
|
2358
|
-
if (!tea_util_1.default.isUnset(
|
|
2381
|
+
if (!tea_util_1.default.isUnset(request.codeSource)) {
|
|
2359
2382
|
body["CodeSource"] = request.codeSource;
|
|
2360
2383
|
}
|
|
2361
2384
|
if (!tea_util_1.default.isUnset(request.dataSources)) {
|
|
@@ -2367,7 +2390,7 @@ class Client extends openapi_client_1.default {
|
|
|
2367
2390
|
if (!tea_util_1.default.isUnset(request.displayName)) {
|
|
2368
2391
|
body["DisplayName"] = request.displayName;
|
|
2369
2392
|
}
|
|
2370
|
-
if (!tea_util_1.default.isUnset(
|
|
2393
|
+
if (!tea_util_1.default.isUnset(request.elasticSpec)) {
|
|
2371
2394
|
body["ElasticSpec"] = request.elasticSpec;
|
|
2372
2395
|
}
|
|
2373
2396
|
if (!tea_util_1.default.isUnset(request.envs)) {
|
|
@@ -2391,9 +2414,12 @@ class Client extends openapi_client_1.default {
|
|
|
2391
2414
|
if (!tea_util_1.default.isUnset(request.resourceId)) {
|
|
2392
2415
|
body["ResourceId"] = request.resourceId;
|
|
2393
2416
|
}
|
|
2394
|
-
if (!tea_util_1.default.isUnset(
|
|
2417
|
+
if (!tea_util_1.default.isUnset(request.settings)) {
|
|
2395
2418
|
body["Settings"] = request.settings;
|
|
2396
2419
|
}
|
|
2420
|
+
if (!tea_util_1.default.isUnset(request.successPolicy)) {
|
|
2421
|
+
body["SuccessPolicy"] = request.successPolicy;
|
|
2422
|
+
}
|
|
2397
2423
|
if (!tea_util_1.default.isUnset(request.thirdpartyLibDir)) {
|
|
2398
2424
|
body["ThirdpartyLibDir"] = request.thirdpartyLibDir;
|
|
2399
2425
|
}
|
|
@@ -2403,7 +2429,7 @@ class Client extends openapi_client_1.default {
|
|
|
2403
2429
|
if (!tea_util_1.default.isUnset(request.userCommand)) {
|
|
2404
2430
|
body["UserCommand"] = request.userCommand;
|
|
2405
2431
|
}
|
|
2406
|
-
if (!tea_util_1.default.isUnset(
|
|
2432
|
+
if (!tea_util_1.default.isUnset(request.userVpc)) {
|
|
2407
2433
|
body["UserVpc"] = request.userVpc;
|
|
2408
2434
|
}
|
|
2409
2435
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
@@ -2426,10 +2452,10 @@ class Client extends openapi_client_1.default {
|
|
|
2426
2452
|
});
|
|
2427
2453
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateJobResponse({}));
|
|
2428
2454
|
}
|
|
2429
|
-
async
|
|
2455
|
+
async createJob(request) {
|
|
2430
2456
|
let runtime = new $Util.RuntimeOptions({});
|
|
2431
2457
|
let headers = {};
|
|
2432
|
-
return await this.
|
|
2458
|
+
return await this.createJobWithOptions(request, headers, runtime);
|
|
2433
2459
|
}
|
|
2434
2460
|
async createTensorboardWithOptions(request, headers, runtime) {
|
|
2435
2461
|
tea_util_1.default.validateModel(request);
|
|
@@ -2490,13 +2516,12 @@ class Client extends openapi_client_1.default {
|
|
|
2490
2516
|
});
|
|
2491
2517
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateTensorboardResponse({}));
|
|
2492
2518
|
}
|
|
2493
|
-
async
|
|
2519
|
+
async createTensorboard(request) {
|
|
2494
2520
|
let runtime = new $Util.RuntimeOptions({});
|
|
2495
2521
|
let headers = {};
|
|
2496
|
-
return await this.
|
|
2522
|
+
return await this.createTensorboardWithOptions(request, headers, runtime);
|
|
2497
2523
|
}
|
|
2498
2524
|
async deleteJobWithOptions(JobId, headers, runtime) {
|
|
2499
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2500
2525
|
let req = new $OpenApi.OpenApiRequest({
|
|
2501
2526
|
headers: headers,
|
|
2502
2527
|
});
|
|
@@ -2504,7 +2529,7 @@ class Client extends openapi_client_1.default {
|
|
|
2504
2529
|
action: "DeleteJob",
|
|
2505
2530
|
version: "2020-12-03",
|
|
2506
2531
|
protocol: "HTTPS",
|
|
2507
|
-
pathname: `/api/v1/jobs/${JobId}`,
|
|
2532
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
|
|
2508
2533
|
method: "DELETE",
|
|
2509
2534
|
authType: "AK",
|
|
2510
2535
|
style: "ROA",
|
|
@@ -2513,14 +2538,13 @@ class Client extends openapi_client_1.default {
|
|
|
2513
2538
|
});
|
|
2514
2539
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteJobResponse({}));
|
|
2515
2540
|
}
|
|
2516
|
-
async
|
|
2541
|
+
async deleteJob(JobId) {
|
|
2517
2542
|
let runtime = new $Util.RuntimeOptions({});
|
|
2518
2543
|
let headers = {};
|
|
2519
|
-
return await this.
|
|
2544
|
+
return await this.deleteJobWithOptions(JobId, headers, runtime);
|
|
2520
2545
|
}
|
|
2521
2546
|
async deleteTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
2522
2547
|
tea_util_1.default.validateModel(request);
|
|
2523
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
2524
2548
|
let query = {};
|
|
2525
2549
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
2526
2550
|
query["WorkspaceId"] = request.workspaceId;
|
|
@@ -2533,7 +2557,7 @@ class Client extends openapi_client_1.default {
|
|
|
2533
2557
|
action: "DeleteTensorboard",
|
|
2534
2558
|
version: "2020-12-03",
|
|
2535
2559
|
protocol: "HTTPS",
|
|
2536
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}`,
|
|
2560
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
|
|
2537
2561
|
method: "DELETE",
|
|
2538
2562
|
authType: "AK",
|
|
2539
2563
|
style: "ROA",
|
|
@@ -2542,13 +2566,12 @@ class Client extends openapi_client_1.default {
|
|
|
2542
2566
|
});
|
|
2543
2567
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteTensorboardResponse({}));
|
|
2544
2568
|
}
|
|
2545
|
-
async
|
|
2569
|
+
async deleteTensorboard(TensorboardId, request) {
|
|
2546
2570
|
let runtime = new $Util.RuntimeOptions({});
|
|
2547
2571
|
let headers = {};
|
|
2548
|
-
return await this.
|
|
2572
|
+
return await this.deleteTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
2549
2573
|
}
|
|
2550
2574
|
async getJobWithOptions(JobId, headers, runtime) {
|
|
2551
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2552
2575
|
let req = new $OpenApi.OpenApiRequest({
|
|
2553
2576
|
headers: headers,
|
|
2554
2577
|
});
|
|
@@ -2556,7 +2579,7 @@ class Client extends openapi_client_1.default {
|
|
|
2556
2579
|
action: "GetJob",
|
|
2557
2580
|
version: "2020-12-03",
|
|
2558
2581
|
protocol: "HTTPS",
|
|
2559
|
-
pathname: `/api/v1/jobs/${JobId}`,
|
|
2582
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
|
|
2560
2583
|
method: "GET",
|
|
2561
2584
|
authType: "AK",
|
|
2562
2585
|
style: "ROA",
|
|
@@ -2565,14 +2588,13 @@ class Client extends openapi_client_1.default {
|
|
|
2565
2588
|
});
|
|
2566
2589
|
return $tea.cast(await this.callApi(params, req, runtime), new GetJobResponse({}));
|
|
2567
2590
|
}
|
|
2568
|
-
async
|
|
2591
|
+
async getJob(JobId) {
|
|
2569
2592
|
let runtime = new $Util.RuntimeOptions({});
|
|
2570
2593
|
let headers = {};
|
|
2571
|
-
return await this.
|
|
2594
|
+
return await this.getJobWithOptions(JobId, headers, runtime);
|
|
2572
2595
|
}
|
|
2573
2596
|
async getJobEventsWithOptions(JobId, request, headers, runtime) {
|
|
2574
2597
|
tea_util_1.default.validateModel(request);
|
|
2575
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2576
2598
|
let query = {};
|
|
2577
2599
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
2578
2600
|
query["EndTime"] = request.endTime;
|
|
@@ -2591,7 +2613,7 @@ class Client extends openapi_client_1.default {
|
|
|
2591
2613
|
action: "GetJobEvents",
|
|
2592
2614
|
version: "2020-12-03",
|
|
2593
2615
|
protocol: "HTTPS",
|
|
2594
|
-
pathname: `/api/v1/jobs/${JobId}/events`,
|
|
2616
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/events`,
|
|
2595
2617
|
method: "GET",
|
|
2596
2618
|
authType: "AK",
|
|
2597
2619
|
style: "ROA",
|
|
@@ -2600,14 +2622,13 @@ class Client extends openapi_client_1.default {
|
|
|
2600
2622
|
});
|
|
2601
2623
|
return $tea.cast(await this.callApi(params, req, runtime), new GetJobEventsResponse({}));
|
|
2602
2624
|
}
|
|
2603
|
-
async
|
|
2625
|
+
async getJobEvents(JobId, request) {
|
|
2604
2626
|
let runtime = new $Util.RuntimeOptions({});
|
|
2605
2627
|
let headers = {};
|
|
2606
|
-
return await this.
|
|
2628
|
+
return await this.getJobEventsWithOptions(JobId, request, headers, runtime);
|
|
2607
2629
|
}
|
|
2608
2630
|
async getJobMetricsWithOptions(JobId, request, headers, runtime) {
|
|
2609
2631
|
tea_util_1.default.validateModel(request);
|
|
2610
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2611
2632
|
let query = {};
|
|
2612
2633
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
2613
2634
|
query["EndTime"] = request.endTime;
|
|
@@ -2632,7 +2653,7 @@ class Client extends openapi_client_1.default {
|
|
|
2632
2653
|
action: "GetJobMetrics",
|
|
2633
2654
|
version: "2020-12-03",
|
|
2634
2655
|
protocol: "HTTPS",
|
|
2635
|
-
pathname: `/api/v1/jobs/${JobId}/metrics`,
|
|
2656
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/metrics`,
|
|
2636
2657
|
method: "GET",
|
|
2637
2658
|
authType: "AK",
|
|
2638
2659
|
style: "ROA",
|
|
@@ -2641,15 +2662,13 @@ class Client extends openapi_client_1.default {
|
|
|
2641
2662
|
});
|
|
2642
2663
|
return $tea.cast(await this.callApi(params, req, runtime), new GetJobMetricsResponse({}));
|
|
2643
2664
|
}
|
|
2644
|
-
async
|
|
2665
|
+
async getJobMetrics(JobId, request) {
|
|
2645
2666
|
let runtime = new $Util.RuntimeOptions({});
|
|
2646
2667
|
let headers = {};
|
|
2647
|
-
return await this.
|
|
2668
|
+
return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
|
|
2648
2669
|
}
|
|
2649
2670
|
async getPodEventsWithOptions(JobId, PodId, request, headers, runtime) {
|
|
2650
2671
|
tea_util_1.default.validateModel(request);
|
|
2651
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2652
|
-
PodId = openapi_util_1.default.getEncodeParam(PodId);
|
|
2653
2672
|
let query = {};
|
|
2654
2673
|
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
2655
2674
|
query["EndTime"] = request.endTime;
|
|
@@ -2671,7 +2690,7 @@ class Client extends openapi_client_1.default {
|
|
|
2671
2690
|
action: "GetPodEvents",
|
|
2672
2691
|
version: "2020-12-03",
|
|
2673
2692
|
protocol: "HTTPS",
|
|
2674
|
-
pathname: `/api/v1/jobs/${JobId}/pods/${PodId}/events`,
|
|
2693
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/pods/${openapi_util_1.default.getEncodeParam(PodId)}/events`,
|
|
2675
2694
|
method: "GET",
|
|
2676
2695
|
authType: "AK",
|
|
2677
2696
|
style: "ROA",
|
|
@@ -2680,15 +2699,13 @@ class Client extends openapi_client_1.default {
|
|
|
2680
2699
|
});
|
|
2681
2700
|
return $tea.cast(await this.callApi(params, req, runtime), new GetPodEventsResponse({}));
|
|
2682
2701
|
}
|
|
2683
|
-
async
|
|
2702
|
+
async getPodEvents(JobId, PodId, request) {
|
|
2684
2703
|
let runtime = new $Util.RuntimeOptions({});
|
|
2685
2704
|
let headers = {};
|
|
2686
|
-
return await this.
|
|
2705
|
+
return await this.getPodEventsWithOptions(JobId, PodId, request, headers, runtime);
|
|
2687
2706
|
}
|
|
2688
2707
|
async getPodLogsWithOptions(JobId, PodId, request, headers, runtime) {
|
|
2689
2708
|
tea_util_1.default.validateModel(request);
|
|
2690
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2691
|
-
PodId = openapi_util_1.default.getEncodeParam(PodId);
|
|
2692
2709
|
let query = {};
|
|
2693
2710
|
if (!tea_util_1.default.isUnset(request.downloadToFile)) {
|
|
2694
2711
|
query["DownloadToFile"] = request.downloadToFile;
|
|
@@ -2713,7 +2730,7 @@ class Client extends openapi_client_1.default {
|
|
|
2713
2730
|
action: "GetPodLogs",
|
|
2714
2731
|
version: "2020-12-03",
|
|
2715
2732
|
protocol: "HTTPS",
|
|
2716
|
-
pathname: `/api/v1/jobs/${JobId}/pods/${PodId}/logs`,
|
|
2733
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/pods/${openapi_util_1.default.getEncodeParam(PodId)}/logs`,
|
|
2717
2734
|
method: "GET",
|
|
2718
2735
|
authType: "AK",
|
|
2719
2736
|
style: "ROA",
|
|
@@ -2722,14 +2739,13 @@ class Client extends openapi_client_1.default {
|
|
|
2722
2739
|
});
|
|
2723
2740
|
return $tea.cast(await this.callApi(params, req, runtime), new GetPodLogsResponse({}));
|
|
2724
2741
|
}
|
|
2725
|
-
async
|
|
2742
|
+
async getPodLogs(JobId, PodId, request) {
|
|
2726
2743
|
let runtime = new $Util.RuntimeOptions({});
|
|
2727
2744
|
let headers = {};
|
|
2728
|
-
return await this.
|
|
2745
|
+
return await this.getPodLogsWithOptions(JobId, PodId, request, headers, runtime);
|
|
2729
2746
|
}
|
|
2730
2747
|
async getTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
2731
2748
|
tea_util_1.default.validateModel(request);
|
|
2732
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
2733
2749
|
let query = {};
|
|
2734
2750
|
if (!tea_util_1.default.isUnset(request.jodId)) {
|
|
2735
2751
|
query["JodId"] = request.jodId;
|
|
@@ -2745,7 +2761,7 @@ class Client extends openapi_client_1.default {
|
|
|
2745
2761
|
action: "GetTensorboard",
|
|
2746
2762
|
version: "2020-12-03",
|
|
2747
2763
|
protocol: "HTTPS",
|
|
2748
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}`,
|
|
2764
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
|
|
2749
2765
|
method: "GET",
|
|
2750
2766
|
authType: "AK",
|
|
2751
2767
|
style: "ROA",
|
|
@@ -2754,10 +2770,10 @@ class Client extends openapi_client_1.default {
|
|
|
2754
2770
|
});
|
|
2755
2771
|
return $tea.cast(await this.callApi(params, req, runtime), new GetTensorboardResponse({}));
|
|
2756
2772
|
}
|
|
2757
|
-
async
|
|
2773
|
+
async getTensorboard(TensorboardId, request) {
|
|
2758
2774
|
let runtime = new $Util.RuntimeOptions({});
|
|
2759
2775
|
let headers = {};
|
|
2760
|
-
return await this.
|
|
2776
|
+
return await this.getTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
2761
2777
|
}
|
|
2762
2778
|
async listEcsSpecsWithOptions(request, headers, runtime) {
|
|
2763
2779
|
tea_util_1.default.validateModel(request);
|
|
@@ -2794,10 +2810,10 @@ class Client extends openapi_client_1.default {
|
|
|
2794
2810
|
});
|
|
2795
2811
|
return $tea.cast(await this.callApi(params, req, runtime), new ListEcsSpecsResponse({}));
|
|
2796
2812
|
}
|
|
2797
|
-
async
|
|
2813
|
+
async listEcsSpecs(request) {
|
|
2798
2814
|
let runtime = new $Util.RuntimeOptions({});
|
|
2799
2815
|
let headers = {};
|
|
2800
|
-
return await this.
|
|
2816
|
+
return await this.listEcsSpecsWithOptions(request, headers, runtime);
|
|
2801
2817
|
}
|
|
2802
2818
|
async listJobsWithOptions(tmpReq, headers, runtime) {
|
|
2803
2819
|
tea_util_1.default.validateModel(tmpReq);
|
|
@@ -2822,6 +2838,9 @@ class Client extends openapi_client_1.default {
|
|
|
2822
2838
|
if (!tea_util_1.default.isUnset(request.fromAllWorkspaces)) {
|
|
2823
2839
|
query["FromAllWorkspaces"] = request.fromAllWorkspaces;
|
|
2824
2840
|
}
|
|
2841
|
+
if (!tea_util_1.default.isUnset(request.jobId)) {
|
|
2842
|
+
query["JobId"] = request.jobId;
|
|
2843
|
+
}
|
|
2825
2844
|
if (!tea_util_1.default.isUnset(request.jobType)) {
|
|
2826
2845
|
query["JobType"] = request.jobType;
|
|
2827
2846
|
}
|
|
@@ -2875,10 +2894,10 @@ class Client extends openapi_client_1.default {
|
|
|
2875
2894
|
});
|
|
2876
2895
|
return $tea.cast(await this.callApi(params, req, runtime), new ListJobsResponse({}));
|
|
2877
2896
|
}
|
|
2878
|
-
async
|
|
2897
|
+
async listJobs(request) {
|
|
2879
2898
|
let runtime = new $Util.RuntimeOptions({});
|
|
2880
2899
|
let headers = {};
|
|
2881
|
-
return await this.
|
|
2900
|
+
return await this.listJobsWithOptions(request, headers, runtime);
|
|
2882
2901
|
}
|
|
2883
2902
|
async listTensorboardsWithOptions(request, headers, runtime) {
|
|
2884
2903
|
tea_util_1.default.validateModel(request);
|
|
@@ -2942,14 +2961,13 @@ class Client extends openapi_client_1.default {
|
|
|
2942
2961
|
});
|
|
2943
2962
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTensorboardsResponse({}));
|
|
2944
2963
|
}
|
|
2945
|
-
async
|
|
2964
|
+
async listTensorboards(request) {
|
|
2946
2965
|
let runtime = new $Util.RuntimeOptions({});
|
|
2947
2966
|
let headers = {};
|
|
2948
|
-
return await this.
|
|
2967
|
+
return await this.listTensorboardsWithOptions(request, headers, runtime);
|
|
2949
2968
|
}
|
|
2950
2969
|
async startTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
2951
2970
|
tea_util_1.default.validateModel(request);
|
|
2952
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
2953
2971
|
let query = {};
|
|
2954
2972
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
2955
2973
|
query["WorkspaceId"] = request.workspaceId;
|
|
@@ -2962,7 +2980,7 @@ class Client extends openapi_client_1.default {
|
|
|
2962
2980
|
action: "StartTensorboard",
|
|
2963
2981
|
version: "2020-12-03",
|
|
2964
2982
|
protocol: "HTTPS",
|
|
2965
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}/start`,
|
|
2983
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}/start`,
|
|
2966
2984
|
method: "PUT",
|
|
2967
2985
|
authType: "AK",
|
|
2968
2986
|
style: "ROA",
|
|
@@ -2971,13 +2989,12 @@ class Client extends openapi_client_1.default {
|
|
|
2971
2989
|
});
|
|
2972
2990
|
return $tea.cast(await this.callApi(params, req, runtime), new StartTensorboardResponse({}));
|
|
2973
2991
|
}
|
|
2974
|
-
async
|
|
2992
|
+
async startTensorboard(TensorboardId, request) {
|
|
2975
2993
|
let runtime = new $Util.RuntimeOptions({});
|
|
2976
2994
|
let headers = {};
|
|
2977
|
-
return await this.
|
|
2995
|
+
return await this.startTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
2978
2996
|
}
|
|
2979
2997
|
async stopJobWithOptions(JobId, headers, runtime) {
|
|
2980
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
2981
2998
|
let req = new $OpenApi.OpenApiRequest({
|
|
2982
2999
|
headers: headers,
|
|
2983
3000
|
});
|
|
@@ -2985,7 +3002,7 @@ class Client extends openapi_client_1.default {
|
|
|
2985
3002
|
action: "StopJob",
|
|
2986
3003
|
version: "2020-12-03",
|
|
2987
3004
|
protocol: "HTTPS",
|
|
2988
|
-
pathname: `/api/v1/jobs/${JobId}/stop`,
|
|
3005
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/stop`,
|
|
2989
3006
|
method: "POST",
|
|
2990
3007
|
authType: "AK",
|
|
2991
3008
|
style: "ROA",
|
|
@@ -2994,14 +3011,13 @@ class Client extends openapi_client_1.default {
|
|
|
2994
3011
|
});
|
|
2995
3012
|
return $tea.cast(await this.callApi(params, req, runtime), new StopJobResponse({}));
|
|
2996
3013
|
}
|
|
2997
|
-
async
|
|
3014
|
+
async stopJob(JobId) {
|
|
2998
3015
|
let runtime = new $Util.RuntimeOptions({});
|
|
2999
3016
|
let headers = {};
|
|
3000
|
-
return await this.
|
|
3017
|
+
return await this.stopJobWithOptions(JobId, headers, runtime);
|
|
3001
3018
|
}
|
|
3002
3019
|
async stopTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
3003
3020
|
tea_util_1.default.validateModel(request);
|
|
3004
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
3005
3021
|
let query = {};
|
|
3006
3022
|
if (!tea_util_1.default.isUnset(request.workspaceId)) {
|
|
3007
3023
|
query["WorkspaceId"] = request.workspaceId;
|
|
@@ -3014,7 +3030,7 @@ class Client extends openapi_client_1.default {
|
|
|
3014
3030
|
action: "StopTensorboard",
|
|
3015
3031
|
version: "2020-12-03",
|
|
3016
3032
|
protocol: "HTTPS",
|
|
3017
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}/stop`,
|
|
3033
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}/stop`,
|
|
3018
3034
|
method: "PUT",
|
|
3019
3035
|
authType: "AK",
|
|
3020
3036
|
style: "ROA",
|
|
@@ -3023,14 +3039,13 @@ class Client extends openapi_client_1.default {
|
|
|
3023
3039
|
});
|
|
3024
3040
|
return $tea.cast(await this.callApi(params, req, runtime), new StopTensorboardResponse({}));
|
|
3025
3041
|
}
|
|
3026
|
-
async
|
|
3042
|
+
async stopTensorboard(TensorboardId, request) {
|
|
3027
3043
|
let runtime = new $Util.RuntimeOptions({});
|
|
3028
3044
|
let headers = {};
|
|
3029
|
-
return await this.
|
|
3045
|
+
return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
3030
3046
|
}
|
|
3031
3047
|
async updateJobWithOptions(JobId, request, headers, runtime) {
|
|
3032
3048
|
tea_util_1.default.validateModel(request);
|
|
3033
|
-
JobId = openapi_util_1.default.getEncodeParam(JobId);
|
|
3034
3049
|
let body = {};
|
|
3035
3050
|
if (!tea_util_1.default.isUnset(request.priority)) {
|
|
3036
3051
|
body["Priority"] = request.priority;
|
|
@@ -3043,7 +3058,7 @@ class Client extends openapi_client_1.default {
|
|
|
3043
3058
|
action: "UpdateJob",
|
|
3044
3059
|
version: "2020-12-03",
|
|
3045
3060
|
protocol: "HTTPS",
|
|
3046
|
-
pathname: `/api/v1/jobs/${JobId}`,
|
|
3061
|
+
pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
|
|
3047
3062
|
method: "PUT",
|
|
3048
3063
|
authType: "AK",
|
|
3049
3064
|
style: "ROA",
|
|
@@ -3052,14 +3067,13 @@ class Client extends openapi_client_1.default {
|
|
|
3052
3067
|
});
|
|
3053
3068
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateJobResponse({}));
|
|
3054
3069
|
}
|
|
3055
|
-
async
|
|
3070
|
+
async updateJob(JobId, request) {
|
|
3056
3071
|
let runtime = new $Util.RuntimeOptions({});
|
|
3057
3072
|
let headers = {};
|
|
3058
|
-
return await this.
|
|
3073
|
+
return await this.updateJobWithOptions(JobId, request, headers, runtime);
|
|
3059
3074
|
}
|
|
3060
3075
|
async updateTensorboardWithOptions(TensorboardId, request, headers, runtime) {
|
|
3061
3076
|
tea_util_1.default.validateModel(request);
|
|
3062
|
-
TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
|
|
3063
3077
|
let query = {};
|
|
3064
3078
|
if (!tea_util_1.default.isUnset(request.maxRunningTimeMinutes)) {
|
|
3065
3079
|
query["MaxRunningTimeMinutes"] = request.maxRunningTimeMinutes;
|
|
@@ -3075,7 +3089,7 @@ class Client extends openapi_client_1.default {
|
|
|
3075
3089
|
action: "UpdateTensorboard",
|
|
3076
3090
|
version: "2020-12-03",
|
|
3077
3091
|
protocol: "HTTPS",
|
|
3078
|
-
pathname: `/api/v1/tensorboards/${TensorboardId}`,
|
|
3092
|
+
pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
|
|
3079
3093
|
method: "PUT",
|
|
3080
3094
|
authType: "AK",
|
|
3081
3095
|
style: "ROA",
|
|
@@ -3084,6 +3098,11 @@ class Client extends openapi_client_1.default {
|
|
|
3084
3098
|
});
|
|
3085
3099
|
return $tea.cast(await this.callApi(params, req, runtime), new UpdateTensorboardResponse({}));
|
|
3086
3100
|
}
|
|
3101
|
+
async updateTensorboard(TensorboardId, request) {
|
|
3102
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3103
|
+
let headers = {};
|
|
3104
|
+
return await this.updateTensorboardWithOptions(TensorboardId, request, headers, runtime);
|
|
3105
|
+
}
|
|
3087
3106
|
}
|
|
3088
3107
|
exports.default = Client;
|
|
3089
3108
|
//# sourceMappingURL=client.js.map
|