@alicloud/ehpcinstant20230701 1.1.2 → 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
  /**
@@ -660,6 +860,139 @@ export class DescribeJobMetricLastResponse extends $tea.Model {
660
860
  }
661
861
  }
662
862
 
863
+ export class GetAppVersionsRequest extends $tea.Model {
864
+ /**
865
+ * @remarks
866
+ * This parameter is required.
867
+ *
868
+ * @example
869
+ * V-Ray
870
+ */
871
+ appName?: string;
872
+ /**
873
+ * @example
874
+ * Public
875
+ */
876
+ imageCategory?: string;
877
+ /**
878
+ * @example
879
+ * VM
880
+ */
881
+ imageType?: string;
882
+ /**
883
+ * @example
884
+ * 1
885
+ */
886
+ pageNumber?: number;
887
+ /**
888
+ * @example
889
+ * 10
890
+ */
891
+ pageSize?: number;
892
+ static names(): { [key: string]: string } {
893
+ return {
894
+ appName: 'AppName',
895
+ imageCategory: 'ImageCategory',
896
+ imageType: 'ImageType',
897
+ pageNumber: 'PageNumber',
898
+ pageSize: 'PageSize',
899
+ };
900
+ }
901
+
902
+ static types(): { [key: string]: any } {
903
+ return {
904
+ appName: 'string',
905
+ imageCategory: 'string',
906
+ imageType: 'string',
907
+ pageNumber: 'number',
908
+ pageSize: 'number',
909
+ };
910
+ }
911
+
912
+ constructor(map?: { [key: string]: any }) {
913
+ super(map);
914
+ }
915
+ }
916
+
917
+ export class GetAppVersionsResponseBody extends $tea.Model {
918
+ appVersions?: GetAppVersionsResponseBodyAppVersions[];
919
+ /**
920
+ * @example
921
+ * 1
922
+ */
923
+ pageNumber?: number;
924
+ /**
925
+ * @example
926
+ * 20
927
+ */
928
+ pageSize?: number;
929
+ /**
930
+ * @example
931
+ * 04F0F334-1335-436C-A1D7-6C044FE7****
932
+ */
933
+ requestId?: string;
934
+ /**
935
+ * @example
936
+ * true
937
+ */
938
+ success?: boolean;
939
+ /**
940
+ * @example
941
+ * 1
942
+ */
943
+ totalCount?: number;
944
+ static names(): { [key: string]: string } {
945
+ return {
946
+ appVersions: 'AppVersions',
947
+ pageNumber: 'PageNumber',
948
+ pageSize: 'PageSize',
949
+ requestId: 'RequestId',
950
+ success: 'Success',
951
+ totalCount: 'TotalCount',
952
+ };
953
+ }
954
+
955
+ static types(): { [key: string]: any } {
956
+ return {
957
+ appVersions: { 'type': 'array', 'itemType': GetAppVersionsResponseBodyAppVersions },
958
+ pageNumber: 'number',
959
+ pageSize: 'number',
960
+ requestId: 'string',
961
+ success: 'boolean',
962
+ totalCount: 'number',
963
+ };
964
+ }
965
+
966
+ constructor(map?: { [key: string]: any }) {
967
+ super(map);
968
+ }
969
+ }
970
+
971
+ export class GetAppVersionsResponse extends $tea.Model {
972
+ headers?: { [key: string]: string };
973
+ statusCode?: number;
974
+ body?: GetAppVersionsResponseBody;
975
+ static names(): { [key: string]: string } {
976
+ return {
977
+ headers: 'headers',
978
+ statusCode: 'statusCode',
979
+ body: 'body',
980
+ };
981
+ }
982
+
983
+ static types(): { [key: string]: any } {
984
+ return {
985
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
986
+ statusCode: 'number',
987
+ body: GetAppVersionsResponseBody,
988
+ };
989
+ }
990
+
991
+ constructor(map?: { [key: string]: any }) {
992
+ super(map);
993
+ }
994
+ }
995
+
663
996
  export class GetImageRequest extends $tea.Model {
664
997
  imageCategory?: string;
665
998
  /**
@@ -760,18 +1093,95 @@ export class GetImageResponse extends $tea.Model {
760
1093
  export class GetJobRequest extends $tea.Model {
761
1094
  /**
762
1095
  * @example
763
- * job-xxxx
1096
+ * job-xxxx
1097
+ */
1098
+ jobId?: string;
1099
+ static names(): { [key: string]: string } {
1100
+ return {
1101
+ jobId: 'JobId',
1102
+ };
1103
+ }
1104
+
1105
+ static types(): { [key: string]: any } {
1106
+ return {
1107
+ jobId: 'string',
1108
+ };
1109
+ }
1110
+
1111
+ constructor(map?: { [key: string]: any }) {
1112
+ super(map);
1113
+ }
1114
+ }
1115
+
1116
+ export class GetJobResponseBody extends $tea.Model {
1117
+ jobInfo?: GetJobResponseBodyJobInfo;
1118
+ /**
1119
+ * @example
1120
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1121
+ */
1122
+ requestId?: string;
1123
+ static names(): { [key: string]: string } {
1124
+ return {
1125
+ jobInfo: 'JobInfo',
1126
+ requestId: 'RequestId',
1127
+ };
1128
+ }
1129
+
1130
+ static types(): { [key: string]: any } {
1131
+ return {
1132
+ jobInfo: GetJobResponseBodyJobInfo,
1133
+ requestId: 'string',
1134
+ };
1135
+ }
1136
+
1137
+ constructor(map?: { [key: string]: any }) {
1138
+ super(map);
1139
+ }
1140
+ }
1141
+
1142
+ export class GetJobResponse extends $tea.Model {
1143
+ headers?: { [key: string]: string };
1144
+ statusCode?: number;
1145
+ body?: GetJobResponseBody;
1146
+ static names(): { [key: string]: string } {
1147
+ return {
1148
+ headers: 'headers',
1149
+ statusCode: 'statusCode',
1150
+ body: 'body',
1151
+ };
1152
+ }
1153
+
1154
+ static types(): { [key: string]: any } {
1155
+ return {
1156
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1157
+ statusCode: 'number',
1158
+ body: GetJobResponseBody,
1159
+ };
1160
+ }
1161
+
1162
+ constructor(map?: { [key: string]: any }) {
1163
+ super(map);
1164
+ }
1165
+ }
1166
+
1167
+ export class GetPoolRequest extends $tea.Model {
1168
+ /**
1169
+ * @remarks
1170
+ * This parameter is required.
1171
+ *
1172
+ * @example
1173
+ * PoolTest
764
1174
  */
765
- jobId?: string;
1175
+ poolName?: string;
766
1176
  static names(): { [key: string]: string } {
767
1177
  return {
768
- jobId: 'JobId',
1178
+ poolName: 'PoolName',
769
1179
  };
770
1180
  }
771
1181
 
772
1182
  static types(): { [key: string]: any } {
773
1183
  return {
774
- jobId: 'string',
1184
+ poolName: 'string',
775
1185
  };
776
1186
  }
777
1187
 
@@ -780,23 +1190,26 @@ export class GetJobRequest extends $tea.Model {
780
1190
  }
781
1191
  }
782
1192
 
783
- export class GetJobResponseBody extends $tea.Model {
784
- jobInfo?: GetJobResponseBodyJobInfo;
1193
+ export class GetPoolResponseBody extends $tea.Model {
1194
+ poolInfo?: GetPoolResponseBodyPoolInfo;
785
1195
  /**
1196
+ * @remarks
1197
+ * Id of the request
1198
+ *
786
1199
  * @example
787
1200
  * 896D338C-E4F4-41EC-A154-D605E5DE****
788
1201
  */
789
1202
  requestId?: string;
790
1203
  static names(): { [key: string]: string } {
791
1204
  return {
792
- jobInfo: 'JobInfo',
1205
+ poolInfo: 'PoolInfo',
793
1206
  requestId: 'RequestId',
794
1207
  };
795
1208
  }
796
1209
 
797
1210
  static types(): { [key: string]: any } {
798
1211
  return {
799
- jobInfo: GetJobResponseBodyJobInfo,
1212
+ poolInfo: GetPoolResponseBodyPoolInfo,
800
1213
  requestId: 'string',
801
1214
  };
802
1215
  }
@@ -806,10 +1219,10 @@ export class GetJobResponseBody extends $tea.Model {
806
1219
  }
807
1220
  }
808
1221
 
809
- export class GetJobResponse extends $tea.Model {
1222
+ export class GetPoolResponse extends $tea.Model {
810
1223
  headers?: { [key: string]: string };
811
1224
  statusCode?: number;
812
- body?: GetJobResponseBody;
1225
+ body?: GetPoolResponseBody;
813
1226
  static names(): { [key: string]: string } {
814
1227
  return {
815
1228
  headers: 'headers',
@@ -822,7 +1235,7 @@ export class GetJobResponse extends $tea.Model {
822
1235
  return {
823
1236
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
824
1237
  statusCode: 'number',
825
- body: GetJobResponseBody,
1238
+ body: GetPoolResponseBody,
826
1239
  };
827
1240
  }
828
1241
 
@@ -974,6 +1387,7 @@ export class ListImagesRequest extends $tea.Model {
974
1387
  imageIds?: string[];
975
1388
  imageNames?: string[];
976
1389
  imageType?: string;
1390
+ mode?: string;
977
1391
  /**
978
1392
  * @example
979
1393
  * 1
@@ -990,6 +1404,7 @@ export class ListImagesRequest extends $tea.Model {
990
1404
  imageIds: 'ImageIds',
991
1405
  imageNames: 'ImageNames',
992
1406
  imageType: 'ImageType',
1407
+ mode: 'Mode',
993
1408
  pageNumber: 'PageNumber',
994
1409
  pageSize: 'PageSize',
995
1410
  };
@@ -1001,6 +1416,7 @@ export class ListImagesRequest extends $tea.Model {
1001
1416
  imageIds: { 'type': 'array', 'itemType': 'string' },
1002
1417
  imageNames: { 'type': 'array', 'itemType': 'string' },
1003
1418
  imageType: 'string',
1419
+ mode: 'string',
1004
1420
  pageNumber: 'number',
1005
1421
  pageSize: 'number',
1006
1422
  };
@@ -1016,6 +1432,7 @@ export class ListImagesShrinkRequest extends $tea.Model {
1016
1432
  imageIdsShrink?: string;
1017
1433
  imageNamesShrink?: string;
1018
1434
  imageType?: string;
1435
+ mode?: string;
1019
1436
  /**
1020
1437
  * @example
1021
1438
  * 1
@@ -1032,6 +1449,7 @@ export class ListImagesShrinkRequest extends $tea.Model {
1032
1449
  imageIdsShrink: 'ImageIds',
1033
1450
  imageNamesShrink: 'ImageNames',
1034
1451
  imageType: 'ImageType',
1452
+ mode: 'Mode',
1035
1453
  pageNumber: 'PageNumber',
1036
1454
  pageSize: 'PageSize',
1037
1455
  };
@@ -1043,6 +1461,7 @@ export class ListImagesShrinkRequest extends $tea.Model {
1043
1461
  imageIdsShrink: 'string',
1044
1462
  imageNamesShrink: 'string',
1045
1463
  imageType: 'string',
1464
+ mode: 'string',
1046
1465
  pageNumber: 'number',
1047
1466
  pageSize: 'number',
1048
1467
  };
@@ -1409,6 +1828,147 @@ export class ListJobsResponse extends $tea.Model {
1409
1828
  }
1410
1829
  }
1411
1830
 
1831
+ export class ListPoolsRequest extends $tea.Model {
1832
+ filter?: ListPoolsRequestFilter;
1833
+ /**
1834
+ * @example
1835
+ * 1
1836
+ */
1837
+ pageNumber?: number;
1838
+ /**
1839
+ * @example
1840
+ * 10
1841
+ */
1842
+ pageSize?: number;
1843
+ static names(): { [key: string]: string } {
1844
+ return {
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
+
1412
1972
  export class ListTagResourcesRequest extends $tea.Model {
1413
1973
  /**
1414
1974
  * @example
@@ -1666,17 +2226,144 @@ export class TagResourcesResponse extends $tea.Model {
1666
2226
  body?: TagResourcesResponseBody;
1667
2227
  static names(): { [key: string]: string } {
1668
2228
  return {
1669
- headers: 'headers',
1670
- statusCode: 'statusCode',
1671
- body: 'body',
2229
+ headers: 'headers',
2230
+ statusCode: 'statusCode',
2231
+ body: 'body',
2232
+ };
2233
+ }
2234
+
2235
+ static types(): { [key: string]: any } {
2236
+ return {
2237
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2238
+ statusCode: 'number',
2239
+ body: TagResourcesResponseBody,
2240
+ };
2241
+ }
2242
+
2243
+ constructor(map?: { [key: string]: any }) {
2244
+ super(map);
2245
+ }
2246
+ }
2247
+
2248
+ export class UnTagResourcesRequest extends $tea.Model {
2249
+ /**
2250
+ * @example
2251
+ * False
2252
+ */
2253
+ all?: boolean;
2254
+ /**
2255
+ * @remarks
2256
+ * This parameter is required.
2257
+ */
2258
+ resourceId?: string[];
2259
+ /**
2260
+ * @remarks
2261
+ * This parameter is required.
2262
+ *
2263
+ * @example
2264
+ * Job
2265
+ */
2266
+ resourceType?: string;
2267
+ tagKey?: string[];
2268
+ static names(): { [key: string]: string } {
2269
+ return {
2270
+ all: 'All',
2271
+ resourceId: 'ResourceId',
2272
+ resourceType: 'ResourceType',
2273
+ tagKey: 'TagKey',
2274
+ };
2275
+ }
2276
+
2277
+ static types(): { [key: string]: any } {
2278
+ return {
2279
+ all: 'boolean',
2280
+ resourceId: { 'type': 'array', 'itemType': 'string' },
2281
+ resourceType: 'string',
2282
+ tagKey: { 'type': 'array', 'itemType': 'string' },
2283
+ };
2284
+ }
2285
+
2286
+ constructor(map?: { [key: string]: any }) {
2287
+ super(map);
2288
+ }
2289
+ }
2290
+
2291
+ export class UnTagResourcesResponseBody extends $tea.Model {
2292
+ /**
2293
+ * @example
2294
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
2295
+ */
2296
+ requestId?: string;
2297
+ static names(): { [key: string]: string } {
2298
+ return {
2299
+ requestId: 'RequestId',
2300
+ };
2301
+ }
2302
+
2303
+ static types(): { [key: string]: any } {
2304
+ return {
2305
+ requestId: 'string',
2306
+ };
2307
+ }
2308
+
2309
+ constructor(map?: { [key: string]: any }) {
2310
+ super(map);
2311
+ }
2312
+ }
2313
+
2314
+ export class UnTagResourcesResponse extends $tea.Model {
2315
+ headers?: { [key: string]: string };
2316
+ statusCode?: number;
2317
+ body?: UnTagResourcesResponseBody;
2318
+ static names(): { [key: string]: string } {
2319
+ return {
2320
+ headers: 'headers',
2321
+ statusCode: 'statusCode',
2322
+ body: 'body',
2323
+ };
2324
+ }
2325
+
2326
+ static types(): { [key: string]: any } {
2327
+ return {
2328
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2329
+ statusCode: 'number',
2330
+ body: UnTagResourcesResponseBody,
2331
+ };
2332
+ }
2333
+
2334
+ constructor(map?: { [key: string]: any }) {
2335
+ super(map);
2336
+ }
2337
+ }
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',
1672
2359
  };
1673
2360
  }
1674
2361
 
1675
2362
  static types(): { [key: string]: any } {
1676
2363
  return {
1677
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1678
- statusCode: 'number',
1679
- body: TagResourcesResponseBody,
2364
+ poolName: 'string',
2365
+ priority: 'number',
2366
+ resourceLimits: UpdatePoolRequestResourceLimits,
1680
2367
  };
1681
2368
  }
1682
2369
 
@@ -1685,41 +2372,34 @@ export class TagResourcesResponse extends $tea.Model {
1685
2372
  }
1686
2373
  }
1687
2374
 
1688
- export class UnTagResourcesRequest extends $tea.Model {
1689
- /**
1690
- * @example
1691
- * False
1692
- */
1693
- all?: boolean;
2375
+ export class UpdatePoolShrinkRequest extends $tea.Model {
1694
2376
  /**
1695
2377
  * @remarks
1696
2378
  * This parameter is required.
2379
+ *
2380
+ * @example
2381
+ * PoolTest
1697
2382
  */
1698
- resourceId?: string[];
2383
+ poolName?: string;
1699
2384
  /**
1700
- * @remarks
1701
- * This parameter is required.
1702
- *
1703
2385
  * @example
1704
- * Job
2386
+ * 1
1705
2387
  */
1706
- resourceType?: string;
1707
- tagKey?: string[];
2388
+ priority?: number;
2389
+ resourceLimitsShrink?: string;
1708
2390
  static names(): { [key: string]: string } {
1709
2391
  return {
1710
- all: 'All',
1711
- resourceId: 'ResourceId',
1712
- resourceType: 'ResourceType',
1713
- tagKey: 'TagKey',
2392
+ poolName: 'PoolName',
2393
+ priority: 'Priority',
2394
+ resourceLimitsShrink: 'ResourceLimits',
1714
2395
  };
1715
2396
  }
1716
2397
 
1717
2398
  static types(): { [key: string]: any } {
1718
2399
  return {
1719
- all: 'boolean',
1720
- resourceId: { 'type': 'array', 'itemType': 'string' },
1721
- resourceType: 'string',
1722
- tagKey: { 'type': 'array', 'itemType': 'string' },
2400
+ poolName: 'string',
2401
+ priority: 'number',
2402
+ resourceLimitsShrink: 'string',
1723
2403
  };
1724
2404
  }
1725
2405
 
@@ -1728,10 +2408,13 @@ export class UnTagResourcesRequest extends $tea.Model {
1728
2408
  }
1729
2409
  }
1730
2410
 
1731
- export class UnTagResourcesResponseBody extends $tea.Model {
2411
+ export class UpdatePoolResponseBody extends $tea.Model {
1732
2412
  /**
2413
+ * @remarks
2414
+ * Id of the request
2415
+ *
1733
2416
  * @example
1734
- * 896D338C-E4F4-41EC-A154-D605E5DE****
2417
+ * 04F0F334-1335-436C-A1D7-6C044FE7****
1735
2418
  */
1736
2419
  requestId?: string;
1737
2420
  static names(): { [key: string]: string } {
@@ -1751,10 +2434,10 @@ export class UnTagResourcesResponseBody extends $tea.Model {
1751
2434
  }
1752
2435
  }
1753
2436
 
1754
- export class UnTagResourcesResponse extends $tea.Model {
2437
+ export class UpdatePoolResponse extends $tea.Model {
1755
2438
  headers?: { [key: string]: string };
1756
2439
  statusCode?: number;
1757
- body?: UnTagResourcesResponseBody;
2440
+ body?: UpdatePoolResponseBody;
1758
2441
  static names(): { [key: string]: string } {
1759
2442
  return {
1760
2443
  headers: 'headers',
@@ -1767,7 +2450,7 @@ export class UnTagResourcesResponse extends $tea.Model {
1767
2450
  return {
1768
2451
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1769
2452
  statusCode: 'number',
1770
- body: UnTagResourcesResponseBody,
2453
+ body: UpdatePoolResponseBody,
1771
2454
  };
1772
2455
  }
1773
2456
 
@@ -2347,6 +3030,29 @@ export class CreateJobResponseBodyTasks extends $tea.Model {
2347
3030
  }
2348
3031
  }
2349
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
+
2350
3056
  export class DeleteJobsRequestJobSpecTaskSpec extends $tea.Model {
2351
3057
  arrayIndex?: number[];
2352
3058
  /**
@@ -2429,6 +3135,46 @@ export class DescribeJobMetricLastResponseBodyMetrics extends $tea.Model {
2429
3135
  }
2430
3136
  }
2431
3137
 
3138
+ export class GetAppVersionsResponseBodyAppVersions extends $tea.Model {
3139
+ /**
3140
+ * @remarks
3141
+ * This parameter is required.
3142
+ *
3143
+ * @example
3144
+ * m-f8z0dfa96luomqly****
3145
+ */
3146
+ imageId?: string;
3147
+ /**
3148
+ * @example
3149
+ * V-Ray
3150
+ */
3151
+ name?: string;
3152
+ /**
3153
+ * @example
3154
+ * v1.0
3155
+ */
3156
+ version?: string;
3157
+ static names(): { [key: string]: string } {
3158
+ return {
3159
+ imageId: 'ImageId',
3160
+ name: 'Name',
3161
+ version: 'Version',
3162
+ };
3163
+ }
3164
+
3165
+ static types(): { [key: string]: any } {
3166
+ return {
3167
+ imageId: 'string',
3168
+ name: 'string',
3169
+ version: 'string',
3170
+ };
3171
+ }
3172
+
3173
+ constructor(map?: { [key: string]: any }) {
3174
+ super(map);
3175
+ }
3176
+ }
3177
+
2432
3178
  export class GetImageResponseBodyImageContainerImageSpecRegistryCredential extends $tea.Model {
2433
3179
  /**
2434
3180
  * @example
@@ -2467,6 +3213,7 @@ export class GetImageResponseBodyImageContainerImageSpecRegistryCredential exten
2467
3213
  }
2468
3214
 
2469
3215
  export class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
3216
+ architecture?: string;
2470
3217
  /**
2471
3218
  * @example
2472
3219
  * True
@@ -2477,6 +3224,8 @@ export class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
2477
3224
  * True
2478
3225
  */
2479
3226
  isACRRegistry?: boolean;
3227
+ osTag?: string;
3228
+ platform?: string;
2480
3229
  registryCredential?: GetImageResponseBodyImageContainerImageSpecRegistryCredential;
2481
3230
  /**
2482
3231
  * @example
@@ -2490,8 +3239,11 @@ export class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
2490
3239
  registryUrl?: string;
2491
3240
  static names(): { [key: string]: string } {
2492
3241
  return {
3242
+ architecture: 'Architecture',
2493
3243
  isACREnterprise: 'IsACREnterprise',
2494
3244
  isACRRegistry: 'IsACRRegistry',
3245
+ osTag: 'OsTag',
3246
+ platform: 'Platform',
2495
3247
  registryCredential: 'RegistryCredential',
2496
3248
  registryCriId: 'RegistryCriId',
2497
3249
  registryUrl: 'RegistryUrl',
@@ -2500,8 +3252,11 @@ export class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
2500
3252
 
2501
3253
  static types(): { [key: string]: any } {
2502
3254
  return {
3255
+ architecture: 'string',
2503
3256
  isACREnterprise: 'boolean',
2504
3257
  isACRRegistry: 'boolean',
3258
+ osTag: 'string',
3259
+ platform: 'string',
2505
3260
  registryCredential: GetImageResponseBodyImageContainerImageSpecRegistryCredential,
2506
3261
  registryCriId: 'string',
2507
3262
  registryUrl: 'string',
@@ -2513,6 +3268,31 @@ export class GetImageResponseBodyImageContainerImageSpec extends $tea.Model {
2513
3268
  }
2514
3269
  }
2515
3270
 
3271
+ export class GetImageResponseBodyImageDocumentInfo extends $tea.Model {
3272
+ document?: string;
3273
+ documentId?: string;
3274
+ encodingMode?: string;
3275
+ static names(): { [key: string]: string } {
3276
+ return {
3277
+ document: 'Document',
3278
+ documentId: 'DocumentId',
3279
+ encodingMode: 'EncodingMode',
3280
+ };
3281
+ }
3282
+
3283
+ static types(): { [key: string]: any } {
3284
+ return {
3285
+ document: 'string',
3286
+ documentId: 'string',
3287
+ encodingMode: 'string',
3288
+ };
3289
+ }
3290
+
3291
+ constructor(map?: { [key: string]: any }) {
3292
+ super(map);
3293
+ }
3294
+ }
3295
+
2516
3296
  export class GetImageResponseBodyImageVMImageSpec extends $tea.Model {
2517
3297
  /**
2518
3298
  * @example
@@ -2566,6 +3346,7 @@ export class GetImageResponseBodyImage extends $tea.Model {
2566
3346
  */
2567
3347
  createTime?: string;
2568
3348
  description?: string;
3349
+ documentInfo?: GetImageResponseBodyImageDocumentInfo;
2569
3350
  /**
2570
3351
  * @remarks
2571
3352
  * This parameter is required.
@@ -2597,6 +3378,7 @@ export class GetImageResponseBodyImage extends $tea.Model {
2597
3378
  containerImageSpec: 'ContainerImageSpec',
2598
3379
  createTime: 'CreateTime',
2599
3380
  description: 'Description',
3381
+ documentInfo: 'DocumentInfo',
2600
3382
  imageType: 'ImageType',
2601
3383
  name: 'Name',
2602
3384
  size: 'Size',
@@ -2612,6 +3394,7 @@ export class GetImageResponseBodyImage extends $tea.Model {
2612
3394
  containerImageSpec: GetImageResponseBodyImageContainerImageSpec,
2613
3395
  createTime: 'string',
2614
3396
  description: 'string',
3397
+ documentInfo: GetImageResponseBodyImageDocumentInfo,
2615
3398
  imageType: 'string',
2616
3399
  name: 'string',
2617
3400
  size: 'string',
@@ -3074,6 +3857,85 @@ export class GetJobResponseBodyJobInfo extends $tea.Model {
3074
3857
  }
3075
3858
  }
3076
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
+
3077
3939
  export class ListExecutorsRequestFilter extends $tea.Model {
3078
3940
  executorIds?: string[];
3079
3941
  ipAddresses?: string[];
@@ -3310,6 +4172,7 @@ export class ListImagesResponseBodyImages extends $tea.Model {
3310
4172
  */
3311
4173
  createTime?: string;
3312
4174
  description?: string;
4175
+ documentId?: number;
3313
4176
  /**
3314
4177
  * @remarks
3315
4178
  * This parameter is required.
@@ -3332,21 +4195,26 @@ export class ListImagesResponseBodyImages extends $tea.Model {
3332
4195
  */
3333
4196
  name?: string;
3334
4197
  osTag?: string;
4198
+ updateTime?: string;
3335
4199
  /**
3336
4200
  * @example
3337
4201
  * v1.0
3338
4202
  */
3339
4203
  version?: string;
4204
+ weight?: number;
3340
4205
  static names(): { [key: string]: string } {
3341
4206
  return {
3342
4207
  appId: 'AppId',
3343
4208
  createTime: 'CreateTime',
3344
4209
  description: 'Description',
4210
+ documentId: 'DocumentId',
3345
4211
  imageId: 'ImageId',
3346
4212
  imageType: 'ImageType',
3347
4213
  name: 'Name',
3348
4214
  osTag: 'OsTag',
4215
+ updateTime: 'UpdateTime',
3349
4216
  version: 'Version',
4217
+ weight: 'Weight',
3350
4218
  };
3351
4219
  }
3352
4220
 
@@ -3355,11 +4223,14 @@ export class ListImagesResponseBodyImages extends $tea.Model {
3355
4223
  appId: 'string',
3356
4224
  createTime: 'string',
3357
4225
  description: 'string',
4226
+ documentId: 'number',
3358
4227
  imageId: 'string',
3359
4228
  imageType: 'string',
3360
4229
  name: 'string',
3361
4230
  osTag: 'string',
4231
+ updateTime: 'string',
3362
4232
  version: 'string',
4233
+ weight: 'number',
3363
4234
  };
3364
4235
  }
3365
4236
 
@@ -3667,26 +4538,113 @@ export class ListJobsResponseBodyJobList extends $tea.Model {
3667
4538
  ownerUid: 'OwnerUid',
3668
4539
  startTime: 'StartTime',
3669
4540
  status: 'Status',
3670
- tags: 'Tags',
3671
- taskCount: 'TaskCount',
3672
- taskSustainable: 'TaskSustainable',
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
4575
+ */
4576
+ timeCreatedAfter?: number;
4577
+ /**
4578
+ * @example
4579
+ * 1703820113
4580
+ */
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 {
4606
+ /**
4607
+ * @example
4608
+ * true
4609
+ */
4610
+ isDefault?: boolean;
4611
+ /**
4612
+ * @example
4613
+ * 2000
4614
+ */
4615
+ maxExectorNum?: number;
4616
+ /**
4617
+ * @example
4618
+ * PoolTest
4619
+ */
4620
+ poolName?: string;
4621
+ /**
4622
+ * @example
4623
+ * 1
4624
+ */
4625
+ priority?: number;
4626
+ /**
4627
+ * @example
4628
+ * Working
4629
+ */
4630
+ status?: string;
4631
+ static names(): { [key: string]: string } {
4632
+ return {
4633
+ isDefault: 'IsDefault',
4634
+ maxExectorNum: 'MaxExectorNum',
4635
+ poolName: 'PoolName',
4636
+ priority: 'Priority',
4637
+ status: 'Status',
3673
4638
  };
3674
4639
  }
3675
4640
 
3676
4641
  static types(): { [key: string]: any } {
3677
4642
  return {
3678
- createTime: 'string',
3679
- endTime: 'string',
3680
- executorCount: 'number',
3681
- jobDescription: 'string',
3682
- jobId: 'string',
3683
- jobName: 'string',
3684
- ownerUid: 'string',
3685
- startTime: 'string',
4643
+ isDefault: 'boolean',
4644
+ maxExectorNum: 'number',
4645
+ poolName: 'string',
4646
+ priority: 'number',
3686
4647
  status: 'string',
3687
- tags: { 'type': 'array', 'itemType': ListJobsResponseBodyJobListTags },
3688
- taskCount: 'number',
3689
- taskSustainable: 'boolean',
3690
4648
  };
3691
4649
  }
3692
4650
 
@@ -3821,6 +4779,29 @@ export class TagResourcesRequestTag extends $tea.Model {
3821
4779
  }
3822
4780
  }
3823
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
+
3824
4805
 
3825
4806
  export default class Client extends OpenApi {
3826
4807
 
@@ -3984,6 +4965,62 @@ export default class Client extends OpenApi {
3984
4965
  return await this.createJobWithOptions(request, runtime);
3985
4966
  }
3986
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
+
3987
5024
  /**
3988
5025
  * 删除作业
3989
5026
  *
@@ -4040,6 +5077,48 @@ export default class Client extends OpenApi {
4040
5077
  return await this.deleteJobsWithOptions(request, runtime);
4041
5078
  }
4042
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
+
4043
5122
  /**
4044
5123
  * 查询作业性能数据
4045
5124
  *
@@ -4156,6 +5235,64 @@ export default class Client extends OpenApi {
4156
5235
  return await this.describeJobMetricLastWithOptions(request, runtime);
4157
5236
  }
4158
5237
 
5238
+ /**
5239
+ * 查看应用版本列表
5240
+ *
5241
+ * @param request - GetAppVersionsRequest
5242
+ * @param runtime - runtime options for this request RuntimeOptions
5243
+ * @returns GetAppVersionsResponse
5244
+ */
5245
+ async getAppVersionsWithOptions(request: GetAppVersionsRequest, runtime: $Util.RuntimeOptions): Promise<GetAppVersionsResponse> {
5246
+ Util.validateModel(request);
5247
+ let query = { };
5248
+ if (!Util.isUnset(request.appName)) {
5249
+ query["AppName"] = request.appName;
5250
+ }
5251
+
5252
+ if (!Util.isUnset(request.imageCategory)) {
5253
+ query["ImageCategory"] = request.imageCategory;
5254
+ }
5255
+
5256
+ if (!Util.isUnset(request.imageType)) {
5257
+ query["ImageType"] = request.imageType;
5258
+ }
5259
+
5260
+ if (!Util.isUnset(request.pageNumber)) {
5261
+ query["PageNumber"] = request.pageNumber;
5262
+ }
5263
+
5264
+ if (!Util.isUnset(request.pageSize)) {
5265
+ query["PageSize"] = request.pageSize;
5266
+ }
5267
+
5268
+ let req = new $OpenApi.OpenApiRequest({
5269
+ query: OpenApiUtil.query(query),
5270
+ });
5271
+ let params = new $OpenApi.Params({
5272
+ action: "GetAppVersions",
5273
+ version: "2023-07-01",
5274
+ protocol: "HTTPS",
5275
+ pathname: "/",
5276
+ method: "POST",
5277
+ authType: "AK",
5278
+ style: "RPC",
5279
+ reqBodyType: "formData",
5280
+ bodyType: "json",
5281
+ });
5282
+ return $tea.cast<GetAppVersionsResponse>(await this.callApi(params, req, runtime), new GetAppVersionsResponse({}));
5283
+ }
5284
+
5285
+ /**
5286
+ * 查看应用版本列表
5287
+ *
5288
+ * @param request - GetAppVersionsRequest
5289
+ * @returns GetAppVersionsResponse
5290
+ */
5291
+ async getAppVersions(request: GetAppVersionsRequest): Promise<GetAppVersionsResponse> {
5292
+ let runtime = new $Util.RuntimeOptions({ });
5293
+ return await this.getAppVersionsWithOptions(request, runtime);
5294
+ }
5295
+
4159
5296
  /**
4160
5297
  * 查询托管侧镜像详情。
4161
5298
  *
@@ -4248,6 +5385,48 @@ export default class Client extends OpenApi {
4248
5385
  return await this.getJobWithOptions(request, runtime);
4249
5386
  }
4250
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
+
4251
5430
  /**
4252
5431
  * 查询全局Executor信息
4253
5432
  *
@@ -4340,6 +5519,10 @@ export default class Client extends OpenApi {
4340
5519
  query["ImageType"] = request.imageType;
4341
5520
  }
4342
5521
 
5522
+ if (!Util.isUnset(request.mode)) {
5523
+ query["Mode"] = request.mode;
5524
+ }
5525
+
4343
5526
  if (!Util.isUnset(request.pageNumber)) {
4344
5527
  query["PageNumber"] = request.pageNumber;
4345
5528
  }
@@ -4494,6 +5677,62 @@ export default class Client extends OpenApi {
4494
5677
  return await this.listJobsWithOptions(request, runtime);
4495
5678
  }
4496
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
+
4497
5736
  /**
4498
5737
  * 查询一个或多个资源已经绑定的标签列表
4499
5738
  *
@@ -4702,4 +5941,60 @@ export default class Client extends OpenApi {
4702
5941
  return await this.unTagResourcesWithOptions(request, runtime);
4703
5942
  }
4704
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
+
4705
6000
  }