@alicloud/pai-dlc20201203 1.4.0 → 1.4.2
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 +93 -69
- package/dist/client.js +61 -2
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +132 -69
package/dist/client.d.ts
CHANGED
|
@@ -180,11 +180,17 @@ export declare class DebuggerResult extends $tea.Model {
|
|
|
180
180
|
export declare class EcsSpec extends $tea.Model {
|
|
181
181
|
acceleratorType?: string;
|
|
182
182
|
cpu?: number;
|
|
183
|
+
defaultGPUDriver?: string;
|
|
183
184
|
gpu?: number;
|
|
184
185
|
gpuType?: string;
|
|
185
186
|
instanceType?: string;
|
|
186
187
|
isAvailable?: boolean;
|
|
187
188
|
memory?: number;
|
|
189
|
+
nonProtectSpotDiscount?: number;
|
|
190
|
+
paymentTypes?: string[];
|
|
191
|
+
resourceType?: string;
|
|
192
|
+
spotStockStatus?: string;
|
|
193
|
+
supportedGPUDrivers?: string[];
|
|
188
194
|
static names(): {
|
|
189
195
|
[key: string]: string;
|
|
190
196
|
};
|
|
@@ -408,6 +414,7 @@ export declare class JobItem extends $tea.Model {
|
|
|
408
414
|
resourceId?: string;
|
|
409
415
|
resourceLevel?: string;
|
|
410
416
|
resourceName?: string;
|
|
417
|
+
resourceType?: string;
|
|
411
418
|
settings?: JobSettings;
|
|
412
419
|
status?: string;
|
|
413
420
|
subStatus?: string;
|
|
@@ -467,6 +474,7 @@ export declare class JobSpec extends $tea.Model {
|
|
|
467
474
|
imageConfig?: ImageConfig;
|
|
468
475
|
podCount?: number;
|
|
469
476
|
resourceConfig?: ResourceConfig;
|
|
477
|
+
spotSpec?: SpotSpec;
|
|
470
478
|
type?: string;
|
|
471
479
|
useSpotInstance?: boolean;
|
|
472
480
|
static names(): {
|
|
@@ -713,6 +721,19 @@ export declare class SmartCache extends $tea.Model {
|
|
|
713
721
|
[key: string]: any;
|
|
714
722
|
});
|
|
715
723
|
}
|
|
724
|
+
export declare class SpotSpec extends $tea.Model {
|
|
725
|
+
spotDiscountLimit?: number;
|
|
726
|
+
spotStrategy?: string;
|
|
727
|
+
static names(): {
|
|
728
|
+
[key: string]: string;
|
|
729
|
+
};
|
|
730
|
+
static types(): {
|
|
731
|
+
[key: string]: any;
|
|
732
|
+
};
|
|
733
|
+
constructor(map?: {
|
|
734
|
+
[key: string]: any;
|
|
735
|
+
});
|
|
736
|
+
}
|
|
716
737
|
export declare class StatusTransitionItem extends $tea.Model {
|
|
717
738
|
endTime?: string;
|
|
718
739
|
reasonCode?: string;
|
|
@@ -820,11 +841,11 @@ export declare class CreateJobResponseBody extends $tea.Model {
|
|
|
820
841
|
});
|
|
821
842
|
}
|
|
822
843
|
export declare class CreateJobResponse extends $tea.Model {
|
|
823
|
-
headers
|
|
844
|
+
headers?: {
|
|
824
845
|
[key: string]: string;
|
|
825
846
|
};
|
|
826
|
-
statusCode
|
|
827
|
-
body
|
|
847
|
+
statusCode?: number;
|
|
848
|
+
body?: CreateJobResponseBody;
|
|
828
849
|
static names(): {
|
|
829
850
|
[key: string]: string;
|
|
830
851
|
};
|
|
@@ -877,11 +898,11 @@ export declare class CreateTensorboardResponseBody extends $tea.Model {
|
|
|
877
898
|
});
|
|
878
899
|
}
|
|
879
900
|
export declare class CreateTensorboardResponse extends $tea.Model {
|
|
880
|
-
headers
|
|
901
|
+
headers?: {
|
|
881
902
|
[key: string]: string;
|
|
882
903
|
};
|
|
883
|
-
statusCode
|
|
884
|
-
body
|
|
904
|
+
statusCode?: number;
|
|
905
|
+
body?: CreateTensorboardResponseBody;
|
|
885
906
|
static names(): {
|
|
886
907
|
[key: string]: string;
|
|
887
908
|
};
|
|
@@ -906,11 +927,11 @@ export declare class DeleteJobResponseBody extends $tea.Model {
|
|
|
906
927
|
});
|
|
907
928
|
}
|
|
908
929
|
export declare class DeleteJobResponse extends $tea.Model {
|
|
909
|
-
headers
|
|
930
|
+
headers?: {
|
|
910
931
|
[key: string]: string;
|
|
911
932
|
};
|
|
912
|
-
statusCode
|
|
913
|
-
body
|
|
933
|
+
statusCode?: number;
|
|
934
|
+
body?: DeleteJobResponseBody;
|
|
914
935
|
static names(): {
|
|
915
936
|
[key: string]: string;
|
|
916
937
|
};
|
|
@@ -947,11 +968,11 @@ export declare class DeleteTensorboardResponseBody extends $tea.Model {
|
|
|
947
968
|
});
|
|
948
969
|
}
|
|
949
970
|
export declare class DeleteTensorboardResponse extends $tea.Model {
|
|
950
|
-
headers
|
|
971
|
+
headers?: {
|
|
951
972
|
[key: string]: string;
|
|
952
973
|
};
|
|
953
|
-
statusCode
|
|
954
|
-
body
|
|
974
|
+
statusCode?: number;
|
|
975
|
+
body?: DeleteTensorboardResponseBody;
|
|
955
976
|
static names(): {
|
|
956
977
|
[key: string]: string;
|
|
957
978
|
};
|
|
@@ -1002,6 +1023,7 @@ export declare class GetJobResponseBody extends $tea.Model {
|
|
|
1002
1023
|
requestId?: string;
|
|
1003
1024
|
resourceId?: string;
|
|
1004
1025
|
resourceLevel?: string;
|
|
1026
|
+
resourceType?: string;
|
|
1005
1027
|
restartTimes?: string;
|
|
1006
1028
|
settings?: JobSettings;
|
|
1007
1029
|
status?: string;
|
|
@@ -1025,11 +1047,11 @@ export declare class GetJobResponseBody extends $tea.Model {
|
|
|
1025
1047
|
});
|
|
1026
1048
|
}
|
|
1027
1049
|
export declare class GetJobResponse extends $tea.Model {
|
|
1028
|
-
headers
|
|
1050
|
+
headers?: {
|
|
1029
1051
|
[key: string]: string;
|
|
1030
1052
|
};
|
|
1031
|
-
statusCode
|
|
1032
|
-
body
|
|
1053
|
+
statusCode?: number;
|
|
1054
|
+
body?: GetJobResponseBody;
|
|
1033
1055
|
static names(): {
|
|
1034
1056
|
[key: string]: string;
|
|
1035
1057
|
};
|
|
@@ -1069,11 +1091,11 @@ export declare class GetJobEventsResponseBody extends $tea.Model {
|
|
|
1069
1091
|
});
|
|
1070
1092
|
}
|
|
1071
1093
|
export declare class GetJobEventsResponse extends $tea.Model {
|
|
1072
|
-
headers
|
|
1094
|
+
headers?: {
|
|
1073
1095
|
[key: string]: string;
|
|
1074
1096
|
};
|
|
1075
|
-
statusCode
|
|
1076
|
-
body
|
|
1097
|
+
statusCode?: number;
|
|
1098
|
+
body?: GetJobEventsResponseBody;
|
|
1077
1099
|
static names(): {
|
|
1078
1100
|
[key: string]: string;
|
|
1079
1101
|
};
|
|
@@ -1115,11 +1137,11 @@ export declare class GetJobMetricsResponseBody extends $tea.Model {
|
|
|
1115
1137
|
});
|
|
1116
1138
|
}
|
|
1117
1139
|
export declare class GetJobMetricsResponse extends $tea.Model {
|
|
1118
|
-
headers
|
|
1140
|
+
headers?: {
|
|
1119
1141
|
[key: string]: string;
|
|
1120
1142
|
};
|
|
1121
|
-
statusCode
|
|
1122
|
-
body
|
|
1143
|
+
statusCode?: number;
|
|
1144
|
+
body?: GetJobMetricsResponseBody;
|
|
1123
1145
|
static names(): {
|
|
1124
1146
|
[key: string]: string;
|
|
1125
1147
|
};
|
|
@@ -1159,11 +1181,11 @@ export declare class GetJobSanityCheckResultResponseBody extends $tea.Model {
|
|
|
1159
1181
|
});
|
|
1160
1182
|
}
|
|
1161
1183
|
export declare class GetJobSanityCheckResultResponse extends $tea.Model {
|
|
1162
|
-
headers
|
|
1184
|
+
headers?: {
|
|
1163
1185
|
[key: string]: string;
|
|
1164
1186
|
};
|
|
1165
|
-
statusCode
|
|
1166
|
-
body
|
|
1187
|
+
statusCode?: number;
|
|
1188
|
+
body?: GetJobSanityCheckResultResponseBody;
|
|
1167
1189
|
static names(): {
|
|
1168
1190
|
[key: string]: string;
|
|
1169
1191
|
};
|
|
@@ -1206,11 +1228,11 @@ export declare class GetPodEventsResponseBody extends $tea.Model {
|
|
|
1206
1228
|
});
|
|
1207
1229
|
}
|
|
1208
1230
|
export declare class GetPodEventsResponse extends $tea.Model {
|
|
1209
|
-
headers
|
|
1231
|
+
headers?: {
|
|
1210
1232
|
[key: string]: string;
|
|
1211
1233
|
};
|
|
1212
|
-
statusCode
|
|
1213
|
-
body
|
|
1234
|
+
statusCode?: number;
|
|
1235
|
+
body?: GetPodEventsResponseBody;
|
|
1214
1236
|
static names(): {
|
|
1215
1237
|
[key: string]: string;
|
|
1216
1238
|
};
|
|
@@ -1254,11 +1276,11 @@ export declare class GetPodLogsResponseBody extends $tea.Model {
|
|
|
1254
1276
|
});
|
|
1255
1277
|
}
|
|
1256
1278
|
export declare class GetPodLogsResponse extends $tea.Model {
|
|
1257
|
-
headers
|
|
1279
|
+
headers?: {
|
|
1258
1280
|
[key: string]: string;
|
|
1259
1281
|
};
|
|
1260
|
-
statusCode
|
|
1261
|
-
body
|
|
1282
|
+
statusCode?: number;
|
|
1283
|
+
body?: GetPodLogsResponseBody;
|
|
1262
1284
|
static names(): {
|
|
1263
1285
|
[key: string]: string;
|
|
1264
1286
|
};
|
|
@@ -1284,11 +1306,11 @@ export declare class GetTensorboardRequest extends $tea.Model {
|
|
|
1284
1306
|
});
|
|
1285
1307
|
}
|
|
1286
1308
|
export declare class GetTensorboardResponse extends $tea.Model {
|
|
1287
|
-
headers
|
|
1309
|
+
headers?: {
|
|
1288
1310
|
[key: string]: string;
|
|
1289
1311
|
};
|
|
1290
|
-
statusCode
|
|
1291
|
-
body
|
|
1312
|
+
statusCode?: number;
|
|
1313
|
+
body?: Tensorboard;
|
|
1292
1314
|
static names(): {
|
|
1293
1315
|
[key: string]: string;
|
|
1294
1316
|
};
|
|
@@ -1325,11 +1347,11 @@ export declare class GetTensorboardSharedUrlResponseBody extends $tea.Model {
|
|
|
1325
1347
|
});
|
|
1326
1348
|
}
|
|
1327
1349
|
export declare class GetTensorboardSharedUrlResponse extends $tea.Model {
|
|
1328
|
-
headers
|
|
1350
|
+
headers?: {
|
|
1329
1351
|
[key: string]: string;
|
|
1330
1352
|
};
|
|
1331
|
-
statusCode
|
|
1332
|
-
body
|
|
1353
|
+
statusCode?: number;
|
|
1354
|
+
body?: GetTensorboardSharedUrlResponseBody;
|
|
1333
1355
|
static names(): {
|
|
1334
1356
|
[key: string]: string;
|
|
1335
1357
|
};
|
|
@@ -1368,11 +1390,11 @@ export declare class GetTokenResponseBody extends $tea.Model {
|
|
|
1368
1390
|
});
|
|
1369
1391
|
}
|
|
1370
1392
|
export declare class GetTokenResponse extends $tea.Model {
|
|
1371
|
-
headers
|
|
1393
|
+
headers?: {
|
|
1372
1394
|
[key: string]: string;
|
|
1373
1395
|
};
|
|
1374
|
-
statusCode
|
|
1375
|
-
body
|
|
1396
|
+
statusCode?: number;
|
|
1397
|
+
body?: GetTokenResponseBody;
|
|
1376
1398
|
static names(): {
|
|
1377
1399
|
[key: string]: string;
|
|
1378
1400
|
};
|
|
@@ -1410,11 +1432,11 @@ export declare class GetWebTerminalResponseBody extends $tea.Model {
|
|
|
1410
1432
|
});
|
|
1411
1433
|
}
|
|
1412
1434
|
export declare class GetWebTerminalResponse extends $tea.Model {
|
|
1413
|
-
headers
|
|
1435
|
+
headers?: {
|
|
1414
1436
|
[key: string]: string;
|
|
1415
1437
|
};
|
|
1416
|
-
statusCode
|
|
1417
|
-
body
|
|
1438
|
+
statusCode?: number;
|
|
1439
|
+
body?: GetWebTerminalResponseBody;
|
|
1418
1440
|
static names(): {
|
|
1419
1441
|
[key: string]: string;
|
|
1420
1442
|
};
|
|
@@ -1427,9 +1449,11 @@ export declare class GetWebTerminalResponse extends $tea.Model {
|
|
|
1427
1449
|
}
|
|
1428
1450
|
export declare class ListEcsSpecsRequest extends $tea.Model {
|
|
1429
1451
|
acceleratorType?: string;
|
|
1452
|
+
instanceTypes?: string;
|
|
1430
1453
|
order?: string;
|
|
1431
1454
|
pageNumber?: number;
|
|
1432
1455
|
pageSize?: number;
|
|
1456
|
+
resourceType?: string;
|
|
1433
1457
|
sortBy?: string;
|
|
1434
1458
|
static names(): {
|
|
1435
1459
|
[key: string]: string;
|
|
@@ -1456,11 +1480,11 @@ export declare class ListEcsSpecsResponseBody extends $tea.Model {
|
|
|
1456
1480
|
});
|
|
1457
1481
|
}
|
|
1458
1482
|
export declare class ListEcsSpecsResponse extends $tea.Model {
|
|
1459
|
-
headers
|
|
1483
|
+
headers?: {
|
|
1460
1484
|
[key: string]: string;
|
|
1461
1485
|
};
|
|
1462
|
-
statusCode
|
|
1463
|
-
body
|
|
1486
|
+
statusCode?: number;
|
|
1487
|
+
body?: ListEcsSpecsResponseBody;
|
|
1464
1488
|
static names(): {
|
|
1465
1489
|
[key: string]: string;
|
|
1466
1490
|
};
|
|
@@ -1498,11 +1522,11 @@ export declare class ListJobSanityCheckResultsResponseBody extends $tea.Model {
|
|
|
1498
1522
|
});
|
|
1499
1523
|
}
|
|
1500
1524
|
export declare class ListJobSanityCheckResultsResponse extends $tea.Model {
|
|
1501
|
-
headers
|
|
1525
|
+
headers?: {
|
|
1502
1526
|
[key: string]: string;
|
|
1503
1527
|
};
|
|
1504
|
-
statusCode
|
|
1505
|
-
body
|
|
1528
|
+
statusCode?: number;
|
|
1529
|
+
body?: ListJobSanityCheckResultsResponseBody;
|
|
1506
1530
|
static names(): {
|
|
1507
1531
|
[key: string]: string;
|
|
1508
1532
|
};
|
|
@@ -1592,11 +1616,11 @@ export declare class ListJobsResponseBody extends $tea.Model {
|
|
|
1592
1616
|
});
|
|
1593
1617
|
}
|
|
1594
1618
|
export declare class ListJobsResponse extends $tea.Model {
|
|
1595
|
-
headers
|
|
1619
|
+
headers?: {
|
|
1596
1620
|
[key: string]: string;
|
|
1597
1621
|
};
|
|
1598
|
-
statusCode
|
|
1599
|
-
body
|
|
1622
|
+
statusCode?: number;
|
|
1623
|
+
body?: ListJobsResponseBody;
|
|
1600
1624
|
static names(): {
|
|
1601
1625
|
[key: string]: string;
|
|
1602
1626
|
};
|
|
@@ -1648,11 +1672,11 @@ export declare class ListTensorboardsResponseBody extends $tea.Model {
|
|
|
1648
1672
|
});
|
|
1649
1673
|
}
|
|
1650
1674
|
export declare class ListTensorboardsResponse extends $tea.Model {
|
|
1651
|
-
headers
|
|
1675
|
+
headers?: {
|
|
1652
1676
|
[key: string]: string;
|
|
1653
1677
|
};
|
|
1654
|
-
statusCode
|
|
1655
|
-
body
|
|
1678
|
+
statusCode?: number;
|
|
1679
|
+
body?: ListTensorboardsResponseBody;
|
|
1656
1680
|
static names(): {
|
|
1657
1681
|
[key: string]: string;
|
|
1658
1682
|
};
|
|
@@ -1689,11 +1713,11 @@ export declare class StartTensorboardResponseBody extends $tea.Model {
|
|
|
1689
1713
|
});
|
|
1690
1714
|
}
|
|
1691
1715
|
export declare class StartTensorboardResponse extends $tea.Model {
|
|
1692
|
-
headers
|
|
1716
|
+
headers?: {
|
|
1693
1717
|
[key: string]: string;
|
|
1694
1718
|
};
|
|
1695
|
-
statusCode
|
|
1696
|
-
body
|
|
1719
|
+
statusCode?: number;
|
|
1720
|
+
body?: StartTensorboardResponseBody;
|
|
1697
1721
|
static names(): {
|
|
1698
1722
|
[key: string]: string;
|
|
1699
1723
|
};
|
|
@@ -1718,11 +1742,11 @@ export declare class StopJobResponseBody extends $tea.Model {
|
|
|
1718
1742
|
});
|
|
1719
1743
|
}
|
|
1720
1744
|
export declare class StopJobResponse extends $tea.Model {
|
|
1721
|
-
headers
|
|
1745
|
+
headers?: {
|
|
1722
1746
|
[key: string]: string;
|
|
1723
1747
|
};
|
|
1724
|
-
statusCode
|
|
1725
|
-
body
|
|
1748
|
+
statusCode?: number;
|
|
1749
|
+
body?: StopJobResponseBody;
|
|
1726
1750
|
static names(): {
|
|
1727
1751
|
[key: string]: string;
|
|
1728
1752
|
};
|
|
@@ -1759,11 +1783,11 @@ export declare class StopTensorboardResponseBody extends $tea.Model {
|
|
|
1759
1783
|
});
|
|
1760
1784
|
}
|
|
1761
1785
|
export declare class StopTensorboardResponse extends $tea.Model {
|
|
1762
|
-
headers
|
|
1786
|
+
headers?: {
|
|
1763
1787
|
[key: string]: string;
|
|
1764
1788
|
};
|
|
1765
|
-
statusCode
|
|
1766
|
-
body
|
|
1789
|
+
statusCode?: number;
|
|
1790
|
+
body?: StopTensorboardResponseBody;
|
|
1767
1791
|
static names(): {
|
|
1768
1792
|
[key: string]: string;
|
|
1769
1793
|
};
|
|
@@ -1800,11 +1824,11 @@ export declare class UpdateJobResponseBody extends $tea.Model {
|
|
|
1800
1824
|
});
|
|
1801
1825
|
}
|
|
1802
1826
|
export declare class UpdateJobResponse extends $tea.Model {
|
|
1803
|
-
headers
|
|
1827
|
+
headers?: {
|
|
1804
1828
|
[key: string]: string;
|
|
1805
1829
|
};
|
|
1806
|
-
statusCode
|
|
1807
|
-
body
|
|
1830
|
+
statusCode?: number;
|
|
1831
|
+
body?: UpdateJobResponseBody;
|
|
1808
1832
|
static names(): {
|
|
1809
1833
|
[key: string]: string;
|
|
1810
1834
|
};
|
|
@@ -1842,11 +1866,11 @@ export declare class UpdateTensorboardResponseBody extends $tea.Model {
|
|
|
1842
1866
|
});
|
|
1843
1867
|
}
|
|
1844
1868
|
export declare class UpdateTensorboardResponse extends $tea.Model {
|
|
1845
|
-
headers
|
|
1869
|
+
headers?: {
|
|
1846
1870
|
[key: string]: string;
|
|
1847
1871
|
};
|
|
1848
|
-
statusCode
|
|
1849
|
-
body
|
|
1872
|
+
statusCode?: number;
|
|
1873
|
+
body?: UpdateTensorboardResponseBody;
|
|
1850
1874
|
static names(): {
|
|
1851
1875
|
[key: string]: string;
|
|
1852
1876
|
};
|
package/dist/client.js
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
23
|
};
|
|
12
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.GetJobResponseBodyPods = exports.GetJobResponseBodyPodsHistoryPods = exports.GetJobResponseBodyDataSources = exports.GetJobResponseBodyCodeSource = exports.CreateJobRequestUserVpc = exports.CreateJobRequestDataSources = exports.CreateJobRequestCodeSource = exports.JobItemDataSources = exports.JobItemCodeSource = exports.UpdateTensorboardResponse = exports.UpdateTensorboardResponseBody = exports.UpdateTensorboardRequest = exports.UpdateJobResponse = exports.UpdateJobResponseBody = exports.UpdateJobRequest = exports.StopTensorboardResponse = exports.StopTensorboardResponseBody = exports.StopTensorboardRequest = exports.StopJobResponse = exports.StopJobResponseBody = exports.StartTensorboardResponse = exports.StartTensorboardResponseBody = exports.StartTensorboardRequest = exports.ListTensorboardsResponse = exports.ListTensorboardsResponseBody = exports.ListTensorboardsRequest = exports.ListJobsResponse = exports.ListJobsResponseBody = exports.ListJobsShrinkRequest = exports.ListJobsRequest = exports.ListJobSanityCheckResultsResponse = exports.ListJobSanityCheckResultsResponseBody = exports.ListJobSanityCheckResultsRequest = exports.ListEcsSpecsResponse = exports.ListEcsSpecsResponseBody = exports.ListEcsSpecsRequest = exports.GetWebTerminalResponse = exports.GetWebTerminalResponseBody = exports.GetWebTerminalRequest = exports.GetTokenResponse = exports.GetTokenResponseBody = exports.GetTokenRequest = exports.GetTensorboardSharedUrlResponse = exports.GetTensorboardSharedUrlResponseBody = exports.GetTensorboardSharedUrlRequest = exports.GetTensorboardResponse = exports.GetTensorboardRequest = exports.GetPodLogsResponse = exports.GetPodLogsResponseBody = exports.GetPodLogsRequest = exports.GetPodEventsResponse = exports.GetPodEventsResponseBody = exports.GetPodEventsRequest = exports.GetJobSanityCheckResultResponse = exports.GetJobSanityCheckResultResponseBody = exports.GetJobSanityCheckResultRequest = exports.GetJobMetricsResponse = exports.GetJobMetricsResponseBody = exports.GetJobMetricsRequest = exports.GetJobEventsResponse = exports.GetJobEventsResponseBody = exports.GetJobEventsRequest = exports.GetJobResponse = exports.GetJobResponseBody = exports.GetJobRequest = exports.DeleteTensorboardResponse = exports.DeleteTensorboardResponseBody = exports.DeleteTensorboardRequest = exports.DeleteJobResponse = exports.DeleteJobResponseBody = exports.CreateTensorboardResponse = exports.CreateTensorboardResponseBody = exports.CreateTensorboardRequest = exports.CreateJobResponse = exports.CreateJobResponseBody = exports.CreateJobRequest = exports.Workspace = exports.Tensorboard = exports.StatusTransitionItem = exports.SpotSpec = exports.SmartCache = exports.SanityCheckResultItem = exports.Resources = exports.ResourceRequirements = exports.ResourceConfig = exports.QuotaDetail = exports.QuotaConfig = exports.Quota = exports.PodMetric = exports.PodItem = exports.NodeMetric = exports.Metric = exports.Member = exports.LogInfo = exports.JobSpec = exports.JobSettings = exports.JobItem = exports.JobElasticSpec = exports.JobDebuggerConfig = exports.ImageItem = exports.ImageConfig = exports.GPUDetail = exports.FreeResourceItem = exports.FreeResourceDetail = exports.FreeResourceClusterControlItem = exports.ExtraPodSpec = exports.EventInfo = exports.EnvVar = exports.EcsSpec = exports.DebuggerResult = exports.DebuggerJobIssue = exports.DebuggerJob = exports.DebuggerConfig = exports.DataSourceItem = exports.ContainerSpec = exports.CodeSourceItem = exports.AliyunAccounts = exports.AIMasterMessage = void 0;
|
|
13
26
|
// This file is auto-generated, don't edit it
|
|
14
27
|
/**
|
|
15
28
|
*
|
|
@@ -301,22 +314,34 @@ class EcsSpec extends $tea.Model {
|
|
|
301
314
|
return {
|
|
302
315
|
acceleratorType: 'AcceleratorType',
|
|
303
316
|
cpu: 'Cpu',
|
|
317
|
+
defaultGPUDriver: 'DefaultGPUDriver',
|
|
304
318
|
gpu: 'Gpu',
|
|
305
319
|
gpuType: 'GpuType',
|
|
306
320
|
instanceType: 'InstanceType',
|
|
307
321
|
isAvailable: 'IsAvailable',
|
|
308
322
|
memory: 'Memory',
|
|
323
|
+
nonProtectSpotDiscount: 'NonProtectSpotDiscount',
|
|
324
|
+
paymentTypes: 'PaymentTypes',
|
|
325
|
+
resourceType: 'ResourceType',
|
|
326
|
+
spotStockStatus: 'SpotStockStatus',
|
|
327
|
+
supportedGPUDrivers: 'SupportedGPUDrivers',
|
|
309
328
|
};
|
|
310
329
|
}
|
|
311
330
|
static types() {
|
|
312
331
|
return {
|
|
313
332
|
acceleratorType: 'string',
|
|
314
333
|
cpu: 'number',
|
|
334
|
+
defaultGPUDriver: 'string',
|
|
315
335
|
gpu: 'number',
|
|
316
336
|
gpuType: 'string',
|
|
317
337
|
instanceType: 'string',
|
|
318
338
|
isAvailable: 'boolean',
|
|
319
339
|
memory: 'number',
|
|
340
|
+
nonProtectSpotDiscount: 'number',
|
|
341
|
+
paymentTypes: { 'type': 'array', 'itemType': 'string' },
|
|
342
|
+
resourceType: 'string',
|
|
343
|
+
spotStockStatus: 'string',
|
|
344
|
+
supportedGPUDrivers: { 'type': 'array', 'itemType': 'string' },
|
|
320
345
|
};
|
|
321
346
|
}
|
|
322
347
|
}
|
|
@@ -629,6 +654,7 @@ class JobItem extends $tea.Model {
|
|
|
629
654
|
resourceId: 'ResourceId',
|
|
630
655
|
resourceLevel: 'ResourceLevel',
|
|
631
656
|
resourceName: 'ResourceName',
|
|
657
|
+
resourceType: 'ResourceType',
|
|
632
658
|
settings: 'Settings',
|
|
633
659
|
status: 'Status',
|
|
634
660
|
subStatus: 'SubStatus',
|
|
@@ -666,6 +692,7 @@ class JobItem extends $tea.Model {
|
|
|
666
692
|
resourceId: 'string',
|
|
667
693
|
resourceLevel: 'string',
|
|
668
694
|
resourceName: 'string',
|
|
695
|
+
resourceType: 'string',
|
|
669
696
|
settings: JobSettings,
|
|
670
697
|
status: 'string',
|
|
671
698
|
subStatus: 'string',
|
|
@@ -739,6 +766,7 @@ class JobSpec extends $tea.Model {
|
|
|
739
766
|
imageConfig: 'ImageConfig',
|
|
740
767
|
podCount: 'PodCount',
|
|
741
768
|
resourceConfig: 'ResourceConfig',
|
|
769
|
+
spotSpec: 'SpotSpec',
|
|
742
770
|
type: 'Type',
|
|
743
771
|
useSpotInstance: 'UseSpotInstance',
|
|
744
772
|
};
|
|
@@ -751,6 +779,7 @@ class JobSpec extends $tea.Model {
|
|
|
751
779
|
imageConfig: ImageConfig,
|
|
752
780
|
podCount: 'number',
|
|
753
781
|
resourceConfig: ResourceConfig,
|
|
782
|
+
spotSpec: SpotSpec,
|
|
754
783
|
type: 'string',
|
|
755
784
|
useSpotInstance: 'boolean',
|
|
756
785
|
};
|
|
@@ -1105,6 +1134,24 @@ class SmartCache extends $tea.Model {
|
|
|
1105
1134
|
}
|
|
1106
1135
|
}
|
|
1107
1136
|
exports.SmartCache = SmartCache;
|
|
1137
|
+
class SpotSpec extends $tea.Model {
|
|
1138
|
+
constructor(map) {
|
|
1139
|
+
super(map);
|
|
1140
|
+
}
|
|
1141
|
+
static names() {
|
|
1142
|
+
return {
|
|
1143
|
+
spotDiscountLimit: 'SpotDiscountLimit',
|
|
1144
|
+
spotStrategy: 'SpotStrategy',
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
static types() {
|
|
1148
|
+
return {
|
|
1149
|
+
spotDiscountLimit: 'number',
|
|
1150
|
+
spotStrategy: 'string',
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
exports.SpotSpec = SpotSpec;
|
|
1108
1155
|
class StatusTransitionItem extends $tea.Model {
|
|
1109
1156
|
constructor(map) {
|
|
1110
1157
|
super(map);
|
|
@@ -1518,6 +1565,7 @@ class GetJobResponseBody extends $tea.Model {
|
|
|
1518
1565
|
requestId: 'RequestId',
|
|
1519
1566
|
resourceId: 'ResourceId',
|
|
1520
1567
|
resourceLevel: 'ResourceLevel',
|
|
1568
|
+
resourceType: 'ResourceType',
|
|
1521
1569
|
restartTimes: 'RestartTimes',
|
|
1522
1570
|
settings: 'Settings',
|
|
1523
1571
|
status: 'Status',
|
|
@@ -1559,6 +1607,7 @@ class GetJobResponseBody extends $tea.Model {
|
|
|
1559
1607
|
requestId: 'string',
|
|
1560
1608
|
resourceId: 'string',
|
|
1561
1609
|
resourceLevel: 'string',
|
|
1610
|
+
resourceType: 'string',
|
|
1562
1611
|
restartTimes: 'string',
|
|
1563
1612
|
settings: JobSettings,
|
|
1564
1613
|
status: 'string',
|
|
@@ -2128,18 +2177,22 @@ class ListEcsSpecsRequest extends $tea.Model {
|
|
|
2128
2177
|
static names() {
|
|
2129
2178
|
return {
|
|
2130
2179
|
acceleratorType: 'AcceleratorType',
|
|
2180
|
+
instanceTypes: 'InstanceTypes',
|
|
2131
2181
|
order: 'Order',
|
|
2132
2182
|
pageNumber: 'PageNumber',
|
|
2133
2183
|
pageSize: 'PageSize',
|
|
2184
|
+
resourceType: 'ResourceType',
|
|
2134
2185
|
sortBy: 'SortBy',
|
|
2135
2186
|
};
|
|
2136
2187
|
}
|
|
2137
2188
|
static types() {
|
|
2138
2189
|
return {
|
|
2139
2190
|
acceleratorType: 'string',
|
|
2191
|
+
instanceTypes: 'string',
|
|
2140
2192
|
order: 'string',
|
|
2141
2193
|
pageNumber: 'number',
|
|
2142
2194
|
pageSize: 'number',
|
|
2195
|
+
resourceType: 'string',
|
|
2143
2196
|
sortBy: 'string',
|
|
2144
2197
|
};
|
|
2145
2198
|
}
|
|
@@ -3563,6 +3616,9 @@ class Client extends openapi_client_1.default {
|
|
|
3563
3616
|
if (!tea_util_1.default.isUnset(request.acceleratorType)) {
|
|
3564
3617
|
query["AcceleratorType"] = request.acceleratorType;
|
|
3565
3618
|
}
|
|
3619
|
+
if (!tea_util_1.default.isUnset(request.instanceTypes)) {
|
|
3620
|
+
query["InstanceTypes"] = request.instanceTypes;
|
|
3621
|
+
}
|
|
3566
3622
|
if (!tea_util_1.default.isUnset(request.order)) {
|
|
3567
3623
|
query["Order"] = request.order;
|
|
3568
3624
|
}
|
|
@@ -3572,6 +3628,9 @@ class Client extends openapi_client_1.default {
|
|
|
3572
3628
|
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3573
3629
|
query["PageSize"] = request.pageSize;
|
|
3574
3630
|
}
|
|
3631
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
3632
|
+
query["ResourceType"] = request.resourceType;
|
|
3633
|
+
}
|
|
3575
3634
|
if (!tea_util_1.default.isUnset(request.sortBy)) {
|
|
3576
3635
|
query["SortBy"] = request.sortBy;
|
|
3577
3636
|
}
|