@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/dist/client.d.ts CHANGED
@@ -201,6 +201,91 @@ export declare class CreateJobResponse extends $tea.Model {
201
201
  [key: string]: any;
202
202
  });
203
203
  }
204
+ export declare class CreatePoolRequest extends $tea.Model {
205
+ /**
206
+ * @remarks
207
+ * This parameter is required.
208
+ *
209
+ * @example
210
+ * PoolTest
211
+ */
212
+ poolName?: string;
213
+ /**
214
+ * @example
215
+ * 1
216
+ */
217
+ priority?: number;
218
+ resourceLimits?: CreatePoolRequestResourceLimits;
219
+ static names(): {
220
+ [key: string]: string;
221
+ };
222
+ static types(): {
223
+ [key: string]: any;
224
+ };
225
+ constructor(map?: {
226
+ [key: string]: any;
227
+ });
228
+ }
229
+ export declare class CreatePoolShrinkRequest extends $tea.Model {
230
+ /**
231
+ * @remarks
232
+ * This parameter is required.
233
+ *
234
+ * @example
235
+ * PoolTest
236
+ */
237
+ poolName?: string;
238
+ /**
239
+ * @example
240
+ * 1
241
+ */
242
+ priority?: number;
243
+ resourceLimitsShrink?: string;
244
+ static names(): {
245
+ [key: string]: string;
246
+ };
247
+ static types(): {
248
+ [key: string]: any;
249
+ };
250
+ constructor(map?: {
251
+ [key: string]: any;
252
+ });
253
+ }
254
+ export declare class CreatePoolResponseBody extends $tea.Model {
255
+ /**
256
+ * @remarks
257
+ * Id of the request
258
+ *
259
+ * @example
260
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
261
+ */
262
+ requestId?: string;
263
+ static names(): {
264
+ [key: string]: string;
265
+ };
266
+ static types(): {
267
+ [key: string]: any;
268
+ };
269
+ constructor(map?: {
270
+ [key: string]: any;
271
+ });
272
+ }
273
+ export declare class CreatePoolResponse extends $tea.Model {
274
+ headers?: {
275
+ [key: string]: string;
276
+ };
277
+ statusCode?: number;
278
+ body?: CreatePoolResponseBody;
279
+ static names(): {
280
+ [key: string]: string;
281
+ };
282
+ static types(): {
283
+ [key: string]: any;
284
+ };
285
+ constructor(map?: {
286
+ [key: string]: any;
287
+ });
288
+ }
204
289
  export declare class DeleteJobsRequest extends $tea.Model {
205
290
  executorIds?: string[];
206
291
  jobSpec?: DeleteJobsRequestJobSpec[];
@@ -259,6 +344,60 @@ export declare class DeleteJobsResponse extends $tea.Model {
259
344
  [key: string]: any;
260
345
  });
261
346
  }
347
+ export declare class DeletePoolRequest extends $tea.Model {
348
+ /**
349
+ * @remarks
350
+ * This parameter is required.
351
+ *
352
+ * @example
353
+ * PoolTest
354
+ */
355
+ poolName?: string;
356
+ static names(): {
357
+ [key: string]: string;
358
+ };
359
+ static types(): {
360
+ [key: string]: any;
361
+ };
362
+ constructor(map?: {
363
+ [key: string]: any;
364
+ });
365
+ }
366
+ export declare class DeletePoolResponseBody extends $tea.Model {
367
+ /**
368
+ * @remarks
369
+ * Id of the request
370
+ *
371
+ * @example
372
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
373
+ */
374
+ requestId?: string;
375
+ static names(): {
376
+ [key: string]: string;
377
+ };
378
+ static types(): {
379
+ [key: string]: any;
380
+ };
381
+ constructor(map?: {
382
+ [key: string]: any;
383
+ });
384
+ }
385
+ export declare class DeletePoolResponse extends $tea.Model {
386
+ headers?: {
387
+ [key: string]: string;
388
+ };
389
+ statusCode?: number;
390
+ body?: DeletePoolResponseBody;
391
+ static names(): {
392
+ [key: string]: string;
393
+ };
394
+ static types(): {
395
+ [key: string]: any;
396
+ };
397
+ constructor(map?: {
398
+ [key: string]: any;
399
+ });
400
+ }
262
401
  export declare class DescribeJobMetricDataRequest extends $tea.Model {
263
402
  arrayIndex?: number[];
264
403
  /**
@@ -637,6 +776,61 @@ export declare class GetJobResponse extends $tea.Model {
637
776
  [key: string]: any;
638
777
  });
639
778
  }
779
+ export declare class GetPoolRequest extends $tea.Model {
780
+ /**
781
+ * @remarks
782
+ * This parameter is required.
783
+ *
784
+ * @example
785
+ * PoolTest
786
+ */
787
+ poolName?: string;
788
+ static names(): {
789
+ [key: string]: string;
790
+ };
791
+ static types(): {
792
+ [key: string]: any;
793
+ };
794
+ constructor(map?: {
795
+ [key: string]: any;
796
+ });
797
+ }
798
+ export declare class GetPoolResponseBody extends $tea.Model {
799
+ poolInfo?: GetPoolResponseBodyPoolInfo;
800
+ /**
801
+ * @remarks
802
+ * Id of the request
803
+ *
804
+ * @example
805
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
806
+ */
807
+ requestId?: string;
808
+ static names(): {
809
+ [key: string]: string;
810
+ };
811
+ static types(): {
812
+ [key: string]: any;
813
+ };
814
+ constructor(map?: {
815
+ [key: string]: any;
816
+ });
817
+ }
818
+ export declare class GetPoolResponse extends $tea.Model {
819
+ headers?: {
820
+ [key: string]: string;
821
+ };
822
+ statusCode?: number;
823
+ body?: GetPoolResponseBody;
824
+ static names(): {
825
+ [key: string]: string;
826
+ };
827
+ static types(): {
828
+ [key: string]: any;
829
+ };
830
+ constructor(map?: {
831
+ [key: string]: any;
832
+ });
833
+ }
640
834
  export declare class ListExecutorsRequest extends $tea.Model {
641
835
  filter?: ListExecutorsRequestFilter;
642
836
  /**
@@ -1018,6 +1212,101 @@ export declare class ListJobsResponse extends $tea.Model {
1018
1212
  [key: string]: any;
1019
1213
  });
1020
1214
  }
1215
+ export declare class ListPoolsRequest extends $tea.Model {
1216
+ filter?: ListPoolsRequestFilter;
1217
+ /**
1218
+ * @example
1219
+ * 1
1220
+ */
1221
+ pageNumber?: number;
1222
+ /**
1223
+ * @example
1224
+ * 10
1225
+ */
1226
+ pageSize?: number;
1227
+ static names(): {
1228
+ [key: string]: string;
1229
+ };
1230
+ static types(): {
1231
+ [key: string]: any;
1232
+ };
1233
+ constructor(map?: {
1234
+ [key: string]: any;
1235
+ });
1236
+ }
1237
+ export declare class ListPoolsShrinkRequest extends $tea.Model {
1238
+ filterShrink?: string;
1239
+ /**
1240
+ * @example
1241
+ * 1
1242
+ */
1243
+ pageNumber?: number;
1244
+ /**
1245
+ * @example
1246
+ * 10
1247
+ */
1248
+ pageSize?: number;
1249
+ static names(): {
1250
+ [key: string]: string;
1251
+ };
1252
+ static types(): {
1253
+ [key: string]: any;
1254
+ };
1255
+ constructor(map?: {
1256
+ [key: string]: any;
1257
+ });
1258
+ }
1259
+ export declare class ListPoolsResponseBody extends $tea.Model {
1260
+ /**
1261
+ * @example
1262
+ * 1
1263
+ */
1264
+ pageNumber?: number;
1265
+ /**
1266
+ * @example
1267
+ * 10
1268
+ */
1269
+ pageSize?: number;
1270
+ poolList?: ListPoolsResponseBodyPoolList[];
1271
+ /**
1272
+ * @remarks
1273
+ * Id of the request
1274
+ *
1275
+ * @example
1276
+ * 896D338C-E4F4-41EC-A154-D605E5DE****
1277
+ */
1278
+ requestId?: string;
1279
+ /**
1280
+ * @example
1281
+ * 2
1282
+ */
1283
+ totalCount?: number;
1284
+ static names(): {
1285
+ [key: string]: string;
1286
+ };
1287
+ static types(): {
1288
+ [key: string]: any;
1289
+ };
1290
+ constructor(map?: {
1291
+ [key: string]: any;
1292
+ });
1293
+ }
1294
+ export declare class ListPoolsResponse extends $tea.Model {
1295
+ headers?: {
1296
+ [key: string]: string;
1297
+ };
1298
+ statusCode?: number;
1299
+ body?: ListPoolsResponseBody;
1300
+ static names(): {
1301
+ [key: string]: string;
1302
+ };
1303
+ static types(): {
1304
+ [key: string]: any;
1305
+ };
1306
+ constructor(map?: {
1307
+ [key: string]: any;
1308
+ });
1309
+ }
1021
1310
  export declare class ListTagResourcesRequest extends $tea.Model {
1022
1311
  /**
1023
1312
  * @example
@@ -1267,6 +1556,91 @@ export declare class UnTagResourcesResponse extends $tea.Model {
1267
1556
  [key: string]: any;
1268
1557
  });
1269
1558
  }
1559
+ export declare class UpdatePoolRequest extends $tea.Model {
1560
+ /**
1561
+ * @remarks
1562
+ * This parameter is required.
1563
+ *
1564
+ * @example
1565
+ * PoolTest
1566
+ */
1567
+ poolName?: string;
1568
+ /**
1569
+ * @example
1570
+ * 1
1571
+ */
1572
+ priority?: number;
1573
+ resourceLimits?: UpdatePoolRequestResourceLimits;
1574
+ static names(): {
1575
+ [key: string]: string;
1576
+ };
1577
+ static types(): {
1578
+ [key: string]: any;
1579
+ };
1580
+ constructor(map?: {
1581
+ [key: string]: any;
1582
+ });
1583
+ }
1584
+ export declare class UpdatePoolShrinkRequest extends $tea.Model {
1585
+ /**
1586
+ * @remarks
1587
+ * This parameter is required.
1588
+ *
1589
+ * @example
1590
+ * PoolTest
1591
+ */
1592
+ poolName?: string;
1593
+ /**
1594
+ * @example
1595
+ * 1
1596
+ */
1597
+ priority?: number;
1598
+ resourceLimitsShrink?: string;
1599
+ static names(): {
1600
+ [key: string]: string;
1601
+ };
1602
+ static types(): {
1603
+ [key: string]: any;
1604
+ };
1605
+ constructor(map?: {
1606
+ [key: string]: any;
1607
+ });
1608
+ }
1609
+ export declare class UpdatePoolResponseBody extends $tea.Model {
1610
+ /**
1611
+ * @remarks
1612
+ * Id of the request
1613
+ *
1614
+ * @example
1615
+ * 04F0F334-1335-436C-A1D7-6C044FE7****
1616
+ */
1617
+ requestId?: string;
1618
+ static names(): {
1619
+ [key: string]: string;
1620
+ };
1621
+ static types(): {
1622
+ [key: string]: any;
1623
+ };
1624
+ constructor(map?: {
1625
+ [key: string]: any;
1626
+ });
1627
+ }
1628
+ export declare class UpdatePoolResponse extends $tea.Model {
1629
+ headers?: {
1630
+ [key: string]: string;
1631
+ };
1632
+ statusCode?: number;
1633
+ body?: UpdatePoolResponseBody;
1634
+ static names(): {
1635
+ [key: string]: string;
1636
+ };
1637
+ static types(): {
1638
+ [key: string]: any;
1639
+ };
1640
+ constructor(map?: {
1641
+ [key: string]: any;
1642
+ });
1643
+ }
1270
1644
  export declare class AddImageRequestContainerImageSpecRegistryCredential extends $tea.Model {
1271
1645
  /**
1272
1646
  * @example
@@ -1646,6 +2020,22 @@ export declare class CreateJobResponseBodyTasks extends $tea.Model {
1646
2020
  [key: string]: any;
1647
2021
  });
1648
2022
  }
2023
+ export declare class CreatePoolRequestResourceLimits extends $tea.Model {
2024
+ /**
2025
+ * @example
2026
+ * 2000
2027
+ */
2028
+ maxExectorNum?: number;
2029
+ static names(): {
2030
+ [key: string]: string;
2031
+ };
2032
+ static types(): {
2033
+ [key: string]: any;
2034
+ };
2035
+ constructor(map?: {
2036
+ [key: string]: any;
2037
+ });
2038
+ }
1649
2039
  export declare class DeleteJobsRequestJobSpecTaskSpec extends $tea.Model {
1650
2040
  arrayIndex?: number[];
1651
2041
  /**
@@ -2176,6 +2566,62 @@ export declare class GetJobResponseBodyJobInfo extends $tea.Model {
2176
2566
  [key: string]: any;
2177
2567
  });
2178
2568
  }
2569
+ export declare class GetPoolResponseBodyPoolInfo extends $tea.Model {
2570
+ /**
2571
+ * @example
2572
+ * 2024-12-01 20:00:00
2573
+ */
2574
+ createTime?: string;
2575
+ /**
2576
+ * @example
2577
+ * 1
2578
+ */
2579
+ exectorUsage?: number;
2580
+ /**
2581
+ * @example
2582
+ * true
2583
+ */
2584
+ isDefault?: boolean;
2585
+ /**
2586
+ * @example
2587
+ * 2000
2588
+ */
2589
+ maxExectorNum?: number;
2590
+ /**
2591
+ * @example
2592
+ * PoolTest
2593
+ */
2594
+ poolName?: string;
2595
+ /**
2596
+ * @example
2597
+ * 1
2598
+ */
2599
+ priority?: number;
2600
+ /**
2601
+ * @example
2602
+ * Fails to *** pool: ***.
2603
+ */
2604
+ reason?: string;
2605
+ /**
2606
+ * @example
2607
+ * Working
2608
+ */
2609
+ status?: string;
2610
+ /**
2611
+ * @example
2612
+ * 2024-12-01 20:00:00
2613
+ */
2614
+ updateTime?: string;
2615
+ static names(): {
2616
+ [key: string]: string;
2617
+ };
2618
+ static types(): {
2619
+ [key: string]: any;
2620
+ };
2621
+ constructor(map?: {
2622
+ [key: string]: any;
2623
+ });
2624
+ }
2179
2625
  export declare class ListExecutorsRequestFilter extends $tea.Model {
2180
2626
  executorIds?: string[];
2181
2627
  ipAddresses?: string[];
@@ -2352,6 +2798,7 @@ export declare class ListImagesResponseBodyImages extends $tea.Model {
2352
2798
  * v1.0
2353
2799
  */
2354
2800
  version?: string;
2801
+ weight?: number;
2355
2802
  static names(): {
2356
2803
  [key: string]: string;
2357
2804
  };
@@ -2572,6 +3019,65 @@ export declare class ListJobsResponseBodyJobList extends $tea.Model {
2572
3019
  [key: string]: any;
2573
3020
  });
2574
3021
  }
3022
+ export declare class ListPoolsRequestFilter extends $tea.Model {
3023
+ poolName?: string[];
3024
+ status?: string[];
3025
+ /**
3026
+ * @example
3027
+ * 1703819914
3028
+ */
3029
+ timeCreatedAfter?: number;
3030
+ /**
3031
+ * @example
3032
+ * 1703820113
3033
+ */
3034
+ timeCreatedBefore?: number;
3035
+ static names(): {
3036
+ [key: string]: string;
3037
+ };
3038
+ static types(): {
3039
+ [key: string]: any;
3040
+ };
3041
+ constructor(map?: {
3042
+ [key: string]: any;
3043
+ });
3044
+ }
3045
+ export declare class ListPoolsResponseBodyPoolList extends $tea.Model {
3046
+ /**
3047
+ * @example
3048
+ * true
3049
+ */
3050
+ isDefault?: boolean;
3051
+ /**
3052
+ * @example
3053
+ * 2000
3054
+ */
3055
+ maxExectorNum?: number;
3056
+ /**
3057
+ * @example
3058
+ * PoolTest
3059
+ */
3060
+ poolName?: string;
3061
+ /**
3062
+ * @example
3063
+ * 1
3064
+ */
3065
+ priority?: number;
3066
+ /**
3067
+ * @example
3068
+ * Working
3069
+ */
3070
+ status?: string;
3071
+ static names(): {
3072
+ [key: string]: string;
3073
+ };
3074
+ static types(): {
3075
+ [key: string]: any;
3076
+ };
3077
+ constructor(map?: {
3078
+ [key: string]: any;
3079
+ });
3080
+ }
2575
3081
  export declare class ListTagResourcesRequestTag extends $tea.Model {
2576
3082
  /**
2577
3083
  * @example
@@ -2660,6 +3166,22 @@ export declare class TagResourcesRequestTag extends $tea.Model {
2660
3166
  [key: string]: any;
2661
3167
  });
2662
3168
  }
3169
+ export declare class UpdatePoolRequestResourceLimits extends $tea.Model {
3170
+ /**
3171
+ * @example
3172
+ * 2000
3173
+ */
3174
+ maxExectorNum?: number;
3175
+ static names(): {
3176
+ [key: string]: string;
3177
+ };
3178
+ static types(): {
3179
+ [key: string]: any;
3180
+ };
3181
+ constructor(map?: {
3182
+ [key: string]: any;
3183
+ });
3184
+ }
2663
3185
  export default class Client extends OpenApi {
2664
3186
  constructor(config: $OpenApi.Config);
2665
3187
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
@@ -2695,6 +3217,21 @@ export default class Client extends OpenApi {
2695
3217
  * @returns CreateJobResponse
2696
3218
  */
2697
3219
  createJob(request: CreateJobRequest): Promise<CreateJobResponse>;
3220
+ /**
3221
+ * 创建资源池
3222
+ *
3223
+ * @param tmpReq - CreatePoolRequest
3224
+ * @param runtime - runtime options for this request RuntimeOptions
3225
+ * @returns CreatePoolResponse
3226
+ */
3227
+ createPoolWithOptions(tmpReq: CreatePoolRequest, runtime: $Util.RuntimeOptions): Promise<CreatePoolResponse>;
3228
+ /**
3229
+ * 创建资源池
3230
+ *
3231
+ * @param request - CreatePoolRequest
3232
+ * @returns CreatePoolResponse
3233
+ */
3234
+ createPool(request: CreatePoolRequest): Promise<CreatePoolResponse>;
2698
3235
  /**
2699
3236
  * 删除作业
2700
3237
  *
@@ -2710,6 +3247,21 @@ export default class Client extends OpenApi {
2710
3247
  * @returns DeleteJobsResponse
2711
3248
  */
2712
3249
  deleteJobs(request: DeleteJobsRequest): Promise<DeleteJobsResponse>;
3250
+ /**
3251
+ * 删除资源池
3252
+ *
3253
+ * @param request - DeletePoolRequest
3254
+ * @param runtime - runtime options for this request RuntimeOptions
3255
+ * @returns DeletePoolResponse
3256
+ */
3257
+ deletePoolWithOptions(request: DeletePoolRequest, runtime: $Util.RuntimeOptions): Promise<DeletePoolResponse>;
3258
+ /**
3259
+ * 删除资源池
3260
+ *
3261
+ * @param request - DeletePoolRequest
3262
+ * @returns DeletePoolResponse
3263
+ */
3264
+ deletePool(request: DeletePoolRequest): Promise<DeletePoolResponse>;
2713
3265
  /**
2714
3266
  * 查询作业性能数据
2715
3267
  *
@@ -2785,6 +3337,21 @@ export default class Client extends OpenApi {
2785
3337
  * @returns GetJobResponse
2786
3338
  */
2787
3339
  getJob(request: GetJobRequest): Promise<GetJobResponse>;
3340
+ /**
3341
+ * 查询队列详细信息
3342
+ *
3343
+ * @param request - GetPoolRequest
3344
+ * @param runtime - runtime options for this request RuntimeOptions
3345
+ * @returns GetPoolResponse
3346
+ */
3347
+ getPoolWithOptions(request: GetPoolRequest, runtime: $Util.RuntimeOptions): Promise<GetPoolResponse>;
3348
+ /**
3349
+ * 查询队列详细信息
3350
+ *
3351
+ * @param request - GetPoolRequest
3352
+ * @returns GetPoolResponse
3353
+ */
3354
+ getPool(request: GetPoolRequest): Promise<GetPoolResponse>;
2788
3355
  /**
2789
3356
  * 查询全局Executor信息
2790
3357
  *
@@ -2845,6 +3412,21 @@ export default class Client extends OpenApi {
2845
3412
  * @returns ListJobsResponse
2846
3413
  */
2847
3414
  listJobs(request: ListJobsRequest): Promise<ListJobsResponse>;
3415
+ /**
3416
+ * 查询资源池列表
3417
+ *
3418
+ * @param tmpReq - ListPoolsRequest
3419
+ * @param runtime - runtime options for this request RuntimeOptions
3420
+ * @returns ListPoolsResponse
3421
+ */
3422
+ listPoolsWithOptions(tmpReq: ListPoolsRequest, runtime: $Util.RuntimeOptions): Promise<ListPoolsResponse>;
3423
+ /**
3424
+ * 查询资源池列表
3425
+ *
3426
+ * @param request - ListPoolsRequest
3427
+ * @returns ListPoolsResponse
3428
+ */
3429
+ listPools(request: ListPoolsRequest): Promise<ListPoolsResponse>;
2848
3430
  /**
2849
3431
  * 查询一个或多个资源已经绑定的标签列表
2850
3432
  *
@@ -2905,4 +3487,19 @@ export default class Client extends OpenApi {
2905
3487
  * @returns UnTagResourcesResponse
2906
3488
  */
2907
3489
  unTagResources(request: UnTagResourcesRequest): Promise<UnTagResourcesResponse>;
3490
+ /**
3491
+ * 更新资源池
3492
+ *
3493
+ * @param tmpReq - UpdatePoolRequest
3494
+ * @param runtime - runtime options for this request RuntimeOptions
3495
+ * @returns UpdatePoolResponse
3496
+ */
3497
+ updatePoolWithOptions(tmpReq: UpdatePoolRequest, runtime: $Util.RuntimeOptions): Promise<UpdatePoolResponse>;
3498
+ /**
3499
+ * 更新资源池
3500
+ *
3501
+ * @param request - UpdatePoolRequest
3502
+ * @returns UpdatePoolResponse
3503
+ */
3504
+ updatePool(request: UpdatePoolRequest): Promise<UpdatePoolResponse>;
2908
3505
  }