@alicloud/pai-dlc20201203 1.2.0 → 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.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
- enableTideResource: 'EnableTideResource',
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
- enableTideResource: 'boolean',
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',
@@ -2283,7 +2311,58 @@ class Client extends openapi_client_1.default {
2283
2311
  constructor(config) {
2284
2312
  super(config);
2285
2313
  this._signatureAlgorithm = "v2";
2286
- this._endpointRule = "";
2314
+ this._endpointRule = "regional";
2315
+ this._endpointMap = {
2316
+ 'ap-northeast-1': "pai-dlc.aliyuncs.com",
2317
+ 'ap-northeast-2-pop': "pai-dlc.aliyuncs.com",
2318
+ 'ap-south-1': "pai-dlc.aliyuncs.com",
2319
+ 'ap-southeast-2': "pai-dlc.aliyuncs.com",
2320
+ 'ap-southeast-3': "pai-dlc.aliyuncs.com",
2321
+ 'ap-southeast-5': "pai-dlc.aliyuncs.com",
2322
+ 'cn-beijing-finance-1': "pai-dlc.aliyuncs.com",
2323
+ 'cn-beijing-finance-pop': "pai-dlc.aliyuncs.com",
2324
+ 'cn-beijing-gov-1': "pai-dlc.aliyuncs.com",
2325
+ 'cn-beijing-nu16-b01': "pai-dlc.aliyuncs.com",
2326
+ 'cn-chengdu': "pai-dlc.aliyuncs.com",
2327
+ 'cn-edge-1': "pai-dlc.aliyuncs.com",
2328
+ 'cn-fujian': "pai-dlc.aliyuncs.com",
2329
+ 'cn-haidian-cm12-c01': "pai-dlc.aliyuncs.com",
2330
+ 'cn-hangzhou-bj-b01': "pai-dlc.aliyuncs.com",
2331
+ 'cn-hangzhou-finance': "pai-dlc.aliyuncs.com",
2332
+ 'cn-hangzhou-internal-prod-1': "pai-dlc.aliyuncs.com",
2333
+ 'cn-hangzhou-internal-test-1': "pai-dlc.aliyuncs.com",
2334
+ 'cn-hangzhou-internal-test-2': "pai-dlc.aliyuncs.com",
2335
+ 'cn-hangzhou-internal-test-3': "pai-dlc.aliyuncs.com",
2336
+ 'cn-hangzhou-test-306': "pai-dlc.aliyuncs.com",
2337
+ 'cn-hongkong-finance-pop': "pai-dlc.aliyuncs.com",
2338
+ 'cn-huhehaote': "pai-dlc.aliyuncs.com",
2339
+ 'cn-huhehaote-nebula-1': "pai-dlc.aliyuncs.com",
2340
+ 'cn-north-2-gov-1': "pai-dlc.aliyuncs.com",
2341
+ 'cn-qingdao': "pai-dlc.aliyuncs.com",
2342
+ 'cn-qingdao-nebula': "pai-dlc.aliyuncs.com",
2343
+ 'cn-shanghai-et15-b01': "pai-dlc.aliyuncs.com",
2344
+ 'cn-shanghai-et2-b01': "pai-dlc.aliyuncs.com",
2345
+ 'cn-shanghai-inner': "pai-dlc.aliyuncs.com",
2346
+ 'cn-shanghai-internal-test-1': "pai-dlc.aliyuncs.com",
2347
+ 'cn-shenzhen-finance-1': "pai-dlc.aliyuncs.com",
2348
+ 'cn-shenzhen-inner': "pai-dlc.aliyuncs.com",
2349
+ 'cn-shenzhen-st4-d01': "pai-dlc.aliyuncs.com",
2350
+ 'cn-shenzhen-su18-b01': "pai-dlc.aliyuncs.com",
2351
+ 'cn-wuhan': "pai-dlc.aliyuncs.com",
2352
+ 'cn-wulanchabu': "pai-dlc.aliyuncs.com",
2353
+ 'cn-yushanfang': "pai-dlc.aliyuncs.com",
2354
+ 'cn-zhangbei': "pai-dlc.aliyuncs.com",
2355
+ 'cn-zhangbei-na61-b01': "pai-dlc.aliyuncs.com",
2356
+ 'cn-zhangjiakou': "pai-dlc.aliyuncs.com",
2357
+ 'cn-zhangjiakou-na62-a01': "pai-dlc.aliyuncs.com",
2358
+ 'cn-zhengzhou-nebula-1': "pai-dlc.aliyuncs.com",
2359
+ 'eu-west-1': "pai-dlc.aliyuncs.com",
2360
+ 'eu-west-1-oxs': "pai-dlc.aliyuncs.com",
2361
+ 'me-east-1': "pai-dlc.aliyuncs.com",
2362
+ 'rus-west-1-pop': "pai-dlc.aliyuncs.com",
2363
+ 'us-east-1': "pai-dlc.aliyuncs.com",
2364
+ 'us-west-1': "pai-dlc.aliyuncs.com",
2365
+ };
2287
2366
  this.checkConfig(config);
2288
2367
  this._endpoint = this.getEndpoint("pai-dlc", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
2289
2368
  }
@@ -2296,15 +2375,10 @@ class Client extends openapi_client_1.default {
2296
2375
  }
2297
2376
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2298
2377
  }
2299
- async createJob(request) {
2300
- let runtime = new $Util.RuntimeOptions({});
2301
- let headers = {};
2302
- return await this.createJobWithOptions(request, headers, runtime);
2303
- }
2304
2378
  async createJobWithOptions(request, headers, runtime) {
2305
2379
  tea_util_1.default.validateModel(request);
2306
2380
  let body = {};
2307
- if (!tea_util_1.default.isUnset($tea.toMap(request.codeSource))) {
2381
+ if (!tea_util_1.default.isUnset(request.codeSource)) {
2308
2382
  body["CodeSource"] = request.codeSource;
2309
2383
  }
2310
2384
  if (!tea_util_1.default.isUnset(request.dataSources)) {
@@ -2316,7 +2390,7 @@ class Client extends openapi_client_1.default {
2316
2390
  if (!tea_util_1.default.isUnset(request.displayName)) {
2317
2391
  body["DisplayName"] = request.displayName;
2318
2392
  }
2319
- if (!tea_util_1.default.isUnset($tea.toMap(request.elasticSpec))) {
2393
+ if (!tea_util_1.default.isUnset(request.elasticSpec)) {
2320
2394
  body["ElasticSpec"] = request.elasticSpec;
2321
2395
  }
2322
2396
  if (!tea_util_1.default.isUnset(request.envs)) {
@@ -2340,9 +2414,12 @@ class Client extends openapi_client_1.default {
2340
2414
  if (!tea_util_1.default.isUnset(request.resourceId)) {
2341
2415
  body["ResourceId"] = request.resourceId;
2342
2416
  }
2343
- if (!tea_util_1.default.isUnset($tea.toMap(request.settings))) {
2417
+ if (!tea_util_1.default.isUnset(request.settings)) {
2344
2418
  body["Settings"] = request.settings;
2345
2419
  }
2420
+ if (!tea_util_1.default.isUnset(request.successPolicy)) {
2421
+ body["SuccessPolicy"] = request.successPolicy;
2422
+ }
2346
2423
  if (!tea_util_1.default.isUnset(request.thirdpartyLibDir)) {
2347
2424
  body["ThirdpartyLibDir"] = request.thirdpartyLibDir;
2348
2425
  }
@@ -2352,7 +2429,7 @@ class Client extends openapi_client_1.default {
2352
2429
  if (!tea_util_1.default.isUnset(request.userCommand)) {
2353
2430
  body["UserCommand"] = request.userCommand;
2354
2431
  }
2355
- if (!tea_util_1.default.isUnset($tea.toMap(request.userVpc))) {
2432
+ if (!tea_util_1.default.isUnset(request.userVpc)) {
2356
2433
  body["UserVpc"] = request.userVpc;
2357
2434
  }
2358
2435
  if (!tea_util_1.default.isUnset(request.workspaceId)) {
@@ -2375,10 +2452,10 @@ class Client extends openapi_client_1.default {
2375
2452
  });
2376
2453
  return $tea.cast(await this.callApi(params, req, runtime), new CreateJobResponse({}));
2377
2454
  }
2378
- async createTensorboard(request) {
2455
+ async createJob(request) {
2379
2456
  let runtime = new $Util.RuntimeOptions({});
2380
2457
  let headers = {};
2381
- return await this.createTensorboardWithOptions(request, headers, runtime);
2458
+ return await this.createJobWithOptions(request, headers, runtime);
2382
2459
  }
2383
2460
  async createTensorboardWithOptions(request, headers, runtime) {
2384
2461
  tea_util_1.default.validateModel(request);
@@ -2439,13 +2516,12 @@ class Client extends openapi_client_1.default {
2439
2516
  });
2440
2517
  return $tea.cast(await this.callApi(params, req, runtime), new CreateTensorboardResponse({}));
2441
2518
  }
2442
- async deleteJob(JobId) {
2519
+ async createTensorboard(request) {
2443
2520
  let runtime = new $Util.RuntimeOptions({});
2444
2521
  let headers = {};
2445
- return await this.deleteJobWithOptions(JobId, headers, runtime);
2522
+ return await this.createTensorboardWithOptions(request, headers, runtime);
2446
2523
  }
2447
2524
  async deleteJobWithOptions(JobId, headers, runtime) {
2448
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2449
2525
  let req = new $OpenApi.OpenApiRequest({
2450
2526
  headers: headers,
2451
2527
  });
@@ -2453,7 +2529,7 @@ class Client extends openapi_client_1.default {
2453
2529
  action: "DeleteJob",
2454
2530
  version: "2020-12-03",
2455
2531
  protocol: "HTTPS",
2456
- pathname: `/api/v1/jobs/${JobId}`,
2532
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
2457
2533
  method: "DELETE",
2458
2534
  authType: "AK",
2459
2535
  style: "ROA",
@@ -2462,14 +2538,13 @@ class Client extends openapi_client_1.default {
2462
2538
  });
2463
2539
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteJobResponse({}));
2464
2540
  }
2465
- async deleteTensorboard(TensorboardId, request) {
2541
+ async deleteJob(JobId) {
2466
2542
  let runtime = new $Util.RuntimeOptions({});
2467
2543
  let headers = {};
2468
- return await this.deleteTensorboardWithOptions(TensorboardId, request, headers, runtime);
2544
+ return await this.deleteJobWithOptions(JobId, headers, runtime);
2469
2545
  }
2470
2546
  async deleteTensorboardWithOptions(TensorboardId, request, headers, runtime) {
2471
2547
  tea_util_1.default.validateModel(request);
2472
- TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
2473
2548
  let query = {};
2474
2549
  if (!tea_util_1.default.isUnset(request.workspaceId)) {
2475
2550
  query["WorkspaceId"] = request.workspaceId;
@@ -2482,7 +2557,7 @@ class Client extends openapi_client_1.default {
2482
2557
  action: "DeleteTensorboard",
2483
2558
  version: "2020-12-03",
2484
2559
  protocol: "HTTPS",
2485
- pathname: `/api/v1/tensorboards/${TensorboardId}`,
2560
+ pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
2486
2561
  method: "DELETE",
2487
2562
  authType: "AK",
2488
2563
  style: "ROA",
@@ -2491,13 +2566,12 @@ class Client extends openapi_client_1.default {
2491
2566
  });
2492
2567
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteTensorboardResponse({}));
2493
2568
  }
2494
- async getJob(JobId) {
2569
+ async deleteTensorboard(TensorboardId, request) {
2495
2570
  let runtime = new $Util.RuntimeOptions({});
2496
2571
  let headers = {};
2497
- return await this.getJobWithOptions(JobId, headers, runtime);
2572
+ return await this.deleteTensorboardWithOptions(TensorboardId, request, headers, runtime);
2498
2573
  }
2499
2574
  async getJobWithOptions(JobId, headers, runtime) {
2500
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2501
2575
  let req = new $OpenApi.OpenApiRequest({
2502
2576
  headers: headers,
2503
2577
  });
@@ -2505,7 +2579,7 @@ class Client extends openapi_client_1.default {
2505
2579
  action: "GetJob",
2506
2580
  version: "2020-12-03",
2507
2581
  protocol: "HTTPS",
2508
- pathname: `/api/v1/jobs/${JobId}`,
2582
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
2509
2583
  method: "GET",
2510
2584
  authType: "AK",
2511
2585
  style: "ROA",
@@ -2514,14 +2588,13 @@ class Client extends openapi_client_1.default {
2514
2588
  });
2515
2589
  return $tea.cast(await this.callApi(params, req, runtime), new GetJobResponse({}));
2516
2590
  }
2517
- async getJobEvents(JobId, request) {
2591
+ async getJob(JobId) {
2518
2592
  let runtime = new $Util.RuntimeOptions({});
2519
2593
  let headers = {};
2520
- return await this.getJobEventsWithOptions(JobId, request, headers, runtime);
2594
+ return await this.getJobWithOptions(JobId, headers, runtime);
2521
2595
  }
2522
2596
  async getJobEventsWithOptions(JobId, request, headers, runtime) {
2523
2597
  tea_util_1.default.validateModel(request);
2524
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2525
2598
  let query = {};
2526
2599
  if (!tea_util_1.default.isUnset(request.endTime)) {
2527
2600
  query["EndTime"] = request.endTime;
@@ -2540,7 +2613,7 @@ class Client extends openapi_client_1.default {
2540
2613
  action: "GetJobEvents",
2541
2614
  version: "2020-12-03",
2542
2615
  protocol: "HTTPS",
2543
- pathname: `/api/v1/jobs/${JobId}/events`,
2616
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/events`,
2544
2617
  method: "GET",
2545
2618
  authType: "AK",
2546
2619
  style: "ROA",
@@ -2549,14 +2622,13 @@ class Client extends openapi_client_1.default {
2549
2622
  });
2550
2623
  return $tea.cast(await this.callApi(params, req, runtime), new GetJobEventsResponse({}));
2551
2624
  }
2552
- async getJobMetrics(JobId, request) {
2625
+ async getJobEvents(JobId, request) {
2553
2626
  let runtime = new $Util.RuntimeOptions({});
2554
2627
  let headers = {};
2555
- return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
2628
+ return await this.getJobEventsWithOptions(JobId, request, headers, runtime);
2556
2629
  }
2557
2630
  async getJobMetricsWithOptions(JobId, request, headers, runtime) {
2558
2631
  tea_util_1.default.validateModel(request);
2559
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2560
2632
  let query = {};
2561
2633
  if (!tea_util_1.default.isUnset(request.endTime)) {
2562
2634
  query["EndTime"] = request.endTime;
@@ -2581,7 +2653,7 @@ class Client extends openapi_client_1.default {
2581
2653
  action: "GetJobMetrics",
2582
2654
  version: "2020-12-03",
2583
2655
  protocol: "HTTPS",
2584
- pathname: `/api/v1/jobs/${JobId}/metrics`,
2656
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/metrics`,
2585
2657
  method: "GET",
2586
2658
  authType: "AK",
2587
2659
  style: "ROA",
@@ -2590,15 +2662,13 @@ class Client extends openapi_client_1.default {
2590
2662
  });
2591
2663
  return $tea.cast(await this.callApi(params, req, runtime), new GetJobMetricsResponse({}));
2592
2664
  }
2593
- async getPodEvents(JobId, PodId, request) {
2665
+ async getJobMetrics(JobId, request) {
2594
2666
  let runtime = new $Util.RuntimeOptions({});
2595
2667
  let headers = {};
2596
- return await this.getPodEventsWithOptions(JobId, PodId, request, headers, runtime);
2668
+ return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
2597
2669
  }
2598
2670
  async getPodEventsWithOptions(JobId, PodId, request, headers, runtime) {
2599
2671
  tea_util_1.default.validateModel(request);
2600
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2601
- PodId = openapi_util_1.default.getEncodeParam(PodId);
2602
2672
  let query = {};
2603
2673
  if (!tea_util_1.default.isUnset(request.endTime)) {
2604
2674
  query["EndTime"] = request.endTime;
@@ -2620,7 +2690,7 @@ class Client extends openapi_client_1.default {
2620
2690
  action: "GetPodEvents",
2621
2691
  version: "2020-12-03",
2622
2692
  protocol: "HTTPS",
2623
- 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`,
2624
2694
  method: "GET",
2625
2695
  authType: "AK",
2626
2696
  style: "ROA",
@@ -2629,15 +2699,13 @@ class Client extends openapi_client_1.default {
2629
2699
  });
2630
2700
  return $tea.cast(await this.callApi(params, req, runtime), new GetPodEventsResponse({}));
2631
2701
  }
2632
- async getPodLogs(JobId, PodId, request) {
2702
+ async getPodEvents(JobId, PodId, request) {
2633
2703
  let runtime = new $Util.RuntimeOptions({});
2634
2704
  let headers = {};
2635
- return await this.getPodLogsWithOptions(JobId, PodId, request, headers, runtime);
2705
+ return await this.getPodEventsWithOptions(JobId, PodId, request, headers, runtime);
2636
2706
  }
2637
2707
  async getPodLogsWithOptions(JobId, PodId, request, headers, runtime) {
2638
2708
  tea_util_1.default.validateModel(request);
2639
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2640
- PodId = openapi_util_1.default.getEncodeParam(PodId);
2641
2709
  let query = {};
2642
2710
  if (!tea_util_1.default.isUnset(request.downloadToFile)) {
2643
2711
  query["DownloadToFile"] = request.downloadToFile;
@@ -2662,7 +2730,7 @@ class Client extends openapi_client_1.default {
2662
2730
  action: "GetPodLogs",
2663
2731
  version: "2020-12-03",
2664
2732
  protocol: "HTTPS",
2665
- 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`,
2666
2734
  method: "GET",
2667
2735
  authType: "AK",
2668
2736
  style: "ROA",
@@ -2671,14 +2739,13 @@ class Client extends openapi_client_1.default {
2671
2739
  });
2672
2740
  return $tea.cast(await this.callApi(params, req, runtime), new GetPodLogsResponse({}));
2673
2741
  }
2674
- async getTensorboard(TensorboardId, request) {
2742
+ async getPodLogs(JobId, PodId, request) {
2675
2743
  let runtime = new $Util.RuntimeOptions({});
2676
2744
  let headers = {};
2677
- return await this.getTensorboardWithOptions(TensorboardId, request, headers, runtime);
2745
+ return await this.getPodLogsWithOptions(JobId, PodId, request, headers, runtime);
2678
2746
  }
2679
2747
  async getTensorboardWithOptions(TensorboardId, request, headers, runtime) {
2680
2748
  tea_util_1.default.validateModel(request);
2681
- TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
2682
2749
  let query = {};
2683
2750
  if (!tea_util_1.default.isUnset(request.jodId)) {
2684
2751
  query["JodId"] = request.jodId;
@@ -2694,7 +2761,7 @@ class Client extends openapi_client_1.default {
2694
2761
  action: "GetTensorboard",
2695
2762
  version: "2020-12-03",
2696
2763
  protocol: "HTTPS",
2697
- pathname: `/api/v1/tensorboards/${TensorboardId}`,
2764
+ pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
2698
2765
  method: "GET",
2699
2766
  authType: "AK",
2700
2767
  style: "ROA",
@@ -2703,10 +2770,10 @@ class Client extends openapi_client_1.default {
2703
2770
  });
2704
2771
  return $tea.cast(await this.callApi(params, req, runtime), new GetTensorboardResponse({}));
2705
2772
  }
2706
- async listEcsSpecs(request) {
2773
+ async getTensorboard(TensorboardId, request) {
2707
2774
  let runtime = new $Util.RuntimeOptions({});
2708
2775
  let headers = {};
2709
- return await this.listEcsSpecsWithOptions(request, headers, runtime);
2776
+ return await this.getTensorboardWithOptions(TensorboardId, request, headers, runtime);
2710
2777
  }
2711
2778
  async listEcsSpecsWithOptions(request, headers, runtime) {
2712
2779
  tea_util_1.default.validateModel(request);
@@ -2743,10 +2810,10 @@ class Client extends openapi_client_1.default {
2743
2810
  });
2744
2811
  return $tea.cast(await this.callApi(params, req, runtime), new ListEcsSpecsResponse({}));
2745
2812
  }
2746
- async listJobs(request) {
2813
+ async listEcsSpecs(request) {
2747
2814
  let runtime = new $Util.RuntimeOptions({});
2748
2815
  let headers = {};
2749
- return await this.listJobsWithOptions(request, headers, runtime);
2816
+ return await this.listEcsSpecsWithOptions(request, headers, runtime);
2750
2817
  }
2751
2818
  async listJobsWithOptions(tmpReq, headers, runtime) {
2752
2819
  tea_util_1.default.validateModel(tmpReq);
@@ -2771,6 +2838,9 @@ class Client extends openapi_client_1.default {
2771
2838
  if (!tea_util_1.default.isUnset(request.fromAllWorkspaces)) {
2772
2839
  query["FromAllWorkspaces"] = request.fromAllWorkspaces;
2773
2840
  }
2841
+ if (!tea_util_1.default.isUnset(request.jobId)) {
2842
+ query["JobId"] = request.jobId;
2843
+ }
2774
2844
  if (!tea_util_1.default.isUnset(request.jobType)) {
2775
2845
  query["JobType"] = request.jobType;
2776
2846
  }
@@ -2824,10 +2894,10 @@ class Client extends openapi_client_1.default {
2824
2894
  });
2825
2895
  return $tea.cast(await this.callApi(params, req, runtime), new ListJobsResponse({}));
2826
2896
  }
2827
- async listTensorboards(request) {
2897
+ async listJobs(request) {
2828
2898
  let runtime = new $Util.RuntimeOptions({});
2829
2899
  let headers = {};
2830
- return await this.listTensorboardsWithOptions(request, headers, runtime);
2900
+ return await this.listJobsWithOptions(request, headers, runtime);
2831
2901
  }
2832
2902
  async listTensorboardsWithOptions(request, headers, runtime) {
2833
2903
  tea_util_1.default.validateModel(request);
@@ -2891,14 +2961,13 @@ class Client extends openapi_client_1.default {
2891
2961
  });
2892
2962
  return $tea.cast(await this.callApi(params, req, runtime), new ListTensorboardsResponse({}));
2893
2963
  }
2894
- async startTensorboard(TensorboardId, request) {
2964
+ async listTensorboards(request) {
2895
2965
  let runtime = new $Util.RuntimeOptions({});
2896
2966
  let headers = {};
2897
- return await this.startTensorboardWithOptions(TensorboardId, request, headers, runtime);
2967
+ return await this.listTensorboardsWithOptions(request, headers, runtime);
2898
2968
  }
2899
2969
  async startTensorboardWithOptions(TensorboardId, request, headers, runtime) {
2900
2970
  tea_util_1.default.validateModel(request);
2901
- TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
2902
2971
  let query = {};
2903
2972
  if (!tea_util_1.default.isUnset(request.workspaceId)) {
2904
2973
  query["WorkspaceId"] = request.workspaceId;
@@ -2911,7 +2980,7 @@ class Client extends openapi_client_1.default {
2911
2980
  action: "StartTensorboard",
2912
2981
  version: "2020-12-03",
2913
2982
  protocol: "HTTPS",
2914
- pathname: `/api/v1/tensorboards/${TensorboardId}/start`,
2983
+ pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}/start`,
2915
2984
  method: "PUT",
2916
2985
  authType: "AK",
2917
2986
  style: "ROA",
@@ -2920,13 +2989,12 @@ class Client extends openapi_client_1.default {
2920
2989
  });
2921
2990
  return $tea.cast(await this.callApi(params, req, runtime), new StartTensorboardResponse({}));
2922
2991
  }
2923
- async stopJob(JobId) {
2992
+ async startTensorboard(TensorboardId, request) {
2924
2993
  let runtime = new $Util.RuntimeOptions({});
2925
2994
  let headers = {};
2926
- return await this.stopJobWithOptions(JobId, headers, runtime);
2995
+ return await this.startTensorboardWithOptions(TensorboardId, request, headers, runtime);
2927
2996
  }
2928
2997
  async stopJobWithOptions(JobId, headers, runtime) {
2929
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2930
2998
  let req = new $OpenApi.OpenApiRequest({
2931
2999
  headers: headers,
2932
3000
  });
@@ -2934,7 +3002,7 @@ class Client extends openapi_client_1.default {
2934
3002
  action: "StopJob",
2935
3003
  version: "2020-12-03",
2936
3004
  protocol: "HTTPS",
2937
- pathname: `/api/v1/jobs/${JobId}/stop`,
3005
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/stop`,
2938
3006
  method: "POST",
2939
3007
  authType: "AK",
2940
3008
  style: "ROA",
@@ -2943,14 +3011,13 @@ class Client extends openapi_client_1.default {
2943
3011
  });
2944
3012
  return $tea.cast(await this.callApi(params, req, runtime), new StopJobResponse({}));
2945
3013
  }
2946
- async stopTensorboard(TensorboardId, request) {
3014
+ async stopJob(JobId) {
2947
3015
  let runtime = new $Util.RuntimeOptions({});
2948
3016
  let headers = {};
2949
- return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
3017
+ return await this.stopJobWithOptions(JobId, headers, runtime);
2950
3018
  }
2951
3019
  async stopTensorboardWithOptions(TensorboardId, request, headers, runtime) {
2952
3020
  tea_util_1.default.validateModel(request);
2953
- TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
2954
3021
  let query = {};
2955
3022
  if (!tea_util_1.default.isUnset(request.workspaceId)) {
2956
3023
  query["WorkspaceId"] = request.workspaceId;
@@ -2963,7 +3030,7 @@ class Client extends openapi_client_1.default {
2963
3030
  action: "StopTensorboard",
2964
3031
  version: "2020-12-03",
2965
3032
  protocol: "HTTPS",
2966
- pathname: `/api/v1/tensorboards/${TensorboardId}/stop`,
3033
+ pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}/stop`,
2967
3034
  method: "PUT",
2968
3035
  authType: "AK",
2969
3036
  style: "ROA",
@@ -2972,14 +3039,13 @@ class Client extends openapi_client_1.default {
2972
3039
  });
2973
3040
  return $tea.cast(await this.callApi(params, req, runtime), new StopTensorboardResponse({}));
2974
3041
  }
2975
- async updateJob(JobId, request) {
3042
+ async stopTensorboard(TensorboardId, request) {
2976
3043
  let runtime = new $Util.RuntimeOptions({});
2977
3044
  let headers = {};
2978
- return await this.updateJobWithOptions(JobId, request, headers, runtime);
3045
+ return await this.stopTensorboardWithOptions(TensorboardId, request, headers, runtime);
2979
3046
  }
2980
3047
  async updateJobWithOptions(JobId, request, headers, runtime) {
2981
3048
  tea_util_1.default.validateModel(request);
2982
- JobId = openapi_util_1.default.getEncodeParam(JobId);
2983
3049
  let body = {};
2984
3050
  if (!tea_util_1.default.isUnset(request.priority)) {
2985
3051
  body["Priority"] = request.priority;
@@ -2992,7 +3058,7 @@ class Client extends openapi_client_1.default {
2992
3058
  action: "UpdateJob",
2993
3059
  version: "2020-12-03",
2994
3060
  protocol: "HTTPS",
2995
- pathname: `/api/v1/jobs/${JobId}`,
3061
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}`,
2996
3062
  method: "PUT",
2997
3063
  authType: "AK",
2998
3064
  style: "ROA",
@@ -3001,14 +3067,13 @@ class Client extends openapi_client_1.default {
3001
3067
  });
3002
3068
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateJobResponse({}));
3003
3069
  }
3004
- async updateTensorboard(TensorboardId, request) {
3070
+ async updateJob(JobId, request) {
3005
3071
  let runtime = new $Util.RuntimeOptions({});
3006
3072
  let headers = {};
3007
- return await this.updateTensorboardWithOptions(TensorboardId, request, headers, runtime);
3073
+ return await this.updateJobWithOptions(JobId, request, headers, runtime);
3008
3074
  }
3009
3075
  async updateTensorboardWithOptions(TensorboardId, request, headers, runtime) {
3010
3076
  tea_util_1.default.validateModel(request);
3011
- TensorboardId = openapi_util_1.default.getEncodeParam(TensorboardId);
3012
3077
  let query = {};
3013
3078
  if (!tea_util_1.default.isUnset(request.maxRunningTimeMinutes)) {
3014
3079
  query["MaxRunningTimeMinutes"] = request.maxRunningTimeMinutes;
@@ -3024,7 +3089,7 @@ class Client extends openapi_client_1.default {
3024
3089
  action: "UpdateTensorboard",
3025
3090
  version: "2020-12-03",
3026
3091
  protocol: "HTTPS",
3027
- pathname: `/api/v1/tensorboards/${TensorboardId}`,
3092
+ pathname: `/api/v1/tensorboards/${openapi_util_1.default.getEncodeParam(TensorboardId)}`,
3028
3093
  method: "PUT",
3029
3094
  authType: "AK",
3030
3095
  style: "ROA",
@@ -3033,6 +3098,11 @@ class Client extends openapi_client_1.default {
3033
3098
  });
3034
3099
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateTensorboardResponse({}));
3035
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
+ }
3036
3106
  }
3037
3107
  exports.default = Client;
3038
3108
  //# sourceMappingURL=client.js.map