@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/dist/client.d.ts CHANGED
@@ -16,6 +16,18 @@ export declare class ACS extends $tea.Model {
16
16
  [key: string]: any;
17
17
  });
18
18
  }
19
+ export declare class Action extends $tea.Model {
20
+ actionType?: string;
21
+ static names(): {
22
+ [key: string]: string;
23
+ };
24
+ static types(): {
25
+ [key: string]: any;
26
+ };
27
+ constructor(map?: {
28
+ [key: string]: any;
29
+ });
30
+ }
19
31
  export declare class AlgorithmSpec extends $tea.Model {
20
32
  codeDir?: Location;
21
33
  /**
@@ -41,9 +53,6 @@ export declare class AlgorithmSpec extends $tea.Model {
41
53
  outputChannels?: Channel[];
42
54
  progressDefinitions?: AlgorithmSpecProgressDefinitions;
43
55
  resourceRequirements?: ConditionExpression[];
44
- /**
45
- * @deprecated
46
- */
47
56
  supportedInstanceTypes?: string[];
48
57
  supportsDistributedTraining?: boolean;
49
58
  static names(): {
@@ -514,6 +523,7 @@ export declare class Node extends $tea.Model {
514
523
  CPU?: string;
515
524
  creatorId?: string;
516
525
  GPU?: string;
526
+ GPUMemory?: string;
517
527
  GPUType?: string;
518
528
  gmtCreateTime?: string;
519
529
  gmtExpiredTime?: string;
@@ -689,6 +699,11 @@ export declare class NodeType extends $tea.Model {
689
699
  * 0
690
700
  */
691
701
  GPU?: string;
702
+ /**
703
+ * @example
704
+ * 80G
705
+ */
706
+ GPUMemory?: string;
692
707
  GPUType?: string;
693
708
  /**
694
709
  * @example
@@ -851,11 +866,6 @@ export declare class QueueInfo extends $tea.Model {
851
866
  * Enqueued
852
867
  */
853
868
  status?: string;
854
- /**
855
- * @example
856
- * PreAllocation
857
- */
858
- subStatus?: string;
859
869
  userId?: string;
860
870
  userName?: string;
861
871
  /**
@@ -864,6 +874,11 @@ export declare class QueueInfo extends $tea.Model {
864
874
  */
865
875
  workloadId?: string;
866
876
  workloadName?: string;
877
+ /**
878
+ * @example
879
+ * PreAllocation
880
+ */
881
+ workloadStatus?: string;
867
882
  /**
868
883
  * @example
869
884
  * dlc
@@ -957,8 +972,12 @@ export declare class QuotaConfig extends $tea.Model {
957
972
  }
958
973
  export declare class QuotaDetails extends $tea.Model {
959
974
  actualMinQuota?: ResourceAmount;
975
+ allocatedQuota?: ResourceAmount;
976
+ ancestorsAllocatedQuota?: ResourceAmount;
977
+ descendantsAllocatedQuota?: ResourceAmount;
960
978
  desiredMinQuota?: ResourceAmount;
961
979
  requestedQuota?: ResourceAmount;
980
+ selfAllocatedQuota?: ResourceAmount;
962
981
  usedQuota?: ResourceAmount;
963
982
  static names(): {
964
983
  [key: string]: string;
@@ -1292,6 +1311,49 @@ export declare class ResourceSpec extends $tea.Model {
1292
1311
  [key: string]: any;
1293
1312
  });
1294
1313
  }
1314
+ export declare class Rules extends $tea.Model {
1315
+ schedulingRule?: SchedulingRule;
1316
+ static names(): {
1317
+ [key: string]: string;
1318
+ };
1319
+ static types(): {
1320
+ [key: string]: any;
1321
+ };
1322
+ constructor(map?: {
1323
+ [key: string]: any;
1324
+ });
1325
+ }
1326
+ export declare class SchedulingRule extends $tea.Model {
1327
+ /**
1328
+ * **if can be null:**
1329
+ * true
1330
+ */
1331
+ cronTab?: string;
1332
+ /**
1333
+ * **if can be null:**
1334
+ * true
1335
+ */
1336
+ endAt?: string;
1337
+ /**
1338
+ * **if can be null:**
1339
+ * true
1340
+ */
1341
+ executeOnce?: boolean;
1342
+ /**
1343
+ * **if can be null:**
1344
+ * true
1345
+ */
1346
+ startAt?: string;
1347
+ static names(): {
1348
+ [key: string]: string;
1349
+ };
1350
+ static types(): {
1351
+ [key: string]: any;
1352
+ };
1353
+ constructor(map?: {
1354
+ [key: string]: any;
1355
+ });
1356
+ }
1295
1357
  export declare class SpotPriceItem extends $tea.Model {
1296
1358
  /**
1297
1359
  * @example
@@ -1349,6 +1411,65 @@ export declare class SpotStockPreview extends $tea.Model {
1349
1411
  [key: string]: any;
1350
1412
  });
1351
1413
  }
1414
+ export declare class Task extends $tea.Model {
1415
+ actions?: Action[];
1416
+ description?: string;
1417
+ gmtActivatedTime?: string;
1418
+ gmtCreatedTime?: string;
1419
+ gmtModifiedTime?: string;
1420
+ gmtStoppedTime?: string;
1421
+ quotaId?: string;
1422
+ rules?: Rules;
1423
+ status?: string;
1424
+ taskId?: string;
1425
+ taskName?: string;
1426
+ userId?: string;
1427
+ userName?: string;
1428
+ static names(): {
1429
+ [key: string]: string;
1430
+ };
1431
+ static types(): {
1432
+ [key: string]: any;
1433
+ };
1434
+ constructor(map?: {
1435
+ [key: string]: any;
1436
+ });
1437
+ }
1438
+ export declare class TaskInstance extends $tea.Model {
1439
+ gmtCreatedTime?: string;
1440
+ gmtEndTime?: string;
1441
+ status?: string;
1442
+ taskId?: string;
1443
+ taskInstanceId?: string;
1444
+ tenantId?: string;
1445
+ userId?: string;
1446
+ static names(): {
1447
+ [key: string]: string;
1448
+ };
1449
+ static types(): {
1450
+ [key: string]: any;
1451
+ };
1452
+ constructor(map?: {
1453
+ [key: string]: any;
1454
+ });
1455
+ }
1456
+ export declare class TaskInstanceEvent extends $tea.Model {
1457
+ gmtEndTime?: string;
1458
+ gmtStartTime?: string;
1459
+ message?: string;
1460
+ podName?: string;
1461
+ status?: string;
1462
+ workloadType?: string;
1463
+ static names(): {
1464
+ [key: string]: string;
1465
+ };
1466
+ static types(): {
1467
+ [key: string]: any;
1468
+ };
1469
+ constructor(map?: {
1470
+ [key: string]: any;
1471
+ });
1472
+ }
1352
1473
  export declare class TimeRangeFilter extends $tea.Model {
1353
1474
  /**
1354
1475
  * @example
@@ -1921,6 +2042,7 @@ export declare class CreateTrainingJobRequest extends $tea.Model {
1921
2042
  inputChannels?: CreateTrainingJobRequestInputChannels[];
1922
2043
  labels?: CreateTrainingJobRequestLabels[];
1923
2044
  outputChannels?: CreateTrainingJobRequestOutputChannels[];
2045
+ priority?: number;
1924
2046
  pythonRequirements?: string[];
1925
2047
  /**
1926
2048
  * @example
@@ -1928,7 +2050,7 @@ export declare class CreateTrainingJobRequest extends $tea.Model {
1928
2050
  */
1929
2051
  roleArn?: string;
1930
2052
  scheduler?: CreateTrainingJobRequestScheduler;
1931
- settings?: CreateTrainingJobRequestSettings;
2053
+ settings?: JobSettings;
1932
2054
  /**
1933
2055
  * @example
1934
2056
  * qwen large language model training
@@ -3185,6 +3307,7 @@ export declare class GetTrainingJobResponseBody extends $tea.Model {
3185
3307
  latestProgress?: GetTrainingJobResponseBodyLatestProgress;
3186
3308
  outputChannels?: GetTrainingJobResponseBodyOutputChannels[];
3187
3309
  outputModel?: GetTrainingJobResponseBodyOutputModel;
3310
+ priority?: number;
3188
3311
  pythonRequirements?: string[];
3189
3312
  /**
3190
3313
  * @example
@@ -3207,7 +3330,7 @@ export declare class GetTrainingJobResponseBody extends $tea.Model {
3207
3330
  */
3208
3331
  roleArn?: string;
3209
3332
  scheduler?: GetTrainingJobResponseBodyScheduler;
3210
- settings?: GetTrainingJobResponseBodySettings;
3333
+ settings?: JobSettings;
3211
3334
  /**
3212
3335
  * @example
3213
3336
  * Running
@@ -3702,6 +3825,132 @@ export declare class ListNodesResponse extends $tea.Model {
3702
3825
  [key: string]: any;
3703
3826
  });
3704
3827
  }
3828
+ export declare class ListQuotaWorkloadsRequest extends $tea.Model {
3829
+ /**
3830
+ * @example
3831
+ * dsw65443322
3832
+ */
3833
+ beforeWorkloadId?: string;
3834
+ gmtDequeuedTimeRange?: TimeRangeFilter;
3835
+ gmtEnqueuedTimeRange?: TimeRangeFilter;
3836
+ gmtPositionModifiedTimeRange?: TimeRangeFilter;
3837
+ /**
3838
+ * @example
3839
+ * lrn48278127617
3840
+ */
3841
+ nodeName?: string;
3842
+ /**
3843
+ * @example
3844
+ * desc
3845
+ */
3846
+ order?: string;
3847
+ /**
3848
+ * @example
3849
+ * 1
3850
+ */
3851
+ pageNumber?: number;
3852
+ /**
3853
+ * @example
3854
+ * 10
3855
+ */
3856
+ pageSize?: number;
3857
+ /**
3858
+ * @example
3859
+ * true
3860
+ */
3861
+ showOwn?: boolean;
3862
+ /**
3863
+ * @example
3864
+ * GmtCreatedTime
3865
+ */
3866
+ sortBy?: string;
3867
+ /**
3868
+ * @example
3869
+ * Enqueued
3870
+ */
3871
+ status?: string;
3872
+ /**
3873
+ * @example
3874
+ * quota12344666,quota64432233
3875
+ */
3876
+ subQuotaIds?: string;
3877
+ /**
3878
+ * @example
3879
+ * 29043893812,23829093093
3880
+ */
3881
+ userIds?: string;
3882
+ workloadCreatedTimeRange?: TimeRangeFilter;
3883
+ /**
3884
+ * @example
3885
+ * dlc12344556
3886
+ */
3887
+ workloadIds?: string;
3888
+ /**
3889
+ * @example
3890
+ * Pending
3891
+ */
3892
+ workloadStatuses?: string;
3893
+ /**
3894
+ * @example
3895
+ * dlc
3896
+ */
3897
+ workloadType?: string;
3898
+ /**
3899
+ * @example
3900
+ * 186692
3901
+ */
3902
+ workspaceIds?: string;
3903
+ static names(): {
3904
+ [key: string]: string;
3905
+ };
3906
+ static types(): {
3907
+ [key: string]: any;
3908
+ };
3909
+ constructor(map?: {
3910
+ [key: string]: any;
3911
+ });
3912
+ }
3913
+ export declare class ListQuotaWorkloadsResponseBody extends $tea.Model {
3914
+ /**
3915
+ * @remarks
3916
+ * Id of the request
3917
+ *
3918
+ * @example
3919
+ * 42F23B58-3684-5443-848A-8DA81FF99712
3920
+ */
3921
+ requestId?: string;
3922
+ /**
3923
+ * @example
3924
+ * 23
3925
+ */
3926
+ totalCount?: number;
3927
+ workloads?: QueueInfo[];
3928
+ static names(): {
3929
+ [key: string]: string;
3930
+ };
3931
+ static types(): {
3932
+ [key: string]: any;
3933
+ };
3934
+ constructor(map?: {
3935
+ [key: string]: any;
3936
+ });
3937
+ }
3938
+ export declare class ListQuotaWorkloadsResponse extends $tea.Model {
3939
+ headers?: {
3940
+ [key: string]: string;
3941
+ };
3942
+ statusCode?: number;
3943
+ body?: ListQuotaWorkloadsResponseBody;
3944
+ static names(): {
3945
+ [key: string]: string;
3946
+ };
3947
+ static types(): {
3948
+ [key: string]: any;
3949
+ };
3950
+ constructor(map?: {
3951
+ [key: string]: any;
3952
+ });
3953
+ }
3705
3954
  export declare class ListQuotasRequest extends $tea.Model {
3706
3955
  /**
3707
3956
  * @example
@@ -4382,6 +4631,7 @@ export declare class ListTrainingJobMetricsResponseBody extends $tea.Model {
4382
4631
  * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
4383
4632
  */
4384
4633
  requestId?: string;
4634
+ totalCount?: number;
4385
4635
  static names(): {
4386
4636
  [key: string]: string;
4387
4637
  };
@@ -5317,6 +5567,7 @@ export declare class CreateTrainingJobRequestInputChannels extends $tea.Model {
5317
5567
  */
5318
5568
  name?: string;
5319
5569
  options?: string;
5570
+ versionName?: string;
5320
5571
  static names(): {
5321
5572
  [key: string]: string;
5322
5573
  };
@@ -5364,6 +5615,7 @@ export declare class CreateTrainingJobRequestOutputChannels extends $tea.Model {
5364
5615
  * oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/
5365
5616
  */
5366
5617
  outputUri?: string;
5618
+ versionName?: string;
5367
5619
  static names(): {
5368
5620
  [key: string]: string;
5369
5621
  };
@@ -5375,6 +5627,7 @@ export declare class CreateTrainingJobRequestOutputChannels extends $tea.Model {
5375
5627
  });
5376
5628
  }
5377
5629
  export declare class CreateTrainingJobRequestScheduler extends $tea.Model {
5630
+ maxRunningTimeInMinutes?: number;
5378
5631
  /**
5379
5632
  * @example
5380
5633
  * 0
@@ -5390,37 +5643,6 @@ export declare class CreateTrainingJobRequestScheduler extends $tea.Model {
5390
5643
  [key: string]: any;
5391
5644
  });
5392
5645
  }
5393
- export declare class CreateTrainingJobRequestSettings extends $tea.Model {
5394
- /**
5395
- * @example
5396
- * ecs.c6.large
5397
- */
5398
- AIMasterType?: string;
5399
- /**
5400
- * @example
5401
- * true
5402
- */
5403
- enableErrorMonitoringInAIMaster?: boolean;
5404
- /**
5405
- * @example
5406
- * --enable-log-hang-detection true
5407
- */
5408
- errorMonitoringArgs?: string;
5409
- /**
5410
- * @example
5411
- * 1
5412
- */
5413
- priority?: number;
5414
- static names(): {
5415
- [key: string]: string;
5416
- };
5417
- static types(): {
5418
- [key: string]: any;
5419
- };
5420
- constructor(map?: {
5421
- [key: string]: any;
5422
- });
5423
- }
5424
5646
  export declare class CreateTrainingJobRequestUserVpc extends $tea.Model {
5425
5647
  /**
5426
5648
  * @example
@@ -5695,6 +5917,7 @@ export declare class GetTrainingJobResponseBodyInputChannels extends $tea.Model
5695
5917
  */
5696
5918
  name?: string;
5697
5919
  options?: string;
5920
+ versionName?: string;
5698
5921
  static names(): {
5699
5922
  [key: string]: string;
5700
5923
  };
@@ -5849,6 +6072,7 @@ export declare class GetTrainingJobResponseBodyOutputChannels extends $tea.Model
5849
6072
  * oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/
5850
6073
  */
5851
6074
  outputUri?: string;
6075
+ versionName?: string;
5852
6076
  static names(): {
5853
6077
  [key: string]: string;
5854
6078
  };
@@ -5881,42 +6105,12 @@ export declare class GetTrainingJobResponseBodyOutputModel extends $tea.Model {
5881
6105
  });
5882
6106
  }
5883
6107
  export declare class GetTrainingJobResponseBodyScheduler extends $tea.Model {
6108
+ maxRunningTimeInMinutes?: string;
5884
6109
  /**
5885
6110
  * @example
5886
6111
  * 0
5887
6112
  */
5888
- maxRunningTimeInSeconds?: number;
5889
- static names(): {
5890
- [key: string]: string;
5891
- };
5892
- static types(): {
5893
- [key: string]: any;
5894
- };
5895
- constructor(map?: {
5896
- [key: string]: any;
5897
- });
5898
- }
5899
- export declare class GetTrainingJobResponseBodySettings extends $tea.Model {
5900
- /**
5901
- * @example
5902
- * ecs.c6.large
5903
- */
5904
- AIMasterType?: string;
5905
- /**
5906
- * @example
5907
- * true
5908
- */
5909
- enableErrorMonitoringInAIMaster?: boolean;
5910
- /**
5911
- * @example
5912
- * --enable-log-hang-detection true
5913
- */
5914
- errorMonitoringArgs?: string;
5915
- /**
5916
- * @example
5917
- * 1
5918
- */
5919
- priority?: number;
6113
+ maxRunningTimeInSeconds?: string;
5920
6114
  static names(): {
5921
6115
  [key: string]: string;
5922
6116
  };
@@ -6417,6 +6611,7 @@ export declare class ListTrainingJobsResponseBodyTrainingJobsInputChannels exten
6417
6611
  * model
6418
6612
  */
6419
6613
  name?: string;
6614
+ versionName?: string;
6420
6615
  static names(): {
6421
6616
  [key: string]: string;
6422
6617
  };
@@ -6464,6 +6659,7 @@ export declare class ListTrainingJobsResponseBodyTrainingJobsOutputChannels exte
6464
6659
  * oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/
6465
6660
  */
6466
6661
  outputUri?: string;
6662
+ versionName?: string;
6467
6663
  static names(): {
6468
6664
  [key: string]: string;
6469
6665
  };
@@ -6988,6 +7184,8 @@ export default class Client extends OpenApi {
6988
7184
  /**
6989
7185
  * get resource group node metrics
6990
7186
  *
7187
+ * @deprecated OpenAPI GetNodeMetrics is deprecated
7188
+ *
6991
7189
  * @param request - GetNodeMetricsRequest
6992
7190
  * @param headers - map
6993
7191
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6999,6 +7197,8 @@ export default class Client extends OpenApi {
6999
7197
  /**
7000
7198
  * get resource group node metrics
7001
7199
  *
7200
+ * @deprecated OpenAPI GetNodeMetrics is deprecated
7201
+ *
7002
7202
  * @param request - GetNodeMetricsRequest
7003
7203
  * @returns GetNodeMetricsResponse
7004
7204
  */
@@ -7060,6 +7260,8 @@ export default class Client extends OpenApi {
7060
7260
  /**
7061
7261
  * get resource group requested resource by resource group id
7062
7262
  *
7263
+ * @deprecated OpenAPI GetResourceGroupRequest is deprecated
7264
+ *
7063
7265
  * @param request - GetResourceGroupRequestRequest
7064
7266
  * @param headers - map
7065
7267
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7071,6 +7273,8 @@ export default class Client extends OpenApi {
7071
7273
  /**
7072
7274
  * get resource group requested resource by resource group id
7073
7275
  *
7276
+ * @deprecated OpenAPI GetResourceGroupRequest is deprecated
7277
+ *
7074
7278
  * @param request - GetResourceGroupRequestRequest
7075
7279
  * @returns GetResourceGroupRequestResponse
7076
7280
  */
@@ -7162,6 +7366,8 @@ export default class Client extends OpenApi {
7162
7366
  /**
7163
7367
  * get user view metrics
7164
7368
  *
7369
+ * @deprecated OpenAPI GetUserViewMetrics is deprecated
7370
+ *
7165
7371
  * @param request - GetUserViewMetricsRequest
7166
7372
  * @param headers - map
7167
7373
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7173,6 +7379,8 @@ export default class Client extends OpenApi {
7173
7379
  /**
7174
7380
  * get user view metrics
7175
7381
  *
7382
+ * @deprecated OpenAPI GetUserViewMetrics is deprecated
7383
+ *
7176
7384
  * @param request - GetUserViewMetricsRequest
7177
7385
  * @returns GetUserViewMetricsResponse
7178
7386
  */
@@ -7231,6 +7439,24 @@ export default class Client extends OpenApi {
7231
7439
  * @returns ListNodesResponse
7232
7440
  */
7233
7441
  listNodes(request: ListNodesRequest): Promise<ListNodesResponse>;
7442
+ /**
7443
+ * 您可以通过此API获取Quota上的任务信息列表
7444
+ *
7445
+ * @param request - ListQuotaWorkloadsRequest
7446
+ * @param headers - map
7447
+ * @param runtime - runtime options for this request RuntimeOptions
7448
+ * @returns ListQuotaWorkloadsResponse
7449
+ */
7450
+ listQuotaWorkloadsWithOptions(QuotaId: string, request: ListQuotaWorkloadsRequest, headers: {
7451
+ [key: string]: string;
7452
+ }, runtime: $Util.RuntimeOptions): Promise<ListQuotaWorkloadsResponse>;
7453
+ /**
7454
+ * 您可以通过此API获取Quota上的任务信息列表
7455
+ *
7456
+ * @param request - ListQuotaWorkloadsRequest
7457
+ * @returns ListQuotaWorkloadsResponse
7458
+ */
7459
+ listQuotaWorkloads(QuotaId: string, request: ListQuotaWorkloadsRequest): Promise<ListQuotaWorkloadsResponse>;
7234
7460
  /**
7235
7461
  * 获取Quota列表
7236
7462
  *