tencentcloud-sdk-nodejs-thpc 4.0.317 → 4.0.320
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 +318 -0
- package/SERVICE_CHANGELOG.md +673 -292
- package/package.json +1 -1
- package/products.md +170 -168
- package/src/services/thpc/index.ts +2 -0
- package/src/services/thpc/v20211109/thpc_client.ts +5 -2
- package/src/services/thpc/v20211109/thpc_models.ts +127 -28
- package/src/services/thpc/v20220401/index.ts +6 -0
- package/src/services/thpc/v20220401/thpc_client.ts +120 -0
- package/src/services/thpc/v20220401/thpc_models.ts +805 -0
- package/tencentcloud/services/thpc/index.d.ts +4 -0
- package/tencentcloud/services/thpc/index.js +2 -0
- package/tencentcloud/services/thpc/v20211109/thpc_client.d.ts +1 -1
- package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +111 -27
- package/tencentcloud/services/thpc/v20220401/index.d.ts +6 -0
- package/tencentcloud/services/thpc/v20220401/index.js +9 -0
- package/tencentcloud/services/thpc/v20220401/thpc_client.d.ts +33 -0
- package/tencentcloud/services/thpc/v20220401/thpc_client.js +67 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +671 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.js +18 -0
|
@@ -3,4 +3,8 @@ export declare const thpc: {
|
|
|
3
3
|
Client: typeof import("./v20211109/thpc_client").Client;
|
|
4
4
|
Models: typeof import("./v20211109/thpc_models");
|
|
5
5
|
};
|
|
6
|
+
v20220401: {
|
|
7
|
+
Client: typeof import("./v20220401/thpc_client").Client;
|
|
8
|
+
Models: typeof import("./v20220401/thpc_models");
|
|
9
|
+
};
|
|
6
10
|
};
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.thpc = void 0;
|
|
4
4
|
const v20211109_1 = require("./v20211109");
|
|
5
|
+
const v20220401_1 = require("./v20220401");
|
|
5
6
|
exports.thpc = {
|
|
6
7
|
v20211109: v20211109_1.v20211109,
|
|
8
|
+
v20220401: v20220401_1.v20220401,
|
|
7
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeClustersRequest, DeleteClusterResponse,
|
|
2
|
+
import { DescribeClustersRequest, DeleteClusterResponse, CreateClusterRequest, CreateClusterResponse, BindAutoScalingGroupResponse, DeleteClusterRequest, BindAutoScalingGroupRequest, DescribeClustersResponse } from "./thpc_models";
|
|
3
3
|
/**
|
|
4
4
|
* thpc client
|
|
5
5
|
* @class
|
|
@@ -42,6 +42,14 @@ export interface ClusterOverview {
|
|
|
42
42
|
* 管控节点概览。
|
|
43
43
|
*/
|
|
44
44
|
ManagerNodeSet: Array<ManagerNodeOverview>;
|
|
45
|
+
/**
|
|
46
|
+
* 登录节点概览。
|
|
47
|
+
*/
|
|
48
|
+
LoginNodeSet: Array<LoginNodeOverview>;
|
|
49
|
+
/**
|
|
50
|
+
* 登录节点数量。
|
|
51
|
+
*/
|
|
52
|
+
LoginNodeCount: number;
|
|
45
53
|
}
|
|
46
54
|
/**
|
|
47
55
|
* DescribeClusters请求参数结构体
|
|
@@ -78,6 +86,24 @@ export interface DeleteClusterResponse {
|
|
|
78
86
|
*/
|
|
79
87
|
RequestId?: string;
|
|
80
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* 描述了实例的公网可访问性,声明了实例的公网使用计费模式,最大带宽等
|
|
91
|
+
*/
|
|
92
|
+
export interface InternetAccessible {
|
|
93
|
+
/**
|
|
94
|
+
* 网络计费类型。取值范围:
|
|
95
|
+
BANDWIDTH_PREPAID:预付费按带宽结算
|
|
96
|
+
TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费
|
|
97
|
+
BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费
|
|
98
|
+
BANDWIDTH_PACKAGE:带宽包用户
|
|
99
|
+
默认取值:非带宽包用户默认与子机付费类型保持一致。
|
|
100
|
+
*/
|
|
101
|
+
InternetChargeType?: string;
|
|
102
|
+
/**
|
|
103
|
+
* 公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见购买网络带宽。
|
|
104
|
+
*/
|
|
105
|
+
InternetMaxBandwidthOut?: number;
|
|
106
|
+
}
|
|
81
107
|
/**
|
|
82
108
|
* 描述CFS文件系统版本和挂载信息
|
|
83
109
|
*/
|
|
@@ -91,8 +117,11 @@ export interface CFSOption {
|
|
|
91
117
|
*/
|
|
92
118
|
RemotePath: string;
|
|
93
119
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
120
|
+
* 文件系统协议类型,默认值NFS 3.0。
|
|
121
|
+
<li>NFS 3.0。
|
|
122
|
+
<li>NFS 4.0。
|
|
123
|
+
<li>TURBO。
|
|
124
|
+
*/
|
|
96
125
|
Protocol?: string;
|
|
97
126
|
/**
|
|
98
127
|
* 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。
|
|
@@ -100,18 +129,40 @@ export interface CFSOption {
|
|
|
100
129
|
StorageType?: string;
|
|
101
130
|
}
|
|
102
131
|
/**
|
|
103
|
-
*
|
|
132
|
+
* 登录节点信息。
|
|
104
133
|
*/
|
|
105
|
-
export interface
|
|
134
|
+
export interface LoginNode {
|
|
106
135
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
136
|
+
* 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。
|
|
137
|
+
*/
|
|
138
|
+
InstanceChargeType?: string;
|
|
139
|
+
/**
|
|
140
|
+
* 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
|
|
141
|
+
*/
|
|
142
|
+
InstanceChargePrepaid?: InstanceChargePrepaid;
|
|
143
|
+
/**
|
|
144
|
+
* 节点机型。不同实例机型指定了不同的资源规格。
|
|
145
|
+
<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
|
|
109
146
|
*/
|
|
110
|
-
|
|
147
|
+
InstanceType?: string;
|
|
111
148
|
/**
|
|
112
|
-
*
|
|
149
|
+
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
113
150
|
*/
|
|
114
|
-
|
|
151
|
+
SystemDisk?: Array<SystemDisk>;
|
|
152
|
+
/**
|
|
153
|
+
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
154
|
+
*/
|
|
155
|
+
DataDisks?: Array<DataDisk>;
|
|
156
|
+
/**
|
|
157
|
+
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
158
|
+
*/
|
|
159
|
+
InternetAccessible?: Array<InternetAccessible>;
|
|
160
|
+
/**
|
|
161
|
+
* 节点显示名称。<br><li>
|
|
162
|
+
不指定节点显示名称则默认显示‘未命名’。
|
|
163
|
+
最多支持60个字符。
|
|
164
|
+
*/
|
|
165
|
+
InstanceName?: string;
|
|
115
166
|
}
|
|
116
167
|
/**
|
|
117
168
|
* CreateCluster请求参数结构体
|
|
@@ -126,7 +177,7 @@ export interface CreateClusterRequest {
|
|
|
126
177
|
*/
|
|
127
178
|
ManagerNode?: ManagerNode;
|
|
128
179
|
/**
|
|
129
|
-
*
|
|
180
|
+
* 指定管理节点的数量。默认取值:1。取值范围:1~2。
|
|
130
181
|
*/
|
|
131
182
|
ManagerNodeCount?: number;
|
|
132
183
|
/**
|
|
@@ -138,11 +189,11 @@ export interface CreateClusterRequest {
|
|
|
138
189
|
*/
|
|
139
190
|
ComputeNodeCount?: number;
|
|
140
191
|
/**
|
|
141
|
-
* 调度器类型。<br><li>SGE:SGE调度器。
|
|
192
|
+
* 调度器类型。<br><li>SGE:SGE调度器。<br><li>SLURM:SLURM调度器。
|
|
142
193
|
*/
|
|
143
194
|
SchedulerType?: string;
|
|
144
195
|
/**
|
|
145
|
-
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx
|
|
196
|
+
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像。
|
|
146
197
|
*/
|
|
147
198
|
ImageId?: string;
|
|
148
199
|
/**
|
|
@@ -170,8 +221,9 @@ export interface CreateClusterRequest {
|
|
|
170
221
|
*/
|
|
171
222
|
DryRun?: boolean;
|
|
172
223
|
/**
|
|
173
|
-
|
|
174
|
-
|
|
224
|
+
* 域名字服务类型。默认值:NIS
|
|
225
|
+
<li>NIS:NIS域名字服务。
|
|
226
|
+
*/
|
|
175
227
|
AccountType?: string;
|
|
176
228
|
/**
|
|
177
229
|
* 集群显示名称。
|
|
@@ -181,6 +233,47 @@ export interface CreateClusterRequest {
|
|
|
181
233
|
* 集群存储选项
|
|
182
234
|
*/
|
|
183
235
|
StorageOption?: StorageOption;
|
|
236
|
+
/**
|
|
237
|
+
* 已废弃。
|
|
238
|
+
指定登录节点。
|
|
239
|
+
*/
|
|
240
|
+
LoginNode?: Array<LoginNode>;
|
|
241
|
+
/**
|
|
242
|
+
* 已废弃。
|
|
243
|
+
指定登录节点的数量。默认取值:0。取值范围:0~10。
|
|
244
|
+
*/
|
|
245
|
+
LoginNodeCount?: number;
|
|
246
|
+
/**
|
|
247
|
+
* 创建集群时同时绑定的标签对说明。
|
|
248
|
+
*/
|
|
249
|
+
Tags?: Array<Tag>;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* 标签键值对。
|
|
253
|
+
*/
|
|
254
|
+
export interface Tag {
|
|
255
|
+
/**
|
|
256
|
+
* 标签键
|
|
257
|
+
*/
|
|
258
|
+
Key: string;
|
|
259
|
+
/**
|
|
260
|
+
* 标签值
|
|
261
|
+
*/
|
|
262
|
+
Value: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* CreateCluster返回参数结构体
|
|
266
|
+
*/
|
|
267
|
+
export interface CreateClusterResponse {
|
|
268
|
+
/**
|
|
269
|
+
* 集群ID。
|
|
270
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
271
|
+
*/
|
|
272
|
+
ClusterId: string;
|
|
273
|
+
/**
|
|
274
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
275
|
+
*/
|
|
276
|
+
RequestId?: string;
|
|
184
277
|
}
|
|
185
278
|
/**
|
|
186
279
|
* BindAutoScalingGroup返回参数结构体
|
|
@@ -355,22 +448,13 @@ export interface StorageOption {
|
|
|
355
448
|
GooseFSOptions?: Array<GooseFSOption>;
|
|
356
449
|
}
|
|
357
450
|
/**
|
|
358
|
-
*
|
|
451
|
+
* 登录节点概览。
|
|
359
452
|
*/
|
|
360
|
-
export interface
|
|
453
|
+
export interface LoginNodeOverview {
|
|
361
454
|
/**
|
|
362
|
-
|
|
363
|
-
BANDWIDTH_PREPAID:预付费按带宽结算
|
|
364
|
-
TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费
|
|
365
|
-
BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费
|
|
366
|
-
BANDWIDTH_PACKAGE:带宽包用户
|
|
367
|
-
默认取值:非带宽包用户默认与子机付费类型保持一致。
|
|
368
|
-
*/
|
|
369
|
-
InternetChargeType?: string;
|
|
370
|
-
/**
|
|
371
|
-
* 公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见购买网络带宽。
|
|
455
|
+
* 登录节点ID。
|
|
372
456
|
*/
|
|
373
|
-
|
|
457
|
+
NodeId: string;
|
|
374
458
|
}
|
|
375
459
|
/**
|
|
376
460
|
* 计算节点信息。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20220401 = void 0;
|
|
4
|
+
const Models = require("./thpc_models");
|
|
5
|
+
const thpc_client_1 = require("./thpc_client");
|
|
6
|
+
exports.v20220401 = {
|
|
7
|
+
Client: thpc_client_1.Client,
|
|
8
|
+
Models: Models,
|
|
9
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
import { DescribeClustersRequest, DeleteNodesResponse, DeleteClusterResponse, CreateClusterRequest, CreateClusterResponse, BindAutoScalingGroupResponse, DeleteClusterRequest, AddNodesRequest, BindAutoScalingGroupRequest, DeleteNodesRequest, DescribeClustersResponse, AddNodesResponse } from "./thpc_models";
|
|
3
|
+
/**
|
|
4
|
+
* thpc client
|
|
5
|
+
* @class
|
|
6
|
+
*/
|
|
7
|
+
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
|
11
|
+
*/
|
|
12
|
+
DeleteNodes(req: DeleteNodesRequest, cb?: (error: string, rep: DeleteNodesResponse) => void): Promise<DeleteNodesResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
|
|
15
|
+
*/
|
|
16
|
+
BindAutoScalingGroup(req: BindAutoScalingGroupRequest, cb?: (error: string, rep: BindAutoScalingGroupResponse) => void): Promise<BindAutoScalingGroupResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* 本接口 (CreateCluster) 用于创建并启动集群。
|
|
19
|
+
*/
|
|
20
|
+
CreateCluster(req: CreateClusterRequest, cb?: (error: string, rep: CreateClusterResponse) => void): Promise<CreateClusterResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
23
|
+
*/
|
|
24
|
+
AddNodes(req: AddNodesRequest, cb?: (error: string, rep: AddNodesResponse) => void): Promise<AddNodesResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* 本接口(DescribeClusters)用于查询集群列表。
|
|
27
|
+
*/
|
|
28
|
+
DescribeClusters(req: DescribeClustersRequest, cb?: (error: string, rep: DescribeClustersResponse) => void): Promise<DescribeClustersResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
31
|
+
*/
|
|
32
|
+
DeleteCluster(req: DeleteClusterRequest, cb?: (error: string, rep: DeleteClusterResponse) => void): Promise<DeleteClusterResponse>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
/**
|
|
23
|
+
* thpc client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends TencentCloudCommon.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("thpc.tencentcloudapi.com", "2022-04-01", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
|
32
|
+
*/
|
|
33
|
+
async DeleteNodes(req, cb) {
|
|
34
|
+
return this.request("DeleteNodes", req, cb);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
|
|
38
|
+
*/
|
|
39
|
+
async BindAutoScalingGroup(req, cb) {
|
|
40
|
+
return this.request("BindAutoScalingGroup", req, cb);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 本接口 (CreateCluster) 用于创建并启动集群。
|
|
44
|
+
*/
|
|
45
|
+
async CreateCluster(req, cb) {
|
|
46
|
+
return this.request("CreateCluster", req, cb);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
50
|
+
*/
|
|
51
|
+
async AddNodes(req, cb) {
|
|
52
|
+
return this.request("AddNodes", req, cb);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 本接口(DescribeClusters)用于查询集群列表。
|
|
56
|
+
*/
|
|
57
|
+
async DescribeClusters(req, cb) {
|
|
58
|
+
return this.request("DescribeClusters", req, cb);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
62
|
+
*/
|
|
63
|
+
async DeleteCluster(req, cb) {
|
|
64
|
+
return this.request("DeleteCluster", req, cb);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.Client = Client;
|