@alicloud/pai-dlc20201203 1.3.4 → 1.4.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
@@ -4,6 +4,23 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class AIMasterMessage extends $tea.Model {
8
+ extended?: string;
9
+ jobRestartCount?: number;
10
+ messageContent?: string;
11
+ messageEvent?: string;
12
+ messageVersion?: number;
13
+ restartType?: string;
14
+ static names(): {
15
+ [key: string]: string;
16
+ };
17
+ static types(): {
18
+ [key: string]: any;
19
+ };
20
+ constructor(map?: {
21
+ [key: string]: any;
22
+ });
23
+ }
7
24
  export declare class AliyunAccounts extends $tea.Model {
8
25
  aliyunUid?: string;
9
26
  employeeId?: string;
@@ -396,8 +413,10 @@ export declare class JobItem extends $tea.Model {
396
413
  subStatus?: string;
397
414
  thirdpartyLibDir?: string;
398
415
  thirdpartyLibs?: string[];
416
+ useOversoldResource?: boolean;
399
417
  userCommand?: string;
400
418
  userId?: string;
419
+ username?: string;
401
420
  workspaceId?: string;
402
421
  workspaceName?: string;
403
422
  static names(): {
@@ -420,12 +439,14 @@ export declare class JobSettings extends $tea.Model {
420
439
  enableErrorMonitoringInAIMaster?: boolean;
421
440
  enableOssAppend?: boolean;
422
441
  enableRDMA?: boolean;
442
+ enableSanityCheck?: boolean;
423
443
  enableTideResource?: boolean;
424
444
  errorMonitoringArgs?: string;
425
445
  jobReservedMinutes?: number;
426
446
  jobReservedPolicy?: string;
427
447
  oversoldType?: string;
428
448
  pipelineId?: string;
449
+ sanityCheckArgs?: string;
429
450
  tags?: {
430
451
  [key: string]: string;
431
452
  };
@@ -648,6 +669,23 @@ export declare class Resources extends $tea.Model {
648
669
  [key: string]: any;
649
670
  });
650
671
  }
672
+ export declare class SanityCheckResultItem extends $tea.Model {
673
+ checkNumber?: number;
674
+ finishedAt?: string;
675
+ message?: string;
676
+ phase?: string;
677
+ startedAt?: string;
678
+ status?: string;
679
+ static names(): {
680
+ [key: string]: string;
681
+ };
682
+ static types(): {
683
+ [key: string]: any;
684
+ };
685
+ constructor(map?: {
686
+ [key: string]: any;
687
+ });
688
+ }
651
689
  export declare class SmartCache extends $tea.Model {
652
690
  cacheWorkerNum?: number;
653
691
  cacheWorkerSize?: number;
@@ -675,6 +713,22 @@ export declare class SmartCache extends $tea.Model {
675
713
  [key: string]: any;
676
714
  });
677
715
  }
716
+ export declare class StatusTransitionItem extends $tea.Model {
717
+ endTime?: string;
718
+ reasonCode?: string;
719
+ reasonMessage?: string;
720
+ startTime?: string;
721
+ status?: string;
722
+ static names(): {
723
+ [key: string]: string;
724
+ };
725
+ static types(): {
726
+ [key: string]: any;
727
+ };
728
+ constructor(map?: {
729
+ [key: string]: any;
730
+ });
731
+ }
678
732
  export declare class Tensorboard extends $tea.Model {
679
733
  dataSourceId?: string;
680
734
  displayName?: string;
@@ -951,7 +1005,9 @@ export declare class GetJobResponseBody extends $tea.Model {
951
1005
  restartTimes?: string;
952
1006
  settings?: JobSettings;
953
1007
  status?: string;
1008
+ statusHistory?: StatusTransitionItem[];
954
1009
  subStatus?: string;
1010
+ tenantId?: string;
955
1011
  thirdpartyLibDir?: string;
956
1012
  thirdpartyLibs?: string[];
957
1013
  userCommand?: string;
@@ -1074,6 +1130,50 @@ export declare class GetJobMetricsResponse extends $tea.Model {
1074
1130
  [key: string]: any;
1075
1131
  });
1076
1132
  }
1133
+ export declare class GetJobSanityCheckResultRequest extends $tea.Model {
1134
+ sanityCheckNumber?: number;
1135
+ sanityCheckPhase?: string;
1136
+ token?: string;
1137
+ static names(): {
1138
+ [key: string]: string;
1139
+ };
1140
+ static types(): {
1141
+ [key: string]: any;
1142
+ };
1143
+ constructor(map?: {
1144
+ [key: string]: any;
1145
+ });
1146
+ }
1147
+ export declare class GetJobSanityCheckResultResponseBody extends $tea.Model {
1148
+ jobId?: string;
1149
+ requestID?: string;
1150
+ sanityCheckResult?: SanityCheckResultItem[];
1151
+ static names(): {
1152
+ [key: string]: string;
1153
+ };
1154
+ static types(): {
1155
+ [key: string]: any;
1156
+ };
1157
+ constructor(map?: {
1158
+ [key: string]: any;
1159
+ });
1160
+ }
1161
+ export declare class GetJobSanityCheckResultResponse extends $tea.Model {
1162
+ headers: {
1163
+ [key: string]: string;
1164
+ };
1165
+ statusCode: number;
1166
+ body: GetJobSanityCheckResultResponseBody;
1167
+ static names(): {
1168
+ [key: string]: string;
1169
+ };
1170
+ static types(): {
1171
+ [key: string]: any;
1172
+ };
1173
+ constructor(map?: {
1174
+ [key: string]: any;
1175
+ });
1176
+ }
1077
1177
  export declare class GetPodEventsRequest extends $tea.Model {
1078
1178
  endTime?: string;
1079
1179
  maxEventsNum?: number;
@@ -1371,6 +1471,48 @@ export declare class ListEcsSpecsResponse extends $tea.Model {
1371
1471
  [key: string]: any;
1372
1472
  });
1373
1473
  }
1474
+ export declare class ListJobSanityCheckResultsRequest extends $tea.Model {
1475
+ order?: string;
1476
+ static names(): {
1477
+ [key: string]: string;
1478
+ };
1479
+ static types(): {
1480
+ [key: string]: any;
1481
+ };
1482
+ constructor(map?: {
1483
+ [key: string]: any;
1484
+ });
1485
+ }
1486
+ export declare class ListJobSanityCheckResultsResponseBody extends $tea.Model {
1487
+ requestID?: string;
1488
+ sanityCheckResults?: SanityCheckResultItem[][];
1489
+ totalCount?: number;
1490
+ static names(): {
1491
+ [key: string]: string;
1492
+ };
1493
+ static types(): {
1494
+ [key: string]: any;
1495
+ };
1496
+ constructor(map?: {
1497
+ [key: string]: any;
1498
+ });
1499
+ }
1500
+ export declare class ListJobSanityCheckResultsResponse extends $tea.Model {
1501
+ headers: {
1502
+ [key: string]: string;
1503
+ };
1504
+ statusCode: number;
1505
+ body: ListJobSanityCheckResultsResponseBody;
1506
+ static names(): {
1507
+ [key: string]: string;
1508
+ };
1509
+ static types(): {
1510
+ [key: string]: any;
1511
+ };
1512
+ constructor(map?: {
1513
+ [key: string]: any;
1514
+ });
1515
+ }
1374
1516
  export declare class ListJobsRequest extends $tea.Model {
1375
1517
  businessUserId?: string;
1376
1518
  caller?: string;
@@ -1392,6 +1534,7 @@ export declare class ListJobsRequest extends $tea.Model {
1392
1534
  [key: string]: string;
1393
1535
  };
1394
1536
  userIdForFilter?: string;
1537
+ username?: string;
1395
1538
  workspaceId?: string;
1396
1539
  static names(): {
1397
1540
  [key: string]: string;
@@ -1422,6 +1565,7 @@ export declare class ListJobsShrinkRequest extends $tea.Model {
1422
1565
  status?: string;
1423
1566
  tagsShrink?: string;
1424
1567
  userIdForFilter?: string;
1568
+ username?: string;
1425
1569
  workspaceId?: string;
1426
1570
  static names(): {
1427
1571
  [key: string]: string;
@@ -1891,6 +2035,10 @@ export default class Client extends OpenApi {
1891
2035
  [key: string]: string;
1892
2036
  }, runtime: $Util.RuntimeOptions): Promise<GetJobMetricsResponse>;
1893
2037
  getJobMetrics(JobId: string, request: GetJobMetricsRequest): Promise<GetJobMetricsResponse>;
2038
+ getJobSanityCheckResultWithOptions(JobId: string, request: GetJobSanityCheckResultRequest, headers: {
2039
+ [key: string]: string;
2040
+ }, runtime: $Util.RuntimeOptions): Promise<GetJobSanityCheckResultResponse>;
2041
+ getJobSanityCheckResult(JobId: string, request: GetJobSanityCheckResultRequest): Promise<GetJobSanityCheckResultResponse>;
1894
2042
  getPodEventsWithOptions(JobId: string, PodId: string, request: GetPodEventsRequest, headers: {
1895
2043
  [key: string]: string;
1896
2044
  }, runtime: $Util.RuntimeOptions): Promise<GetPodEventsResponse>;
@@ -1919,6 +2067,10 @@ export default class Client extends OpenApi {
1919
2067
  [key: string]: string;
1920
2068
  }, runtime: $Util.RuntimeOptions): Promise<ListEcsSpecsResponse>;
1921
2069
  listEcsSpecs(request: ListEcsSpecsRequest): Promise<ListEcsSpecsResponse>;
2070
+ listJobSanityCheckResultsWithOptions(JobId: string, request: ListJobSanityCheckResultsRequest, headers: {
2071
+ [key: string]: string;
2072
+ }, runtime: $Util.RuntimeOptions): Promise<ListJobSanityCheckResultsResponse>;
2073
+ listJobSanityCheckResults(JobId: string, request: ListJobSanityCheckResultsRequest): Promise<ListJobSanityCheckResultsResponse>;
1922
2074
  listJobsWithOptions(tmpReq: ListJobsRequest, headers: {
1923
2075
  [key: string]: string;
1924
2076
  }, runtime: $Util.RuntimeOptions): Promise<ListJobsResponse>;
package/dist/client.js CHANGED
@@ -19,6 +19,32 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
19
19
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
20
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
21
  const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class AIMasterMessage extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ extended: 'Extended',
29
+ jobRestartCount: 'JobRestartCount',
30
+ messageContent: 'MessageContent',
31
+ messageEvent: 'MessageEvent',
32
+ messageVersion: 'MessageVersion',
33
+ restartType: 'RestartType',
34
+ };
35
+ }
36
+ static types() {
37
+ return {
38
+ extended: 'string',
39
+ jobRestartCount: 'number',
40
+ messageContent: 'string',
41
+ messageEvent: 'string',
42
+ messageVersion: 'number',
43
+ restartType: 'string',
44
+ };
45
+ }
46
+ }
47
+ exports.AIMasterMessage = AIMasterMessage;
22
48
  class AliyunAccounts extends $tea.Model {
23
49
  constructor(map) {
24
50
  super(map);
@@ -608,8 +634,10 @@ class JobItem extends $tea.Model {
608
634
  subStatus: 'SubStatus',
609
635
  thirdpartyLibDir: 'ThirdpartyLibDir',
610
636
  thirdpartyLibs: 'ThirdpartyLibs',
637
+ useOversoldResource: 'UseOversoldResource',
611
638
  userCommand: 'UserCommand',
612
639
  userId: 'UserId',
640
+ username: 'Username',
613
641
  workspaceId: 'WorkspaceId',
614
642
  workspaceName: 'WorkspaceName',
615
643
  };
@@ -643,8 +671,10 @@ class JobItem extends $tea.Model {
643
671
  subStatus: 'string',
644
672
  thirdpartyLibDir: 'string',
645
673
  thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
674
+ useOversoldResource: 'boolean',
646
675
  userCommand: 'string',
647
676
  userId: 'string',
677
+ username: 'string',
648
678
  workspaceId: 'string',
649
679
  workspaceName: 'string',
650
680
  };
@@ -664,12 +694,14 @@ class JobSettings extends $tea.Model {
664
694
  enableErrorMonitoringInAIMaster: 'EnableErrorMonitoringInAIMaster',
665
695
  enableOssAppend: 'EnableOssAppend',
666
696
  enableRDMA: 'EnableRDMA',
697
+ enableSanityCheck: 'EnableSanityCheck',
667
698
  enableTideResource: 'EnableTideResource',
668
699
  errorMonitoringArgs: 'ErrorMonitoringArgs',
669
700
  jobReservedMinutes: 'JobReservedMinutes',
670
701
  jobReservedPolicy: 'JobReservedPolicy',
671
702
  oversoldType: 'OversoldType',
672
703
  pipelineId: 'PipelineId',
704
+ sanityCheckArgs: 'SanityCheckArgs',
673
705
  tags: 'Tags',
674
706
  };
675
707
  }
@@ -682,12 +714,14 @@ class JobSettings extends $tea.Model {
682
714
  enableErrorMonitoringInAIMaster: 'boolean',
683
715
  enableOssAppend: 'boolean',
684
716
  enableRDMA: 'boolean',
717
+ enableSanityCheck: 'boolean',
685
718
  enableTideResource: 'boolean',
686
719
  errorMonitoringArgs: 'string',
687
720
  jobReservedMinutes: 'number',
688
721
  jobReservedPolicy: 'string',
689
722
  oversoldType: 'string',
690
723
  pipelineId: 'string',
724
+ sanityCheckArgs: 'string',
691
725
  tags: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
692
726
  };
693
727
  }
@@ -999,6 +1033,32 @@ class Resources extends $tea.Model {
999
1033
  }
1000
1034
  }
1001
1035
  exports.Resources = Resources;
1036
+ class SanityCheckResultItem extends $tea.Model {
1037
+ constructor(map) {
1038
+ super(map);
1039
+ }
1040
+ static names() {
1041
+ return {
1042
+ checkNumber: 'CheckNumber',
1043
+ finishedAt: 'FinishedAt',
1044
+ message: 'Message',
1045
+ phase: 'Phase',
1046
+ startedAt: 'StartedAt',
1047
+ status: 'Status',
1048
+ };
1049
+ }
1050
+ static types() {
1051
+ return {
1052
+ checkNumber: 'number',
1053
+ finishedAt: 'string',
1054
+ message: 'string',
1055
+ phase: 'string',
1056
+ startedAt: 'string',
1057
+ status: 'string',
1058
+ };
1059
+ }
1060
+ }
1061
+ exports.SanityCheckResultItem = SanityCheckResultItem;
1002
1062
  class SmartCache extends $tea.Model {
1003
1063
  constructor(map) {
1004
1064
  super(map);
@@ -1045,6 +1105,30 @@ class SmartCache extends $tea.Model {
1045
1105
  }
1046
1106
  }
1047
1107
  exports.SmartCache = SmartCache;
1108
+ class StatusTransitionItem extends $tea.Model {
1109
+ constructor(map) {
1110
+ super(map);
1111
+ }
1112
+ static names() {
1113
+ return {
1114
+ endTime: 'EndTime',
1115
+ reasonCode: 'ReasonCode',
1116
+ reasonMessage: 'ReasonMessage',
1117
+ startTime: 'StartTime',
1118
+ status: 'Status',
1119
+ };
1120
+ }
1121
+ static types() {
1122
+ return {
1123
+ endTime: 'string',
1124
+ reasonCode: 'string',
1125
+ reasonMessage: 'string',
1126
+ startTime: 'string',
1127
+ status: 'string',
1128
+ };
1129
+ }
1130
+ }
1131
+ exports.StatusTransitionItem = StatusTransitionItem;
1048
1132
  class Tensorboard extends $tea.Model {
1049
1133
  constructor(map) {
1050
1134
  super(map);
@@ -1437,7 +1521,9 @@ class GetJobResponseBody extends $tea.Model {
1437
1521
  restartTimes: 'RestartTimes',
1438
1522
  settings: 'Settings',
1439
1523
  status: 'Status',
1524
+ statusHistory: 'StatusHistory',
1440
1525
  subStatus: 'SubStatus',
1526
+ tenantId: 'TenantId',
1441
1527
  thirdpartyLibDir: 'ThirdpartyLibDir',
1442
1528
  thirdpartyLibs: 'ThirdpartyLibs',
1443
1529
  userCommand: 'UserCommand',
@@ -1476,7 +1562,9 @@ class GetJobResponseBody extends $tea.Model {
1476
1562
  restartTimes: 'string',
1477
1563
  settings: JobSettings,
1478
1564
  status: 'string',
1565
+ statusHistory: { 'type': 'array', 'itemType': StatusTransitionItem },
1479
1566
  subStatus: 'string',
1567
+ tenantId: 'string',
1480
1568
  thirdpartyLibDir: 'string',
1481
1569
  thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
1482
1570
  userCommand: 'string',
@@ -1631,6 +1719,66 @@ class GetJobMetricsResponse extends $tea.Model {
1631
1719
  }
1632
1720
  }
1633
1721
  exports.GetJobMetricsResponse = GetJobMetricsResponse;
1722
+ class GetJobSanityCheckResultRequest extends $tea.Model {
1723
+ constructor(map) {
1724
+ super(map);
1725
+ }
1726
+ static names() {
1727
+ return {
1728
+ sanityCheckNumber: 'SanityCheckNumber',
1729
+ sanityCheckPhase: 'SanityCheckPhase',
1730
+ token: 'Token',
1731
+ };
1732
+ }
1733
+ static types() {
1734
+ return {
1735
+ sanityCheckNumber: 'number',
1736
+ sanityCheckPhase: 'string',
1737
+ token: 'string',
1738
+ };
1739
+ }
1740
+ }
1741
+ exports.GetJobSanityCheckResultRequest = GetJobSanityCheckResultRequest;
1742
+ class GetJobSanityCheckResultResponseBody extends $tea.Model {
1743
+ constructor(map) {
1744
+ super(map);
1745
+ }
1746
+ static names() {
1747
+ return {
1748
+ jobId: 'JobId',
1749
+ requestID: 'RequestID',
1750
+ sanityCheckResult: 'SanityCheckResult',
1751
+ };
1752
+ }
1753
+ static types() {
1754
+ return {
1755
+ jobId: 'string',
1756
+ requestID: 'string',
1757
+ sanityCheckResult: { 'type': 'array', 'itemType': SanityCheckResultItem },
1758
+ };
1759
+ }
1760
+ }
1761
+ exports.GetJobSanityCheckResultResponseBody = GetJobSanityCheckResultResponseBody;
1762
+ class GetJobSanityCheckResultResponse extends $tea.Model {
1763
+ constructor(map) {
1764
+ super(map);
1765
+ }
1766
+ static names() {
1767
+ return {
1768
+ headers: 'headers',
1769
+ statusCode: 'statusCode',
1770
+ body: 'body',
1771
+ };
1772
+ }
1773
+ static types() {
1774
+ return {
1775
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1776
+ statusCode: 'number',
1777
+ body: GetJobSanityCheckResultResponseBody,
1778
+ };
1779
+ }
1780
+ }
1781
+ exports.GetJobSanityCheckResultResponse = GetJobSanityCheckResultResponse;
1634
1782
  class GetPodEventsRequest extends $tea.Model {
1635
1783
  constructor(map) {
1636
1784
  super(map);
@@ -2037,6 +2185,62 @@ class ListEcsSpecsResponse extends $tea.Model {
2037
2185
  }
2038
2186
  }
2039
2187
  exports.ListEcsSpecsResponse = ListEcsSpecsResponse;
2188
+ class ListJobSanityCheckResultsRequest extends $tea.Model {
2189
+ constructor(map) {
2190
+ super(map);
2191
+ }
2192
+ static names() {
2193
+ return {
2194
+ order: 'Order',
2195
+ };
2196
+ }
2197
+ static types() {
2198
+ return {
2199
+ order: 'string',
2200
+ };
2201
+ }
2202
+ }
2203
+ exports.ListJobSanityCheckResultsRequest = ListJobSanityCheckResultsRequest;
2204
+ class ListJobSanityCheckResultsResponseBody extends $tea.Model {
2205
+ constructor(map) {
2206
+ super(map);
2207
+ }
2208
+ static names() {
2209
+ return {
2210
+ requestID: 'RequestID',
2211
+ sanityCheckResults: 'SanityCheckResults',
2212
+ totalCount: 'TotalCount',
2213
+ };
2214
+ }
2215
+ static types() {
2216
+ return {
2217
+ requestID: 'string',
2218
+ sanityCheckResults: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': SanityCheckResultItem } },
2219
+ totalCount: 'number',
2220
+ };
2221
+ }
2222
+ }
2223
+ exports.ListJobSanityCheckResultsResponseBody = ListJobSanityCheckResultsResponseBody;
2224
+ class ListJobSanityCheckResultsResponse extends $tea.Model {
2225
+ constructor(map) {
2226
+ super(map);
2227
+ }
2228
+ static names() {
2229
+ return {
2230
+ headers: 'headers',
2231
+ statusCode: 'statusCode',
2232
+ body: 'body',
2233
+ };
2234
+ }
2235
+ static types() {
2236
+ return {
2237
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2238
+ statusCode: 'number',
2239
+ body: ListJobSanityCheckResultsResponseBody,
2240
+ };
2241
+ }
2242
+ }
2243
+ exports.ListJobSanityCheckResultsResponse = ListJobSanityCheckResultsResponse;
2040
2244
  class ListJobsRequest extends $tea.Model {
2041
2245
  constructor(map) {
2042
2246
  super(map);
@@ -2061,6 +2265,7 @@ class ListJobsRequest extends $tea.Model {
2061
2265
  status: 'Status',
2062
2266
  tags: 'Tags',
2063
2267
  userIdForFilter: 'UserIdForFilter',
2268
+ username: 'Username',
2064
2269
  workspaceId: 'WorkspaceId',
2065
2270
  };
2066
2271
  }
@@ -2084,6 +2289,7 @@ class ListJobsRequest extends $tea.Model {
2084
2289
  status: 'string',
2085
2290
  tags: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2086
2291
  userIdForFilter: 'string',
2292
+ username: 'string',
2087
2293
  workspaceId: 'string',
2088
2294
  };
2089
2295
  }
@@ -2113,6 +2319,7 @@ class ListJobsShrinkRequest extends $tea.Model {
2113
2319
  status: 'Status',
2114
2320
  tagsShrink: 'Tags',
2115
2321
  userIdForFilter: 'UserIdForFilter',
2322
+ username: 'Username',
2116
2323
  workspaceId: 'WorkspaceId',
2117
2324
  };
2118
2325
  }
@@ -2136,6 +2343,7 @@ class ListJobsShrinkRequest extends $tea.Model {
2136
2343
  status: 'string',
2137
2344
  tagsShrink: 'string',
2138
2345
  userIdForFilter: 'string',
2346
+ username: 'string',
2139
2347
  workspaceId: 'string',
2140
2348
  };
2141
2349
  }
@@ -3111,6 +3319,40 @@ class Client extends openapi_client_1.default {
3111
3319
  let headers = {};
3112
3320
  return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
3113
3321
  }
3322
+ async getJobSanityCheckResultWithOptions(JobId, request, headers, runtime) {
3323
+ tea_util_1.default.validateModel(request);
3324
+ let query = {};
3325
+ if (!tea_util_1.default.isUnset(request.sanityCheckNumber)) {
3326
+ query["SanityCheckNumber"] = request.sanityCheckNumber;
3327
+ }
3328
+ if (!tea_util_1.default.isUnset(request.sanityCheckPhase)) {
3329
+ query["SanityCheckPhase"] = request.sanityCheckPhase;
3330
+ }
3331
+ if (!tea_util_1.default.isUnset(request.token)) {
3332
+ query["Token"] = request.token;
3333
+ }
3334
+ let req = new $OpenApi.OpenApiRequest({
3335
+ headers: headers,
3336
+ query: openapi_util_1.default.query(query),
3337
+ });
3338
+ let params = new $OpenApi.Params({
3339
+ action: "GetJobSanityCheckResult",
3340
+ version: "2020-12-03",
3341
+ protocol: "HTTPS",
3342
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/sanitycheckresult`,
3343
+ method: "GET",
3344
+ authType: "AK",
3345
+ style: "ROA",
3346
+ reqBodyType: "json",
3347
+ bodyType: "json",
3348
+ });
3349
+ return $tea.cast(await this.callApi(params, req, runtime), new GetJobSanityCheckResultResponse({}));
3350
+ }
3351
+ async getJobSanityCheckResult(JobId, request) {
3352
+ let runtime = new $Util.RuntimeOptions({});
3353
+ let headers = {};
3354
+ return await this.getJobSanityCheckResultWithOptions(JobId, request, headers, runtime);
3355
+ }
3114
3356
  async getPodEventsWithOptions(JobId, PodId, request, headers, runtime) {
3115
3357
  tea_util_1.default.validateModel(request);
3116
3358
  let query = {};
@@ -3355,6 +3597,34 @@ class Client extends openapi_client_1.default {
3355
3597
  let headers = {};
3356
3598
  return await this.listEcsSpecsWithOptions(request, headers, runtime);
3357
3599
  }
3600
+ async listJobSanityCheckResultsWithOptions(JobId, request, headers, runtime) {
3601
+ tea_util_1.default.validateModel(request);
3602
+ let query = {};
3603
+ if (!tea_util_1.default.isUnset(request.order)) {
3604
+ query["Order"] = request.order;
3605
+ }
3606
+ let req = new $OpenApi.OpenApiRequest({
3607
+ headers: headers,
3608
+ query: openapi_util_1.default.query(query),
3609
+ });
3610
+ let params = new $OpenApi.Params({
3611
+ action: "ListJobSanityCheckResults",
3612
+ version: "2020-12-03",
3613
+ protocol: "HTTPS",
3614
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/sanitycheckresults`,
3615
+ method: "GET",
3616
+ authType: "AK",
3617
+ style: "ROA",
3618
+ reqBodyType: "json",
3619
+ bodyType: "json",
3620
+ });
3621
+ return $tea.cast(await this.callApi(params, req, runtime), new ListJobSanityCheckResultsResponse({}));
3622
+ }
3623
+ async listJobSanityCheckResults(JobId, request) {
3624
+ let runtime = new $Util.RuntimeOptions({});
3625
+ let headers = {};
3626
+ return await this.listJobSanityCheckResultsWithOptions(JobId, request, headers, runtime);
3627
+ }
3358
3628
  async listJobsWithOptions(tmpReq, headers, runtime) {
3359
3629
  tea_util_1.default.validateModel(tmpReq);
3360
3630
  let request = new ListJobsShrinkRequest({});
@@ -3417,6 +3687,9 @@ class Client extends openapi_client_1.default {
3417
3687
  if (!tea_util_1.default.isUnset(request.userIdForFilter)) {
3418
3688
  query["UserIdForFilter"] = request.userIdForFilter;
3419
3689
  }
3690
+ if (!tea_util_1.default.isUnset(request.username)) {
3691
+ query["Username"] = request.username;
3692
+ }
3420
3693
  if (!tea_util_1.default.isUnset(request.workspaceId)) {
3421
3694
  query["WorkspaceId"] = request.workspaceId;
3422
3695
  }