tencentcloud-sdk-nodejs-thpc 4.0.1050 → 4.1.1

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.
Files changed (42) hide show
  1. package/README.md +18 -4
  2. package/es/index.js +1 -0
  3. package/es/services/index.js +1 -0
  4. package/es/services/thpc/index.js +8 -0
  5. package/es/services/thpc/v20211109/index.js +6 -0
  6. package/es/services/thpc/v20211109/thpc_client.js +18 -0
  7. package/es/services/thpc/v20211109/thpc_models.js +0 -0
  8. package/es/services/thpc/v20220401/index.js +6 -0
  9. package/es/services/thpc/v20220401/thpc_client.js +54 -0
  10. package/es/services/thpc/v20220401/thpc_models.js +0 -0
  11. package/es/services/thpc/v20230321/index.js +6 -0
  12. package/es/services/thpc/v20230321/thpc_client.js +75 -0
  13. package/es/services/thpc/v20230321/thpc_models.js +0 -0
  14. package/package.json +16 -5
  15. package/tencentcloud/services/thpc/index.d.ts +4 -4
  16. package/tencentcloud/services/thpc/index.js +2 -2
  17. package/tencentcloud/services/thpc/v20211109/index.js +2 -1
  18. package/tencentcloud/services/thpc/v20211109/thpc_client.js +2 -1
  19. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +2 -5
  20. package/tencentcloud/services/thpc/v20220401/index.js +2 -1
  21. package/tencentcloud/services/thpc/v20220401/thpc_client.js +2 -1
  22. package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +2 -5
  23. package/tencentcloud/services/thpc/v20230321/index.js +2 -1
  24. package/tencentcloud/services/thpc/v20230321/thpc_client.js +2 -1
  25. package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +2 -6
  26. package/index.d.ts +0 -2
  27. package/index.js +0 -6
  28. package/prettier.config.js +0 -38
  29. package/src/index.ts +0 -1
  30. package/src/services/index.ts +0 -1
  31. package/src/services/thpc/index.ts +0 -9
  32. package/src/services/thpc/v20211109/index.ts +0 -6
  33. package/src/services/thpc/v20211109/thpc_client.ts +0 -96
  34. package/src/services/thpc/v20211109/thpc_models.ts +0 -596
  35. package/src/services/thpc/v20220401/index.ts +0 -6
  36. package/src/services/thpc/v20220401/thpc_client.ts +0 -259
  37. package/src/services/thpc/v20220401/thpc_models.ts +0 -1389
  38. package/src/services/thpc/v20230321/index.ts +0 -6
  39. package/src/services/thpc/v20230321/thpc_client.ts +0 -358
  40. package/src/services/thpc/v20230321/thpc_models.ts +0 -2209
  41. package/tsconfig.json +0 -33
  42. package/typings/index.d.ts +0 -2
@@ -1,259 +0,0 @@
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
- DescribeAutoScalingConfigurationResponse,
21
- DescribeClusterStorageOptionRequest,
22
- ClusterOverview,
23
- QueueOverview,
24
- DescribeClustersRequest,
25
- SetAutoScalingConfigurationRequest,
26
- NodeOverview,
27
- DescribeNodesRequest,
28
- DeleteNodesResponse,
29
- AddClusterStorageOptionResponse,
30
- StorageOptionOverview,
31
- DeleteClusterResponse,
32
- ExpansionNodeConfig,
33
- NodeActivity,
34
- Placement,
35
- AddQueueRequest,
36
- LoginNodeOverview,
37
- CFSOption,
38
- ClusterActivity,
39
- CreateClusterResponse,
40
- DescribeQueuesRequest,
41
- SetAutoScalingConfigurationResponse,
42
- CreateClusterRequest,
43
- AddQueueResponse,
44
- DescribeClusterStorageOptionResponse,
45
- DescribeQueuesResponse,
46
- GooseFSOptionOverview,
47
- QueueConfig,
48
- InstanceChargePrepaid,
49
- Tag,
50
- LoginNode,
51
- BindAutoScalingGroupResponse,
52
- ManagerNodeOverview,
53
- ManagerNode,
54
- DeleteClusterRequest,
55
- ComputeNodeOverview,
56
- SystemDisk,
57
- LoginSettings,
58
- GooseFSOption,
59
- DescribeClusterActivitiesRequest,
60
- DeleteQueueRequest,
61
- Filter,
62
- AddNodesRequest,
63
- CFSOptionOverview,
64
- DeleteClusterStorageOptionRequest,
65
- AddClusterStorageOptionRequest,
66
- QueueConfigOverview,
67
- BindAutoScalingGroupRequest,
68
- VirtualPrivateCloud,
69
- ExpansionNodeConfigOverview,
70
- DescribeAutoScalingConfigurationRequest,
71
- StorageOption,
72
- InternetAccessible,
73
- ComputeNode,
74
- DeleteNodesRequest,
75
- DescribeClustersResponse,
76
- DeleteClusterStorageOptionResponse,
77
- DescribeNodesResponse,
78
- DescribeClusterActivitiesResponse,
79
- DataDisk,
80
- DeleteQueueResponse,
81
- AddNodesResponse,
82
- } from "./thpc_models"
83
-
84
- /**
85
- * thpc client
86
- * @class
87
- */
88
- export class Client extends TencentCloudCommon.AbstractClient {
89
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
90
- super("thpc.tencentcloudapi.com", "2022-04-01", clientConfig)
91
- }
92
-
93
- /**
94
- * 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
95
- */
96
- async DescribeClusterStorageOption(
97
- req: DescribeClusterStorageOptionRequest,
98
- cb?: (error: string, rep: DescribeClusterStorageOptionResponse) => void
99
- ): Promise<DescribeClusterStorageOptionResponse> {
100
- return this.request("DescribeClusterStorageOption", req, cb)
101
- }
102
-
103
- /**
104
- * 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
105
- */
106
- async DeleteNodes(
107
- req: DeleteNodesRequest,
108
- cb?: (error: string, rep: DeleteNodesResponse) => void
109
- ): Promise<DeleteNodesResponse> {
110
- return this.request("DeleteNodes", req, cb)
111
- }
112
-
113
- /**
114
- * 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
115
- */
116
- async BindAutoScalingGroup(
117
- req: BindAutoScalingGroupRequest,
118
- cb?: (error: string, rep: BindAutoScalingGroupResponse) => void
119
- ): Promise<BindAutoScalingGroupResponse> {
120
- return this.request("BindAutoScalingGroup", req, cb)
121
- }
122
-
123
- /**
124
- * 本接口 (CreateCluster) 用于创建并启动集群。
125
-
126
- * 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
127
- */
128
- async CreateCluster(
129
- req: CreateClusterRequest,
130
- cb?: (error: string, rep: CreateClusterResponse) => void
131
- ): Promise<CreateClusterResponse> {
132
- return this.request("CreateCluster", req, cb)
133
- }
134
-
135
- /**
136
- * 本接口(DeleteCluster)用于删除一个指定的集群。
137
- */
138
- async DeleteCluster(
139
- req: DeleteClusterRequest,
140
- cb?: (error: string, rep: DeleteClusterResponse) => void
141
- ): Promise<DeleteClusterResponse> {
142
- return this.request("DeleteCluster", req, cb)
143
- }
144
-
145
- /**
146
- * 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
147
- */
148
- async SetAutoScalingConfiguration(
149
- req: SetAutoScalingConfigurationRequest,
150
- cb?: (error: string, rep: SetAutoScalingConfigurationResponse) => void
151
- ): Promise<SetAutoScalingConfigurationResponse> {
152
- return this.request("SetAutoScalingConfiguration", req, cb)
153
- }
154
-
155
- /**
156
- * 本接口(AddQueue)用于添加队列到指定集群。
157
- * 本接口为目前只支持SchedulerType为SLURM的集群。
158
- * 单个集群中队列数量上限为10个。
159
- */
160
- async AddQueue(
161
- req: AddQueueRequest,
162
- cb?: (error: string, rep: AddQueueResponse) => void
163
- ): Promise<AddQueueResponse> {
164
- return this.request("AddQueue", req, cb)
165
- }
166
-
167
- /**
168
- * 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
169
- */
170
- async DescribeNodes(
171
- req: DescribeNodesRequest,
172
- cb?: (error: string, rep: DescribeNodesResponse) => void
173
- ): Promise<DescribeNodesResponse> {
174
- return this.request("DescribeNodes", req, cb)
175
- }
176
-
177
- /**
178
- * 本接口(DeleteQueue)用于从指定集群删除队列。
179
- * 本接口为目前只支持SchedulerType为SLURM的集群。
180
-
181
- * 删除队列时,需要保证队列内不存在节点。
182
- */
183
- async DeleteQueue(
184
- req: DeleteQueueRequest,
185
- cb?: (error: string, rep: DeleteQueueResponse) => void
186
- ): Promise<DeleteQueueResponse> {
187
- return this.request("DeleteQueue", req, cb)
188
- }
189
-
190
- /**
191
- * 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
192
- */
193
- async DeleteClusterStorageOption(
194
- req: DeleteClusterStorageOptionRequest,
195
- cb?: (error: string, rep: DeleteClusterStorageOptionResponse) => void
196
- ): Promise<DeleteClusterStorageOptionResponse> {
197
- return this.request("DeleteClusterStorageOption", req, cb)
198
- }
199
-
200
- /**
201
- * 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
202
- */
203
- async AddNodes(
204
- req: AddNodesRequest,
205
- cb?: (error: string, rep: AddNodesResponse) => void
206
- ): Promise<AddNodesResponse> {
207
- return this.request("AddNodes", req, cb)
208
- }
209
-
210
- /**
211
- * 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
212
- */
213
- async DescribeAutoScalingConfiguration(
214
- req: DescribeAutoScalingConfigurationRequest,
215
- cb?: (error: string, rep: DescribeAutoScalingConfigurationResponse) => void
216
- ): Promise<DescribeAutoScalingConfigurationResponse> {
217
- return this.request("DescribeAutoScalingConfiguration", req, cb)
218
- }
219
-
220
- /**
221
- * 本接口(DescribeClusters)用于查询集群列表。
222
- */
223
- async DescribeClusters(
224
- req: DescribeClustersRequest,
225
- cb?: (error: string, rep: DescribeClustersResponse) => void
226
- ): Promise<DescribeClustersResponse> {
227
- return this.request("DescribeClusters", req, cb)
228
- }
229
-
230
- /**
231
- * 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
232
- */
233
- async AddClusterStorageOption(
234
- req: AddClusterStorageOptionRequest,
235
- cb?: (error: string, rep: AddClusterStorageOptionResponse) => void
236
- ): Promise<AddClusterStorageOptionResponse> {
237
- return this.request("AddClusterStorageOption", req, cb)
238
- }
239
-
240
- /**
241
- * 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
242
- */
243
- async DescribeClusterActivities(
244
- req: DescribeClusterActivitiesRequest,
245
- cb?: (error: string, rep: DescribeClusterActivitiesResponse) => void
246
- ): Promise<DescribeClusterActivitiesResponse> {
247
- return this.request("DescribeClusterActivities", req, cb)
248
- }
249
-
250
- /**
251
- * 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
252
- */
253
- async DescribeQueues(
254
- req: DescribeQueuesRequest,
255
- cb?: (error: string, rep: DescribeQueuesResponse) => void
256
- ): Promise<DescribeQueuesResponse> {
257
- return this.request("DescribeQueues", req, cb)
258
- }
259
- }