tencentcloud-sdk-nodejs-thpc 4.0.319 → 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 +2 -0
- package/SERVICE_CHANGELOG.md +431 -193
- package/package.json +1 -1
- package/products.md +170 -169
- package/src/services/thpc/index.ts +2 -0
- package/src/services/thpc/v20211109/thpc_client.ts +3 -1
- package/src/services/thpc/v20211109/thpc_models.ts +93 -14
- 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 +81 -14
- 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
|
|
@@ -117,8 +117,11 @@ export interface CFSOption {
|
|
|
117
117
|
*/
|
|
118
118
|
RemotePath: string;
|
|
119
119
|
/**
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
* 文件系统协议类型,默认值NFS 3.0。
|
|
121
|
+
<li>NFS 3.0。
|
|
122
|
+
<li>NFS 4.0。
|
|
123
|
+
<li>TURBO。
|
|
124
|
+
*/
|
|
122
125
|
Protocol?: string;
|
|
123
126
|
/**
|
|
124
127
|
* 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。
|
|
@@ -126,18 +129,40 @@ export interface CFSOption {
|
|
|
126
129
|
StorageType?: string;
|
|
127
130
|
}
|
|
128
131
|
/**
|
|
129
|
-
*
|
|
132
|
+
* 登录节点信息。
|
|
130
133
|
*/
|
|
131
|
-
export interface
|
|
134
|
+
export interface LoginNode {
|
|
132
135
|
/**
|
|
133
|
-
|
|
134
|
-
|
|
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)描述。
|
|
135
146
|
*/
|
|
136
|
-
|
|
147
|
+
InstanceType?: string;
|
|
137
148
|
/**
|
|
138
|
-
*
|
|
149
|
+
* 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
|
|
139
150
|
*/
|
|
140
|
-
|
|
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;
|
|
141
166
|
}
|
|
142
167
|
/**
|
|
143
168
|
* CreateCluster请求参数结构体
|
|
@@ -152,7 +177,7 @@ export interface CreateClusterRequest {
|
|
|
152
177
|
*/
|
|
153
178
|
ManagerNode?: ManagerNode;
|
|
154
179
|
/**
|
|
155
|
-
*
|
|
180
|
+
* 指定管理节点的数量。默认取值:1。取值范围:1~2。
|
|
156
181
|
*/
|
|
157
182
|
ManagerNodeCount?: number;
|
|
158
183
|
/**
|
|
@@ -164,11 +189,11 @@ export interface CreateClusterRequest {
|
|
|
164
189
|
*/
|
|
165
190
|
ComputeNodeCount?: number;
|
|
166
191
|
/**
|
|
167
|
-
* 调度器类型。<br><li>SGE:SGE调度器。
|
|
192
|
+
* 调度器类型。<br><li>SGE:SGE调度器。<br><li>SLURM:SLURM调度器。
|
|
168
193
|
*/
|
|
169
194
|
SchedulerType?: string;
|
|
170
195
|
/**
|
|
171
|
-
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx
|
|
196
|
+
* 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像。
|
|
172
197
|
*/
|
|
173
198
|
ImageId?: string;
|
|
174
199
|
/**
|
|
@@ -196,8 +221,9 @@ export interface CreateClusterRequest {
|
|
|
196
221
|
*/
|
|
197
222
|
DryRun?: boolean;
|
|
198
223
|
/**
|
|
199
|
-
|
|
200
|
-
|
|
224
|
+
* 域名字服务类型。默认值:NIS
|
|
225
|
+
<li>NIS:NIS域名字服务。
|
|
226
|
+
*/
|
|
201
227
|
AccountType?: string;
|
|
202
228
|
/**
|
|
203
229
|
* 集群显示名称。
|
|
@@ -207,6 +233,47 @@ export interface CreateClusterRequest {
|
|
|
207
233
|
* 集群存储选项
|
|
208
234
|
*/
|
|
209
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;
|
|
210
277
|
}
|
|
211
278
|
/**
|
|
212
279
|
* BindAutoScalingGroup返回参数结构体
|
|
@@ -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;
|