@alicloud/pai-dsw20220101 1.1.37 → 1.1.41
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 +129 -69
- package/dist/client.js +259 -158
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +333 -185
package/dist/client.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare class CreateIdleInstanceCullerResponse extends $tea.Model {
|
|
|
67
67
|
}
|
|
68
68
|
export declare class CreateInstanceRequest extends $tea.Model {
|
|
69
69
|
accessibility?: string;
|
|
70
|
+
cloudDisks?: CreateInstanceRequestCloudDisks[];
|
|
70
71
|
datasets?: CreateInstanceRequestDatasets[];
|
|
71
72
|
ecsSpec?: string;
|
|
72
73
|
environmentVariables?: {
|
|
@@ -79,8 +80,10 @@ export declare class CreateInstanceRequest extends $tea.Model {
|
|
|
79
80
|
priority?: number;
|
|
80
81
|
requestedResource?: CreateInstanceRequestRequestedResource;
|
|
81
82
|
resourceId?: string;
|
|
83
|
+
userId?: string;
|
|
82
84
|
userVpc?: CreateInstanceRequestUserVpc;
|
|
83
85
|
workspaceId?: string;
|
|
86
|
+
workspaceSource?: string;
|
|
84
87
|
static names(): {
|
|
85
88
|
[key: string]: string;
|
|
86
89
|
};
|
|
@@ -391,6 +394,7 @@ export declare class GetInstanceResponseBody extends $tea.Model {
|
|
|
391
394
|
acceleratorType?: string;
|
|
392
395
|
accessibility?: string;
|
|
393
396
|
accumulatedRunningTimeInMs?: number;
|
|
397
|
+
cloudDisks?: GetInstanceResponseBodyCloudDisks[];
|
|
394
398
|
code?: string;
|
|
395
399
|
datasets?: GetInstanceResponseBodyDatasets[];
|
|
396
400
|
ecsSpec?: string;
|
|
@@ -430,6 +434,7 @@ export declare class GetInstanceResponseBody extends $tea.Model {
|
|
|
430
434
|
webIDEUrl?: string;
|
|
431
435
|
workspaceId?: string;
|
|
432
436
|
workspaceName?: string;
|
|
437
|
+
workspaceSource?: string;
|
|
433
438
|
static names(): {
|
|
434
439
|
[key: string]: string;
|
|
435
440
|
};
|
|
@@ -633,9 +638,11 @@ export declare class GetLifecycleResponse extends $tea.Model {
|
|
|
633
638
|
[key: string]: any;
|
|
634
639
|
});
|
|
635
640
|
}
|
|
636
|
-
export declare class
|
|
637
|
-
|
|
638
|
-
|
|
641
|
+
export declare class GetResourceGroupStatisticsRequest extends $tea.Model {
|
|
642
|
+
endTime?: string;
|
|
643
|
+
resourceId?: string;
|
|
644
|
+
startTime?: string;
|
|
645
|
+
workspaceIds?: string;
|
|
639
646
|
static names(): {
|
|
640
647
|
[key: string]: string;
|
|
641
648
|
};
|
|
@@ -646,12 +653,17 @@ export declare class GetTokenRequest extends $tea.Model {
|
|
|
646
653
|
[key: string]: any;
|
|
647
654
|
});
|
|
648
655
|
}
|
|
649
|
-
export declare class
|
|
656
|
+
export declare class GetResourceGroupStatisticsResponseBody extends $tea.Model {
|
|
650
657
|
code?: string;
|
|
658
|
+
httpStatusCode?: number;
|
|
651
659
|
message?: string;
|
|
652
660
|
requestId?: string;
|
|
661
|
+
statistics?: {
|
|
662
|
+
[key: string]: {
|
|
663
|
+
[key: string]: any;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
653
666
|
success?: boolean;
|
|
654
|
-
token?: string;
|
|
655
667
|
static names(): {
|
|
656
668
|
[key: string]: string;
|
|
657
669
|
};
|
|
@@ -662,12 +674,12 @@ export declare class GetTokenResponseBody extends $tea.Model {
|
|
|
662
674
|
[key: string]: any;
|
|
663
675
|
});
|
|
664
676
|
}
|
|
665
|
-
export declare class
|
|
677
|
+
export declare class GetResourceGroupStatisticsResponse extends $tea.Model {
|
|
666
678
|
headers: {
|
|
667
679
|
[key: string]: string;
|
|
668
680
|
};
|
|
669
681
|
statusCode: number;
|
|
670
|
-
body:
|
|
682
|
+
body: GetResourceGroupStatisticsResponseBody;
|
|
671
683
|
static names(): {
|
|
672
684
|
[key: string]: string;
|
|
673
685
|
};
|
|
@@ -678,29 +690,9 @@ export declare class GetTokenResponse extends $tea.Model {
|
|
|
678
690
|
[key: string]: any;
|
|
679
691
|
});
|
|
680
692
|
}
|
|
681
|
-
export declare class
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
httpStatusCode?: number;
|
|
685
|
-
message?: string;
|
|
686
|
-
requestId?: string;
|
|
687
|
-
success?: boolean;
|
|
688
|
-
static names(): {
|
|
689
|
-
[key: string]: string;
|
|
690
|
-
};
|
|
691
|
-
static types(): {
|
|
692
|
-
[key: string]: any;
|
|
693
|
-
};
|
|
694
|
-
constructor(map?: {
|
|
695
|
-
[key: string]: any;
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
export declare class GetUserConfigResponse extends $tea.Model {
|
|
699
|
-
headers: {
|
|
700
|
-
[key: string]: string;
|
|
701
|
-
};
|
|
702
|
-
statusCode: number;
|
|
703
|
-
body: GetUserConfigResponseBody;
|
|
693
|
+
export declare class GetTokenRequest extends $tea.Model {
|
|
694
|
+
expireTime?: number;
|
|
695
|
+
instanceId?: string;
|
|
704
696
|
static names(): {
|
|
705
697
|
[key: string]: string;
|
|
706
698
|
};
|
|
@@ -711,9 +703,12 @@ export declare class GetUserConfigResponse extends $tea.Model {
|
|
|
711
703
|
[key: string]: any;
|
|
712
704
|
});
|
|
713
705
|
}
|
|
714
|
-
export declare class
|
|
715
|
-
|
|
706
|
+
export declare class GetTokenResponseBody extends $tea.Model {
|
|
707
|
+
code?: string;
|
|
708
|
+
message?: string;
|
|
716
709
|
requestId?: string;
|
|
710
|
+
success?: boolean;
|
|
711
|
+
token?: string;
|
|
717
712
|
static names(): {
|
|
718
713
|
[key: string]: string;
|
|
719
714
|
};
|
|
@@ -724,27 +719,12 @@ export declare class ListDemoCategoriesResponseBody extends $tea.Model {
|
|
|
724
719
|
[key: string]: any;
|
|
725
720
|
});
|
|
726
721
|
}
|
|
727
|
-
export declare class
|
|
722
|
+
export declare class GetTokenResponse extends $tea.Model {
|
|
728
723
|
headers: {
|
|
729
724
|
[key: string]: string;
|
|
730
725
|
};
|
|
731
726
|
statusCode: number;
|
|
732
|
-
body:
|
|
733
|
-
static names(): {
|
|
734
|
-
[key: string]: string;
|
|
735
|
-
};
|
|
736
|
-
static types(): {
|
|
737
|
-
[key: string]: any;
|
|
738
|
-
};
|
|
739
|
-
constructor(map?: {
|
|
740
|
-
[key: string]: any;
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
export declare class ListDemosRequest extends $tea.Model {
|
|
744
|
-
category?: string;
|
|
745
|
-
demoName?: string;
|
|
746
|
-
pageNumber?: number;
|
|
747
|
-
pageSize?: number;
|
|
727
|
+
body: GetTokenResponseBody;
|
|
748
728
|
static names(): {
|
|
749
729
|
[key: string]: string;
|
|
750
730
|
};
|
|
@@ -755,10 +735,16 @@ export declare class ListDemosRequest extends $tea.Model {
|
|
|
755
735
|
[key: string]: any;
|
|
756
736
|
});
|
|
757
737
|
}
|
|
758
|
-
export declare class
|
|
759
|
-
|
|
738
|
+
export declare class GetUserConfigResponseBody extends $tea.Model {
|
|
739
|
+
accountSufficient?: boolean;
|
|
740
|
+
code?: string;
|
|
741
|
+
enableEciDisk?: boolean;
|
|
742
|
+
freeTier?: GetUserConfigResponseBodyFreeTier;
|
|
743
|
+
freeTierSpecAvailable?: boolean;
|
|
744
|
+
httpStatusCode?: number;
|
|
745
|
+
message?: string;
|
|
760
746
|
requestId?: string;
|
|
761
|
-
|
|
747
|
+
success?: boolean;
|
|
762
748
|
static names(): {
|
|
763
749
|
[key: string]: string;
|
|
764
750
|
};
|
|
@@ -769,12 +755,12 @@ export declare class ListDemosResponseBody extends $tea.Model {
|
|
|
769
755
|
[key: string]: any;
|
|
770
756
|
});
|
|
771
757
|
}
|
|
772
|
-
export declare class
|
|
758
|
+
export declare class GetUserConfigResponse extends $tea.Model {
|
|
773
759
|
headers: {
|
|
774
760
|
[key: string]: string;
|
|
775
761
|
};
|
|
776
762
|
statusCode: number;
|
|
777
|
-
body:
|
|
763
|
+
body: GetUserConfigResponseBody;
|
|
778
764
|
static names(): {
|
|
779
765
|
[key: string]: string;
|
|
780
766
|
};
|
|
@@ -1078,7 +1064,9 @@ export declare class UpdateInstanceRequest extends $tea.Model {
|
|
|
1078
1064
|
imageUrl?: string;
|
|
1079
1065
|
instanceName?: string;
|
|
1080
1066
|
requestedResource?: UpdateInstanceRequestRequestedResource;
|
|
1067
|
+
userId?: string;
|
|
1081
1068
|
userVpc?: UpdateInstanceRequestUserVpc;
|
|
1069
|
+
workspaceSource?: string;
|
|
1082
1070
|
static names(): {
|
|
1083
1071
|
[key: string]: string;
|
|
1084
1072
|
};
|
|
@@ -1122,6 +1110,21 @@ export declare class UpdateInstanceResponse extends $tea.Model {
|
|
|
1122
1110
|
[key: string]: any;
|
|
1123
1111
|
});
|
|
1124
1112
|
}
|
|
1113
|
+
export declare class CreateInstanceRequestCloudDisks extends $tea.Model {
|
|
1114
|
+
capacity?: string;
|
|
1115
|
+
mountPath?: string;
|
|
1116
|
+
path?: string;
|
|
1117
|
+
subType?: string;
|
|
1118
|
+
static names(): {
|
|
1119
|
+
[key: string]: string;
|
|
1120
|
+
};
|
|
1121
|
+
static types(): {
|
|
1122
|
+
[key: string]: any;
|
|
1123
|
+
};
|
|
1124
|
+
constructor(map?: {
|
|
1125
|
+
[key: string]: any;
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1125
1128
|
export declare class CreateInstanceRequestDatasets extends $tea.Model {
|
|
1126
1129
|
datasetId?: string;
|
|
1127
1130
|
mountPath?: string;
|
|
@@ -1165,6 +1168,8 @@ export declare class CreateInstanceRequestRequestedResource extends $tea.Model {
|
|
|
1165
1168
|
});
|
|
1166
1169
|
}
|
|
1167
1170
|
export declare class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
1171
|
+
defaultRoute?: string;
|
|
1172
|
+
extendedCIDRs?: string[];
|
|
1168
1173
|
securityGroupId?: string;
|
|
1169
1174
|
vSwitchId?: string;
|
|
1170
1175
|
vpcId?: string;
|
|
@@ -1191,6 +1196,21 @@ export declare class CreateInstanceSnapshotRequestLabels extends $tea.Model {
|
|
|
1191
1196
|
[key: string]: any;
|
|
1192
1197
|
});
|
|
1193
1198
|
}
|
|
1199
|
+
export declare class GetInstanceResponseBodyCloudDisks extends $tea.Model {
|
|
1200
|
+
capacity?: string;
|
|
1201
|
+
mountPath?: string;
|
|
1202
|
+
path?: string;
|
|
1203
|
+
subType?: string;
|
|
1204
|
+
static names(): {
|
|
1205
|
+
[key: string]: string;
|
|
1206
|
+
};
|
|
1207
|
+
static types(): {
|
|
1208
|
+
[key: string]: any;
|
|
1209
|
+
};
|
|
1210
|
+
constructor(map?: {
|
|
1211
|
+
[key: string]: any;
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1194
1214
|
export declare class GetInstanceResponseBodyDatasets extends $tea.Model {
|
|
1195
1215
|
datasetId?: string;
|
|
1196
1216
|
mountPath?: string;
|
|
@@ -1306,6 +1326,8 @@ export declare class GetInstanceResponseBodyRequestedResource extends $tea.Model
|
|
|
1306
1326
|
});
|
|
1307
1327
|
}
|
|
1308
1328
|
export declare class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
1329
|
+
defaultRoute?: string;
|
|
1330
|
+
extendedCIDRs?: string[];
|
|
1309
1331
|
securityGroupId?: string;
|
|
1310
1332
|
vSwitchId?: string;
|
|
1311
1333
|
vpcId?: string;
|
|
@@ -1360,13 +1382,32 @@ export declare class GetLifecycleResponseBodyLifecycle extends $tea.Model {
|
|
|
1360
1382
|
[key: string]: any;
|
|
1361
1383
|
});
|
|
1362
1384
|
}
|
|
1363
|
-
export declare class
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1385
|
+
export declare class GetUserConfigResponseBodyFreeTier extends $tea.Model {
|
|
1386
|
+
endTime?: string;
|
|
1387
|
+
initBaseUnit?: string;
|
|
1388
|
+
initBaseValue?: number;
|
|
1389
|
+
initShowUnit?: string;
|
|
1390
|
+
initShowValue?: string;
|
|
1391
|
+
isFreeTierUser?: boolean;
|
|
1392
|
+
periodBaseUnit?: string;
|
|
1393
|
+
periodBaseValue?: number;
|
|
1394
|
+
periodShowUnit?: string;
|
|
1395
|
+
periodShowValue?: string;
|
|
1396
|
+
startTime?: string;
|
|
1397
|
+
status?: string;
|
|
1398
|
+
static names(): {
|
|
1399
|
+
[key: string]: string;
|
|
1400
|
+
};
|
|
1401
|
+
static types(): {
|
|
1402
|
+
[key: string]: any;
|
|
1403
|
+
};
|
|
1404
|
+
constructor(map?: {
|
|
1405
|
+
[key: string]: any;
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
export declare class ListEcsSpecsResponseBodyEcsSpecsLabels extends $tea.Model {
|
|
1409
|
+
key?: string;
|
|
1410
|
+
value?: string;
|
|
1370
1411
|
static names(): {
|
|
1371
1412
|
[key: string]: string;
|
|
1372
1413
|
};
|
|
@@ -1385,6 +1426,8 @@ export declare class ListEcsSpecsResponseBodyEcsSpecs extends $tea.Model {
|
|
|
1385
1426
|
GPUType?: string;
|
|
1386
1427
|
instanceBandwidthRx?: number;
|
|
1387
1428
|
instanceType?: string;
|
|
1429
|
+
isAvailable?: boolean;
|
|
1430
|
+
labels?: ListEcsSpecsResponseBodyEcsSpecsLabels[];
|
|
1388
1431
|
memory?: number;
|
|
1389
1432
|
price?: number;
|
|
1390
1433
|
systemDiskCapacity?: number;
|
|
@@ -1433,6 +1476,21 @@ export declare class ListInstanceSnapshotResponseBodySnapshots extends $tea.Mode
|
|
|
1433
1476
|
[key: string]: any;
|
|
1434
1477
|
});
|
|
1435
1478
|
}
|
|
1479
|
+
export declare class ListInstancesResponseBodyInstancesCloudDisks extends $tea.Model {
|
|
1480
|
+
capacity?: string;
|
|
1481
|
+
mountPath?: string;
|
|
1482
|
+
path?: string;
|
|
1483
|
+
subType?: string;
|
|
1484
|
+
static names(): {
|
|
1485
|
+
[key: string]: string;
|
|
1486
|
+
};
|
|
1487
|
+
static types(): {
|
|
1488
|
+
[key: string]: any;
|
|
1489
|
+
};
|
|
1490
|
+
constructor(map?: {
|
|
1491
|
+
[key: string]: any;
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1436
1494
|
export declare class ListInstancesResponseBodyInstancesDatasets extends $tea.Model {
|
|
1437
1495
|
datasetId?: string;
|
|
1438
1496
|
mountPath?: string;
|
|
@@ -1548,6 +1606,8 @@ export declare class ListInstancesResponseBodyInstancesRequestedResource extends
|
|
|
1548
1606
|
});
|
|
1549
1607
|
}
|
|
1550
1608
|
export declare class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
1609
|
+
defaultRoute?: string;
|
|
1610
|
+
extendedCIDRs?: string[];
|
|
1551
1611
|
securityGroupId?: string;
|
|
1552
1612
|
vSwitchId?: string;
|
|
1553
1613
|
vpcId?: string;
|
|
@@ -1565,6 +1625,7 @@ export declare class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
1565
1625
|
acceleratorType?: string;
|
|
1566
1626
|
accessibility?: string;
|
|
1567
1627
|
accumulatedRunningTimeInMs?: number;
|
|
1628
|
+
cloudDisks?: ListInstancesResponseBodyInstancesCloudDisks[];
|
|
1568
1629
|
datasets?: ListInstancesResponseBodyInstancesDatasets[];
|
|
1569
1630
|
ecsSpec?: string;
|
|
1570
1631
|
environmentVariables?: {
|
|
@@ -1599,6 +1660,7 @@ export declare class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
1599
1660
|
webIDEUrl?: string;
|
|
1600
1661
|
workspaceId?: string;
|
|
1601
1662
|
workspaceName?: string;
|
|
1663
|
+
workspaceSource?: string;
|
|
1602
1664
|
static names(): {
|
|
1603
1665
|
[key: string]: string;
|
|
1604
1666
|
};
|
|
@@ -1639,6 +1701,8 @@ export declare class UpdateInstanceRequestRequestedResource extends $tea.Model {
|
|
|
1639
1701
|
});
|
|
1640
1702
|
}
|
|
1641
1703
|
export declare class UpdateInstanceRequestUserVpc extends $tea.Model {
|
|
1704
|
+
defaultRoute?: string;
|
|
1705
|
+
extendedCIDRs?: string[];
|
|
1642
1706
|
securityGroupId?: string;
|
|
1643
1707
|
vSwitchId?: string;
|
|
1644
1708
|
vpcId?: string;
|
|
@@ -1713,6 +1777,10 @@ export default class Client extends OpenApi {
|
|
|
1713
1777
|
[key: string]: string;
|
|
1714
1778
|
}, runtime: $Util.RuntimeOptions): Promise<GetLifecycleResponse>;
|
|
1715
1779
|
getLifecycle(InstanceId: string, request: GetLifecycleRequest): Promise<GetLifecycleResponse>;
|
|
1780
|
+
getResourceGroupStatisticsWithOptions(request: GetResourceGroupStatisticsRequest, headers: {
|
|
1781
|
+
[key: string]: string;
|
|
1782
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetResourceGroupStatisticsResponse>;
|
|
1783
|
+
getResourceGroupStatistics(request: GetResourceGroupStatisticsRequest): Promise<GetResourceGroupStatisticsResponse>;
|
|
1716
1784
|
getTokenWithOptions(request: GetTokenRequest, headers: {
|
|
1717
1785
|
[key: string]: string;
|
|
1718
1786
|
}, runtime: $Util.RuntimeOptions): Promise<GetTokenResponse>;
|
|
@@ -1721,14 +1789,6 @@ export default class Client extends OpenApi {
|
|
|
1721
1789
|
[key: string]: string;
|
|
1722
1790
|
}, runtime: $Util.RuntimeOptions): Promise<GetUserConfigResponse>;
|
|
1723
1791
|
getUserConfig(): Promise<GetUserConfigResponse>;
|
|
1724
|
-
listDemoCategoriesWithOptions(headers: {
|
|
1725
|
-
[key: string]: string;
|
|
1726
|
-
}, runtime: $Util.RuntimeOptions): Promise<ListDemoCategoriesResponse>;
|
|
1727
|
-
listDemoCategories(): Promise<ListDemoCategoriesResponse>;
|
|
1728
|
-
listDemosWithOptions(request: ListDemosRequest, headers: {
|
|
1729
|
-
[key: string]: string;
|
|
1730
|
-
}, runtime: $Util.RuntimeOptions): Promise<ListDemosResponse>;
|
|
1731
|
-
listDemos(request: ListDemosRequest): Promise<ListDemosResponse>;
|
|
1732
1792
|
listEcsSpecsWithOptions(request: ListEcsSpecsRequest, headers: {
|
|
1733
1793
|
[key: string]: string;
|
|
1734
1794
|
}, runtime: $Util.RuntimeOptions): Promise<ListEcsSpecsResponse>;
|