@alicloud/paistudio20220112 1.1.0 → 2.0.0

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/src/client.ts CHANGED
@@ -29,6 +29,25 @@ export class ACS extends $tea.Model {
29
29
  }
30
30
  }
31
31
 
32
+ export class Action extends $tea.Model {
33
+ actionType?: string;
34
+ static names(): { [key: string]: string } {
35
+ return {
36
+ actionType: 'ActionType',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ actionType: 'string',
43
+ };
44
+ }
45
+
46
+ constructor(map?: { [key: string]: any }) {
47
+ super(map);
48
+ }
49
+ }
50
+
32
51
  export class AlgorithmSpec extends $tea.Model {
33
52
  codeDir?: Location;
34
53
  /**
@@ -54,9 +73,6 @@ export class AlgorithmSpec extends $tea.Model {
54
73
  outputChannels?: Channel[];
55
74
  progressDefinitions?: AlgorithmSpecProgressDefinitions;
56
75
  resourceRequirements?: ConditionExpression[];
57
- /**
58
- * @deprecated
59
- */
60
76
  supportedInstanceTypes?: string[];
61
77
  supportsDistributedTraining?: boolean;
62
78
  static names(): { [key: string]: string } {
@@ -843,6 +859,7 @@ export class Node extends $tea.Model {
843
859
  CPU?: string;
844
860
  creatorId?: string;
845
861
  GPU?: string;
862
+ GPUMemory?: string;
846
863
  GPUType?: string;
847
864
  gmtCreateTime?: string;
848
865
  gmtExpiredTime?: string;
@@ -874,6 +891,7 @@ export class Node extends $tea.Model {
874
891
  CPU: 'CPU',
875
892
  creatorId: 'CreatorId',
876
893
  GPU: 'GPU',
894
+ GPUMemory: 'GPUMemory',
877
895
  GPUType: 'GPUType',
878
896
  gmtCreateTime: 'GmtCreateTime',
879
897
  gmtExpiredTime: 'GmtExpiredTime',
@@ -908,6 +926,7 @@ export class Node extends $tea.Model {
908
926
  CPU: 'string',
909
927
  creatorId: 'string',
910
928
  GPU: 'string',
929
+ GPUMemory: 'string',
911
930
  GPUType: 'string',
912
931
  gmtCreateTime: 'string',
913
932
  gmtExpiredTime: 'string',
@@ -1166,6 +1185,11 @@ export class NodeType extends $tea.Model {
1166
1185
  * 0
1167
1186
  */
1168
1187
  GPU?: string;
1188
+ /**
1189
+ * @example
1190
+ * 80G
1191
+ */
1192
+ GPUMemory?: string;
1169
1193
  GPUType?: string;
1170
1194
  /**
1171
1195
  * @example
@@ -1182,6 +1206,7 @@ export class NodeType extends $tea.Model {
1182
1206
  acceleratorType: 'AcceleratorType',
1183
1207
  CPU: 'CPU',
1184
1208
  GPU: 'GPU',
1209
+ GPUMemory: 'GPUMemory',
1185
1210
  GPUType: 'GPUType',
1186
1211
  memory: 'Memory',
1187
1212
  nodeType: 'NodeType',
@@ -1193,6 +1218,7 @@ export class NodeType extends $tea.Model {
1193
1218
  acceleratorType: 'string',
1194
1219
  CPU: 'string',
1195
1220
  GPU: 'string',
1221
+ GPUMemory: 'string',
1196
1222
  GPUType: 'string',
1197
1223
  memory: 'string',
1198
1224
  nodeType: 'string',
@@ -1412,11 +1438,6 @@ export class QueueInfo extends $tea.Model {
1412
1438
  * Enqueued
1413
1439
  */
1414
1440
  status?: string;
1415
- /**
1416
- * @example
1417
- * PreAllocation
1418
- */
1419
- subStatus?: string;
1420
1441
  userId?: string;
1421
1442
  userName?: string;
1422
1443
  /**
@@ -1425,6 +1446,11 @@ export class QueueInfo extends $tea.Model {
1425
1446
  */
1426
1447
  workloadId?: string;
1427
1448
  workloadName?: string;
1449
+ /**
1450
+ * @example
1451
+ * PreAllocation
1452
+ */
1453
+ workloadStatus?: string;
1428
1454
  /**
1429
1455
  * @example
1430
1456
  * dlc
@@ -1451,11 +1477,11 @@ export class QueueInfo extends $tea.Model {
1451
1477
  reason: 'Reason',
1452
1478
  resource: 'Resource',
1453
1479
  status: 'Status',
1454
- subStatus: 'SubStatus',
1455
1480
  userId: 'UserId',
1456
1481
  userName: 'UserName',
1457
1482
  workloadId: 'WorkloadId',
1458
1483
  workloadName: 'WorkloadName',
1484
+ workloadStatus: 'WorkloadStatus',
1459
1485
  workloadType: 'WorkloadType',
1460
1486
  workspaceId: 'WorkspaceId',
1461
1487
  };
@@ -1477,11 +1503,11 @@ export class QueueInfo extends $tea.Model {
1477
1503
  reason: 'string',
1478
1504
  resource: ResourceAmount,
1479
1505
  status: 'string',
1480
- subStatus: 'string',
1481
1506
  userId: 'string',
1482
1507
  userName: 'string',
1483
1508
  workloadId: 'string',
1484
1509
  workloadName: 'string',
1510
+ workloadStatus: 'string',
1485
1511
  workloadType: 'string',
1486
1512
  workspaceId: 'string',
1487
1513
  };
@@ -1633,14 +1659,22 @@ export class QuotaConfig extends $tea.Model {
1633
1659
 
1634
1660
  export class QuotaDetails extends $tea.Model {
1635
1661
  actualMinQuota?: ResourceAmount;
1662
+ allocatedQuota?: ResourceAmount;
1663
+ ancestorsAllocatedQuota?: ResourceAmount;
1664
+ descendantsAllocatedQuota?: ResourceAmount;
1636
1665
  desiredMinQuota?: ResourceAmount;
1637
1666
  requestedQuota?: ResourceAmount;
1667
+ selfAllocatedQuota?: ResourceAmount;
1638
1668
  usedQuota?: ResourceAmount;
1639
1669
  static names(): { [key: string]: string } {
1640
1670
  return {
1641
1671
  actualMinQuota: 'ActualMinQuota',
1672
+ allocatedQuota: 'AllocatedQuota',
1673
+ ancestorsAllocatedQuota: 'AncestorsAllocatedQuota',
1674
+ descendantsAllocatedQuota: 'DescendantsAllocatedQuota',
1642
1675
  desiredMinQuota: 'DesiredMinQuota',
1643
1676
  requestedQuota: 'RequestedQuota',
1677
+ selfAllocatedQuota: 'SelfAllocatedQuota',
1644
1678
  usedQuota: 'UsedQuota',
1645
1679
  };
1646
1680
  }
@@ -1648,8 +1682,12 @@ export class QuotaDetails extends $tea.Model {
1648
1682
  static types(): { [key: string]: any } {
1649
1683
  return {
1650
1684
  actualMinQuota: ResourceAmount,
1685
+ allocatedQuota: ResourceAmount,
1686
+ ancestorsAllocatedQuota: ResourceAmount,
1687
+ descendantsAllocatedQuota: ResourceAmount,
1651
1688
  desiredMinQuota: ResourceAmount,
1652
1689
  requestedQuota: ResourceAmount,
1690
+ selfAllocatedQuota: ResourceAmount,
1653
1691
  usedQuota: ResourceAmount,
1654
1692
  };
1655
1693
  }
@@ -2277,6 +2315,69 @@ export class ResourceSpec extends $tea.Model {
2277
2315
  }
2278
2316
  }
2279
2317
 
2318
+ export class Rules extends $tea.Model {
2319
+ schedulingRule?: SchedulingRule;
2320
+ static names(): { [key: string]: string } {
2321
+ return {
2322
+ schedulingRule: 'SchedulingRule',
2323
+ };
2324
+ }
2325
+
2326
+ static types(): { [key: string]: any } {
2327
+ return {
2328
+ schedulingRule: SchedulingRule,
2329
+ };
2330
+ }
2331
+
2332
+ constructor(map?: { [key: string]: any }) {
2333
+ super(map);
2334
+ }
2335
+ }
2336
+
2337
+ export class SchedulingRule extends $tea.Model {
2338
+ /**
2339
+ * **if can be null:**
2340
+ * true
2341
+ */
2342
+ cronTab?: string;
2343
+ /**
2344
+ * **if can be null:**
2345
+ * true
2346
+ */
2347
+ endAt?: string;
2348
+ /**
2349
+ * **if can be null:**
2350
+ * true
2351
+ */
2352
+ executeOnce?: boolean;
2353
+ /**
2354
+ * **if can be null:**
2355
+ * true
2356
+ */
2357
+ startAt?: string;
2358
+ static names(): { [key: string]: string } {
2359
+ return {
2360
+ cronTab: 'CronTab',
2361
+ endAt: 'EndAt',
2362
+ executeOnce: 'ExecuteOnce',
2363
+ startAt: 'StartAt',
2364
+ };
2365
+ }
2366
+
2367
+ static types(): { [key: string]: any } {
2368
+ return {
2369
+ cronTab: 'string',
2370
+ endAt: 'string',
2371
+ executeOnce: 'boolean',
2372
+ startAt: 'string',
2373
+ };
2374
+ }
2375
+
2376
+ constructor(map?: { [key: string]: any }) {
2377
+ super(map);
2378
+ }
2379
+ }
2380
+
2280
2381
  export class SpotPriceItem extends $tea.Model {
2281
2382
  /**
2282
2383
  * @example
@@ -2358,6 +2459,132 @@ export class SpotStockPreview extends $tea.Model {
2358
2459
  }
2359
2460
  }
2360
2461
 
2462
+ export class Task extends $tea.Model {
2463
+ actions?: Action[];
2464
+ description?: string;
2465
+ gmtActivatedTime?: string;
2466
+ gmtCreatedTime?: string;
2467
+ gmtModifiedTime?: string;
2468
+ gmtStoppedTime?: string;
2469
+ quotaId?: string;
2470
+ rules?: Rules;
2471
+ status?: string;
2472
+ taskId?: string;
2473
+ taskName?: string;
2474
+ userId?: string;
2475
+ userName?: string;
2476
+ static names(): { [key: string]: string } {
2477
+ return {
2478
+ actions: 'Actions',
2479
+ description: 'Description',
2480
+ gmtActivatedTime: 'GmtActivatedTime',
2481
+ gmtCreatedTime: 'GmtCreatedTime',
2482
+ gmtModifiedTime: 'GmtModifiedTime',
2483
+ gmtStoppedTime: 'GmtStoppedTime',
2484
+ quotaId: 'QuotaId',
2485
+ rules: 'Rules',
2486
+ status: 'Status',
2487
+ taskId: 'TaskId',
2488
+ taskName: 'TaskName',
2489
+ userId: 'UserId',
2490
+ userName: 'UserName',
2491
+ };
2492
+ }
2493
+
2494
+ static types(): { [key: string]: any } {
2495
+ return {
2496
+ actions: { 'type': 'array', 'itemType': Action },
2497
+ description: 'string',
2498
+ gmtActivatedTime: 'string',
2499
+ gmtCreatedTime: 'string',
2500
+ gmtModifiedTime: 'string',
2501
+ gmtStoppedTime: 'string',
2502
+ quotaId: 'string',
2503
+ rules: Rules,
2504
+ status: 'string',
2505
+ taskId: 'string',
2506
+ taskName: 'string',
2507
+ userId: 'string',
2508
+ userName: 'string',
2509
+ };
2510
+ }
2511
+
2512
+ constructor(map?: { [key: string]: any }) {
2513
+ super(map);
2514
+ }
2515
+ }
2516
+
2517
+ export class TaskInstance extends $tea.Model {
2518
+ gmtCreatedTime?: string;
2519
+ gmtEndTime?: string;
2520
+ status?: string;
2521
+ taskId?: string;
2522
+ taskInstanceId?: string;
2523
+ tenantId?: string;
2524
+ userId?: string;
2525
+ static names(): { [key: string]: string } {
2526
+ return {
2527
+ gmtCreatedTime: 'GmtCreatedTime',
2528
+ gmtEndTime: 'GmtEndTime',
2529
+ status: 'Status',
2530
+ taskId: 'TaskId',
2531
+ taskInstanceId: 'TaskInstanceId',
2532
+ tenantId: 'TenantId',
2533
+ userId: 'UserId',
2534
+ };
2535
+ }
2536
+
2537
+ static types(): { [key: string]: any } {
2538
+ return {
2539
+ gmtCreatedTime: 'string',
2540
+ gmtEndTime: 'string',
2541
+ status: 'string',
2542
+ taskId: 'string',
2543
+ taskInstanceId: 'string',
2544
+ tenantId: 'string',
2545
+ userId: 'string',
2546
+ };
2547
+ }
2548
+
2549
+ constructor(map?: { [key: string]: any }) {
2550
+ super(map);
2551
+ }
2552
+ }
2553
+
2554
+ export class TaskInstanceEvent extends $tea.Model {
2555
+ gmtEndTime?: string;
2556
+ gmtStartTime?: string;
2557
+ message?: string;
2558
+ podName?: string;
2559
+ status?: string;
2560
+ workloadType?: string;
2561
+ static names(): { [key: string]: string } {
2562
+ return {
2563
+ gmtEndTime: 'GmtEndTime',
2564
+ gmtStartTime: 'GmtStartTime',
2565
+ message: 'Message',
2566
+ podName: 'PodName',
2567
+ status: 'Status',
2568
+ workloadType: 'WorkloadType',
2569
+ };
2570
+ }
2571
+
2572
+ static types(): { [key: string]: any } {
2573
+ return {
2574
+ gmtEndTime: 'string',
2575
+ gmtStartTime: 'string',
2576
+ message: 'string',
2577
+ podName: 'string',
2578
+ status: 'string',
2579
+ workloadType: 'string',
2580
+ };
2581
+ }
2582
+
2583
+ constructor(map?: { [key: string]: any }) {
2584
+ super(map);
2585
+ }
2586
+ }
2587
+
2361
2588
  export class TimeRangeFilter extends $tea.Model {
2362
2589
  /**
2363
2590
  * @example
@@ -3264,6 +3491,7 @@ export class CreateTrainingJobRequest extends $tea.Model {
3264
3491
  inputChannels?: CreateTrainingJobRequestInputChannels[];
3265
3492
  labels?: CreateTrainingJobRequestLabels[];
3266
3493
  outputChannels?: CreateTrainingJobRequestOutputChannels[];
3494
+ priority?: number;
3267
3495
  pythonRequirements?: string[];
3268
3496
  /**
3269
3497
  * @example
@@ -3271,7 +3499,7 @@ export class CreateTrainingJobRequest extends $tea.Model {
3271
3499
  */
3272
3500
  roleArn?: string;
3273
3501
  scheduler?: CreateTrainingJobRequestScheduler;
3274
- settings?: CreateTrainingJobRequestSettings;
3502
+ settings?: JobSettings;
3275
3503
  /**
3276
3504
  * @example
3277
3505
  * qwen large language model training
@@ -3308,6 +3536,7 @@ export class CreateTrainingJobRequest extends $tea.Model {
3308
3536
  inputChannels: 'InputChannels',
3309
3537
  labels: 'Labels',
3310
3538
  outputChannels: 'OutputChannels',
3539
+ priority: 'Priority',
3311
3540
  pythonRequirements: 'PythonRequirements',
3312
3541
  roleArn: 'RoleArn',
3313
3542
  scheduler: 'Scheduler',
@@ -3333,10 +3562,11 @@ export class CreateTrainingJobRequest extends $tea.Model {
3333
3562
  inputChannels: { 'type': 'array', 'itemType': CreateTrainingJobRequestInputChannels },
3334
3563
  labels: { 'type': 'array', 'itemType': CreateTrainingJobRequestLabels },
3335
3564
  outputChannels: { 'type': 'array', 'itemType': CreateTrainingJobRequestOutputChannels },
3565
+ priority: 'number',
3336
3566
  pythonRequirements: { 'type': 'array', 'itemType': 'string' },
3337
3567
  roleArn: 'string',
3338
3568
  scheduler: CreateTrainingJobRequestScheduler,
3339
- settings: CreateTrainingJobRequestSettings,
3569
+ settings: JobSettings,
3340
3570
  trainingJobDescription: 'string',
3341
3571
  trainingJobName: 'string',
3342
3572
  userVpc: CreateTrainingJobRequestUserVpc,
@@ -5167,6 +5397,7 @@ export class GetTrainingJobResponseBody extends $tea.Model {
5167
5397
  latestProgress?: GetTrainingJobResponseBodyLatestProgress;
5168
5398
  outputChannels?: GetTrainingJobResponseBodyOutputChannels[];
5169
5399
  outputModel?: GetTrainingJobResponseBodyOutputModel;
5400
+ priority?: number;
5170
5401
  pythonRequirements?: string[];
5171
5402
  /**
5172
5403
  * @example
@@ -5189,7 +5420,7 @@ export class GetTrainingJobResponseBody extends $tea.Model {
5189
5420
  */
5190
5421
  roleArn?: string;
5191
5422
  scheduler?: GetTrainingJobResponseBodyScheduler;
5192
- settings?: GetTrainingJobResponseBodySettings;
5423
+ settings?: JobSettings;
5193
5424
  /**
5194
5425
  * @example
5195
5426
  * Running
@@ -5245,6 +5476,7 @@ export class GetTrainingJobResponseBody extends $tea.Model {
5245
5476
  latestProgress: 'LatestProgress',
5246
5477
  outputChannels: 'OutputChannels',
5247
5478
  outputModel: 'OutputModel',
5479
+ priority: 'Priority',
5248
5480
  pythonRequirements: 'PythonRequirements',
5249
5481
  reasonCode: 'ReasonCode',
5250
5482
  reasonMessage: 'ReasonMessage',
@@ -5286,13 +5518,14 @@ export class GetTrainingJobResponseBody extends $tea.Model {
5286
5518
  latestProgress: GetTrainingJobResponseBodyLatestProgress,
5287
5519
  outputChannels: { 'type': 'array', 'itemType': GetTrainingJobResponseBodyOutputChannels },
5288
5520
  outputModel: GetTrainingJobResponseBodyOutputModel,
5521
+ priority: 'number',
5289
5522
  pythonRequirements: { 'type': 'array', 'itemType': 'string' },
5290
5523
  reasonCode: 'string',
5291
5524
  reasonMessage: 'string',
5292
5525
  requestId: 'string',
5293
5526
  roleArn: 'string',
5294
5527
  scheduler: GetTrainingJobResponseBodyScheduler,
5295
- settings: GetTrainingJobResponseBodySettings,
5528
+ settings: JobSettings,
5296
5529
  status: 'string',
5297
5530
  statusTransitions: { 'type': 'array', 'itemType': GetTrainingJobResponseBodyStatusTransitions },
5298
5531
  trainingJobDescription: 'string',
@@ -5975,6 +6208,193 @@ export class ListNodesResponse extends $tea.Model {
5975
6208
  }
5976
6209
  }
5977
6210
 
6211
+ export class ListQuotaWorkloadsRequest extends $tea.Model {
6212
+ /**
6213
+ * @example
6214
+ * dsw65443322
6215
+ */
6216
+ beforeWorkloadId?: string;
6217
+ gmtDequeuedTimeRange?: TimeRangeFilter;
6218
+ gmtEnqueuedTimeRange?: TimeRangeFilter;
6219
+ gmtPositionModifiedTimeRange?: TimeRangeFilter;
6220
+ /**
6221
+ * @example
6222
+ * lrn48278127617
6223
+ */
6224
+ nodeName?: string;
6225
+ /**
6226
+ * @example
6227
+ * desc
6228
+ */
6229
+ order?: string;
6230
+ /**
6231
+ * @example
6232
+ * 1
6233
+ */
6234
+ pageNumber?: number;
6235
+ /**
6236
+ * @example
6237
+ * 10
6238
+ */
6239
+ pageSize?: number;
6240
+ /**
6241
+ * @example
6242
+ * true
6243
+ */
6244
+ showOwn?: boolean;
6245
+ /**
6246
+ * @example
6247
+ * GmtCreatedTime
6248
+ */
6249
+ sortBy?: string;
6250
+ /**
6251
+ * @example
6252
+ * Enqueued
6253
+ */
6254
+ status?: string;
6255
+ /**
6256
+ * @example
6257
+ * quota12344666,quota64432233
6258
+ */
6259
+ subQuotaIds?: string;
6260
+ /**
6261
+ * @example
6262
+ * 29043893812,23829093093
6263
+ */
6264
+ userIds?: string;
6265
+ workloadCreatedTimeRange?: TimeRangeFilter;
6266
+ /**
6267
+ * @example
6268
+ * dlc12344556
6269
+ */
6270
+ workloadIds?: string;
6271
+ /**
6272
+ * @example
6273
+ * Pending
6274
+ */
6275
+ workloadStatuses?: string;
6276
+ /**
6277
+ * @example
6278
+ * dlc
6279
+ */
6280
+ workloadType?: string;
6281
+ /**
6282
+ * @example
6283
+ * 186692
6284
+ */
6285
+ workspaceIds?: string;
6286
+ static names(): { [key: string]: string } {
6287
+ return {
6288
+ beforeWorkloadId: 'BeforeWorkloadId',
6289
+ gmtDequeuedTimeRange: 'GmtDequeuedTimeRange',
6290
+ gmtEnqueuedTimeRange: 'GmtEnqueuedTimeRange',
6291
+ gmtPositionModifiedTimeRange: 'GmtPositionModifiedTimeRange',
6292
+ nodeName: 'NodeName',
6293
+ order: 'Order',
6294
+ pageNumber: 'PageNumber',
6295
+ pageSize: 'PageSize',
6296
+ showOwn: 'ShowOwn',
6297
+ sortBy: 'SortBy',
6298
+ status: 'Status',
6299
+ subQuotaIds: 'SubQuotaIds',
6300
+ userIds: 'UserIds',
6301
+ workloadCreatedTimeRange: 'WorkloadCreatedTimeRange',
6302
+ workloadIds: 'WorkloadIds',
6303
+ workloadStatuses: 'WorkloadStatuses',
6304
+ workloadType: 'WorkloadType',
6305
+ workspaceIds: 'WorkspaceIds',
6306
+ };
6307
+ }
6308
+
6309
+ static types(): { [key: string]: any } {
6310
+ return {
6311
+ beforeWorkloadId: 'string',
6312
+ gmtDequeuedTimeRange: TimeRangeFilter,
6313
+ gmtEnqueuedTimeRange: TimeRangeFilter,
6314
+ gmtPositionModifiedTimeRange: TimeRangeFilter,
6315
+ nodeName: 'string',
6316
+ order: 'string',
6317
+ pageNumber: 'number',
6318
+ pageSize: 'number',
6319
+ showOwn: 'boolean',
6320
+ sortBy: 'string',
6321
+ status: 'string',
6322
+ subQuotaIds: 'string',
6323
+ userIds: 'string',
6324
+ workloadCreatedTimeRange: TimeRangeFilter,
6325
+ workloadIds: 'string',
6326
+ workloadStatuses: 'string',
6327
+ workloadType: 'string',
6328
+ workspaceIds: 'string',
6329
+ };
6330
+ }
6331
+
6332
+ constructor(map?: { [key: string]: any }) {
6333
+ super(map);
6334
+ }
6335
+ }
6336
+
6337
+ export class ListQuotaWorkloadsResponseBody extends $tea.Model {
6338
+ /**
6339
+ * @remarks
6340
+ * Id of the request
6341
+ *
6342
+ * @example
6343
+ * 42F23B58-3684-5443-848A-8DA81FF99712
6344
+ */
6345
+ requestId?: string;
6346
+ /**
6347
+ * @example
6348
+ * 23
6349
+ */
6350
+ totalCount?: number;
6351
+ workloads?: QueueInfo[];
6352
+ static names(): { [key: string]: string } {
6353
+ return {
6354
+ requestId: 'RequestId',
6355
+ totalCount: 'TotalCount',
6356
+ workloads: 'Workloads',
6357
+ };
6358
+ }
6359
+
6360
+ static types(): { [key: string]: any } {
6361
+ return {
6362
+ requestId: 'string',
6363
+ totalCount: 'number',
6364
+ workloads: { 'type': 'array', 'itemType': QueueInfo },
6365
+ };
6366
+ }
6367
+
6368
+ constructor(map?: { [key: string]: any }) {
6369
+ super(map);
6370
+ }
6371
+ }
6372
+
6373
+ export class ListQuotaWorkloadsResponse extends $tea.Model {
6374
+ headers?: { [key: string]: string };
6375
+ statusCode?: number;
6376
+ body?: ListQuotaWorkloadsResponseBody;
6377
+ static names(): { [key: string]: string } {
6378
+ return {
6379
+ headers: 'headers',
6380
+ statusCode: 'statusCode',
6381
+ body: 'body',
6382
+ };
6383
+ }
6384
+
6385
+ static types(): { [key: string]: any } {
6386
+ return {
6387
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6388
+ statusCode: 'number',
6389
+ body: ListQuotaWorkloadsResponseBody,
6390
+ };
6391
+ }
6392
+
6393
+ constructor(map?: { [key: string]: any }) {
6394
+ super(map);
6395
+ }
6396
+ }
6397
+
5978
6398
  export class ListQuotasRequest extends $tea.Model {
5979
6399
  /**
5980
6400
  * @example
@@ -6953,10 +7373,12 @@ export class ListTrainingJobMetricsResponseBody extends $tea.Model {
6953
7373
  * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
6954
7374
  */
6955
7375
  requestId?: string;
7376
+ totalCount?: number;
6956
7377
  static names(): { [key: string]: string } {
6957
7378
  return {
6958
7379
  metrics: 'Metrics',
6959
7380
  requestId: 'RequestId',
7381
+ totalCount: 'TotalCount',
6960
7382
  };
6961
7383
  }
6962
7384
 
@@ -6964,6 +7386,7 @@ export class ListTrainingJobMetricsResponseBody extends $tea.Model {
6964
7386
  return {
6965
7387
  metrics: { 'type': 'array', 'itemType': ListTrainingJobMetricsResponseBodyMetrics },
6966
7388
  requestId: 'string',
7389
+ totalCount: 'number',
6967
7390
  };
6968
7391
  }
6969
7392
 
@@ -8340,12 +8763,14 @@ export class CreateTrainingJobRequestInputChannels extends $tea.Model {
8340
8763
  */
8341
8764
  name?: string;
8342
8765
  options?: string;
8766
+ versionName?: string;
8343
8767
  static names(): { [key: string]: string } {
8344
8768
  return {
8345
8769
  datasetId: 'DatasetId',
8346
8770
  inputUri: 'InputUri',
8347
8771
  name: 'Name',
8348
8772
  options: 'Options',
8773
+ versionName: 'VersionName',
8349
8774
  };
8350
8775
  }
8351
8776
 
@@ -8355,6 +8780,7 @@ export class CreateTrainingJobRequestInputChannels extends $tea.Model {
8355
8780
  inputUri: 'string',
8356
8781
  name: 'string',
8357
8782
  options: 'string',
8783
+ versionName: 'string',
8358
8784
  };
8359
8785
  }
8360
8786
 
@@ -8409,11 +8835,13 @@ export class CreateTrainingJobRequestOutputChannels extends $tea.Model {
8409
8835
  * oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/
8410
8836
  */
8411
8837
  outputUri?: string;
8838
+ versionName?: string;
8412
8839
  static names(): { [key: string]: string } {
8413
8840
  return {
8414
8841
  datasetId: 'DatasetId',
8415
8842
  name: 'Name',
8416
8843
  outputUri: 'OutputUri',
8844
+ versionName: 'VersionName',
8417
8845
  };
8418
8846
  }
8419
8847
 
@@ -8422,6 +8850,7 @@ export class CreateTrainingJobRequestOutputChannels extends $tea.Model {
8422
8850
  datasetId: 'string',
8423
8851
  name: 'string',
8424
8852
  outputUri: 'string',
8853
+ versionName: 'string',
8425
8854
  };
8426
8855
  }
8427
8856
 
@@ -8431,6 +8860,7 @@ export class CreateTrainingJobRequestOutputChannels extends $tea.Model {
8431
8860
  }
8432
8861
 
8433
8862
  export class CreateTrainingJobRequestScheduler extends $tea.Model {
8863
+ maxRunningTimeInMinutes?: number;
8434
8864
  /**
8435
8865
  * @example
8436
8866
  * 0
@@ -8438,12 +8868,14 @@ export class CreateTrainingJobRequestScheduler extends $tea.Model {
8438
8868
  maxRunningTimeInSeconds?: number;
8439
8869
  static names(): { [key: string]: string } {
8440
8870
  return {
8871
+ maxRunningTimeInMinutes: 'MaxRunningTimeInMinutes',
8441
8872
  maxRunningTimeInSeconds: 'MaxRunningTimeInSeconds',
8442
8873
  };
8443
8874
  }
8444
8875
 
8445
8876
  static types(): { [key: string]: any } {
8446
8877
  return {
8878
+ maxRunningTimeInMinutes: 'number',
8447
8879
  maxRunningTimeInSeconds: 'number',
8448
8880
  };
8449
8881
  }
@@ -8453,50 +8885,6 @@ export class CreateTrainingJobRequestScheduler extends $tea.Model {
8453
8885
  }
8454
8886
  }
8455
8887
 
8456
- export class CreateTrainingJobRequestSettings extends $tea.Model {
8457
- /**
8458
- * @example
8459
- * ecs.c6.large
8460
- */
8461
- AIMasterType?: string;
8462
- /**
8463
- * @example
8464
- * true
8465
- */
8466
- enableErrorMonitoringInAIMaster?: boolean;
8467
- /**
8468
- * @example
8469
- * --enable-log-hang-detection true
8470
- */
8471
- errorMonitoringArgs?: string;
8472
- /**
8473
- * @example
8474
- * 1
8475
- */
8476
- priority?: number;
8477
- static names(): { [key: string]: string } {
8478
- return {
8479
- AIMasterType: 'AIMasterType',
8480
- enableErrorMonitoringInAIMaster: 'EnableErrorMonitoringInAIMaster',
8481
- errorMonitoringArgs: 'ErrorMonitoringArgs',
8482
- priority: 'Priority',
8483
- };
8484
- }
8485
-
8486
- static types(): { [key: string]: any } {
8487
- return {
8488
- AIMasterType: 'string',
8489
- enableErrorMonitoringInAIMaster: 'boolean',
8490
- errorMonitoringArgs: 'string',
8491
- priority: 'number',
8492
- };
8493
- }
8494
-
8495
- constructor(map?: { [key: string]: any }) {
8496
- super(map);
8497
- }
8498
- }
8499
-
8500
8888
  export class CreateTrainingJobRequestUserVpc extends $tea.Model {
8501
8889
  /**
8502
8890
  * @example
@@ -8885,12 +9273,14 @@ export class GetTrainingJobResponseBodyInputChannels extends $tea.Model {
8885
9273
  */
8886
9274
  name?: string;
8887
9275
  options?: string;
9276
+ versionName?: string;
8888
9277
  static names(): { [key: string]: string } {
8889
9278
  return {
8890
9279
  datasetId: 'DatasetId',
8891
9280
  inputUri: 'InputUri',
8892
9281
  name: 'Name',
8893
9282
  options: 'Options',
9283
+ versionName: 'VersionName',
8894
9284
  };
8895
9285
  }
8896
9286
 
@@ -8900,6 +9290,7 @@ export class GetTrainingJobResponseBodyInputChannels extends $tea.Model {
8900
9290
  inputUri: 'string',
8901
9291
  name: 'string',
8902
9292
  options: 'string',
9293
+ versionName: 'string',
8903
9294
  };
8904
9295
  }
8905
9296
 
@@ -9110,11 +9501,13 @@ export class GetTrainingJobResponseBodyOutputChannels extends $tea.Model {
9110
9501
  * oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/
9111
9502
  */
9112
9503
  outputUri?: string;
9504
+ versionName?: string;
9113
9505
  static names(): { [key: string]: string } {
9114
9506
  return {
9115
9507
  datasetId: 'DatasetId',
9116
9508
  name: 'Name',
9117
9509
  outputUri: 'OutputUri',
9510
+ versionName: 'VersionName',
9118
9511
  };
9119
9512
  }
9120
9513
 
@@ -9123,6 +9516,7 @@ export class GetTrainingJobResponseBodyOutputChannels extends $tea.Model {
9123
9516
  datasetId: 'string',
9124
9517
  name: 'string',
9125
9518
  outputUri: 'string',
9519
+ versionName: 'string',
9126
9520
  };
9127
9521
  }
9128
9522
 
@@ -9162,64 +9556,23 @@ export class GetTrainingJobResponseBodyOutputModel extends $tea.Model {
9162
9556
  }
9163
9557
 
9164
9558
  export class GetTrainingJobResponseBodyScheduler extends $tea.Model {
9559
+ maxRunningTimeInMinutes?: string;
9165
9560
  /**
9166
9561
  * @example
9167
9562
  * 0
9168
9563
  */
9169
- maxRunningTimeInSeconds?: number;
9564
+ maxRunningTimeInSeconds?: string;
9170
9565
  static names(): { [key: string]: string } {
9171
9566
  return {
9567
+ maxRunningTimeInMinutes: 'MaxRunningTimeInMinutes',
9172
9568
  maxRunningTimeInSeconds: 'MaxRunningTimeInSeconds',
9173
9569
  };
9174
9570
  }
9175
9571
 
9176
9572
  static types(): { [key: string]: any } {
9177
9573
  return {
9178
- maxRunningTimeInSeconds: 'number',
9179
- };
9180
- }
9181
-
9182
- constructor(map?: { [key: string]: any }) {
9183
- super(map);
9184
- }
9185
- }
9186
-
9187
- export class GetTrainingJobResponseBodySettings extends $tea.Model {
9188
- /**
9189
- * @example
9190
- * ecs.c6.large
9191
- */
9192
- AIMasterType?: string;
9193
- /**
9194
- * @example
9195
- * true
9196
- */
9197
- enableErrorMonitoringInAIMaster?: boolean;
9198
- /**
9199
- * @example
9200
- * --enable-log-hang-detection true
9201
- */
9202
- errorMonitoringArgs?: string;
9203
- /**
9204
- * @example
9205
- * 1
9206
- */
9207
- priority?: number;
9208
- static names(): { [key: string]: string } {
9209
- return {
9210
- AIMasterType: 'AIMasterType',
9211
- enableErrorMonitoringInAIMaster: 'EnableErrorMonitoringInAIMaster',
9212
- errorMonitoringArgs: 'ErrorMonitoringArgs',
9213
- priority: 'Priority',
9214
- };
9215
- }
9216
-
9217
- static types(): { [key: string]: any } {
9218
- return {
9219
- AIMasterType: 'string',
9220
- enableErrorMonitoringInAIMaster: 'boolean',
9221
- errorMonitoringArgs: 'string',
9222
- priority: 'number',
9574
+ maxRunningTimeInMinutes: 'string',
9575
+ maxRunningTimeInSeconds: 'string',
9223
9576
  };
9224
9577
  }
9225
9578
 
@@ -9917,11 +10270,13 @@ export class ListTrainingJobsResponseBodyTrainingJobsInputChannels extends $tea.
9917
10270
  * model
9918
10271
  */
9919
10272
  name?: string;
10273
+ versionName?: string;
9920
10274
  static names(): { [key: string]: string } {
9921
10275
  return {
9922
10276
  datasetId: 'DatasetId',
9923
10277
  inputUri: 'InputUri',
9924
10278
  name: 'Name',
10279
+ versionName: 'VersionName',
9925
10280
  };
9926
10281
  }
9927
10282
 
@@ -9930,6 +10285,7 @@ export class ListTrainingJobsResponseBodyTrainingJobsInputChannels extends $tea.
9930
10285
  datasetId: 'string',
9931
10286
  inputUri: 'string',
9932
10287
  name: 'string',
10288
+ versionName: 'string',
9933
10289
  };
9934
10290
  }
9935
10291
 
@@ -9984,11 +10340,13 @@ export class ListTrainingJobsResponseBodyTrainingJobsOutputChannels extends $tea
9984
10340
  * oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/
9985
10341
  */
9986
10342
  outputUri?: string;
10343
+ versionName?: string;
9987
10344
  static names(): { [key: string]: string } {
9988
10345
  return {
9989
10346
  datasetId: 'DatasetId',
9990
10347
  name: 'Name',
9991
10348
  outputUri: 'OutputUri',
10349
+ versionName: 'VersionName',
9992
10350
  };
9993
10351
  }
9994
10352
 
@@ -9997,6 +10355,7 @@ export class ListTrainingJobsResponseBodyTrainingJobsOutputChannels extends $tea
9997
10355
  datasetId: 'string',
9998
10356
  name: 'string',
9999
10357
  outputUri: 'string',
10358
+ versionName: 'string',
10000
10359
  };
10001
10360
  }
10002
10361
 
@@ -10743,6 +11102,10 @@ export default class Client extends OpenApi {
10743
11102
  body["OutputChannels"] = request.outputChannels;
10744
11103
  }
10745
11104
 
11105
+ if (!Util.isUnset(request.priority)) {
11106
+ body["Priority"] = request.priority;
11107
+ }
11108
+
10746
11109
  if (!Util.isUnset(request.pythonRequirements)) {
10747
11110
  body["PythonRequirements"] = request.pythonRequirements;
10748
11111
  }
@@ -11221,11 +11584,14 @@ export default class Client extends OpenApi {
11221
11584
  /**
11222
11585
  * get resource group node metrics
11223
11586
  *
11587
+ * @deprecated OpenAPI GetNodeMetrics is deprecated
11588
+ *
11224
11589
  * @param request - GetNodeMetricsRequest
11225
11590
  * @param headers - map
11226
11591
  * @param runtime - runtime options for this request RuntimeOptions
11227
11592
  * @returns GetNodeMetricsResponse
11228
11593
  */
11594
+ // Deprecated
11229
11595
  async getNodeMetricsWithOptions(ResourceGroupID: string, MetricType: string, request: GetNodeMetricsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetNodeMetricsResponse> {
11230
11596
  Util.validateModel(request);
11231
11597
  let query : {[key: string ]: any} = { };
@@ -11270,9 +11636,12 @@ export default class Client extends OpenApi {
11270
11636
  /**
11271
11637
  * get resource group node metrics
11272
11638
  *
11639
+ * @deprecated OpenAPI GetNodeMetrics is deprecated
11640
+ *
11273
11641
  * @param request - GetNodeMetricsRequest
11274
11642
  * @returns GetNodeMetricsResponse
11275
11643
  */
11644
+ // Deprecated
11276
11645
  async getNodeMetrics(ResourceGroupID: string, MetricType: string, request: GetNodeMetricsRequest): Promise<GetNodeMetricsResponse> {
11277
11646
  let runtime = new $Util.RuntimeOptions({ });
11278
11647
  let headers : {[key: string ]: string} = { };
@@ -11433,11 +11802,14 @@ export default class Client extends OpenApi {
11433
11802
  /**
11434
11803
  * get resource group requested resource by resource group id
11435
11804
  *
11805
+ * @deprecated OpenAPI GetResourceGroupRequest is deprecated
11806
+ *
11436
11807
  * @param request - GetResourceGroupRequestRequest
11437
11808
  * @param headers - map
11438
11809
  * @param runtime - runtime options for this request RuntimeOptions
11439
11810
  * @returns GetResourceGroupRequestResponse
11440
11811
  */
11812
+ // Deprecated
11441
11813
  async getResourceGroupRequestWithOptions(request: GetResourceGroupRequestRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetResourceGroupRequestResponse> {
11442
11814
  Util.validateModel(request);
11443
11815
  let query : {[key: string ]: any} = { };
@@ -11470,9 +11842,12 @@ export default class Client extends OpenApi {
11470
11842
  /**
11471
11843
  * get resource group requested resource by resource group id
11472
11844
  *
11845
+ * @deprecated OpenAPI GetResourceGroupRequest is deprecated
11846
+ *
11473
11847
  * @param request - GetResourceGroupRequestRequest
11474
11848
  * @returns GetResourceGroupRequestResponse
11475
11849
  */
11850
+ // Deprecated
11476
11851
  async getResourceGroupRequest(request: GetResourceGroupRequestRequest): Promise<GetResourceGroupRequestResponse> {
11477
11852
  let runtime = new $Util.RuntimeOptions({ });
11478
11853
  let headers : {[key: string ]: string} = { };
@@ -11691,11 +12066,14 @@ export default class Client extends OpenApi {
11691
12066
  /**
11692
12067
  * get user view metrics
11693
12068
  *
12069
+ * @deprecated OpenAPI GetUserViewMetrics is deprecated
12070
+ *
11694
12071
  * @param request - GetUserViewMetricsRequest
11695
12072
  * @param headers - map
11696
12073
  * @param runtime - runtime options for this request RuntimeOptions
11697
12074
  * @returns GetUserViewMetricsResponse
11698
12075
  */
12076
+ // Deprecated
11699
12077
  async getUserViewMetricsWithOptions(ResourceGroupID: string, request: GetUserViewMetricsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetUserViewMetricsResponse> {
11700
12078
  Util.validateModel(request);
11701
12079
  let query : {[key: string ]: any} = { };
@@ -11748,9 +12126,12 @@ export default class Client extends OpenApi {
11748
12126
  /**
11749
12127
  * get user view metrics
11750
12128
  *
12129
+ * @deprecated OpenAPI GetUserViewMetrics is deprecated
12130
+ *
11751
12131
  * @param request - GetUserViewMetricsRequest
11752
12132
  * @returns GetUserViewMetricsResponse
11753
12133
  */
12134
+ // Deprecated
11754
12135
  async getUserViewMetrics(ResourceGroupID: string, request: GetUserViewMetricsRequest): Promise<GetUserViewMetricsResponse> {
11755
12136
  let runtime = new $Util.RuntimeOptions({ });
11756
12137
  let headers : {[key: string ]: string} = { };
@@ -11972,6 +12353,119 @@ export default class Client extends OpenApi {
11972
12353
  return await this.listNodesWithOptions(request, headers, runtime);
11973
12354
  }
11974
12355
 
12356
+ /**
12357
+ * 您可以通过此API获取Quota上的任务信息列表
12358
+ *
12359
+ * @param request - ListQuotaWorkloadsRequest
12360
+ * @param headers - map
12361
+ * @param runtime - runtime options for this request RuntimeOptions
12362
+ * @returns ListQuotaWorkloadsResponse
12363
+ */
12364
+ async listQuotaWorkloadsWithOptions(QuotaId: string, request: ListQuotaWorkloadsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListQuotaWorkloadsResponse> {
12365
+ Util.validateModel(request);
12366
+ let query : {[key: string ]: any} = { };
12367
+ if (!Util.isUnset(request.beforeWorkloadId)) {
12368
+ query["BeforeWorkloadId"] = request.beforeWorkloadId;
12369
+ }
12370
+
12371
+ if (!Util.isUnset(request.gmtDequeuedTimeRange)) {
12372
+ query["GmtDequeuedTimeRange"] = request.gmtDequeuedTimeRange;
12373
+ }
12374
+
12375
+ if (!Util.isUnset(request.gmtEnqueuedTimeRange)) {
12376
+ query["GmtEnqueuedTimeRange"] = request.gmtEnqueuedTimeRange;
12377
+ }
12378
+
12379
+ if (!Util.isUnset(request.gmtPositionModifiedTimeRange)) {
12380
+ query["GmtPositionModifiedTimeRange"] = request.gmtPositionModifiedTimeRange;
12381
+ }
12382
+
12383
+ if (!Util.isUnset(request.nodeName)) {
12384
+ query["NodeName"] = request.nodeName;
12385
+ }
12386
+
12387
+ if (!Util.isUnset(request.order)) {
12388
+ query["Order"] = request.order;
12389
+ }
12390
+
12391
+ if (!Util.isUnset(request.pageNumber)) {
12392
+ query["PageNumber"] = request.pageNumber;
12393
+ }
12394
+
12395
+ if (!Util.isUnset(request.pageSize)) {
12396
+ query["PageSize"] = request.pageSize;
12397
+ }
12398
+
12399
+ if (!Util.isUnset(request.showOwn)) {
12400
+ query["ShowOwn"] = request.showOwn;
12401
+ }
12402
+
12403
+ if (!Util.isUnset(request.sortBy)) {
12404
+ query["SortBy"] = request.sortBy;
12405
+ }
12406
+
12407
+ if (!Util.isUnset(request.status)) {
12408
+ query["Status"] = request.status;
12409
+ }
12410
+
12411
+ if (!Util.isUnset(request.subQuotaIds)) {
12412
+ query["SubQuotaIds"] = request.subQuotaIds;
12413
+ }
12414
+
12415
+ if (!Util.isUnset(request.userIds)) {
12416
+ query["UserIds"] = request.userIds;
12417
+ }
12418
+
12419
+ if (!Util.isUnset(request.workloadCreatedTimeRange)) {
12420
+ query["WorkloadCreatedTimeRange"] = request.workloadCreatedTimeRange;
12421
+ }
12422
+
12423
+ if (!Util.isUnset(request.workloadIds)) {
12424
+ query["WorkloadIds"] = request.workloadIds;
12425
+ }
12426
+
12427
+ if (!Util.isUnset(request.workloadStatuses)) {
12428
+ query["WorkloadStatuses"] = request.workloadStatuses;
12429
+ }
12430
+
12431
+ if (!Util.isUnset(request.workloadType)) {
12432
+ query["WorkloadType"] = request.workloadType;
12433
+ }
12434
+
12435
+ if (!Util.isUnset(request.workspaceIds)) {
12436
+ query["WorkspaceIds"] = request.workspaceIds;
12437
+ }
12438
+
12439
+ let req = new $OpenApi.OpenApiRequest({
12440
+ headers: headers,
12441
+ query: OpenApiUtil.query(query),
12442
+ });
12443
+ let params = new $OpenApi.Params({
12444
+ action: "ListQuotaWorkloads",
12445
+ version: "2022-01-12",
12446
+ protocol: "HTTPS",
12447
+ pathname: `/api/v1/quotas/${OpenApiUtil.getEncodeParam(QuotaId)}/workloads`,
12448
+ method: "GET",
12449
+ authType: "AK",
12450
+ style: "ROA",
12451
+ reqBodyType: "json",
12452
+ bodyType: "json",
12453
+ });
12454
+ return $tea.cast<ListQuotaWorkloadsResponse>(await this.callApi(params, req, runtime), new ListQuotaWorkloadsResponse({}));
12455
+ }
12456
+
12457
+ /**
12458
+ * 您可以通过此API获取Quota上的任务信息列表
12459
+ *
12460
+ * @param request - ListQuotaWorkloadsRequest
12461
+ * @returns ListQuotaWorkloadsResponse
12462
+ */
12463
+ async listQuotaWorkloads(QuotaId: string, request: ListQuotaWorkloadsRequest): Promise<ListQuotaWorkloadsResponse> {
12464
+ let runtime = new $Util.RuntimeOptions({ });
12465
+ let headers : {[key: string ]: string} = { };
12466
+ return await this.listQuotaWorkloadsWithOptions(QuotaId, request, headers, runtime);
12467
+ }
12468
+
11975
12469
  /**
11976
12470
  * 获取Quota列表
11977
12471
  *