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
|
@@ -68,6 +68,16 @@ export interface ClusterOverview {
|
|
|
68
68
|
* 管控节点概览。
|
|
69
69
|
*/
|
|
70
70
|
ManagerNodeSet: Array<ManagerNodeOverview>
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 登录节点概览。
|
|
74
|
+
*/
|
|
75
|
+
LoginNodeSet: Array<LoginNodeOverview>
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 登录节点数量。
|
|
79
|
+
*/
|
|
80
|
+
LoginNodeCount: number
|
|
71
81
|
}
|
|
72
82
|
|
|
73
83
|
/**
|
|
@@ -110,6 +120,26 @@ export interface DeleteClusterResponse {
|
|
|
110
120
|
RequestId?: string
|
|
111
121
|
}
|
|
112
122
|
|
|
123
|
+
/**
|
|
124
|
+
* 描述了实例的公网可访问性,声明了实例的公网使用计费模式,最大带宽等
|
|
125
|
+
*/
|
|
126
|
+
export interface InternetAccessible {
|
|
127
|
+
/**
|
|
128
|
+
* 网络计费类型。取值范围:
|
|
129
|
+
BANDWIDTH_PREPAID:预付费按带宽结算
|
|
130
|
+
TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费
|
|
131
|
+
BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费
|
|
132
|
+
BANDWIDTH_PACKAGE:带宽包用户
|
|
133
|
+
默认取值:非带宽包用户默认与子机付费类型保持一致。
|
|
134
|
+
*/
|
|
135
|
+
InternetChargeType?: string
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* 公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见购买网络带宽。
|
|
139
|
+
*/
|
|
140
|
+
InternetMaxBandwidthOut?: number
|
|
141
|
+
}
|
|
142
|
+
|
|
113
143
|
/**
|
|
114
144
|
* 描述CFS文件系统版本和挂载信息
|
|
115
145
|
*/
|
|
@@ -125,8 +155,11 @@ export interface CFSOption {
|
|
|
125
155
|
RemotePath: string
|
|
126
156
|
|
|
127
157
|
/**
|
|
128
|
-
|
|
129
|
-
|
|
158
|
+
* 文件系统协议类型,默认值NFS 3.0。
|
|
159
|
+
<li>NFS 3.0。
|
|
160
|
+
<li>NFS 4.0。
|
|
161
|
+
<li>TURBO。
|
|
162
|
+
*/
|
|
130
163
|
Protocol?: string
|
|
131
164
|
|
|
132
165
|
/**
|
|
@@ -136,19 +169,46 @@ export interface CFSOption {
|
|
|
136
169
|
}
|
|
137
170
|
|
|
138
171
|
/**
|
|
139
|
-
*
|
|
172
|
+
* 登录节点信息。
|
|
140
173
|
*/
|
|
141
|
-
export interface
|
|
174
|
+
export interface LoginNode {
|
|
142
175
|
/**
|
|
143
|
-
|
|
144
|
-
|
|
176
|
+
* 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。
|
|
177
|
+
*/
|
|
178
|
+
InstanceChargeType?: string
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
|
|
182
|
+
*/
|
|
183
|
+
InstanceChargePrepaid?: InstanceChargePrepaid
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* 节点机型。不同实例机型指定了不同的资源规格。
|
|
187
|
+
<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
|
|
145
188
|
*/
|
|
146
|
-
|
|
189
|
+
InstanceType?: string
|
|
147
190
|
|
|
148
191
|
/**
|
|
149
|
-
*
|
|
192
|
+
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
150
193
|
*/
|
|
151
|
-
|
|
194
|
+
SystemDisk?: Array<SystemDisk>
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
198
|
+
*/
|
|
199
|
+
DataDisks?: Array<DataDisk>
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
|
|
203
|
+
*/
|
|
204
|
+
InternetAccessible?: Array<InternetAccessible>
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* 节点显示名称。<br><li>
|
|
208
|
+
不指定节点显示名称则默认显示‘未命名’。
|
|
209
|
+
最多支持60个字符。
|
|
210
|
+
*/
|
|
211
|
+
InstanceName?: string
|
|
152
212
|
}
|
|
153
213
|
|
|
154
214
|
/**
|
|
@@ -166,7 +226,7 @@ export interface CreateClusterRequest {
|
|
|
166
226
|
ManagerNode?: ManagerNode
|
|
167
227
|
|
|
168
228
|
/**
|
|
169
|
-
*
|
|
229
|
+
* 指定管理节点的数量。默认取值:1。取值范围:1~2。
|
|
170
230
|
*/
|
|
171
231
|
ManagerNodeCount?: number
|
|
172
232
|
|
|
@@ -181,12 +241,12 @@ export interface CreateClusterRequest {
|
|
|
181
241
|
ComputeNodeCount?: number
|
|
182
242
|
|
|
183
243
|
/**
|
|
184
|
-
* 调度器类型。<br><li>SGE:SGE调度器。
|
|
244
|
+
* 调度器类型。<br><li>SGE:SGE调度器。<br><li>SLURM:SLURM调度器。
|
|
185
245
|
*/
|
|
186
246
|
SchedulerType?: string
|
|
187
247
|
|
|
188
248
|
/**
|
|
189
|
-
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx
|
|
249
|
+
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像。
|
|
190
250
|
*/
|
|
191
251
|
ImageId?: string
|
|
192
252
|
|
|
@@ -220,8 +280,9 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
|
220
280
|
DryRun?: boolean
|
|
221
281
|
|
|
222
282
|
/**
|
|
223
|
-
|
|
224
|
-
|
|
283
|
+
* 域名字服务类型。默认值:NIS
|
|
284
|
+
<li>NIS:NIS域名字服务。
|
|
285
|
+
*/
|
|
225
286
|
AccountType?: string
|
|
226
287
|
|
|
227
288
|
/**
|
|
@@ -233,6 +294,54 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
|
233
294
|
* 集群存储选项
|
|
234
295
|
*/
|
|
235
296
|
StorageOption?: StorageOption
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* 已废弃。
|
|
300
|
+
指定登录节点。
|
|
301
|
+
*/
|
|
302
|
+
LoginNode?: Array<LoginNode>
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* 已废弃。
|
|
306
|
+
指定登录节点的数量。默认取值:0。取值范围:0~10。
|
|
307
|
+
*/
|
|
308
|
+
LoginNodeCount?: number
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* 创建集群时同时绑定的标签对说明。
|
|
312
|
+
*/
|
|
313
|
+
Tags?: Array<Tag>
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* 标签键值对。
|
|
318
|
+
*/
|
|
319
|
+
export interface Tag {
|
|
320
|
+
/**
|
|
321
|
+
* 标签键
|
|
322
|
+
*/
|
|
323
|
+
Key: string
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* 标签值
|
|
327
|
+
*/
|
|
328
|
+
Value: string
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* CreateCluster返回参数结构体
|
|
333
|
+
*/
|
|
334
|
+
export interface CreateClusterResponse {
|
|
335
|
+
/**
|
|
336
|
+
* 集群ID。
|
|
337
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
338
|
+
*/
|
|
339
|
+
ClusterId: string
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
343
|
+
*/
|
|
344
|
+
RequestId?: string
|
|
236
345
|
}
|
|
237
346
|
|
|
238
347
|
/**
|
|
@@ -434,23 +543,13 @@ export interface StorageOption {
|
|
|
434
543
|
}
|
|
435
544
|
|
|
436
545
|
/**
|
|
437
|
-
*
|
|
546
|
+
* 登录节点概览。
|
|
438
547
|
*/
|
|
439
|
-
export interface
|
|
440
|
-
/**
|
|
441
|
-
* 网络计费类型。取值范围:
|
|
442
|
-
BANDWIDTH_PREPAID:预付费按带宽结算
|
|
443
|
-
TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费
|
|
444
|
-
BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费
|
|
445
|
-
BANDWIDTH_PACKAGE:带宽包用户
|
|
446
|
-
默认取值:非带宽包用户默认与子机付费类型保持一致。
|
|
447
|
-
*/
|
|
448
|
-
InternetChargeType?: string
|
|
449
|
-
|
|
548
|
+
export interface LoginNodeOverview {
|
|
450
549
|
/**
|
|
451
|
-
*
|
|
550
|
+
* 登录节点ID。
|
|
452
551
|
*/
|
|
453
|
-
|
|
552
|
+
NodeId: string
|
|
454
553
|
}
|
|
455
554
|
|
|
456
555
|
/**
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
|
+
import {
|
|
20
|
+
ClusterOverview,
|
|
21
|
+
DescribeClustersRequest,
|
|
22
|
+
LoginSettings,
|
|
23
|
+
DeleteNodesResponse,
|
|
24
|
+
DeleteClusterResponse,
|
|
25
|
+
InternetAccessible,
|
|
26
|
+
CFSOption,
|
|
27
|
+
LoginNode,
|
|
28
|
+
CreateClusterRequest,
|
|
29
|
+
Tag,
|
|
30
|
+
CreateClusterResponse,
|
|
31
|
+
BindAutoScalingGroupResponse,
|
|
32
|
+
ManagerNodeOverview,
|
|
33
|
+
ManagerNode,
|
|
34
|
+
DeleteClusterRequest,
|
|
35
|
+
ComputeNodeOverview,
|
|
36
|
+
SystemDisk,
|
|
37
|
+
Placement,
|
|
38
|
+
DataDisk,
|
|
39
|
+
AddNodesRequest,
|
|
40
|
+
BindAutoScalingGroupRequest,
|
|
41
|
+
VirtualPrivateCloud,
|
|
42
|
+
StorageOption,
|
|
43
|
+
LoginNodeOverview,
|
|
44
|
+
ComputeNode,
|
|
45
|
+
DeleteNodesRequest,
|
|
46
|
+
DescribeClustersResponse,
|
|
47
|
+
GooseFSOption,
|
|
48
|
+
InstanceChargePrepaid,
|
|
49
|
+
AddNodesResponse,
|
|
50
|
+
} from "./thpc_models"
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* thpc client
|
|
54
|
+
* @class
|
|
55
|
+
*/
|
|
56
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
57
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
58
|
+
super("thpc.tencentcloudapi.com", "2022-04-01", clientConfig)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
|
63
|
+
*/
|
|
64
|
+
async DeleteNodes(
|
|
65
|
+
req: DeleteNodesRequest,
|
|
66
|
+
cb?: (error: string, rep: DeleteNodesResponse) => void
|
|
67
|
+
): Promise<DeleteNodesResponse> {
|
|
68
|
+
return this.request("DeleteNodes", req, cb)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
|
|
73
|
+
*/
|
|
74
|
+
async BindAutoScalingGroup(
|
|
75
|
+
req: BindAutoScalingGroupRequest,
|
|
76
|
+
cb?: (error: string, rep: BindAutoScalingGroupResponse) => void
|
|
77
|
+
): Promise<BindAutoScalingGroupResponse> {
|
|
78
|
+
return this.request("BindAutoScalingGroup", req, cb)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 本接口 (CreateCluster) 用于创建并启动集群。
|
|
83
|
+
*/
|
|
84
|
+
async CreateCluster(
|
|
85
|
+
req: CreateClusterRequest,
|
|
86
|
+
cb?: (error: string, rep: CreateClusterResponse) => void
|
|
87
|
+
): Promise<CreateClusterResponse> {
|
|
88
|
+
return this.request("CreateCluster", req, cb)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
93
|
+
*/
|
|
94
|
+
async AddNodes(
|
|
95
|
+
req: AddNodesRequest,
|
|
96
|
+
cb?: (error: string, rep: AddNodesResponse) => void
|
|
97
|
+
): Promise<AddNodesResponse> {
|
|
98
|
+
return this.request("AddNodes", req, cb)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* 本接口(DescribeClusters)用于查询集群列表。
|
|
103
|
+
*/
|
|
104
|
+
async DescribeClusters(
|
|
105
|
+
req: DescribeClustersRequest,
|
|
106
|
+
cb?: (error: string, rep: DescribeClustersResponse) => void
|
|
107
|
+
): Promise<DescribeClustersResponse> {
|
|
108
|
+
return this.request("DescribeClusters", req, cb)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
113
|
+
*/
|
|
114
|
+
async DeleteCluster(
|
|
115
|
+
req: DeleteClusterRequest,
|
|
116
|
+
cb?: (error: string, rep: DeleteClusterResponse) => void
|
|
117
|
+
): Promise<DeleteClusterResponse> {
|
|
118
|
+
return this.request("DeleteCluster", req, cb)
|
|
119
|
+
}
|
|
120
|
+
}
|