tencentcloud-sdk-nodejs-thpc 4.0.480 → 4.0.484
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 +988 -0
- package/SERVICE_CHANGELOG.md +1317 -32
- package/package.json +1 -1
- package/products.md +53 -53
- package/src/services/thpc/index.ts +2 -2
- package/src/services/thpc/v20220401/thpc_client.ts +18 -4
- package/src/services/thpc/v20220401/thpc_models.ts +190 -58
- package/tencentcloud/services/thpc/index.d.ts +4 -4
- package/tencentcloud/services/thpc/index.js +2 -2
- package/tencentcloud/services/thpc/v20220401/thpc_client.d.ts +5 -1
- package/tencentcloud/services/thpc/v20220401/thpc_client.js +6 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +165 -54
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const thpc: {
|
|
2
|
-
v20211109: {
|
|
3
|
-
Client: typeof import("./v20211109/thpc_client").Client;
|
|
4
|
-
Models: typeof import("./v20211109/thpc_models");
|
|
5
|
-
};
|
|
6
2
|
v20220401: {
|
|
7
3
|
Client: typeof import("./v20220401/thpc_client").Client;
|
|
8
4
|
Models: typeof import("./v20220401/thpc_models");
|
|
9
5
|
};
|
|
6
|
+
v20211109: {
|
|
7
|
+
Client: typeof import("./v20211109/thpc_client").Client;
|
|
8
|
+
Models: typeof import("./v20211109/thpc_models");
|
|
9
|
+
};
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.thpc = void 0;
|
|
4
|
-
const v20211109_1 = require("./v20211109");
|
|
5
4
|
const v20220401_1 = require("./v20220401");
|
|
5
|
+
const v20211109_1 = require("./v20211109");
|
|
6
6
|
exports.thpc = {
|
|
7
|
-
v20211109: v20211109_1.v20211109,
|
|
8
7
|
v20220401: v20220401_1.v20220401,
|
|
8
|
+
v20211109: v20211109_1.v20211109,
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeClustersRequest, SetAutoScalingConfigurationRequest, DeleteNodesResponse, DeleteClusterResponse, SetAutoScalingConfigurationResponse, CreateClusterRequest,
|
|
2
|
+
import { DescribeClustersRequest, SetAutoScalingConfigurationRequest, DeleteNodesResponse, DeleteClusterResponse, CreateClusterResponse, SetAutoScalingConfigurationResponse, CreateClusterRequest, BindAutoScalingGroupResponse, DeleteClusterRequest, DescribeClusterActivitiesRequest, AddNodesRequest, BindAutoScalingGroupRequest, DeleteNodesRequest, DescribeClustersResponse, DescribeClusterActivitiesResponse, AddNodesResponse } from "./thpc_models";
|
|
3
3
|
/**
|
|
4
4
|
* thpc client
|
|
5
5
|
* @class
|
|
@@ -34,4 +34,8 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
34
34
|
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
35
35
|
*/
|
|
36
36
|
DeleteCluster(req: DeleteClusterRequest, cb?: (error: string, rep: DeleteClusterResponse) => void): Promise<DeleteClusterResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
|
|
39
|
+
*/
|
|
40
|
+
DescribeClusterActivities(req: DescribeClusterActivitiesRequest, cb?: (error: string, rep: DescribeClusterActivitiesResponse) => void): Promise<DescribeClusterActivitiesResponse>;
|
|
37
41
|
}
|
|
@@ -69,5 +69,11 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
69
69
|
async DeleteCluster(req, cb) {
|
|
70
70
|
return this.request("DeleteCluster", req, cb);
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
|
|
74
|
+
*/
|
|
75
|
+
async DescribeClusterActivities(req, cb) {
|
|
76
|
+
return this.request("DescribeClusterActivities", req, cb);
|
|
77
|
+
}
|
|
72
78
|
}
|
|
73
79
|
exports.Client = Client;
|
|
@@ -154,6 +154,30 @@ export interface ExpansionNodeConfig {
|
|
|
154
154
|
*/
|
|
155
155
|
VirtualPrivateCloud?: VirtualPrivateCloud;
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* 节点活动信息。
|
|
159
|
+
*/
|
|
160
|
+
export interface NodeActivity {
|
|
161
|
+
/**
|
|
162
|
+
* 节点活动所在的实例ID。
|
|
163
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
164
|
+
*/
|
|
165
|
+
NodeInstanceId: string;
|
|
166
|
+
/**
|
|
167
|
+
* 节点活动状态。取值范围:<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>FAILED:活动失败
|
|
168
|
+
*/
|
|
169
|
+
NodeActivityStatus: string;
|
|
170
|
+
/**
|
|
171
|
+
* 节点活动状态码。
|
|
172
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
173
|
+
*/
|
|
174
|
+
NodeActivityStatusCode: string;
|
|
175
|
+
/**
|
|
176
|
+
* 节点活动状态原因。
|
|
177
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
178
|
+
*/
|
|
179
|
+
NodeActivityStatusReason: string;
|
|
180
|
+
}
|
|
157
181
|
/**
|
|
158
182
|
* 扩容队列配置。
|
|
159
183
|
*/
|
|
@@ -199,6 +223,59 @@ export interface QueueConfig {
|
|
|
199
223
|
*/
|
|
200
224
|
ExpansionNodeConfigs?: Array<ExpansionNodeConfig>;
|
|
201
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* 符合条件的集群活动信息。
|
|
228
|
+
*/
|
|
229
|
+
export interface ClusterActivity {
|
|
230
|
+
/**
|
|
231
|
+
* 集群ID。
|
|
232
|
+
*/
|
|
233
|
+
ClusterId: string;
|
|
234
|
+
/**
|
|
235
|
+
* 集群活动ID。
|
|
236
|
+
*/
|
|
237
|
+
ActivityId: string;
|
|
238
|
+
/**
|
|
239
|
+
* 集群活动类型。
|
|
240
|
+
*/
|
|
241
|
+
ActivityType: string;
|
|
242
|
+
/**
|
|
243
|
+
* 集群活动状态。取值范围:<br><li>PENDING:等待运行<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>PARTIALLY_SUCCESSFUL:活动部分成功<br><li>FAILED:活动失败
|
|
244
|
+
*/
|
|
245
|
+
ActivityStatus: string;
|
|
246
|
+
/**
|
|
247
|
+
* 集群活动状态码。
|
|
248
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
249
|
+
*/
|
|
250
|
+
ActivityStatusCode: string;
|
|
251
|
+
/**
|
|
252
|
+
* 集群活动结果详情。
|
|
253
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
254
|
+
*/
|
|
255
|
+
ResultDetail: string;
|
|
256
|
+
/**
|
|
257
|
+
* 集群活动起因。
|
|
258
|
+
*/
|
|
259
|
+
Cause: string;
|
|
260
|
+
/**
|
|
261
|
+
* 集群活动描述。
|
|
262
|
+
*/
|
|
263
|
+
Description: string;
|
|
264
|
+
/**
|
|
265
|
+
* 集群活动相关节点活动集合。
|
|
266
|
+
*/
|
|
267
|
+
RelatedNodeActivitySet: Array<NodeActivity>;
|
|
268
|
+
/**
|
|
269
|
+
* 集群活动开始时间。
|
|
270
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
271
|
+
*/
|
|
272
|
+
StartTime: string;
|
|
273
|
+
/**
|
|
274
|
+
* 集群活动结束时间。
|
|
275
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
276
|
+
*/
|
|
277
|
+
EndTime: string;
|
|
278
|
+
}
|
|
202
279
|
/**
|
|
203
280
|
* 登录节点概览。
|
|
204
281
|
*/
|
|
@@ -233,40 +310,18 @@ export interface CFSOption {
|
|
|
233
310
|
StorageType?: string;
|
|
234
311
|
}
|
|
235
312
|
/**
|
|
236
|
-
*
|
|
313
|
+
* CreateCluster返回参数结构体
|
|
237
314
|
*/
|
|
238
|
-
export interface
|
|
239
|
-
/**
|
|
240
|
-
* 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br>默认值:POSTPAID_BY_HOUR。
|
|
241
|
-
*/
|
|
242
|
-
InstanceChargeType?: string;
|
|
243
|
-
/**
|
|
244
|
-
* 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
|
|
245
|
-
*/
|
|
246
|
-
InstanceChargePrepaid?: InstanceChargePrepaid;
|
|
315
|
+
export interface CreateClusterResponse {
|
|
247
316
|
/**
|
|
248
|
-
*
|
|
249
|
-
|
|
317
|
+
* 集群ID。
|
|
318
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
250
319
|
*/
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
254
|
-
*/
|
|
255
|
-
SystemDisk?: Array<SystemDisk>;
|
|
256
|
-
/**
|
|
257
|
-
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
258
|
-
*/
|
|
259
|
-
DataDisks?: Array<DataDisk>;
|
|
320
|
+
ClusterId: string;
|
|
260
321
|
/**
|
|
261
|
-
*
|
|
322
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
262
323
|
*/
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* 节点显示名称。<br><li>
|
|
266
|
-
不指定节点显示名称则默认显示‘未命名’。
|
|
267
|
-
最多支持60个字符。
|
|
268
|
-
*/
|
|
269
|
-
InstanceName?: string;
|
|
324
|
+
RequestId?: string;
|
|
270
325
|
}
|
|
271
326
|
/**
|
|
272
327
|
* SetAutoScalingConfiguration返回参数结构体
|
|
@@ -377,18 +432,40 @@ export interface Tag {
|
|
|
377
432
|
Value: string;
|
|
378
433
|
}
|
|
379
434
|
/**
|
|
380
|
-
*
|
|
435
|
+
* 登录节点信息。
|
|
381
436
|
*/
|
|
382
|
-
export interface
|
|
437
|
+
export interface LoginNode {
|
|
383
438
|
/**
|
|
384
|
-
|
|
385
|
-
|
|
439
|
+
* 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br>默认值:POSTPAID_BY_HOUR。
|
|
440
|
+
*/
|
|
441
|
+
InstanceChargeType?: string;
|
|
442
|
+
/**
|
|
443
|
+
* 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
|
|
444
|
+
*/
|
|
445
|
+
InstanceChargePrepaid?: InstanceChargePrepaid;
|
|
446
|
+
/**
|
|
447
|
+
* 节点机型。不同实例机型指定了不同的资源规格。
|
|
448
|
+
<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
|
|
386
449
|
*/
|
|
387
|
-
|
|
450
|
+
InstanceType?: string;
|
|
388
451
|
/**
|
|
389
|
-
*
|
|
452
|
+
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
390
453
|
*/
|
|
391
|
-
|
|
454
|
+
SystemDisk?: Array<SystemDisk>;
|
|
455
|
+
/**
|
|
456
|
+
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
457
|
+
*/
|
|
458
|
+
DataDisks?: Array<DataDisk>;
|
|
459
|
+
/**
|
|
460
|
+
* 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
|
|
461
|
+
*/
|
|
462
|
+
InternetAccessible?: Array<InternetAccessible>;
|
|
463
|
+
/**
|
|
464
|
+
* 节点显示名称。<br><li>
|
|
465
|
+
不指定节点显示名称则默认显示‘未命名’。
|
|
466
|
+
最多支持60个字符。
|
|
467
|
+
*/
|
|
468
|
+
InstanceName?: string;
|
|
392
469
|
}
|
|
393
470
|
/**
|
|
394
471
|
* BindAutoScalingGroup返回参数结构体
|
|
@@ -496,17 +573,21 @@ export interface Placement {
|
|
|
496
573
|
Zone: string;
|
|
497
574
|
}
|
|
498
575
|
/**
|
|
499
|
-
*
|
|
576
|
+
* DescribeClusterActivities请求参数结构体
|
|
500
577
|
*/
|
|
501
|
-
export interface
|
|
578
|
+
export interface DescribeClusterActivitiesRequest {
|
|
502
579
|
/**
|
|
503
|
-
*
|
|
580
|
+
* 集群ID。通过该参数指定需要查询活动历史记录的集群。
|
|
504
581
|
*/
|
|
505
|
-
|
|
582
|
+
ClusterId: string;
|
|
506
583
|
/**
|
|
507
|
-
*
|
|
584
|
+
* 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
508
585
|
*/
|
|
509
|
-
|
|
586
|
+
Offset?: number;
|
|
587
|
+
/**
|
|
588
|
+
* 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
589
|
+
*/
|
|
590
|
+
Limit?: number;
|
|
510
591
|
}
|
|
511
592
|
/**
|
|
512
593
|
* AddNodes请求参数结构体
|
|
@@ -649,6 +730,24 @@ export interface VirtualPrivateCloud {
|
|
|
649
730
|
*/
|
|
650
731
|
SubnetId: string;
|
|
651
732
|
}
|
|
733
|
+
/**
|
|
734
|
+
* 描述了实例的计费模式
|
|
735
|
+
*/
|
|
736
|
+
export interface InstanceChargePrepaid {
|
|
737
|
+
/**
|
|
738
|
+
* 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
|
|
739
|
+
*/
|
|
740
|
+
Period: number;
|
|
741
|
+
/**
|
|
742
|
+
* 自动续费标识。取值范围:
|
|
743
|
+
NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
|
|
744
|
+
NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
|
|
745
|
+
DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
|
|
746
|
+
|
|
747
|
+
默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
|
|
748
|
+
*/
|
|
749
|
+
RenewFlag?: string;
|
|
750
|
+
}
|
|
652
751
|
/**
|
|
653
752
|
* 描述集群文件系统选项
|
|
654
753
|
*/
|
|
@@ -764,22 +863,34 @@ export interface GooseFSOption {
|
|
|
764
863
|
Masters: Array<string>;
|
|
765
864
|
}
|
|
766
865
|
/**
|
|
767
|
-
*
|
|
866
|
+
* DescribeClusterActivities返回参数结构体
|
|
768
867
|
*/
|
|
769
|
-
export interface
|
|
868
|
+
export interface DescribeClusterActivitiesResponse {
|
|
770
869
|
/**
|
|
771
|
-
*
|
|
870
|
+
* 集群活动历史记录列表。
|
|
772
871
|
*/
|
|
773
|
-
|
|
872
|
+
ClusterActivitySet: Array<ClusterActivity>;
|
|
774
873
|
/**
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
874
|
+
* 集群活动历史记录数量。
|
|
875
|
+
*/
|
|
876
|
+
TotalCount: number;
|
|
877
|
+
/**
|
|
878
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
879
|
+
*/
|
|
880
|
+
RequestId?: string;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* 描述了数据盘的信息
|
|
884
|
+
*/
|
|
885
|
+
export interface DataDisk {
|
|
886
|
+
/**
|
|
887
|
+
* 数据盘大小,单位:GB。最小调整步长为10G,不同数据盘类型取值范围不同,具体限制详见:[存储概述](https://cloud.tencent.com/document/product/213/4952)。默认值为0,表示不购买数据盘。更多限制详见产品文档。
|
|
888
|
+
*/
|
|
889
|
+
DiskSize: number;
|
|
890
|
+
/**
|
|
891
|
+
* 数据盘类型。数据盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>LOCAL_NVME:本地NVME硬盘,与InstanceType强相关,不支持指定<br><li>LOCAL_PRO:本地HDD硬盘,与InstanceType强相关,不支持指定<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><li>CLOUD_HSSD:增强型SSD云硬盘<br><li>CLOUD_TSSD:极速型SSD云硬盘<br><br>默认取值:LOCAL_BASIC。
|
|
892
|
+
*/
|
|
893
|
+
DiskType?: string;
|
|
783
894
|
}
|
|
784
895
|
/**
|
|
785
896
|
* AddNodes返回参数结构体
|