@alicloud/ehpcinstant20230701 1.2.0 → 1.3.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/src/client.ts CHANGED
@@ -309,6 +309,129 @@ export class CreateJobResponse extends $tea.Model {
309
309
  }
310
310
  }
311
311
 
312
+ export class CreatePoolRequest extends $tea.Model {
313
+ /**
314
+ * @remarks
315
+ * This parameter is required.
316
+ *
317
+ * @example
318
+ * PoolTest
319
+ */
320
+ poolName?: string;
321
+ /**
322
+ * @example
323
+ * 1
324
+ */
325
+ priority?: number;
326
+ resourceLimits?: CreatePoolRequestResourceLimits;
327
+ static names(): { [key: string]: string } {
328
+ return {
329
+ poolName: 'PoolName',
330
+ priority: 'Priority',
331
+ resourceLimits: 'ResourceLimits',
332
+ };
333
+ }
334
+
335
+ static types(): { [key: string]: any } {
336
+ return {
337
+ poolName: 'string',
338
+ priority: 'number',
339
+ resourceLimits: CreatePoolRequestResourceLimits,
340
+ };
341
+ }
342
+
343
+ constructor(map?: { [key: string]: any }) {
344
+ super(map);
345
+ }
346
+ }
347
+
348
+ export class CreatePoolShrinkRequest extends $tea.Model {
349
+ /**
350
+ * @remarks
351
+ * This parameter is required.
352
+ *
353
+ * @example
354
+ * PoolTest
355
+ */
356
+ poolName?: string;
357
+ /**
358
+ * @example
359
+ * 1
360
+ */
361
+ priority?: number;
362
+ resourceLimitsShrink?: string;
363
+ static names(): { [key: string]: string } {
364
+ return {
365
+ poolName: 'PoolName',
366
+ priority: 'Priority',
367
+ resourceLimitsShrink: 'ResourceLimits',
368
+ };
369
+ }
370
+
371
+ static types(): { [key: string]: any } {
372
+ return {
373
+ poolName: 'string',
374
+ priority: 'number',
375
+ resourceLimitsShrink: 'string',
376
+ };
377
+ }
378
+
379
+ constructor(map?: { [key: string]: any }) {
380
+ super(map);
381
+ }
382
+ }
383
+
384
+ export class CreatePoolResponseBody extends $tea.Model {
385
+ /**
386
+ * @remarks
387
+ * Id of the request
388
+ *
389
+ * @example
390
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
391
+ */
392
+ requestId?: string;
393
+ static names(): { [key: string]: string } {
394
+ return {
395
+ requestId: 'RequestId',
396
+ };
397
+ }
398
+
399
+ static types(): { [key: string]: any } {
400
+ return {
401
+ requestId: 'string',
402
+ };
403
+ }
404
+
405
+ constructor(map?: { [key: string]: any }) {
406
+ super(map);
407
+ }
408
+ }
409
+
410
+ export class CreatePoolResponse extends $tea.Model {
411
+ headers?: { [key: string]: string };
412
+ statusCode?: number;
413
+ body?: CreatePoolResponseBody;
414
+ static names(): { [key: string]: string } {
415
+ return {
416
+ headers: 'headers',
417
+ statusCode: 'statusCode',
418
+ body: 'body',
419
+ };
420
+ }
421
+
422
+ static types(): { [key: string]: any } {
423
+ return {
424
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
425
+ statusCode: 'number',
426
+ body: CreatePoolResponseBody,
427
+ };
428
+ }
429
+
430
+ constructor(map?: { [key: string]: any }) {
431
+ super(map);
432
+ }
433
+ }
434
+
312
435
  export class DeleteJobsRequest extends $tea.Model {
313
436
  executorIds?: string[];
314
437
  jobSpec?: DeleteJobsRequestJobSpec[];
@@ -401,6 +524,83 @@ export class DeleteJobsResponse extends $tea.Model {
401
524
  }
402
525
  }
403
526
 
527
+ export class DeletePoolRequest extends $tea.Model {
528
+ /**
529
+ * @remarks
530
+ * This parameter is required.
531
+ *
532
+ * @example
533
+ * PoolTest
534
+ */
535
+ poolName?: string;
536
+ static names(): { [key: string]: string } {
537
+ return {
538
+ poolName: 'PoolName',
539
+ };
540
+ }
541
+
542
+ static types(): { [key: string]: any } {
543
+ return {
544
+ poolName: 'string',
545
+ };
546
+ }
547
+
548
+ constructor(map?: { [key: string]: any }) {
549
+ super(map);
550
+ }
551
+ }
552
+
553
+ export class DeletePoolResponseBody extends $tea.Model {
554
+ /**
555
+ * @remarks
556
+ * Id of the request
557
+ *
558
+ * @example
559
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
560
+ */
561
+ requestId?: string;
562
+ static names(): { [key: string]: string } {
563
+ return {
564
+ requestId: 'RequestId',
565
+ };
566
+ }
567
+
568
+ static types(): { [key: string]: any } {
569
+ return {
570
+ requestId: 'string',
571
+ };
572
+ }
573
+
574
+ constructor(map?: { [key: string]: any }) {
575
+ super(map);
576
+ }
577
+ }
578
+
579
+ export class DeletePoolResponse extends $tea.Model {
580
+ headers?: { [key: string]: string };
581
+ statusCode?: number;
582
+ body?: DeletePoolResponseBody;
583
+ static names(): { [key: string]: string } {
584
+ return {
585
+ headers: 'headers',
586
+ statusCode: 'statusCode',
587
+ body: 'body',
588
+ };
589
+ }
590
+
591
+ static types(): { [key: string]: any } {
592
+ return {
593
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
594
+ statusCode: 'number',
595
+ body: DeletePoolResponseBody,
596
+ };
597
+ }
598
+
599
+ constructor(map?: { [key: string]: any }) {
600
+ super(map);
601
+ }
602
+ }
603
+
404
604
  export class DescribeJobMetricDataRequest extends $tea.Model {
405
605
  arrayIndex?: number[];
406
606
  /**
@@ -964,6 +1164,86 @@ export class GetJobResponse extends $tea.Model {
964
1164
  }
965
1165
  }
966
1166
 
1167
+ export class GetPoolRequest extends $tea.Model {
1168
+ /**
1169
+ * @remarks
1170
+ * This parameter is required.
1171
+ *
1172
+ * @example
1173
+ * PoolTest
1174
+ */
1175
+ poolName?: string;
1176
+ static names(): { [key: string]: string } {
1177
+ return {
1178
+ poolName: 'PoolName',
1179
+ };
1180
+ }
1181
+
1182
+ static types(): { [key: string]: any } {
1183
+ return {
1184
+ poolName: 'string',
1185
+ };
1186
+ }
1187
+
1188
+ constructor(map?: { [key: string]: any }) {
1189
+ super(map);
1190
+ }
1191
+ }
1192
+
1193
+ export class GetPoolResponseBody extends $tea.Model {
1194
+ poolInfo?: GetPoolResponseBodyPoolInfo;
1195
+ /**
1196
+ * @remarks
1197
+ * Id of the request
1198
+ *
1199
+ * @example
1200
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1201
+ */
1202
+ requestId?: string;
1203
+ static names(): { [key: string]: string } {
1204
+ return {
1205
+ poolInfo: 'PoolInfo',
1206
+ requestId: 'RequestId',
1207
+ };
1208
+ }
1209
+
1210
+ static types(): { [key: string]: any } {
1211
+ return {
1212
+ poolInfo: GetPoolResponseBodyPoolInfo,
1213
+ requestId: 'string',
1214
+ };
1215
+ }
1216
+
1217
+ constructor(map?: { [key: string]: any }) {
1218
+ super(map);
1219
+ }
1220
+ }
1221
+
1222
+ export class GetPoolResponse extends $tea.Model {
1223
+ headers?: { [key: string]: string };
1224
+ statusCode?: number;
1225
+ body?: GetPoolResponseBody;
1226
+ static names(): { [key: string]: string } {
1227
+ return {
1228
+ headers: 'headers',
1229
+ statusCode: 'statusCode',
1230
+ body: 'body',
1231
+ };
1232
+ }
1233
+
1234
+ static types(): { [key: string]: any } {
1235
+ return {
1236
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1237
+ statusCode: 'number',
1238
+ body: GetPoolResponseBody,
1239
+ };
1240
+ }
1241
+
1242
+ constructor(map?: { [key: string]: any }) {
1243
+ super(map);
1244
+ }
1245
+ }
1246
+
967
1247
  export class ListExecutorsRequest extends $tea.Model {
968
1248
  filter?: ListExecutorsRequestFilter;
969
1249
  /**
@@ -1548,36 +1828,177 @@ export class ListJobsResponse extends $tea.Model {
1548
1828
  }
1549
1829
  }
1550
1830
 
1551
- export class ListTagResourcesRequest extends $tea.Model {
1552
- /**
1553
- * @example
1554
- * 20
1555
- */
1556
- maxResult?: number;
1831
+ export class ListPoolsRequest extends $tea.Model {
1832
+ filter?: ListPoolsRequestFilter;
1557
1833
  /**
1558
1834
  * @example
1559
- * 1d2db86scXXXXXXXXXX
1835
+ * 1
1560
1836
  */
1561
- nextToken?: string;
1562
- resourceId?: string[];
1837
+ pageNumber?: number;
1563
1838
  /**
1564
- * @remarks
1565
- * This parameter is required.
1566
- *
1567
1839
  * @example
1568
- * Job
1840
+ * 10
1569
1841
  */
1570
- resourceType?: string;
1571
- tag?: ListTagResourcesRequestTag[];
1842
+ pageSize?: number;
1572
1843
  static names(): { [key: string]: string } {
1573
1844
  return {
1574
- maxResult: 'MaxResult',
1575
- nextToken: 'NextToken',
1576
- resourceId: 'ResourceId',
1577
- resourceType: 'ResourceType',
1578
- tag: 'Tag',
1579
- };
1580
- }
1845
+ filter: 'Filter',
1846
+ pageNumber: 'PageNumber',
1847
+ pageSize: 'PageSize',
1848
+ };
1849
+ }
1850
+
1851
+ static types(): { [key: string]: any } {
1852
+ return {
1853
+ filter: ListPoolsRequestFilter,
1854
+ pageNumber: 'number',
1855
+ pageSize: 'number',
1856
+ };
1857
+ }
1858
+
1859
+ constructor(map?: { [key: string]: any }) {
1860
+ super(map);
1861
+ }
1862
+ }
1863
+
1864
+ export class ListPoolsShrinkRequest extends $tea.Model {
1865
+ filterShrink?: string;
1866
+ /**
1867
+ * @example
1868
+ * 1
1869
+ */
1870
+ pageNumber?: number;
1871
+ /**
1872
+ * @example
1873
+ * 10
1874
+ */
1875
+ pageSize?: number;
1876
+ static names(): { [key: string]: string } {
1877
+ return {
1878
+ filterShrink: 'Filter',
1879
+ pageNumber: 'PageNumber',
1880
+ pageSize: 'PageSize',
1881
+ };
1882
+ }
1883
+
1884
+ static types(): { [key: string]: any } {
1885
+ return {
1886
+ filterShrink: 'string',
1887
+ pageNumber: 'number',
1888
+ pageSize: 'number',
1889
+ };
1890
+ }
1891
+
1892
+ constructor(map?: { [key: string]: any }) {
1893
+ super(map);
1894
+ }
1895
+ }
1896
+
1897
+ export class ListPoolsResponseBody extends $tea.Model {
1898
+ /**
1899
+ * @example
1900
+ * 1
1901
+ */
1902
+ pageNumber?: number;
1903
+ /**
1904
+ * @example
1905
+ * 10
1906
+ */
1907
+ pageSize?: number;
1908
+ poolList?: ListPoolsResponseBodyPoolList[];
1909
+ /**
1910
+ * @remarks
1911
+ * Id of the request
1912
+ *
1913
+ * @example
1914
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1915
+ */
1916
+ requestId?: string;
1917
+ /**
1918
+ * @example
1919
+ * 2
1920
+ */
1921
+ totalCount?: number;
1922
+ static names(): { [key: string]: string } {
1923
+ return {
1924
+ pageNumber: 'PageNumber',
1925
+ pageSize: 'PageSize',
1926
+ poolList: 'PoolList',
1927
+ requestId: 'RequestId',
1928
+ totalCount: 'TotalCount',
1929
+ };
1930
+ }
1931
+
1932
+ static types(): { [key: string]: any } {
1933
+ return {
1934
+ pageNumber: 'number',
1935
+ pageSize: 'number',
1936
+ poolList: { 'type': 'array', 'itemType': ListPoolsResponseBodyPoolList },
1937
+ requestId: 'string',
1938
+ totalCount: 'number',
1939
+ };
1940
+ }
1941
+
1942
+ constructor(map?: { [key: string]: any }) {
1943
+ super(map);
1944
+ }
1945
+ }
1946
+
1947
+ export class ListPoolsResponse extends $tea.Model {
1948
+ headers?: { [key: string]: string };
1949
+ statusCode?: number;
1950
+ body?: ListPoolsResponseBody;
1951
+ static names(): { [key: string]: string } {
1952
+ return {
1953
+ headers: 'headers',
1954
+ statusCode: 'statusCode',
1955
+ body: 'body',
1956
+ };
1957
+ }
1958
+
1959
+ static types(): { [key: string]: any } {
1960
+ return {
1961
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1962
+ statusCode: 'number',
1963
+ body: ListPoolsResponseBody,
1964
+ };
1965
+ }
1966
+
1967
+ constructor(map?: { [key: string]: any }) {
1968
+ super(map);
1969
+ }
1970
+ }
1971
+
1972
+ export class ListTagResourcesRequest extends $tea.Model {
1973
+ /**
1974
+ * @example
1975
+ * 20
1976
+ */
1977
+ maxResult?: number;
1978
+ /**
1979
+ * @example
1980
+ * 1d2db86scXXXXXXXXXX
1981
+ */
1982
+ nextToken?: string;
1983
+ resourceId?: string[];
1984
+ /**
1985
+ * @remarks
1986
+ * This parameter is required.
1987
+ *
1988
+ * @example
1989
+ * Job
1990
+ */
1991
+ resourceType?: string;
1992
+ tag?: ListTagResourcesRequestTag[];
1993
+ static names(): { [key: string]: string } {
1994
+ return {
1995
+ maxResult: 'MaxResult',
1996
+ nextToken: 'NextToken',
1997
+ resourceId: 'ResourceId',
1998
+ resourceType: 'ResourceType',
1999
+ tag: 'Tag',
2000
+ };
2001
+ }
1581
2002
 
1582
2003
  static types(): { [key: string]: any } {
1583
2004
  return {
@@ -1915,6 +2336,129 @@ export class UnTagResourcesResponse extends $tea.Model {
1915
2336
  }
1916
2337
  }
1917
2338
 
2339
+ export class UpdatePoolRequest extends $tea.Model {
2340
+ /**
2341
+ * @remarks
2342
+ * This parameter is required.
2343
+ *
2344
+ * @example
2345
+ * PoolTest
2346
+ */
2347
+ poolName?: string;
2348
+ /**
2349
+ * @example
2350
+ * 1
2351
+ */
2352
+ priority?: number;
2353
+ resourceLimits?: UpdatePoolRequestResourceLimits;
2354
+ static names(): { [key: string]: string } {
2355
+ return {
2356
+ poolName: 'PoolName',
2357
+ priority: 'Priority',
2358
+ resourceLimits: 'ResourceLimits',
2359
+ };
2360
+ }
2361
+
2362
+ static types(): { [key: string]: any } {
2363
+ return {
2364
+ poolName: 'string',
2365
+ priority: 'number',
2366
+ resourceLimits: UpdatePoolRequestResourceLimits,
2367
+ };
2368
+ }
2369
+
2370
+ constructor(map?: { [key: string]: any }) {
2371
+ super(map);
2372
+ }
2373
+ }
2374
+
2375
+ export class UpdatePoolShrinkRequest extends $tea.Model {
2376
+ /**
2377
+ * @remarks
2378
+ * This parameter is required.
2379
+ *
2380
+ * @example
2381
+ * PoolTest
2382
+ */
2383
+ poolName?: string;
2384
+ /**
2385
+ * @example
2386
+ * 1
2387
+ */
2388
+ priority?: number;
2389
+ resourceLimitsShrink?: string;
2390
+ static names(): { [key: string]: string } {
2391
+ return {
2392
+ poolName: 'PoolName',
2393
+ priority: 'Priority',
2394
+ resourceLimitsShrink: 'ResourceLimits',
2395
+ };
2396
+ }
2397
+
2398
+ static types(): { [key: string]: any } {
2399
+ return {
2400
+ poolName: 'string',
2401
+ priority: 'number',
2402
+ resourceLimitsShrink: 'string',
2403
+ };
2404
+ }
2405
+
2406
+ constructor(map?: { [key: string]: any }) {
2407
+ super(map);
2408
+ }
2409
+ }
2410
+
2411
+ export class UpdatePoolResponseBody extends $tea.Model {
2412
+ /**
2413
+ * @remarks
2414
+ * Id of the request
2415
+ *
2416
+ * @example
2417
+ * 04F0F334-1335-436C-A1D7-6C044FE7****
2418
+ */
2419
+ requestId?: string;
2420
+ static names(): { [key: string]: string } {
2421
+ return {
2422
+ requestId: 'RequestId',
2423
+ };
2424
+ }
2425
+
2426
+ static types(): { [key: string]: any } {
2427
+ return {
2428
+ requestId: 'string',
2429
+ };
2430
+ }
2431
+
2432
+ constructor(map?: { [key: string]: any }) {
2433
+ super(map);
2434
+ }
2435
+ }
2436
+
2437
+ export class UpdatePoolResponse extends $tea.Model {
2438
+ headers?: { [key: string]: string };
2439
+ statusCode?: number;
2440
+ body?: UpdatePoolResponseBody;
2441
+ static names(): { [key: string]: string } {
2442
+ return {
2443
+ headers: 'headers',
2444
+ statusCode: 'statusCode',
2445
+ body: 'body',
2446
+ };
2447
+ }
2448
+
2449
+ static types(): { [key: string]: any } {
2450
+ return {
2451
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2452
+ statusCode: 'number',
2453
+ body: UpdatePoolResponseBody,
2454
+ };
2455
+ }
2456
+
2457
+ constructor(map?: { [key: string]: any }) {
2458
+ super(map);
2459
+ }
2460
+ }
2461
+
1918
2462
  export class AddImageRequestContainerImageSpecRegistryCredential extends $tea.Model {
1919
2463
  /**
1920
2464
  * @example
@@ -2486,6 +3030,29 @@ export class CreateJobResponseBodyTasks extends $tea.Model {
2486
3030
  }
2487
3031
  }
2488
3032
 
3033
+ export class CreatePoolRequestResourceLimits extends $tea.Model {
3034
+ /**
3035
+ * @example
3036
+ * 2000
3037
+ */
3038
+ maxExectorNum?: number;
3039
+ static names(): { [key: string]: string } {
3040
+ return {
3041
+ maxExectorNum: 'MaxExectorNum',
3042
+ };
3043
+ }
3044
+
3045
+ static types(): { [key: string]: any } {
3046
+ return {
3047
+ maxExectorNum: 'number',
3048
+ };
3049
+ }
3050
+
3051
+ constructor(map?: { [key: string]: any }) {
3052
+ super(map);
3053
+ }
3054
+ }
3055
+
2489
3056
  export class DeleteJobsRequestJobSpecTaskSpec extends $tea.Model {
2490
3057
  arrayIndex?: number[];
2491
3058
  /**
@@ -3290,6 +3857,85 @@ export class GetJobResponseBodyJobInfo extends $tea.Model {
3290
3857
  }
3291
3858
  }
3292
3859
 
3860
+ export class GetPoolResponseBodyPoolInfo extends $tea.Model {
3861
+ /**
3862
+ * @example
3863
+ * 2024-12-01 20:00:00
3864
+ */
3865
+ createTime?: string;
3866
+ /**
3867
+ * @example
3868
+ * 1
3869
+ */
3870
+ exectorUsage?: number;
3871
+ /**
3872
+ * @example
3873
+ * true
3874
+ */
3875
+ isDefault?: boolean;
3876
+ /**
3877
+ * @example
3878
+ * 2000
3879
+ */
3880
+ maxExectorNum?: number;
3881
+ /**
3882
+ * @example
3883
+ * PoolTest
3884
+ */
3885
+ poolName?: string;
3886
+ /**
3887
+ * @example
3888
+ * 1
3889
+ */
3890
+ priority?: number;
3891
+ /**
3892
+ * @example
3893
+ * Fails to *** pool: ***.
3894
+ */
3895
+ reason?: string;
3896
+ /**
3897
+ * @example
3898
+ * Working
3899
+ */
3900
+ status?: string;
3901
+ /**
3902
+ * @example
3903
+ * 2024-12-01 20:00:00
3904
+ */
3905
+ updateTime?: string;
3906
+ static names(): { [key: string]: string } {
3907
+ return {
3908
+ createTime: 'CreateTime',
3909
+ exectorUsage: 'ExectorUsage',
3910
+ isDefault: 'IsDefault',
3911
+ maxExectorNum: 'MaxExectorNum',
3912
+ poolName: 'PoolName',
3913
+ priority: 'Priority',
3914
+ reason: 'Reason',
3915
+ status: 'Status',
3916
+ updateTime: 'UpdateTime',
3917
+ };
3918
+ }
3919
+
3920
+ static types(): { [key: string]: any } {
3921
+ return {
3922
+ createTime: 'string',
3923
+ exectorUsage: 'number',
3924
+ isDefault: 'boolean',
3925
+ maxExectorNum: 'number',
3926
+ poolName: 'string',
3927
+ priority: 'number',
3928
+ reason: 'string',
3929
+ status: 'string',
3930
+ updateTime: 'string',
3931
+ };
3932
+ }
3933
+
3934
+ constructor(map?: { [key: string]: any }) {
3935
+ super(map);
3936
+ }
3937
+ }
3938
+
3293
3939
  export class ListExecutorsRequestFilter extends $tea.Model {
3294
3940
  executorIds?: string[];
3295
3941
  ipAddresses?: string[];
@@ -3555,6 +4201,7 @@ export class ListImagesResponseBodyImages extends $tea.Model {
3555
4201
  * v1.0
3556
4202
  */
3557
4203
  version?: string;
4204
+ weight?: number;
3558
4205
  static names(): { [key: string]: string } {
3559
4206
  return {
3560
4207
  appId: 'AppId',
@@ -3567,6 +4214,7 @@ export class ListImagesResponseBodyImages extends $tea.Model {
3567
4214
  osTag: 'OsTag',
3568
4215
  updateTime: 'UpdateTime',
3569
4216
  version: 'Version',
4217
+ weight: 'Weight',
3570
4218
  };
3571
4219
  }
3572
4220
 
@@ -3582,6 +4230,7 @@ export class ListImagesResponseBodyImages extends $tea.Model {
3582
4230
  osTag: 'string',
3583
4231
  updateTime: 'string',
3584
4232
  version: 'string',
4233
+ weight: 'number',
3585
4234
  };
3586
4235
  }
3587
4236
 
@@ -3844,71 +4493,158 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
3844
4493
  jobDescription?: string;
3845
4494
  /**
3846
4495
  * @example
3847
- * job-xxx
4496
+ * job-xxx
4497
+ */
4498
+ jobId?: string;
4499
+ /**
4500
+ * @example
4501
+ * testJob
4502
+ */
4503
+ jobName?: string;
4504
+ /**
4505
+ * @example
4506
+ * 129**********
4507
+ */
4508
+ ownerUid?: string;
4509
+ /**
4510
+ * @example
4511
+ * 2024-01-25 12:29:23
4512
+ */
4513
+ startTime?: string;
4514
+ /**
4515
+ * @example
4516
+ * Running
4517
+ */
4518
+ status?: string;
4519
+ tags?: ListJobsResponseBodyJobListTags[];
4520
+ /**
4521
+ * @example
4522
+ * 1
4523
+ */
4524
+ taskCount?: number;
4525
+ /**
4526
+ * @example
4527
+ * true
4528
+ */
4529
+ taskSustainable?: boolean;
4530
+ static names(): { [key: string]: string } {
4531
+ return {
4532
+ createTime: 'CreateTime',
4533
+ endTime: 'EndTime',
4534
+ executorCount: 'ExecutorCount',
4535
+ jobDescription: 'JobDescription',
4536
+ jobId: 'JobId',
4537
+ jobName: 'JobName',
4538
+ ownerUid: 'OwnerUid',
4539
+ startTime: 'StartTime',
4540
+ status: 'Status',
4541
+ tags: 'Tags',
4542
+ taskCount: 'TaskCount',
4543
+ taskSustainable: 'TaskSustainable',
4544
+ };
4545
+ }
4546
+
4547
+ static types(): { [key: string]: any } {
4548
+ return {
4549
+ createTime: 'string',
4550
+ endTime: 'string',
4551
+ executorCount: 'number',
4552
+ jobDescription: 'string',
4553
+ jobId: 'string',
4554
+ jobName: 'string',
4555
+ ownerUid: 'string',
4556
+ startTime: 'string',
4557
+ status: 'string',
4558
+ tags: { 'type': 'array', 'itemType': ListJobsResponseBodyJobListTags },
4559
+ taskCount: 'number',
4560
+ taskSustainable: 'boolean',
4561
+ };
4562
+ }
4563
+
4564
+ constructor(map?: { [key: string]: any }) {
4565
+ super(map);
4566
+ }
4567
+ }
4568
+
4569
+ export class ListPoolsRequestFilter extends $tea.Model {
4570
+ poolName?: string[];
4571
+ status?: string[];
4572
+ /**
4573
+ * @example
4574
+ * 1703819914
3848
4575
  */
3849
- jobId?: string;
4576
+ timeCreatedAfter?: number;
3850
4577
  /**
3851
4578
  * @example
3852
- * testJob
4579
+ * 1703820113
3853
4580
  */
3854
- jobName?: string;
4581
+ timeCreatedBefore?: number;
4582
+ static names(): { [key: string]: string } {
4583
+ return {
4584
+ poolName: 'PoolName',
4585
+ status: 'Status',
4586
+ timeCreatedAfter: 'TimeCreatedAfter',
4587
+ timeCreatedBefore: 'TimeCreatedBefore',
4588
+ };
4589
+ }
4590
+
4591
+ static types(): { [key: string]: any } {
4592
+ return {
4593
+ poolName: { 'type': 'array', 'itemType': 'string' },
4594
+ status: { 'type': 'array', 'itemType': 'string' },
4595
+ timeCreatedAfter: 'number',
4596
+ timeCreatedBefore: 'number',
4597
+ };
4598
+ }
4599
+
4600
+ constructor(map?: { [key: string]: any }) {
4601
+ super(map);
4602
+ }
4603
+ }
4604
+
4605
+ export class ListPoolsResponseBodyPoolList extends $tea.Model {
3855
4606
  /**
3856
4607
  * @example
3857
- * 129**********
4608
+ * true
3858
4609
  */
3859
- ownerUid?: string;
4610
+ isDefault?: boolean;
3860
4611
  /**
3861
4612
  * @example
3862
- * 2024-01-25 12:29:23
4613
+ * 2000
3863
4614
  */
3864
- startTime?: string;
4615
+ maxExectorNum?: number;
3865
4616
  /**
3866
4617
  * @example
3867
- * Running
4618
+ * PoolTest
3868
4619
  */
3869
- status?: string;
3870
- tags?: ListJobsResponseBodyJobListTags[];
4620
+ poolName?: string;
3871
4621
  /**
3872
4622
  * @example
3873
4623
  * 1
3874
4624
  */
3875
- taskCount?: number;
4625
+ priority?: number;
3876
4626
  /**
3877
4627
  * @example
3878
- * true
4628
+ * Working
3879
4629
  */
3880
- taskSustainable?: boolean;
4630
+ status?: string;
3881
4631
  static names(): { [key: string]: string } {
3882
4632
  return {
3883
- createTime: 'CreateTime',
3884
- endTime: 'EndTime',
3885
- executorCount: 'ExecutorCount',
3886
- jobDescription: 'JobDescription',
3887
- jobId: 'JobId',
3888
- jobName: 'JobName',
3889
- ownerUid: 'OwnerUid',
3890
- startTime: 'StartTime',
4633
+ isDefault: 'IsDefault',
4634
+ maxExectorNum: 'MaxExectorNum',
4635
+ poolName: 'PoolName',
4636
+ priority: 'Priority',
3891
4637
  status: 'Status',
3892
- tags: 'Tags',
3893
- taskCount: 'TaskCount',
3894
- taskSustainable: 'TaskSustainable',
3895
4638
  };
3896
4639
  }
3897
4640
 
3898
4641
  static types(): { [key: string]: any } {
3899
4642
  return {
3900
- createTime: 'string',
3901
- endTime: 'string',
3902
- executorCount: 'number',
3903
- jobDescription: 'string',
3904
- jobId: 'string',
3905
- jobName: 'string',
3906
- ownerUid: 'string',
3907
- startTime: 'string',
4643
+ isDefault: 'boolean',
4644
+ maxExectorNum: 'number',
4645
+ poolName: 'string',
4646
+ priority: 'number',
3908
4647
  status: 'string',
3909
- tags: { 'type': 'array', 'itemType': ListJobsResponseBodyJobListTags },
3910
- taskCount: 'number',
3911
- taskSustainable: 'boolean',
3912
4648
  };
3913
4649
  }
3914
4650
 
@@ -4043,6 +4779,29 @@ export class TagResourcesRequestTag extends $tea.Model {
4043
4779
  }
4044
4780
  }
4045
4781
 
4782
+ export class UpdatePoolRequestResourceLimits extends $tea.Model {
4783
+ /**
4784
+ * @example
4785
+ * 2000
4786
+ */
4787
+ maxExectorNum?: number;
4788
+ static names(): { [key: string]: string } {
4789
+ return {
4790
+ maxExectorNum: 'MaxExectorNum',
4791
+ };
4792
+ }
4793
+
4794
+ static types(): { [key: string]: any } {
4795
+ return {
4796
+ maxExectorNum: 'number',
4797
+ };
4798
+ }
4799
+
4800
+ constructor(map?: { [key: string]: any }) {
4801
+ super(map);
4802
+ }
4803
+ }
4804
+
4046
4805
 
4047
4806
  export default class Client extends OpenApi {
4048
4807
 
@@ -4206,6 +4965,62 @@ export default class Client extends OpenApi {
4206
4965
  return await this.createJobWithOptions(request, runtime);
4207
4966
  }
4208
4967
 
4968
+ /**
4969
+ * 创建资源池
4970
+ *
4971
+ * @param tmpReq - CreatePoolRequest
4972
+ * @param runtime - runtime options for this request RuntimeOptions
4973
+ * @returns CreatePoolResponse
4974
+ */
4975
+ async createPoolWithOptions(tmpReq: CreatePoolRequest, runtime: $Util.RuntimeOptions): Promise<CreatePoolResponse> {
4976
+ Util.validateModel(tmpReq);
4977
+ let request = new CreatePoolShrinkRequest({ });
4978
+ OpenApiUtil.convert(tmpReq, request);
4979
+ if (!Util.isUnset(tmpReq.resourceLimits)) {
4980
+ request.resourceLimitsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceLimits, "ResourceLimits", "json");
4981
+ }
4982
+
4983
+ let query = { };
4984
+ if (!Util.isUnset(request.poolName)) {
4985
+ query["PoolName"] = request.poolName;
4986
+ }
4987
+
4988
+ if (!Util.isUnset(request.priority)) {
4989
+ query["Priority"] = request.priority;
4990
+ }
4991
+
4992
+ if (!Util.isUnset(request.resourceLimitsShrink)) {
4993
+ query["ResourceLimits"] = request.resourceLimitsShrink;
4994
+ }
4995
+
4996
+ let req = new $OpenApi.OpenApiRequest({
4997
+ query: OpenApiUtil.query(query),
4998
+ });
4999
+ let params = new $OpenApi.Params({
5000
+ action: "CreatePool",
5001
+ version: "2023-07-01",
5002
+ protocol: "HTTPS",
5003
+ pathname: "/",
5004
+ method: "POST",
5005
+ authType: "AK",
5006
+ style: "RPC",
5007
+ reqBodyType: "formData",
5008
+ bodyType: "json",
5009
+ });
5010
+ return $tea.cast<CreatePoolResponse>(await this.callApi(params, req, runtime), new CreatePoolResponse({}));
5011
+ }
5012
+
5013
+ /**
5014
+ * 创建资源池
5015
+ *
5016
+ * @param request - CreatePoolRequest
5017
+ * @returns CreatePoolResponse
5018
+ */
5019
+ async createPool(request: CreatePoolRequest): Promise<CreatePoolResponse> {
5020
+ let runtime = new $Util.RuntimeOptions({ });
5021
+ return await this.createPoolWithOptions(request, runtime);
5022
+ }
5023
+
4209
5024
  /**
4210
5025
  * 删除作业
4211
5026
  *
@@ -4262,6 +5077,48 @@ export default class Client extends OpenApi {
4262
5077
  return await this.deleteJobsWithOptions(request, runtime);
4263
5078
  }
4264
5079
 
5080
+ /**
5081
+ * 删除资源池
5082
+ *
5083
+ * @param request - DeletePoolRequest
5084
+ * @param runtime - runtime options for this request RuntimeOptions
5085
+ * @returns DeletePoolResponse
5086
+ */
5087
+ async deletePoolWithOptions(request: DeletePoolRequest, runtime: $Util.RuntimeOptions): Promise<DeletePoolResponse> {
5088
+ Util.validateModel(request);
5089
+ let query = { };
5090
+ if (!Util.isUnset(request.poolName)) {
5091
+ query["PoolName"] = request.poolName;
5092
+ }
5093
+
5094
+ let req = new $OpenApi.OpenApiRequest({
5095
+ query: OpenApiUtil.query(query),
5096
+ });
5097
+ let params = new $OpenApi.Params({
5098
+ action: "DeletePool",
5099
+ version: "2023-07-01",
5100
+ protocol: "HTTPS",
5101
+ pathname: "/",
5102
+ method: "POST",
5103
+ authType: "AK",
5104
+ style: "RPC",
5105
+ reqBodyType: "formData",
5106
+ bodyType: "json",
5107
+ });
5108
+ return $tea.cast<DeletePoolResponse>(await this.callApi(params, req, runtime), new DeletePoolResponse({}));
5109
+ }
5110
+
5111
+ /**
5112
+ * 删除资源池
5113
+ *
5114
+ * @param request - DeletePoolRequest
5115
+ * @returns DeletePoolResponse
5116
+ */
5117
+ async deletePool(request: DeletePoolRequest): Promise<DeletePoolResponse> {
5118
+ let runtime = new $Util.RuntimeOptions({ });
5119
+ return await this.deletePoolWithOptions(request, runtime);
5120
+ }
5121
+
4265
5122
  /**
4266
5123
  * 查询作业性能数据
4267
5124
  *
@@ -4528,6 +5385,48 @@ export default class Client extends OpenApi {
4528
5385
  return await this.getJobWithOptions(request, runtime);
4529
5386
  }
4530
5387
 
5388
+ /**
5389
+ * 查询队列详细信息
5390
+ *
5391
+ * @param request - GetPoolRequest
5392
+ * @param runtime - runtime options for this request RuntimeOptions
5393
+ * @returns GetPoolResponse
5394
+ */
5395
+ async getPoolWithOptions(request: GetPoolRequest, runtime: $Util.RuntimeOptions): Promise<GetPoolResponse> {
5396
+ Util.validateModel(request);
5397
+ let query = { };
5398
+ if (!Util.isUnset(request.poolName)) {
5399
+ query["PoolName"] = request.poolName;
5400
+ }
5401
+
5402
+ let req = new $OpenApi.OpenApiRequest({
5403
+ query: OpenApiUtil.query(query),
5404
+ });
5405
+ let params = new $OpenApi.Params({
5406
+ action: "GetPool",
5407
+ version: "2023-07-01",
5408
+ protocol: "HTTPS",
5409
+ pathname: "/",
5410
+ method: "POST",
5411
+ authType: "AK",
5412
+ style: "RPC",
5413
+ reqBodyType: "formData",
5414
+ bodyType: "json",
5415
+ });
5416
+ return $tea.cast<GetPoolResponse>(await this.callApi(params, req, runtime), new GetPoolResponse({}));
5417
+ }
5418
+
5419
+ /**
5420
+ * 查询队列详细信息
5421
+ *
5422
+ * @param request - GetPoolRequest
5423
+ * @returns GetPoolResponse
5424
+ */
5425
+ async getPool(request: GetPoolRequest): Promise<GetPoolResponse> {
5426
+ let runtime = new $Util.RuntimeOptions({ });
5427
+ return await this.getPoolWithOptions(request, runtime);
5428
+ }
5429
+
4531
5430
  /**
4532
5431
  * 查询全局Executor信息
4533
5432
  *
@@ -4778,6 +5677,62 @@ export default class Client extends OpenApi {
4778
5677
  return await this.listJobsWithOptions(request, runtime);
4779
5678
  }
4780
5679
 
5680
+ /**
5681
+ * 查询资源池列表
5682
+ *
5683
+ * @param tmpReq - ListPoolsRequest
5684
+ * @param runtime - runtime options for this request RuntimeOptions
5685
+ * @returns ListPoolsResponse
5686
+ */
5687
+ async listPoolsWithOptions(tmpReq: ListPoolsRequest, runtime: $Util.RuntimeOptions): Promise<ListPoolsResponse> {
5688
+ Util.validateModel(tmpReq);
5689
+ let request = new ListPoolsShrinkRequest({ });
5690
+ OpenApiUtil.convert(tmpReq, request);
5691
+ if (!Util.isUnset(tmpReq.filter)) {
5692
+ request.filterShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.filter, "Filter", "json");
5693
+ }
5694
+
5695
+ let query = { };
5696
+ if (!Util.isUnset(request.filterShrink)) {
5697
+ query["Filter"] = request.filterShrink;
5698
+ }
5699
+
5700
+ if (!Util.isUnset(request.pageNumber)) {
5701
+ query["PageNumber"] = request.pageNumber;
5702
+ }
5703
+
5704
+ if (!Util.isUnset(request.pageSize)) {
5705
+ query["PageSize"] = request.pageSize;
5706
+ }
5707
+
5708
+ let req = new $OpenApi.OpenApiRequest({
5709
+ query: OpenApiUtil.query(query),
5710
+ });
5711
+ let params = new $OpenApi.Params({
5712
+ action: "ListPools",
5713
+ version: "2023-07-01",
5714
+ protocol: "HTTPS",
5715
+ pathname: "/",
5716
+ method: "POST",
5717
+ authType: "AK",
5718
+ style: "RPC",
5719
+ reqBodyType: "formData",
5720
+ bodyType: "json",
5721
+ });
5722
+ return $tea.cast<ListPoolsResponse>(await this.callApi(params, req, runtime), new ListPoolsResponse({}));
5723
+ }
5724
+
5725
+ /**
5726
+ * 查询资源池列表
5727
+ *
5728
+ * @param request - ListPoolsRequest
5729
+ * @returns ListPoolsResponse
5730
+ */
5731
+ async listPools(request: ListPoolsRequest): Promise<ListPoolsResponse> {
5732
+ let runtime = new $Util.RuntimeOptions({ });
5733
+ return await this.listPoolsWithOptions(request, runtime);
5734
+ }
5735
+
4781
5736
  /**
4782
5737
  * 查询一个或多个资源已经绑定的标签列表
4783
5738
  *
@@ -4986,4 +5941,60 @@ export default class Client extends OpenApi {
4986
5941
  return await this.unTagResourcesWithOptions(request, runtime);
4987
5942
  }
4988
5943
 
5944
+ /**
5945
+ * 更新资源池
5946
+ *
5947
+ * @param tmpReq - UpdatePoolRequest
5948
+ * @param runtime - runtime options for this request RuntimeOptions
5949
+ * @returns UpdatePoolResponse
5950
+ */
5951
+ async updatePoolWithOptions(tmpReq: UpdatePoolRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePoolResponse> {
5952
+ Util.validateModel(tmpReq);
5953
+ let request = new UpdatePoolShrinkRequest({ });
5954
+ OpenApiUtil.convert(tmpReq, request);
5955
+ if (!Util.isUnset(tmpReq.resourceLimits)) {
5956
+ request.resourceLimitsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceLimits, "ResourceLimits", "json");
5957
+ }
5958
+
5959
+ let query = { };
5960
+ if (!Util.isUnset(request.poolName)) {
5961
+ query["PoolName"] = request.poolName;
5962
+ }
5963
+
5964
+ if (!Util.isUnset(request.priority)) {
5965
+ query["Priority"] = request.priority;
5966
+ }
5967
+
5968
+ if (!Util.isUnset(request.resourceLimitsShrink)) {
5969
+ query["ResourceLimits"] = request.resourceLimitsShrink;
5970
+ }
5971
+
5972
+ let req = new $OpenApi.OpenApiRequest({
5973
+ query: OpenApiUtil.query(query),
5974
+ });
5975
+ let params = new $OpenApi.Params({
5976
+ action: "UpdatePool",
5977
+ version: "2023-07-01",
5978
+ protocol: "HTTPS",
5979
+ pathname: "/",
5980
+ method: "POST",
5981
+ authType: "AK",
5982
+ style: "RPC",
5983
+ reqBodyType: "formData",
5984
+ bodyType: "json",
5985
+ });
5986
+ return $tea.cast<UpdatePoolResponse>(await this.callApi(params, req, runtime), new UpdatePoolResponse({}));
5987
+ }
5988
+
5989
+ /**
5990
+ * 更新资源池
5991
+ *
5992
+ * @param request - UpdatePoolRequest
5993
+ * @returns UpdatePoolResponse
5994
+ */
5995
+ async updatePool(request: UpdatePoolRequest): Promise<UpdatePoolResponse> {
5996
+ let runtime = new $Util.RuntimeOptions({ });
5997
+ return await this.updatePoolWithOptions(request, runtime);
5998
+ }
5999
+
4989
6000
  }