@alicloud/pai-dlc20201203 1.4.1 → 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 +88 -69
- package/dist/client.js +45 -2
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +109 -69
package/dist/client.d.ts
CHANGED
|
@@ -180,12 +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[];
|
|
188
191
|
resourceType?: string;
|
|
192
|
+
spotStockStatus?: string;
|
|
193
|
+
supportedGPUDrivers?: string[];
|
|
189
194
|
static names(): {
|
|
190
195
|
[key: string]: string;
|
|
191
196
|
};
|
|
@@ -469,6 +474,7 @@ export declare class JobSpec extends $tea.Model {
|
|
|
469
474
|
imageConfig?: ImageConfig;
|
|
470
475
|
podCount?: number;
|
|
471
476
|
resourceConfig?: ResourceConfig;
|
|
477
|
+
spotSpec?: SpotSpec;
|
|
472
478
|
type?: string;
|
|
473
479
|
useSpotInstance?: boolean;
|
|
474
480
|
static names(): {
|
|
@@ -715,6 +721,19 @@ export declare class SmartCache extends $tea.Model {
|
|
|
715
721
|
[key: string]: any;
|
|
716
722
|
});
|
|
717
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
|
+
}
|
|
718
737
|
export declare class StatusTransitionItem extends $tea.Model {
|
|
719
738
|
endTime?: string;
|
|
720
739
|
reasonCode?: string;
|
|
@@ -822,11 +841,11 @@ export declare class CreateJobResponseBody extends $tea.Model {
|
|
|
822
841
|
});
|
|
823
842
|
}
|
|
824
843
|
export declare class CreateJobResponse extends $tea.Model {
|
|
825
|
-
headers
|
|
844
|
+
headers?: {
|
|
826
845
|
[key: string]: string;
|
|
827
846
|
};
|
|
828
|
-
statusCode
|
|
829
|
-
body
|
|
847
|
+
statusCode?: number;
|
|
848
|
+
body?: CreateJobResponseBody;
|
|
830
849
|
static names(): {
|
|
831
850
|
[key: string]: string;
|
|
832
851
|
};
|
|
@@ -879,11 +898,11 @@ export declare class CreateTensorboardResponseBody extends $tea.Model {
|
|
|
879
898
|
});
|
|
880
899
|
}
|
|
881
900
|
export declare class CreateTensorboardResponse extends $tea.Model {
|
|
882
|
-
headers
|
|
901
|
+
headers?: {
|
|
883
902
|
[key: string]: string;
|
|
884
903
|
};
|
|
885
|
-
statusCode
|
|
886
|
-
body
|
|
904
|
+
statusCode?: number;
|
|
905
|
+
body?: CreateTensorboardResponseBody;
|
|
887
906
|
static names(): {
|
|
888
907
|
[key: string]: string;
|
|
889
908
|
};
|
|
@@ -908,11 +927,11 @@ export declare class DeleteJobResponseBody extends $tea.Model {
|
|
|
908
927
|
});
|
|
909
928
|
}
|
|
910
929
|
export declare class DeleteJobResponse extends $tea.Model {
|
|
911
|
-
headers
|
|
930
|
+
headers?: {
|
|
912
931
|
[key: string]: string;
|
|
913
932
|
};
|
|
914
|
-
statusCode
|
|
915
|
-
body
|
|
933
|
+
statusCode?: number;
|
|
934
|
+
body?: DeleteJobResponseBody;
|
|
916
935
|
static names(): {
|
|
917
936
|
[key: string]: string;
|
|
918
937
|
};
|
|
@@ -949,11 +968,11 @@ export declare class DeleteTensorboardResponseBody extends $tea.Model {
|
|
|
949
968
|
});
|
|
950
969
|
}
|
|
951
970
|
export declare class DeleteTensorboardResponse extends $tea.Model {
|
|
952
|
-
headers
|
|
971
|
+
headers?: {
|
|
953
972
|
[key: string]: string;
|
|
954
973
|
};
|
|
955
|
-
statusCode
|
|
956
|
-
body
|
|
974
|
+
statusCode?: number;
|
|
975
|
+
body?: DeleteTensorboardResponseBody;
|
|
957
976
|
static names(): {
|
|
958
977
|
[key: string]: string;
|
|
959
978
|
};
|
|
@@ -1028,11 +1047,11 @@ export declare class GetJobResponseBody extends $tea.Model {
|
|
|
1028
1047
|
});
|
|
1029
1048
|
}
|
|
1030
1049
|
export declare class GetJobResponse extends $tea.Model {
|
|
1031
|
-
headers
|
|
1050
|
+
headers?: {
|
|
1032
1051
|
[key: string]: string;
|
|
1033
1052
|
};
|
|
1034
|
-
statusCode
|
|
1035
|
-
body
|
|
1053
|
+
statusCode?: number;
|
|
1054
|
+
body?: GetJobResponseBody;
|
|
1036
1055
|
static names(): {
|
|
1037
1056
|
[key: string]: string;
|
|
1038
1057
|
};
|
|
@@ -1072,11 +1091,11 @@ export declare class GetJobEventsResponseBody extends $tea.Model {
|
|
|
1072
1091
|
});
|
|
1073
1092
|
}
|
|
1074
1093
|
export declare class GetJobEventsResponse extends $tea.Model {
|
|
1075
|
-
headers
|
|
1094
|
+
headers?: {
|
|
1076
1095
|
[key: string]: string;
|
|
1077
1096
|
};
|
|
1078
|
-
statusCode
|
|
1079
|
-
body
|
|
1097
|
+
statusCode?: number;
|
|
1098
|
+
body?: GetJobEventsResponseBody;
|
|
1080
1099
|
static names(): {
|
|
1081
1100
|
[key: string]: string;
|
|
1082
1101
|
};
|
|
@@ -1118,11 +1137,11 @@ export declare class GetJobMetricsResponseBody extends $tea.Model {
|
|
|
1118
1137
|
});
|
|
1119
1138
|
}
|
|
1120
1139
|
export declare class GetJobMetricsResponse extends $tea.Model {
|
|
1121
|
-
headers
|
|
1140
|
+
headers?: {
|
|
1122
1141
|
[key: string]: string;
|
|
1123
1142
|
};
|
|
1124
|
-
statusCode
|
|
1125
|
-
body
|
|
1143
|
+
statusCode?: number;
|
|
1144
|
+
body?: GetJobMetricsResponseBody;
|
|
1126
1145
|
static names(): {
|
|
1127
1146
|
[key: string]: string;
|
|
1128
1147
|
};
|
|
@@ -1162,11 +1181,11 @@ export declare class GetJobSanityCheckResultResponseBody extends $tea.Model {
|
|
|
1162
1181
|
});
|
|
1163
1182
|
}
|
|
1164
1183
|
export declare class GetJobSanityCheckResultResponse extends $tea.Model {
|
|
1165
|
-
headers
|
|
1184
|
+
headers?: {
|
|
1166
1185
|
[key: string]: string;
|
|
1167
1186
|
};
|
|
1168
|
-
statusCode
|
|
1169
|
-
body
|
|
1187
|
+
statusCode?: number;
|
|
1188
|
+
body?: GetJobSanityCheckResultResponseBody;
|
|
1170
1189
|
static names(): {
|
|
1171
1190
|
[key: string]: string;
|
|
1172
1191
|
};
|
|
@@ -1209,11 +1228,11 @@ export declare class GetPodEventsResponseBody extends $tea.Model {
|
|
|
1209
1228
|
});
|
|
1210
1229
|
}
|
|
1211
1230
|
export declare class GetPodEventsResponse extends $tea.Model {
|
|
1212
|
-
headers
|
|
1231
|
+
headers?: {
|
|
1213
1232
|
[key: string]: string;
|
|
1214
1233
|
};
|
|
1215
|
-
statusCode
|
|
1216
|
-
body
|
|
1234
|
+
statusCode?: number;
|
|
1235
|
+
body?: GetPodEventsResponseBody;
|
|
1217
1236
|
static names(): {
|
|
1218
1237
|
[key: string]: string;
|
|
1219
1238
|
};
|
|
@@ -1257,11 +1276,11 @@ export declare class GetPodLogsResponseBody extends $tea.Model {
|
|
|
1257
1276
|
});
|
|
1258
1277
|
}
|
|
1259
1278
|
export declare class GetPodLogsResponse extends $tea.Model {
|
|
1260
|
-
headers
|
|
1279
|
+
headers?: {
|
|
1261
1280
|
[key: string]: string;
|
|
1262
1281
|
};
|
|
1263
|
-
statusCode
|
|
1264
|
-
body
|
|
1282
|
+
statusCode?: number;
|
|
1283
|
+
body?: GetPodLogsResponseBody;
|
|
1265
1284
|
static names(): {
|
|
1266
1285
|
[key: string]: string;
|
|
1267
1286
|
};
|
|
@@ -1287,11 +1306,11 @@ export declare class GetTensorboardRequest extends $tea.Model {
|
|
|
1287
1306
|
});
|
|
1288
1307
|
}
|
|
1289
1308
|
export declare class GetTensorboardResponse extends $tea.Model {
|
|
1290
|
-
headers
|
|
1309
|
+
headers?: {
|
|
1291
1310
|
[key: string]: string;
|
|
1292
1311
|
};
|
|
1293
|
-
statusCode
|
|
1294
|
-
body
|
|
1312
|
+
statusCode?: number;
|
|
1313
|
+
body?: Tensorboard;
|
|
1295
1314
|
static names(): {
|
|
1296
1315
|
[key: string]: string;
|
|
1297
1316
|
};
|
|
@@ -1328,11 +1347,11 @@ export declare class GetTensorboardSharedUrlResponseBody extends $tea.Model {
|
|
|
1328
1347
|
});
|
|
1329
1348
|
}
|
|
1330
1349
|
export declare class GetTensorboardSharedUrlResponse extends $tea.Model {
|
|
1331
|
-
headers
|
|
1350
|
+
headers?: {
|
|
1332
1351
|
[key: string]: string;
|
|
1333
1352
|
};
|
|
1334
|
-
statusCode
|
|
1335
|
-
body
|
|
1353
|
+
statusCode?: number;
|
|
1354
|
+
body?: GetTensorboardSharedUrlResponseBody;
|
|
1336
1355
|
static names(): {
|
|
1337
1356
|
[key: string]: string;
|
|
1338
1357
|
};
|
|
@@ -1371,11 +1390,11 @@ export declare class GetTokenResponseBody extends $tea.Model {
|
|
|
1371
1390
|
});
|
|
1372
1391
|
}
|
|
1373
1392
|
export declare class GetTokenResponse extends $tea.Model {
|
|
1374
|
-
headers
|
|
1393
|
+
headers?: {
|
|
1375
1394
|
[key: string]: string;
|
|
1376
1395
|
};
|
|
1377
|
-
statusCode
|
|
1378
|
-
body
|
|
1396
|
+
statusCode?: number;
|
|
1397
|
+
body?: GetTokenResponseBody;
|
|
1379
1398
|
static names(): {
|
|
1380
1399
|
[key: string]: string;
|
|
1381
1400
|
};
|
|
@@ -1413,11 +1432,11 @@ export declare class GetWebTerminalResponseBody extends $tea.Model {
|
|
|
1413
1432
|
});
|
|
1414
1433
|
}
|
|
1415
1434
|
export declare class GetWebTerminalResponse extends $tea.Model {
|
|
1416
|
-
headers
|
|
1435
|
+
headers?: {
|
|
1417
1436
|
[key: string]: string;
|
|
1418
1437
|
};
|
|
1419
|
-
statusCode
|
|
1420
|
-
body
|
|
1438
|
+
statusCode?: number;
|
|
1439
|
+
body?: GetWebTerminalResponseBody;
|
|
1421
1440
|
static names(): {
|
|
1422
1441
|
[key: string]: string;
|
|
1423
1442
|
};
|
|
@@ -1461,11 +1480,11 @@ export declare class ListEcsSpecsResponseBody extends $tea.Model {
|
|
|
1461
1480
|
});
|
|
1462
1481
|
}
|
|
1463
1482
|
export declare class ListEcsSpecsResponse extends $tea.Model {
|
|
1464
|
-
headers
|
|
1483
|
+
headers?: {
|
|
1465
1484
|
[key: string]: string;
|
|
1466
1485
|
};
|
|
1467
|
-
statusCode
|
|
1468
|
-
body
|
|
1486
|
+
statusCode?: number;
|
|
1487
|
+
body?: ListEcsSpecsResponseBody;
|
|
1469
1488
|
static names(): {
|
|
1470
1489
|
[key: string]: string;
|
|
1471
1490
|
};
|
|
@@ -1503,11 +1522,11 @@ export declare class ListJobSanityCheckResultsResponseBody extends $tea.Model {
|
|
|
1503
1522
|
});
|
|
1504
1523
|
}
|
|
1505
1524
|
export declare class ListJobSanityCheckResultsResponse extends $tea.Model {
|
|
1506
|
-
headers
|
|
1525
|
+
headers?: {
|
|
1507
1526
|
[key: string]: string;
|
|
1508
1527
|
};
|
|
1509
|
-
statusCode
|
|
1510
|
-
body
|
|
1528
|
+
statusCode?: number;
|
|
1529
|
+
body?: ListJobSanityCheckResultsResponseBody;
|
|
1511
1530
|
static names(): {
|
|
1512
1531
|
[key: string]: string;
|
|
1513
1532
|
};
|
|
@@ -1597,11 +1616,11 @@ export declare class ListJobsResponseBody extends $tea.Model {
|
|
|
1597
1616
|
});
|
|
1598
1617
|
}
|
|
1599
1618
|
export declare class ListJobsResponse extends $tea.Model {
|
|
1600
|
-
headers
|
|
1619
|
+
headers?: {
|
|
1601
1620
|
[key: string]: string;
|
|
1602
1621
|
};
|
|
1603
|
-
statusCode
|
|
1604
|
-
body
|
|
1622
|
+
statusCode?: number;
|
|
1623
|
+
body?: ListJobsResponseBody;
|
|
1605
1624
|
static names(): {
|
|
1606
1625
|
[key: string]: string;
|
|
1607
1626
|
};
|
|
@@ -1653,11 +1672,11 @@ export declare class ListTensorboardsResponseBody extends $tea.Model {
|
|
|
1653
1672
|
});
|
|
1654
1673
|
}
|
|
1655
1674
|
export declare class ListTensorboardsResponse extends $tea.Model {
|
|
1656
|
-
headers
|
|
1675
|
+
headers?: {
|
|
1657
1676
|
[key: string]: string;
|
|
1658
1677
|
};
|
|
1659
|
-
statusCode
|
|
1660
|
-
body
|
|
1678
|
+
statusCode?: number;
|
|
1679
|
+
body?: ListTensorboardsResponseBody;
|
|
1661
1680
|
static names(): {
|
|
1662
1681
|
[key: string]: string;
|
|
1663
1682
|
};
|
|
@@ -1694,11 +1713,11 @@ export declare class StartTensorboardResponseBody extends $tea.Model {
|
|
|
1694
1713
|
});
|
|
1695
1714
|
}
|
|
1696
1715
|
export declare class StartTensorboardResponse extends $tea.Model {
|
|
1697
|
-
headers
|
|
1716
|
+
headers?: {
|
|
1698
1717
|
[key: string]: string;
|
|
1699
1718
|
};
|
|
1700
|
-
statusCode
|
|
1701
|
-
body
|
|
1719
|
+
statusCode?: number;
|
|
1720
|
+
body?: StartTensorboardResponseBody;
|
|
1702
1721
|
static names(): {
|
|
1703
1722
|
[key: string]: string;
|
|
1704
1723
|
};
|
|
@@ -1723,11 +1742,11 @@ export declare class StopJobResponseBody extends $tea.Model {
|
|
|
1723
1742
|
});
|
|
1724
1743
|
}
|
|
1725
1744
|
export declare class StopJobResponse extends $tea.Model {
|
|
1726
|
-
headers
|
|
1745
|
+
headers?: {
|
|
1727
1746
|
[key: string]: string;
|
|
1728
1747
|
};
|
|
1729
|
-
statusCode
|
|
1730
|
-
body
|
|
1748
|
+
statusCode?: number;
|
|
1749
|
+
body?: StopJobResponseBody;
|
|
1731
1750
|
static names(): {
|
|
1732
1751
|
[key: string]: string;
|
|
1733
1752
|
};
|
|
@@ -1764,11 +1783,11 @@ export declare class StopTensorboardResponseBody extends $tea.Model {
|
|
|
1764
1783
|
});
|
|
1765
1784
|
}
|
|
1766
1785
|
export declare class StopTensorboardResponse extends $tea.Model {
|
|
1767
|
-
headers
|
|
1786
|
+
headers?: {
|
|
1768
1787
|
[key: string]: string;
|
|
1769
1788
|
};
|
|
1770
|
-
statusCode
|
|
1771
|
-
body
|
|
1789
|
+
statusCode?: number;
|
|
1790
|
+
body?: StopTensorboardResponseBody;
|
|
1772
1791
|
static names(): {
|
|
1773
1792
|
[key: string]: string;
|
|
1774
1793
|
};
|
|
@@ -1805,11 +1824,11 @@ export declare class UpdateJobResponseBody extends $tea.Model {
|
|
|
1805
1824
|
});
|
|
1806
1825
|
}
|
|
1807
1826
|
export declare class UpdateJobResponse extends $tea.Model {
|
|
1808
|
-
headers
|
|
1827
|
+
headers?: {
|
|
1809
1828
|
[key: string]: string;
|
|
1810
1829
|
};
|
|
1811
|
-
statusCode
|
|
1812
|
-
body
|
|
1830
|
+
statusCode?: number;
|
|
1831
|
+
body?: UpdateJobResponseBody;
|
|
1813
1832
|
static names(): {
|
|
1814
1833
|
[key: string]: string;
|
|
1815
1834
|
};
|
|
@@ -1847,11 +1866,11 @@ export declare class UpdateTensorboardResponseBody extends $tea.Model {
|
|
|
1847
1866
|
});
|
|
1848
1867
|
}
|
|
1849
1868
|
export declare class UpdateTensorboardResponse extends $tea.Model {
|
|
1850
|
-
headers
|
|
1869
|
+
headers?: {
|
|
1851
1870
|
[key: string]: string;
|
|
1852
1871
|
};
|
|
1853
|
-
statusCode
|
|
1854
|
-
body
|
|
1872
|
+
statusCode?: number;
|
|
1873
|
+
body?: UpdateTensorboardResponseBody;
|
|
1855
1874
|
static names(): {
|
|
1856
1875
|
[key: string]: string;
|
|
1857
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,24 +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',
|
|
309
325
|
resourceType: 'ResourceType',
|
|
326
|
+
spotStockStatus: 'SpotStockStatus',
|
|
327
|
+
supportedGPUDrivers: 'SupportedGPUDrivers',
|
|
310
328
|
};
|
|
311
329
|
}
|
|
312
330
|
static types() {
|
|
313
331
|
return {
|
|
314
332
|
acceleratorType: 'string',
|
|
315
333
|
cpu: 'number',
|
|
334
|
+
defaultGPUDriver: 'string',
|
|
316
335
|
gpu: 'number',
|
|
317
336
|
gpuType: 'string',
|
|
318
337
|
instanceType: 'string',
|
|
319
338
|
isAvailable: 'boolean',
|
|
320
339
|
memory: 'number',
|
|
340
|
+
nonProtectSpotDiscount: 'number',
|
|
341
|
+
paymentTypes: { 'type': 'array', 'itemType': 'string' },
|
|
321
342
|
resourceType: 'string',
|
|
343
|
+
spotStockStatus: 'string',
|
|
344
|
+
supportedGPUDrivers: { 'type': 'array', 'itemType': 'string' },
|
|
322
345
|
};
|
|
323
346
|
}
|
|
324
347
|
}
|
|
@@ -743,6 +766,7 @@ class JobSpec extends $tea.Model {
|
|
|
743
766
|
imageConfig: 'ImageConfig',
|
|
744
767
|
podCount: 'PodCount',
|
|
745
768
|
resourceConfig: 'ResourceConfig',
|
|
769
|
+
spotSpec: 'SpotSpec',
|
|
746
770
|
type: 'Type',
|
|
747
771
|
useSpotInstance: 'UseSpotInstance',
|
|
748
772
|
};
|
|
@@ -755,6 +779,7 @@ class JobSpec extends $tea.Model {
|
|
|
755
779
|
imageConfig: ImageConfig,
|
|
756
780
|
podCount: 'number',
|
|
757
781
|
resourceConfig: ResourceConfig,
|
|
782
|
+
spotSpec: SpotSpec,
|
|
758
783
|
type: 'string',
|
|
759
784
|
useSpotInstance: 'boolean',
|
|
760
785
|
};
|
|
@@ -1109,6 +1134,24 @@ class SmartCache extends $tea.Model {
|
|
|
1109
1134
|
}
|
|
1110
1135
|
}
|
|
1111
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;
|
|
1112
1155
|
class StatusTransitionItem extends $tea.Model {
|
|
1113
1156
|
constructor(map) {
|
|
1114
1157
|
super(map);
|