tencentcloud-sdk-nodejs-thpc 4.0.546 → 4.0.547
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/CHANGELOG.md +185 -0
- package/SERVICE_CHANGELOG.md +233 -135
- package/package.json +1 -1
- package/products.md +20 -20
- package/src/services/thpc/v20220401/thpc_client.ts +70 -17
- package/src/services/thpc/v20220401/thpc_models.ts +293 -81
- package/tencentcloud/services/thpc/v20220401/thpc_client.d.ts +23 -5
- package/tencentcloud/services/thpc/v20220401/thpc_client.js +32 -6
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +259 -76
|
@@ -125,6 +125,17 @@ export interface ClusterOverview {
|
|
|
125
125
|
VpcId: string
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
/**
|
|
129
|
+
* 队列信息概览。
|
|
130
|
+
*/
|
|
131
|
+
export interface QueueOverview {
|
|
132
|
+
/**
|
|
133
|
+
* 队列名称。
|
|
134
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
135
|
+
*/
|
|
136
|
+
QueueName?: string
|
|
137
|
+
}
|
|
138
|
+
|
|
128
139
|
/**
|
|
129
140
|
* DescribeClusters请求参数结构体
|
|
130
141
|
*/
|
|
@@ -180,13 +191,75 @@ false(默认):发送正常请求,通过检查后直接绑定弹性伸缩
|
|
|
180
191
|
}
|
|
181
192
|
|
|
182
193
|
/**
|
|
183
|
-
*
|
|
194
|
+
* 节点概览信息。
|
|
184
195
|
*/
|
|
185
|
-
export interface
|
|
196
|
+
export interface NodeOverview {
|
|
186
197
|
/**
|
|
187
|
-
|
|
198
|
+
* 节点实例ID。
|
|
199
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
200
|
+
*/
|
|
201
|
+
InstanceId?: string
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* 节点所在可用区信息。
|
|
205
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
206
|
+
*/
|
|
207
|
+
Zone?: string
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* 节点状态。<br><li>SUBMITTED:已完成提交。<br><li>CREATING:创建中。<br><li>CREATED:完成创建。<br><li>INITING:初始化中。<br><li>INIT_FAILED:初始化失败。<br><li>RUNNING:运行中。<br><li>DELETING:销毁中。
|
|
211
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
212
|
+
*/
|
|
213
|
+
NodeState?: string
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* 镜像ID。
|
|
217
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
218
|
+
*/
|
|
219
|
+
ImageId?: string
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* 节点所属队列名称。
|
|
223
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
224
|
+
*/
|
|
225
|
+
QueueName?: string
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* 节点角色。<br><li>Manager:管控节点。<br><li>Compute:计算节点。<br><li>Login:登录节点。<br><li>ManagerBackup:备用管控节点。
|
|
229
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
230
|
+
*/
|
|
231
|
+
NodeRole?: string
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* 节点类型。<br><li>STATIC:静态节点。<br><li>DYNAMIC:弹性节点。
|
|
235
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
236
|
+
*/
|
|
237
|
+
NodeType?: string
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* DescribeNodes请求参数结构体
|
|
242
|
+
*/
|
|
243
|
+
export interface DescribeNodesRequest {
|
|
244
|
+
/**
|
|
245
|
+
* 集群ID。
|
|
188
246
|
*/
|
|
189
|
-
|
|
247
|
+
ClusterId: string
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* <li><strong>queue-name</strong></li> <p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-role</strong></li> <p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-type</strong></li> <p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
|
|
251
|
+
*/
|
|
252
|
+
Filters?: Array<Filter>
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
256
|
+
*/
|
|
257
|
+
Offset?: number
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
261
|
+
*/
|
|
262
|
+
Limit?: number
|
|
190
263
|
}
|
|
191
264
|
|
|
192
265
|
/**
|
|
@@ -294,58 +367,66 @@ export interface NodeActivity {
|
|
|
294
367
|
}
|
|
295
368
|
|
|
296
369
|
/**
|
|
297
|
-
*
|
|
370
|
+
* 描述了实例的抽象位置
|
|
298
371
|
*/
|
|
299
|
-
export interface
|
|
300
|
-
/**
|
|
301
|
-
* 队列名称。
|
|
302
|
-
*/
|
|
303
|
-
QueueName: string
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* 队列中弹性节点数量最小值。取值范围0~200。
|
|
307
|
-
*/
|
|
308
|
-
MinSize?: number
|
|
309
|
-
|
|
372
|
+
export interface Placement {
|
|
310
373
|
/**
|
|
311
|
-
*
|
|
374
|
+
* 实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
|
|
312
375
|
*/
|
|
313
|
-
|
|
376
|
+
Zone: string
|
|
377
|
+
}
|
|
314
378
|
|
|
379
|
+
/**
|
|
380
|
+
* AddQueue请求参数结构体
|
|
381
|
+
*/
|
|
382
|
+
export interface AddQueueRequest {
|
|
315
383
|
/**
|
|
316
|
-
*
|
|
384
|
+
* 集群ID。
|
|
317
385
|
*/
|
|
318
|
-
|
|
386
|
+
ClusterId: string
|
|
319
387
|
|
|
320
388
|
/**
|
|
321
|
-
*
|
|
389
|
+
* 队列名称。<br><li>最多支持32个字符。
|
|
322
390
|
*/
|
|
323
|
-
|
|
391
|
+
QueueName: string
|
|
392
|
+
}
|
|
324
393
|
|
|
394
|
+
/**
|
|
395
|
+
* 登录节点概览。
|
|
396
|
+
*/
|
|
397
|
+
export interface LoginNodeOverview {
|
|
325
398
|
/**
|
|
326
|
-
*
|
|
399
|
+
* 登录节点ID。
|
|
327
400
|
*/
|
|
328
|
-
|
|
401
|
+
NodeId: string
|
|
402
|
+
}
|
|
329
403
|
|
|
404
|
+
/**
|
|
405
|
+
* 描述CFS文件系统版本和挂载信息
|
|
406
|
+
*/
|
|
407
|
+
export interface CFSOption {
|
|
330
408
|
/**
|
|
331
|
-
*
|
|
409
|
+
* 文件系统本地挂载路径。
|
|
332
410
|
*/
|
|
333
|
-
|
|
411
|
+
LocalPath: string
|
|
334
412
|
|
|
335
413
|
/**
|
|
336
|
-
*
|
|
414
|
+
* 文件系统远程挂载ip及路径。
|
|
337
415
|
*/
|
|
338
|
-
|
|
416
|
+
RemotePath: string
|
|
339
417
|
|
|
340
418
|
/**
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
419
|
+
* 文件系统协议类型,默认值NFS 3.0。
|
|
420
|
+
<li>NFS 3.0。
|
|
421
|
+
<li>NFS 4.0。
|
|
422
|
+
<li>TURBO。
|
|
423
|
+
*/
|
|
424
|
+
Protocol?: string
|
|
344
425
|
|
|
345
426
|
/**
|
|
346
|
-
*
|
|
427
|
+
* 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。
|
|
347
428
|
*/
|
|
348
|
-
|
|
429
|
+
StorageType?: string
|
|
349
430
|
}
|
|
350
431
|
|
|
351
432
|
/**
|
|
@@ -413,57 +494,39 @@ export interface ClusterActivity {
|
|
|
413
494
|
}
|
|
414
495
|
|
|
415
496
|
/**
|
|
416
|
-
*
|
|
417
|
-
*/
|
|
418
|
-
export interface LoginNodeOverview {
|
|
419
|
-
/**
|
|
420
|
-
* 登录节点ID。
|
|
421
|
-
*/
|
|
422
|
-
NodeId: string
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* 描述CFS文件系统版本和挂载信息
|
|
497
|
+
* CreateCluster返回参数结构体
|
|
427
498
|
*/
|
|
428
|
-
export interface
|
|
429
|
-
/**
|
|
430
|
-
* 文件系统本地挂载路径。
|
|
431
|
-
*/
|
|
432
|
-
LocalPath: string
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* 文件系统远程挂载ip及路径。
|
|
436
|
-
*/
|
|
437
|
-
RemotePath: string
|
|
438
|
-
|
|
499
|
+
export interface CreateClusterResponse {
|
|
439
500
|
/**
|
|
440
|
-
*
|
|
441
|
-
|
|
442
|
-
<li>NFS 4.0。
|
|
443
|
-
<li>TURBO。
|
|
501
|
+
* 集群ID。
|
|
502
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
444
503
|
*/
|
|
445
|
-
|
|
504
|
+
ClusterId: string
|
|
446
505
|
|
|
447
506
|
/**
|
|
448
|
-
*
|
|
507
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
449
508
|
*/
|
|
450
|
-
|
|
509
|
+
RequestId?: string
|
|
451
510
|
}
|
|
452
511
|
|
|
453
512
|
/**
|
|
454
|
-
*
|
|
513
|
+
* DescribeQueues请求参数结构体
|
|
455
514
|
*/
|
|
456
|
-
export interface
|
|
515
|
+
export interface DescribeQueuesRequest {
|
|
457
516
|
/**
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
*/
|
|
517
|
+
* 集群ID。
|
|
518
|
+
*/
|
|
461
519
|
ClusterId: string
|
|
462
520
|
|
|
463
521
|
/**
|
|
464
|
-
*
|
|
522
|
+
* 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
465
523
|
*/
|
|
466
|
-
|
|
524
|
+
Offset?: number
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
528
|
+
*/
|
|
529
|
+
Limit?: number
|
|
467
530
|
}
|
|
468
531
|
|
|
469
532
|
/**
|
|
@@ -581,6 +644,16 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
|
581
644
|
AutoScalingType?: string
|
|
582
645
|
}
|
|
583
646
|
|
|
647
|
+
/**
|
|
648
|
+
* AddQueue返回参数结构体
|
|
649
|
+
*/
|
|
650
|
+
export interface AddQueueResponse {
|
|
651
|
+
/**
|
|
652
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
653
|
+
*/
|
|
654
|
+
RequestId?: string
|
|
655
|
+
}
|
|
656
|
+
|
|
584
657
|
/**
|
|
585
658
|
* DescribeClusterStorageOption返回参数结构体
|
|
586
659
|
*/
|
|
@@ -596,6 +669,26 @@ export interface DescribeClusterStorageOptionResponse {
|
|
|
596
669
|
RequestId?: string
|
|
597
670
|
}
|
|
598
671
|
|
|
672
|
+
/**
|
|
673
|
+
* DescribeQueues返回参数结构体
|
|
674
|
+
*/
|
|
675
|
+
export interface DescribeQueuesResponse {
|
|
676
|
+
/**
|
|
677
|
+
* 队列概览信息列表。
|
|
678
|
+
*/
|
|
679
|
+
QueueSet?: Array<QueueOverview>
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* 符合条件的节点数量。
|
|
683
|
+
*/
|
|
684
|
+
TotalCount?: number
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
688
|
+
*/
|
|
689
|
+
RequestId?: string
|
|
690
|
+
}
|
|
691
|
+
|
|
599
692
|
/**
|
|
600
693
|
* GooseFS存储选项概览信息。
|
|
601
694
|
*/
|
|
@@ -616,6 +709,61 @@ export interface GooseFSOptionOverview {
|
|
|
616
709
|
Masters: Array<string>
|
|
617
710
|
}
|
|
618
711
|
|
|
712
|
+
/**
|
|
713
|
+
* 扩容队列配置。
|
|
714
|
+
*/
|
|
715
|
+
export interface QueueConfig {
|
|
716
|
+
/**
|
|
717
|
+
* 队列名称。
|
|
718
|
+
*/
|
|
719
|
+
QueueName: string
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* 队列中弹性节点数量最小值。取值范围0~200。
|
|
723
|
+
*/
|
|
724
|
+
MinSize?: number
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* 队列中弹性节点数量最大值。取值范围0~200。
|
|
728
|
+
*/
|
|
729
|
+
MaxSize?: number
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* 是否开启自动扩容。
|
|
733
|
+
*/
|
|
734
|
+
EnableAutoExpansion?: boolean
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* 是否开启自动缩容。
|
|
738
|
+
*/
|
|
739
|
+
EnableAutoShrink?: boolean
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜和特定自定义镜像。
|
|
743
|
+
*/
|
|
744
|
+
ImageId?: string
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
748
|
+
*/
|
|
749
|
+
SystemDisk?: SystemDisk
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
753
|
+
*/
|
|
754
|
+
DataDisks?: Array<DataDisk>
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
|
|
758
|
+
*/
|
|
759
|
+
InternetAccessible?: InternetAccessible
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* 扩容节点配置信息。
|
|
763
|
+
*/
|
|
764
|
+
ExpansionNodeConfigs?: Array<ExpansionNodeConfig>
|
|
765
|
+
}
|
|
766
|
+
|
|
619
767
|
/**
|
|
620
768
|
* 描述了实例的计费模式
|
|
621
769
|
*/
|
|
@@ -804,13 +952,33 @@ CLOUD_PREMIUM:高性能云硬盘
|
|
|
804
952
|
}
|
|
805
953
|
|
|
806
954
|
/**
|
|
807
|
-
*
|
|
955
|
+
* 描述了实例登录相关配置与信息。
|
|
808
956
|
*/
|
|
809
|
-
export interface
|
|
957
|
+
export interface LoginSettings {
|
|
810
958
|
/**
|
|
811
|
-
*
|
|
959
|
+
* 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
|
|
812
960
|
*/
|
|
813
|
-
|
|
961
|
+
Password?: string
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* 描述GooseFS挂载信息
|
|
966
|
+
*/
|
|
967
|
+
export interface GooseFSOption {
|
|
968
|
+
/**
|
|
969
|
+
* 文件系统本地挂载路径。
|
|
970
|
+
*/
|
|
971
|
+
LocalPath: string
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* 文件系统远程挂载路径。
|
|
975
|
+
*/
|
|
976
|
+
RemotePath: string
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* 文件系统master的ip和端口。
|
|
980
|
+
*/
|
|
981
|
+
Masters: Array<string>
|
|
814
982
|
}
|
|
815
983
|
|
|
816
984
|
/**
|
|
@@ -833,6 +1001,40 @@ export interface DescribeClusterActivitiesRequest {
|
|
|
833
1001
|
Limit?: number
|
|
834
1002
|
}
|
|
835
1003
|
|
|
1004
|
+
/**
|
|
1005
|
+
* DeleteQueue请求参数结构体
|
|
1006
|
+
*/
|
|
1007
|
+
export interface DeleteQueueRequest {
|
|
1008
|
+
/**
|
|
1009
|
+
* 集群ID。
|
|
1010
|
+
*/
|
|
1011
|
+
ClusterId: string
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* 队列名称。<br><li>最多支持32个字符。
|
|
1015
|
+
*/
|
|
1016
|
+
QueueName: string
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* >描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
|
|
1021
|
+
> * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。
|
|
1022
|
+
> * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
|
|
1023
|
+
*/
|
|
1024
|
+
export interface Filter {
|
|
1025
|
+
/**
|
|
1026
|
+
* 需要过滤的字段。
|
|
1027
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1028
|
+
*/
|
|
1029
|
+
Name: string
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* 字段的过滤值。
|
|
1033
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1034
|
+
*/
|
|
1035
|
+
Values: Array<string>
|
|
1036
|
+
}
|
|
1037
|
+
|
|
836
1038
|
/**
|
|
837
1039
|
* AddNodes请求参数结构体
|
|
838
1040
|
*/
|
|
@@ -1295,23 +1497,23 @@ export interface DeleteClusterStorageOptionResponse {
|
|
|
1295
1497
|
}
|
|
1296
1498
|
|
|
1297
1499
|
/**
|
|
1298
|
-
*
|
|
1500
|
+
* DescribeNodes返回参数结构体
|
|
1299
1501
|
*/
|
|
1300
|
-
export interface
|
|
1502
|
+
export interface DescribeNodesResponse {
|
|
1301
1503
|
/**
|
|
1302
|
-
*
|
|
1504
|
+
* 节点概览信息列表。
|
|
1303
1505
|
*/
|
|
1304
|
-
|
|
1506
|
+
NodeSet?: Array<NodeOverview>
|
|
1305
1507
|
|
|
1306
1508
|
/**
|
|
1307
|
-
*
|
|
1509
|
+
* 符合条件的节点数量。
|
|
1308
1510
|
*/
|
|
1309
|
-
|
|
1511
|
+
TotalCount?: number
|
|
1310
1512
|
|
|
1311
1513
|
/**
|
|
1312
|
-
*
|
|
1514
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1313
1515
|
*/
|
|
1314
|
-
|
|
1516
|
+
RequestId?: string
|
|
1315
1517
|
}
|
|
1316
1518
|
|
|
1317
1519
|
/**
|
|
@@ -1349,6 +1551,16 @@ export interface DataDisk {
|
|
|
1349
1551
|
DiskType?: string
|
|
1350
1552
|
}
|
|
1351
1553
|
|
|
1554
|
+
/**
|
|
1555
|
+
* DeleteQueue返回参数结构体
|
|
1556
|
+
*/
|
|
1557
|
+
export interface DeleteQueueResponse {
|
|
1558
|
+
/**
|
|
1559
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1560
|
+
*/
|
|
1561
|
+
RequestId?: string
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1352
1564
|
/**
|
|
1353
1565
|
* AddNodes返回参数结构体
|
|
1354
1566
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeAutoScalingConfigurationResponse, DescribeClusterStorageOptionRequest, DescribeClustersRequest, SetAutoScalingConfigurationRequest, DeleteNodesResponse, AddClusterStorageOptionResponse, DeleteClusterResponse, CreateClusterResponse, SetAutoScalingConfigurationResponse, CreateClusterRequest, DescribeClusterStorageOptionResponse, BindAutoScalingGroupResponse, DeleteClusterRequest, DescribeClusterActivitiesRequest, AddNodesRequest, DeleteClusterStorageOptionRequest, AddClusterStorageOptionRequest, BindAutoScalingGroupRequest, DescribeAutoScalingConfigurationRequest, DeleteNodesRequest, DescribeClustersResponse, DeleteClusterStorageOptionResponse, DescribeClusterActivitiesResponse, AddNodesResponse } from "./thpc_models";
|
|
2
|
+
import { DescribeAutoScalingConfigurationResponse, DescribeClusterStorageOptionRequest, DescribeClustersRequest, SetAutoScalingConfigurationRequest, DescribeNodesRequest, DeleteNodesResponse, AddClusterStorageOptionResponse, DeleteClusterResponse, AddQueueRequest, CreateClusterResponse, DescribeQueuesRequest, SetAutoScalingConfigurationResponse, CreateClusterRequest, AddQueueResponse, DescribeClusterStorageOptionResponse, DescribeQueuesResponse, BindAutoScalingGroupResponse, DeleteClusterRequest, DescribeClusterActivitiesRequest, DeleteQueueRequest, AddNodesRequest, DeleteClusterStorageOptionRequest, AddClusterStorageOptionRequest, BindAutoScalingGroupRequest, DescribeAutoScalingConfigurationRequest, DeleteNodesRequest, DescribeClustersResponse, DeleteClusterStorageOptionResponse, DescribeNodesResponse, DescribeClusterActivitiesResponse, DeleteQueueResponse, AddNodesResponse } from "./thpc_models";
|
|
3
3
|
/**
|
|
4
4
|
* thpc client
|
|
5
5
|
* @class
|
|
@@ -23,13 +23,31 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
23
23
|
*/
|
|
24
24
|
CreateCluster(req: CreateClusterRequest, cb?: (error: string, rep: CreateClusterResponse) => void): Promise<CreateClusterResponse>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
DeleteCluster(req: DeleteClusterRequest, cb?: (error: string, rep: DeleteClusterResponse) => void): Promise<DeleteClusterResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
|
31
31
|
*/
|
|
32
32
|
SetAutoScalingConfiguration(req: SetAutoScalingConfigurationRequest, cb?: (error: string, rep: SetAutoScalingConfigurationResponse) => void): Promise<SetAutoScalingConfigurationResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* 本接口(AddQueue)用于添加队列到指定集群。
|
|
35
|
+
*/
|
|
36
|
+
AddQueue(req: AddQueueRequest, cb?: (error: string, rep: AddQueueResponse) => void): Promise<AddQueueResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
|
|
39
|
+
*/
|
|
40
|
+
DescribeNodes(req: DescribeNodesRequest, cb?: (error: string, rep: DescribeNodesResponse) => void): Promise<DescribeNodesResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* 本接口(DeleteQueue)用于从指定集群删除队列。
|
|
43
|
+
|
|
44
|
+
* 删除队列时,需要保证队列内不存在节点。
|
|
45
|
+
*/
|
|
46
|
+
DeleteQueue(req: DeleteQueueRequest, cb?: (error: string, rep: DeleteQueueResponse) => void): Promise<DeleteQueueResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
|
|
49
|
+
*/
|
|
50
|
+
DeleteClusterStorageOption(req: DeleteClusterStorageOptionRequest, cb?: (error: string, rep: DeleteClusterStorageOptionResponse) => void): Promise<DeleteClusterStorageOptionResponse>;
|
|
33
51
|
/**
|
|
34
52
|
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
35
53
|
*/
|
|
@@ -51,7 +69,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
51
69
|
*/
|
|
52
70
|
DescribeClusterActivities(req: DescribeClusterActivitiesRequest, cb?: (error: string, rep: DescribeClusterActivitiesResponse) => void): Promise<DescribeClusterActivitiesResponse>;
|
|
53
71
|
/**
|
|
54
|
-
*
|
|
72
|
+
* 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
|
|
55
73
|
*/
|
|
56
|
-
|
|
74
|
+
DescribeQueues(req: DescribeQueuesRequest, cb?: (error: string, rep: DescribeQueuesResponse) => void): Promise<DescribeQueuesResponse>;
|
|
57
75
|
}
|
|
@@ -52,10 +52,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
52
52
|
return this.request("CreateCluster", req, cb);
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
56
56
|
*/
|
|
57
|
-
async
|
|
58
|
-
return this.request("
|
|
57
|
+
async DeleteCluster(req, cb) {
|
|
58
|
+
return this.request("DeleteCluster", req, cb);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
|
@@ -63,6 +63,32 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
63
63
|
async SetAutoScalingConfiguration(req, cb) {
|
|
64
64
|
return this.request("SetAutoScalingConfiguration", req, cb);
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* 本接口(AddQueue)用于添加队列到指定集群。
|
|
68
|
+
*/
|
|
69
|
+
async AddQueue(req, cb) {
|
|
70
|
+
return this.request("AddQueue", req, cb);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
|
|
74
|
+
*/
|
|
75
|
+
async DescribeNodes(req, cb) {
|
|
76
|
+
return this.request("DescribeNodes", req, cb);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 本接口(DeleteQueue)用于从指定集群删除队列。
|
|
80
|
+
|
|
81
|
+
* 删除队列时,需要保证队列内不存在节点。
|
|
82
|
+
*/
|
|
83
|
+
async DeleteQueue(req, cb) {
|
|
84
|
+
return this.request("DeleteQueue", req, cb);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
|
|
88
|
+
*/
|
|
89
|
+
async DeleteClusterStorageOption(req, cb) {
|
|
90
|
+
return this.request("DeleteClusterStorageOption", req, cb);
|
|
91
|
+
}
|
|
66
92
|
/**
|
|
67
93
|
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
68
94
|
*/
|
|
@@ -94,10 +120,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
94
120
|
return this.request("DescribeClusterActivities", req, cb);
|
|
95
121
|
}
|
|
96
122
|
/**
|
|
97
|
-
*
|
|
123
|
+
* 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
|
|
98
124
|
*/
|
|
99
|
-
async
|
|
100
|
-
return this.request("
|
|
125
|
+
async DescribeQueues(req, cb) {
|
|
126
|
+
return this.request("DescribeQueues", req, cb);
|
|
101
127
|
}
|
|
102
128
|
}
|
|
103
129
|
exports.Client = Client;
|