@alicloud/pai-dlc20201203 1.3.5 → 1.4.1

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
@@ -185,6 +185,7 @@ export declare class EcsSpec extends $tea.Model {
185
185
  instanceType?: string;
186
186
  isAvailable?: boolean;
187
187
  memory?: number;
188
+ resourceType?: string;
188
189
  static names(): {
189
190
  [key: string]: string;
190
191
  };
@@ -408,13 +409,16 @@ export declare class JobItem extends $tea.Model {
408
409
  resourceId?: string;
409
410
  resourceLevel?: string;
410
411
  resourceName?: string;
412
+ resourceType?: string;
411
413
  settings?: JobSettings;
412
414
  status?: string;
413
415
  subStatus?: string;
414
416
  thirdpartyLibDir?: string;
415
417
  thirdpartyLibs?: string[];
418
+ useOversoldResource?: boolean;
416
419
  userCommand?: string;
417
420
  userId?: string;
421
+ username?: string;
418
422
  workspaceId?: string;
419
423
  workspaceName?: string;
420
424
  static names(): {
@@ -667,6 +671,23 @@ export declare class Resources extends $tea.Model {
667
671
  [key: string]: any;
668
672
  });
669
673
  }
674
+ export declare class SanityCheckResultItem extends $tea.Model {
675
+ checkNumber?: number;
676
+ finishedAt?: string;
677
+ message?: string;
678
+ phase?: string;
679
+ startedAt?: string;
680
+ status?: string;
681
+ static names(): {
682
+ [key: string]: string;
683
+ };
684
+ static types(): {
685
+ [key: string]: any;
686
+ };
687
+ constructor(map?: {
688
+ [key: string]: any;
689
+ });
690
+ }
670
691
  export declare class SmartCache extends $tea.Model {
671
692
  cacheWorkerNum?: number;
672
693
  cacheWorkerSize?: number;
@@ -983,10 +1004,13 @@ export declare class GetJobResponseBody extends $tea.Model {
983
1004
  requestId?: string;
984
1005
  resourceId?: string;
985
1006
  resourceLevel?: string;
1007
+ resourceType?: string;
986
1008
  restartTimes?: string;
987
1009
  settings?: JobSettings;
988
1010
  status?: string;
1011
+ statusHistory?: StatusTransitionItem[];
989
1012
  subStatus?: string;
1013
+ tenantId?: string;
990
1014
  thirdpartyLibDir?: string;
991
1015
  thirdpartyLibs?: string[];
992
1016
  userCommand?: string;
@@ -1109,6 +1133,50 @@ export declare class GetJobMetricsResponse extends $tea.Model {
1109
1133
  [key: string]: any;
1110
1134
  });
1111
1135
  }
1136
+ export declare class GetJobSanityCheckResultRequest extends $tea.Model {
1137
+ sanityCheckNumber?: number;
1138
+ sanityCheckPhase?: string;
1139
+ token?: string;
1140
+ static names(): {
1141
+ [key: string]: string;
1142
+ };
1143
+ static types(): {
1144
+ [key: string]: any;
1145
+ };
1146
+ constructor(map?: {
1147
+ [key: string]: any;
1148
+ });
1149
+ }
1150
+ export declare class GetJobSanityCheckResultResponseBody extends $tea.Model {
1151
+ jobId?: string;
1152
+ requestID?: string;
1153
+ sanityCheckResult?: SanityCheckResultItem[];
1154
+ static names(): {
1155
+ [key: string]: string;
1156
+ };
1157
+ static types(): {
1158
+ [key: string]: any;
1159
+ };
1160
+ constructor(map?: {
1161
+ [key: string]: any;
1162
+ });
1163
+ }
1164
+ export declare class GetJobSanityCheckResultResponse extends $tea.Model {
1165
+ headers: {
1166
+ [key: string]: string;
1167
+ };
1168
+ statusCode: number;
1169
+ body: GetJobSanityCheckResultResponseBody;
1170
+ static names(): {
1171
+ [key: string]: string;
1172
+ };
1173
+ static types(): {
1174
+ [key: string]: any;
1175
+ };
1176
+ constructor(map?: {
1177
+ [key: string]: any;
1178
+ });
1179
+ }
1112
1180
  export declare class GetPodEventsRequest extends $tea.Model {
1113
1181
  endTime?: string;
1114
1182
  maxEventsNum?: number;
@@ -1362,9 +1430,11 @@ export declare class GetWebTerminalResponse extends $tea.Model {
1362
1430
  }
1363
1431
  export declare class ListEcsSpecsRequest extends $tea.Model {
1364
1432
  acceleratorType?: string;
1433
+ instanceTypes?: string;
1365
1434
  order?: string;
1366
1435
  pageNumber?: number;
1367
1436
  pageSize?: number;
1437
+ resourceType?: string;
1368
1438
  sortBy?: string;
1369
1439
  static names(): {
1370
1440
  [key: string]: string;
@@ -1406,6 +1476,48 @@ export declare class ListEcsSpecsResponse extends $tea.Model {
1406
1476
  [key: string]: any;
1407
1477
  });
1408
1478
  }
1479
+ export declare class ListJobSanityCheckResultsRequest extends $tea.Model {
1480
+ order?: string;
1481
+ static names(): {
1482
+ [key: string]: string;
1483
+ };
1484
+ static types(): {
1485
+ [key: string]: any;
1486
+ };
1487
+ constructor(map?: {
1488
+ [key: string]: any;
1489
+ });
1490
+ }
1491
+ export declare class ListJobSanityCheckResultsResponseBody extends $tea.Model {
1492
+ requestID?: string;
1493
+ sanityCheckResults?: SanityCheckResultItem[][];
1494
+ totalCount?: number;
1495
+ static names(): {
1496
+ [key: string]: string;
1497
+ };
1498
+ static types(): {
1499
+ [key: string]: any;
1500
+ };
1501
+ constructor(map?: {
1502
+ [key: string]: any;
1503
+ });
1504
+ }
1505
+ export declare class ListJobSanityCheckResultsResponse extends $tea.Model {
1506
+ headers: {
1507
+ [key: string]: string;
1508
+ };
1509
+ statusCode: number;
1510
+ body: ListJobSanityCheckResultsResponseBody;
1511
+ static names(): {
1512
+ [key: string]: string;
1513
+ };
1514
+ static types(): {
1515
+ [key: string]: any;
1516
+ };
1517
+ constructor(map?: {
1518
+ [key: string]: any;
1519
+ });
1520
+ }
1409
1521
  export declare class ListJobsRequest extends $tea.Model {
1410
1522
  businessUserId?: string;
1411
1523
  caller?: string;
@@ -1427,6 +1539,7 @@ export declare class ListJobsRequest extends $tea.Model {
1427
1539
  [key: string]: string;
1428
1540
  };
1429
1541
  userIdForFilter?: string;
1542
+ username?: string;
1430
1543
  workspaceId?: string;
1431
1544
  static names(): {
1432
1545
  [key: string]: string;
@@ -1457,6 +1570,7 @@ export declare class ListJobsShrinkRequest extends $tea.Model {
1457
1570
  status?: string;
1458
1571
  tagsShrink?: string;
1459
1572
  userIdForFilter?: string;
1573
+ username?: string;
1460
1574
  workspaceId?: string;
1461
1575
  static names(): {
1462
1576
  [key: string]: string;
@@ -1926,6 +2040,10 @@ export default class Client extends OpenApi {
1926
2040
  [key: string]: string;
1927
2041
  }, runtime: $Util.RuntimeOptions): Promise<GetJobMetricsResponse>;
1928
2042
  getJobMetrics(JobId: string, request: GetJobMetricsRequest): Promise<GetJobMetricsResponse>;
2043
+ getJobSanityCheckResultWithOptions(JobId: string, request: GetJobSanityCheckResultRequest, headers: {
2044
+ [key: string]: string;
2045
+ }, runtime: $Util.RuntimeOptions): Promise<GetJobSanityCheckResultResponse>;
2046
+ getJobSanityCheckResult(JobId: string, request: GetJobSanityCheckResultRequest): Promise<GetJobSanityCheckResultResponse>;
1929
2047
  getPodEventsWithOptions(JobId: string, PodId: string, request: GetPodEventsRequest, headers: {
1930
2048
  [key: string]: string;
1931
2049
  }, runtime: $Util.RuntimeOptions): Promise<GetPodEventsResponse>;
@@ -1954,6 +2072,10 @@ export default class Client extends OpenApi {
1954
2072
  [key: string]: string;
1955
2073
  }, runtime: $Util.RuntimeOptions): Promise<ListEcsSpecsResponse>;
1956
2074
  listEcsSpecs(request: ListEcsSpecsRequest): Promise<ListEcsSpecsResponse>;
2075
+ listJobSanityCheckResultsWithOptions(JobId: string, request: ListJobSanityCheckResultsRequest, headers: {
2076
+ [key: string]: string;
2077
+ }, runtime: $Util.RuntimeOptions): Promise<ListJobSanityCheckResultsResponse>;
2078
+ listJobSanityCheckResults(JobId: string, request: ListJobSanityCheckResultsRequest): Promise<ListJobSanityCheckResultsResponse>;
1957
2079
  listJobsWithOptions(tmpReq: ListJobsRequest, headers: {
1958
2080
  [key: string]: string;
1959
2081
  }, runtime: $Util.RuntimeOptions): Promise<ListJobsResponse>;
package/dist/client.js CHANGED
@@ -306,6 +306,7 @@ class EcsSpec extends $tea.Model {
306
306
  instanceType: 'InstanceType',
307
307
  isAvailable: 'IsAvailable',
308
308
  memory: 'Memory',
309
+ resourceType: 'ResourceType',
309
310
  };
310
311
  }
311
312
  static types() {
@@ -317,6 +318,7 @@ class EcsSpec extends $tea.Model {
317
318
  instanceType: 'string',
318
319
  isAvailable: 'boolean',
319
320
  memory: 'number',
321
+ resourceType: 'string',
320
322
  };
321
323
  }
322
324
  }
@@ -629,13 +631,16 @@ class JobItem extends $tea.Model {
629
631
  resourceId: 'ResourceId',
630
632
  resourceLevel: 'ResourceLevel',
631
633
  resourceName: 'ResourceName',
634
+ resourceType: 'ResourceType',
632
635
  settings: 'Settings',
633
636
  status: 'Status',
634
637
  subStatus: 'SubStatus',
635
638
  thirdpartyLibDir: 'ThirdpartyLibDir',
636
639
  thirdpartyLibs: 'ThirdpartyLibs',
640
+ useOversoldResource: 'UseOversoldResource',
637
641
  userCommand: 'UserCommand',
638
642
  userId: 'UserId',
643
+ username: 'Username',
639
644
  workspaceId: 'WorkspaceId',
640
645
  workspaceName: 'WorkspaceName',
641
646
  };
@@ -664,13 +669,16 @@ class JobItem extends $tea.Model {
664
669
  resourceId: 'string',
665
670
  resourceLevel: 'string',
666
671
  resourceName: 'string',
672
+ resourceType: 'string',
667
673
  settings: JobSettings,
668
674
  status: 'string',
669
675
  subStatus: 'string',
670
676
  thirdpartyLibDir: 'string',
671
677
  thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
678
+ useOversoldResource: 'boolean',
672
679
  userCommand: 'string',
673
680
  userId: 'string',
681
+ username: 'string',
674
682
  workspaceId: 'string',
675
683
  workspaceName: 'string',
676
684
  };
@@ -1029,6 +1037,32 @@ class Resources extends $tea.Model {
1029
1037
  }
1030
1038
  }
1031
1039
  exports.Resources = Resources;
1040
+ class SanityCheckResultItem extends $tea.Model {
1041
+ constructor(map) {
1042
+ super(map);
1043
+ }
1044
+ static names() {
1045
+ return {
1046
+ checkNumber: 'CheckNumber',
1047
+ finishedAt: 'FinishedAt',
1048
+ message: 'Message',
1049
+ phase: 'Phase',
1050
+ startedAt: 'StartedAt',
1051
+ status: 'Status',
1052
+ };
1053
+ }
1054
+ static types() {
1055
+ return {
1056
+ checkNumber: 'number',
1057
+ finishedAt: 'string',
1058
+ message: 'string',
1059
+ phase: 'string',
1060
+ startedAt: 'string',
1061
+ status: 'string',
1062
+ };
1063
+ }
1064
+ }
1065
+ exports.SanityCheckResultItem = SanityCheckResultItem;
1032
1066
  class SmartCache extends $tea.Model {
1033
1067
  constructor(map) {
1034
1068
  super(map);
@@ -1488,10 +1522,13 @@ class GetJobResponseBody extends $tea.Model {
1488
1522
  requestId: 'RequestId',
1489
1523
  resourceId: 'ResourceId',
1490
1524
  resourceLevel: 'ResourceLevel',
1525
+ resourceType: 'ResourceType',
1491
1526
  restartTimes: 'RestartTimes',
1492
1527
  settings: 'Settings',
1493
1528
  status: 'Status',
1529
+ statusHistory: 'StatusHistory',
1494
1530
  subStatus: 'SubStatus',
1531
+ tenantId: 'TenantId',
1495
1532
  thirdpartyLibDir: 'ThirdpartyLibDir',
1496
1533
  thirdpartyLibs: 'ThirdpartyLibs',
1497
1534
  userCommand: 'UserCommand',
@@ -1527,10 +1564,13 @@ class GetJobResponseBody extends $tea.Model {
1527
1564
  requestId: 'string',
1528
1565
  resourceId: 'string',
1529
1566
  resourceLevel: 'string',
1567
+ resourceType: 'string',
1530
1568
  restartTimes: 'string',
1531
1569
  settings: JobSettings,
1532
1570
  status: 'string',
1571
+ statusHistory: { 'type': 'array', 'itemType': StatusTransitionItem },
1533
1572
  subStatus: 'string',
1573
+ tenantId: 'string',
1534
1574
  thirdpartyLibDir: 'string',
1535
1575
  thirdpartyLibs: { 'type': 'array', 'itemType': 'string' },
1536
1576
  userCommand: 'string',
@@ -1685,6 +1725,66 @@ class GetJobMetricsResponse extends $tea.Model {
1685
1725
  }
1686
1726
  }
1687
1727
  exports.GetJobMetricsResponse = GetJobMetricsResponse;
1728
+ class GetJobSanityCheckResultRequest extends $tea.Model {
1729
+ constructor(map) {
1730
+ super(map);
1731
+ }
1732
+ static names() {
1733
+ return {
1734
+ sanityCheckNumber: 'SanityCheckNumber',
1735
+ sanityCheckPhase: 'SanityCheckPhase',
1736
+ token: 'Token',
1737
+ };
1738
+ }
1739
+ static types() {
1740
+ return {
1741
+ sanityCheckNumber: 'number',
1742
+ sanityCheckPhase: 'string',
1743
+ token: 'string',
1744
+ };
1745
+ }
1746
+ }
1747
+ exports.GetJobSanityCheckResultRequest = GetJobSanityCheckResultRequest;
1748
+ class GetJobSanityCheckResultResponseBody extends $tea.Model {
1749
+ constructor(map) {
1750
+ super(map);
1751
+ }
1752
+ static names() {
1753
+ return {
1754
+ jobId: 'JobId',
1755
+ requestID: 'RequestID',
1756
+ sanityCheckResult: 'SanityCheckResult',
1757
+ };
1758
+ }
1759
+ static types() {
1760
+ return {
1761
+ jobId: 'string',
1762
+ requestID: 'string',
1763
+ sanityCheckResult: { 'type': 'array', 'itemType': SanityCheckResultItem },
1764
+ };
1765
+ }
1766
+ }
1767
+ exports.GetJobSanityCheckResultResponseBody = GetJobSanityCheckResultResponseBody;
1768
+ class GetJobSanityCheckResultResponse extends $tea.Model {
1769
+ constructor(map) {
1770
+ super(map);
1771
+ }
1772
+ static names() {
1773
+ return {
1774
+ headers: 'headers',
1775
+ statusCode: 'statusCode',
1776
+ body: 'body',
1777
+ };
1778
+ }
1779
+ static types() {
1780
+ return {
1781
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1782
+ statusCode: 'number',
1783
+ body: GetJobSanityCheckResultResponseBody,
1784
+ };
1785
+ }
1786
+ }
1787
+ exports.GetJobSanityCheckResultResponse = GetJobSanityCheckResultResponse;
1688
1788
  class GetPodEventsRequest extends $tea.Model {
1689
1789
  constructor(map) {
1690
1790
  super(map);
@@ -2034,18 +2134,22 @@ class ListEcsSpecsRequest extends $tea.Model {
2034
2134
  static names() {
2035
2135
  return {
2036
2136
  acceleratorType: 'AcceleratorType',
2137
+ instanceTypes: 'InstanceTypes',
2037
2138
  order: 'Order',
2038
2139
  pageNumber: 'PageNumber',
2039
2140
  pageSize: 'PageSize',
2141
+ resourceType: 'ResourceType',
2040
2142
  sortBy: 'SortBy',
2041
2143
  };
2042
2144
  }
2043
2145
  static types() {
2044
2146
  return {
2045
2147
  acceleratorType: 'string',
2148
+ instanceTypes: 'string',
2046
2149
  order: 'string',
2047
2150
  pageNumber: 'number',
2048
2151
  pageSize: 'number',
2152
+ resourceType: 'string',
2049
2153
  sortBy: 'string',
2050
2154
  };
2051
2155
  }
@@ -2091,6 +2195,62 @@ class ListEcsSpecsResponse extends $tea.Model {
2091
2195
  }
2092
2196
  }
2093
2197
  exports.ListEcsSpecsResponse = ListEcsSpecsResponse;
2198
+ class ListJobSanityCheckResultsRequest extends $tea.Model {
2199
+ constructor(map) {
2200
+ super(map);
2201
+ }
2202
+ static names() {
2203
+ return {
2204
+ order: 'Order',
2205
+ };
2206
+ }
2207
+ static types() {
2208
+ return {
2209
+ order: 'string',
2210
+ };
2211
+ }
2212
+ }
2213
+ exports.ListJobSanityCheckResultsRequest = ListJobSanityCheckResultsRequest;
2214
+ class ListJobSanityCheckResultsResponseBody extends $tea.Model {
2215
+ constructor(map) {
2216
+ super(map);
2217
+ }
2218
+ static names() {
2219
+ return {
2220
+ requestID: 'RequestID',
2221
+ sanityCheckResults: 'SanityCheckResults',
2222
+ totalCount: 'TotalCount',
2223
+ };
2224
+ }
2225
+ static types() {
2226
+ return {
2227
+ requestID: 'string',
2228
+ sanityCheckResults: { 'type': 'array', 'itemType': { 'type': 'array', 'itemType': SanityCheckResultItem } },
2229
+ totalCount: 'number',
2230
+ };
2231
+ }
2232
+ }
2233
+ exports.ListJobSanityCheckResultsResponseBody = ListJobSanityCheckResultsResponseBody;
2234
+ class ListJobSanityCheckResultsResponse extends $tea.Model {
2235
+ constructor(map) {
2236
+ super(map);
2237
+ }
2238
+ static names() {
2239
+ return {
2240
+ headers: 'headers',
2241
+ statusCode: 'statusCode',
2242
+ body: 'body',
2243
+ };
2244
+ }
2245
+ static types() {
2246
+ return {
2247
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2248
+ statusCode: 'number',
2249
+ body: ListJobSanityCheckResultsResponseBody,
2250
+ };
2251
+ }
2252
+ }
2253
+ exports.ListJobSanityCheckResultsResponse = ListJobSanityCheckResultsResponse;
2094
2254
  class ListJobsRequest extends $tea.Model {
2095
2255
  constructor(map) {
2096
2256
  super(map);
@@ -2115,6 +2275,7 @@ class ListJobsRequest extends $tea.Model {
2115
2275
  status: 'Status',
2116
2276
  tags: 'Tags',
2117
2277
  userIdForFilter: 'UserIdForFilter',
2278
+ username: 'Username',
2118
2279
  workspaceId: 'WorkspaceId',
2119
2280
  };
2120
2281
  }
@@ -2138,6 +2299,7 @@ class ListJobsRequest extends $tea.Model {
2138
2299
  status: 'string',
2139
2300
  tags: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2140
2301
  userIdForFilter: 'string',
2302
+ username: 'string',
2141
2303
  workspaceId: 'string',
2142
2304
  };
2143
2305
  }
@@ -2167,6 +2329,7 @@ class ListJobsShrinkRequest extends $tea.Model {
2167
2329
  status: 'Status',
2168
2330
  tagsShrink: 'Tags',
2169
2331
  userIdForFilter: 'UserIdForFilter',
2332
+ username: 'Username',
2170
2333
  workspaceId: 'WorkspaceId',
2171
2334
  };
2172
2335
  }
@@ -2190,6 +2353,7 @@ class ListJobsShrinkRequest extends $tea.Model {
2190
2353
  status: 'string',
2191
2354
  tagsShrink: 'string',
2192
2355
  userIdForFilter: 'string',
2356
+ username: 'string',
2193
2357
  workspaceId: 'string',
2194
2358
  };
2195
2359
  }
@@ -3165,6 +3329,40 @@ class Client extends openapi_client_1.default {
3165
3329
  let headers = {};
3166
3330
  return await this.getJobMetricsWithOptions(JobId, request, headers, runtime);
3167
3331
  }
3332
+ async getJobSanityCheckResultWithOptions(JobId, request, headers, runtime) {
3333
+ tea_util_1.default.validateModel(request);
3334
+ let query = {};
3335
+ if (!tea_util_1.default.isUnset(request.sanityCheckNumber)) {
3336
+ query["SanityCheckNumber"] = request.sanityCheckNumber;
3337
+ }
3338
+ if (!tea_util_1.default.isUnset(request.sanityCheckPhase)) {
3339
+ query["SanityCheckPhase"] = request.sanityCheckPhase;
3340
+ }
3341
+ if (!tea_util_1.default.isUnset(request.token)) {
3342
+ query["Token"] = request.token;
3343
+ }
3344
+ let req = new $OpenApi.OpenApiRequest({
3345
+ headers: headers,
3346
+ query: openapi_util_1.default.query(query),
3347
+ });
3348
+ let params = new $OpenApi.Params({
3349
+ action: "GetJobSanityCheckResult",
3350
+ version: "2020-12-03",
3351
+ protocol: "HTTPS",
3352
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/sanitycheckresult`,
3353
+ method: "GET",
3354
+ authType: "AK",
3355
+ style: "ROA",
3356
+ reqBodyType: "json",
3357
+ bodyType: "json",
3358
+ });
3359
+ return $tea.cast(await this.callApi(params, req, runtime), new GetJobSanityCheckResultResponse({}));
3360
+ }
3361
+ async getJobSanityCheckResult(JobId, request) {
3362
+ let runtime = new $Util.RuntimeOptions({});
3363
+ let headers = {};
3364
+ return await this.getJobSanityCheckResultWithOptions(JobId, request, headers, runtime);
3365
+ }
3168
3366
  async getPodEventsWithOptions(JobId, PodId, request, headers, runtime) {
3169
3367
  tea_util_1.default.validateModel(request);
3170
3368
  let query = {};
@@ -3375,6 +3573,9 @@ class Client extends openapi_client_1.default {
3375
3573
  if (!tea_util_1.default.isUnset(request.acceleratorType)) {
3376
3574
  query["AcceleratorType"] = request.acceleratorType;
3377
3575
  }
3576
+ if (!tea_util_1.default.isUnset(request.instanceTypes)) {
3577
+ query["InstanceTypes"] = request.instanceTypes;
3578
+ }
3378
3579
  if (!tea_util_1.default.isUnset(request.order)) {
3379
3580
  query["Order"] = request.order;
3380
3581
  }
@@ -3384,6 +3585,9 @@ class Client extends openapi_client_1.default {
3384
3585
  if (!tea_util_1.default.isUnset(request.pageSize)) {
3385
3586
  query["PageSize"] = request.pageSize;
3386
3587
  }
3588
+ if (!tea_util_1.default.isUnset(request.resourceType)) {
3589
+ query["ResourceType"] = request.resourceType;
3590
+ }
3387
3591
  if (!tea_util_1.default.isUnset(request.sortBy)) {
3388
3592
  query["SortBy"] = request.sortBy;
3389
3593
  }
@@ -3409,6 +3613,34 @@ class Client extends openapi_client_1.default {
3409
3613
  let headers = {};
3410
3614
  return await this.listEcsSpecsWithOptions(request, headers, runtime);
3411
3615
  }
3616
+ async listJobSanityCheckResultsWithOptions(JobId, request, headers, runtime) {
3617
+ tea_util_1.default.validateModel(request);
3618
+ let query = {};
3619
+ if (!tea_util_1.default.isUnset(request.order)) {
3620
+ query["Order"] = request.order;
3621
+ }
3622
+ let req = new $OpenApi.OpenApiRequest({
3623
+ headers: headers,
3624
+ query: openapi_util_1.default.query(query),
3625
+ });
3626
+ let params = new $OpenApi.Params({
3627
+ action: "ListJobSanityCheckResults",
3628
+ version: "2020-12-03",
3629
+ protocol: "HTTPS",
3630
+ pathname: `/api/v1/jobs/${openapi_util_1.default.getEncodeParam(JobId)}/sanitycheckresults`,
3631
+ method: "GET",
3632
+ authType: "AK",
3633
+ style: "ROA",
3634
+ reqBodyType: "json",
3635
+ bodyType: "json",
3636
+ });
3637
+ return $tea.cast(await this.callApi(params, req, runtime), new ListJobSanityCheckResultsResponse({}));
3638
+ }
3639
+ async listJobSanityCheckResults(JobId, request) {
3640
+ let runtime = new $Util.RuntimeOptions({});
3641
+ let headers = {};
3642
+ return await this.listJobSanityCheckResultsWithOptions(JobId, request, headers, runtime);
3643
+ }
3412
3644
  async listJobsWithOptions(tmpReq, headers, runtime) {
3413
3645
  tea_util_1.default.validateModel(tmpReq);
3414
3646
  let request = new ListJobsShrinkRequest({});
@@ -3471,6 +3703,9 @@ class Client extends openapi_client_1.default {
3471
3703
  if (!tea_util_1.default.isUnset(request.userIdForFilter)) {
3472
3704
  query["UserIdForFilter"] = request.userIdForFilter;
3473
3705
  }
3706
+ if (!tea_util_1.default.isUnset(request.username)) {
3707
+ query["Username"] = request.username;
3708
+ }
3474
3709
  if (!tea_util_1.default.isUnset(request.workspaceId)) {
3475
3710
  query["WorkspaceId"] = request.workspaceId;
3476
3711
  }