tencentcloud-sdk-nodejs-thpc 4.0.1052 → 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 (40) 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 +24 -8
  15. package/tencentcloud/services/thpc/v20211109/index.js +2 -1
  16. package/tencentcloud/services/thpc/v20211109/thpc_client.js +2 -1
  17. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +2 -5
  18. package/tencentcloud/services/thpc/v20220401/index.js +2 -1
  19. package/tencentcloud/services/thpc/v20220401/thpc_client.js +2 -1
  20. package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +2 -5
  21. package/tencentcloud/services/thpc/v20230321/index.js +2 -1
  22. package/tencentcloud/services/thpc/v20230321/thpc_client.js +2 -1
  23. package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +2 -6
  24. package/index.d.ts +0 -2
  25. package/index.js +0 -6
  26. package/prettier.config.js +0 -38
  27. package/src/index.ts +0 -1
  28. package/src/services/index.ts +0 -1
  29. package/src/services/thpc/index.ts +0 -9
  30. package/src/services/thpc/v20211109/index.ts +0 -6
  31. package/src/services/thpc/v20211109/thpc_client.ts +0 -96
  32. package/src/services/thpc/v20211109/thpc_models.ts +0 -596
  33. package/src/services/thpc/v20220401/index.ts +0 -6
  34. package/src/services/thpc/v20220401/thpc_client.ts +0 -259
  35. package/src/services/thpc/v20220401/thpc_models.ts +0 -1389
  36. package/src/services/thpc/v20230321/index.ts +0 -6
  37. package/src/services/thpc/v20230321/thpc_client.ts +0 -358
  38. package/src/services/thpc/v20230321/thpc_models.ts +0 -2209
  39. package/tsconfig.json +0 -33
  40. package/typings/index.d.ts +0 -2
@@ -1,6 +0,0 @@
1
- import * as Models from "./thpc_models"
2
- import { Client } from "./thpc_client"
3
- export const v20230321 = {
4
- Client: Client,
5
- Models: Models,
6
- }
@@ -1,358 +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
- ClusterOverview,
21
- NodeOverview,
22
- DescribeInitNodeScriptsRequest,
23
- DeleteClusterResponse,
24
- ExpansionNodeConfig,
25
- NodeActivity,
26
- CreateWorkspacesResponse,
27
- SpaceVirtualPrivateCloud,
28
- ManagerNodeOverview,
29
- DeleteClusterRequest,
30
- SystemDisk,
31
- TerminateWorkspacesResponse,
32
- ModifyInitNodeScriptsRequest,
33
- AttachNodesRequest,
34
- SpaceChargePrepaid,
35
- DescribeWorkspacesResponse,
36
- Tag,
37
- GooseFSOption,
38
- StorageOptionOverview,
39
- AddNodesResponse,
40
- DescribeAutoScalingConfigurationResponse,
41
- DescribeClustersRequest,
42
- TagSpecification,
43
- DeleteNodesResponse,
44
- AddClusterStorageOptionResponse,
45
- DescribeWorkspacesRequest,
46
- AddQueueRequest,
47
- QueueConfigOverview,
48
- Placement,
49
- DescribeNodesResponse,
50
- GooseFSOptionOverview,
51
- DeleteClusterStorageOptionRequest,
52
- RunMonitorServiceEnabled,
53
- ExpansionNodeConfigOverview,
54
- GooseFSxOptionOverview,
55
- DetachNodesResponse,
56
- DescribeClusterStorageOptionRequest,
57
- StorageOption,
58
- LoginNodeOverview,
59
- ModifyWorkspacesAttributeResponse,
60
- DescribeClustersResponse,
61
- DescribeClusterActivitiesResponse,
62
- DescribeInitNodeScriptsResponse,
63
- DeleteQueueResponse,
64
- DataDisk,
65
- QueueOverview,
66
- LoginSettings,
67
- EnhancedService,
68
- RunAutomationServiceEnabled,
69
- ClusterActivity,
70
- DescribeQueuesResponse,
71
- CreateClusterResponse,
72
- RunSecurityServiceEnabled,
73
- DescribeQueuesRequest,
74
- SetAutoScalingConfigurationResponse,
75
- CreateClusterRequest,
76
- AddQueueResponse,
77
- DescribeClusterStorageOptionResponse,
78
- NodeScript,
79
- ModifyInitNodeScriptsResponse,
80
- ManagerNode,
81
- ModifyWorkspacesAttributeRequest,
82
- Filter,
83
- SpaceInfo,
84
- TerminateWorkspacesRequest,
85
- ComputeNode,
86
- DeleteNodesRequest,
87
- DeleteClusterStorageOptionResponse,
88
- SpaceInternetAccessible,
89
- SpaceDataDisk,
90
- SetAutoScalingConfigurationRequest,
91
- DescribeNodesRequest,
92
- DetachNodesRequest,
93
- AttachNodesResponse,
94
- LoginNode,
95
- CFSOption,
96
- CreateWorkspacesRequest,
97
- SpaceSystemDisk,
98
- ComputeNodeOverview,
99
- QueueConfig,
100
- DescribeClusterActivitiesRequest,
101
- AddNodesRequest,
102
- CFSOptionOverview,
103
- DeleteQueueRequest,
104
- AddClusterStorageOptionRequest,
105
- GooseFSxOption,
106
- SpacePlacement,
107
- VirtualPrivateCloud,
108
- DescribeAutoScalingConfigurationRequest,
109
- InternetAccessible,
110
- InstanceChargePrepaid,
111
- } from "./thpc_models"
112
-
113
- /**
114
- * thpc client
115
- * @class
116
- */
117
- export class Client extends TencentCloudCommon.AbstractClient {
118
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
119
- super("thpc.tencentcloudapi.com", "2023-03-21", clientConfig)
120
- }
121
-
122
- /**
123
- * 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
124
- */
125
- async DeleteNodes(
126
- req: DeleteNodesRequest,
127
- cb?: (error: string, rep: DeleteNodesResponse) => void
128
- ): Promise<DeleteNodesResponse> {
129
- return this.request("DeleteNodes", req, cb)
130
- }
131
-
132
- /**
133
- * 本接口 (TerminateWorkspaces) 用于主动退还工作空间。
134
- */
135
- async TerminateWorkspaces(
136
- req: TerminateWorkspacesRequest,
137
- cb?: (error: string, rep: TerminateWorkspacesResponse) => void
138
- ): Promise<TerminateWorkspacesResponse> {
139
- return this.request("TerminateWorkspaces", req, cb)
140
- }
141
-
142
- /**
143
- * 本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
144
- */
145
- async ModifyWorkspacesAttribute(
146
- req: ModifyWorkspacesAttributeRequest,
147
- cb?: (error: string, rep: ModifyWorkspacesAttributeResponse) => void
148
- ): Promise<ModifyWorkspacesAttributeResponse> {
149
- return this.request("ModifyWorkspacesAttribute", req, cb)
150
- }
151
-
152
- /**
153
- * 本接口 (CreateCluster) 用于创建并启动集群。
154
-
155
- * 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
156
- */
157
- async CreateCluster(
158
- req: CreateClusterRequest,
159
- cb?: (error: string, rep: CreateClusterResponse) => void
160
- ): Promise<CreateClusterResponse> {
161
- return this.request("CreateCluster", req, cb)
162
- }
163
-
164
- /**
165
- * 本接口 (CreateWorkspaces) 用于创建工作空间。
166
- */
167
- async CreateWorkspaces(
168
- req: CreateWorkspacesRequest,
169
- cb?: (error: string, rep: CreateWorkspacesResponse) => void
170
- ): Promise<CreateWorkspacesResponse> {
171
- return this.request("CreateWorkspaces", req, cb)
172
- }
173
-
174
- /**
175
- * 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
176
- */
177
- async DescribeQueues(
178
- req: DescribeQueuesRequest,
179
- cb?: (error: string, rep: DescribeQueuesResponse) => void
180
- ): Promise<DescribeQueuesResponse> {
181
- return this.request("DescribeQueues", req, cb)
182
- }
183
-
184
- /**
185
- * 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
186
- */
187
- async AddNodes(
188
- req: AddNodesRequest,
189
- cb?: (error: string, rep: AddNodesResponse) => void
190
- ): Promise<AddNodesResponse> {
191
- return this.request("AddNodes", req, cb)
192
- }
193
-
194
- /**
195
- * 本接口 (DetachNodes) 用于将一个或者多个计算节点从集群中移除,但是不销毁指定计算资源。
196
- */
197
- async DetachNodes(
198
- req: DetachNodesRequest,
199
- cb?: (error: string, rep: DetachNodesResponse) => void
200
- ): Promise<DetachNodesResponse> {
201
- return this.request("DetachNodes", req, cb)
202
- }
203
-
204
- /**
205
- * 本接口(DeleteCluster)用于删除一个指定的集群。
206
- */
207
- async DeleteCluster(
208
- req: DeleteClusterRequest,
209
- cb?: (error: string, rep: DeleteClusterResponse) => void
210
- ): Promise<DeleteClusterResponse> {
211
- return this.request("DeleteCluster", req, cb)
212
- }
213
-
214
- /**
215
- * 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
216
- */
217
- async DeleteClusterStorageOption(
218
- req: DeleteClusterStorageOptionRequest,
219
- cb?: (error: string, rep: DeleteClusterStorageOptionResponse) => void
220
- ): Promise<DeleteClusterStorageOptionResponse> {
221
- return this.request("DeleteClusterStorageOption", req, cb)
222
- }
223
-
224
- /**
225
- * 本接口(DescribeWorkspaces)用于查询工作空间列表。
226
- */
227
- async DescribeWorkspaces(
228
- req: DescribeWorkspacesRequest,
229
- cb?: (error: string, rep: DescribeWorkspacesResponse) => void
230
- ): Promise<DescribeWorkspacesResponse> {
231
- return this.request("DescribeWorkspaces", req, cb)
232
- }
233
-
234
- /**
235
- * 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
236
- */
237
- async DescribeNodes(
238
- req: DescribeNodesRequest,
239
- cb?: (error: string, rep: DescribeNodesResponse) => void
240
- ): Promise<DescribeNodesResponse> {
241
- return this.request("DescribeNodes", req, cb)
242
- }
243
-
244
- /**
245
- * 本接口(DescribeClusters)用于查询集群列表。
246
- */
247
- async DescribeClusters(
248
- req: DescribeClustersRequest,
249
- cb?: (error: string, rep: DescribeClustersResponse) => void
250
- ): Promise<DescribeClustersResponse> {
251
- return this.request("DescribeClusters", req, cb)
252
- }
253
-
254
- /**
255
- * 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
256
- */
257
- async SetAutoScalingConfiguration(
258
- req: SetAutoScalingConfigurationRequest,
259
- cb?: (error: string, rep: SetAutoScalingConfigurationResponse) => void
260
- ): Promise<SetAutoScalingConfigurationResponse> {
261
- return this.request("SetAutoScalingConfiguration", req, cb)
262
- }
263
-
264
- /**
265
- * 本接口(AddQueue)用于添加队列到指定集群。
266
- * 本接口为目前只支持SchedulerType为SLURM的集群。
267
- * 单个集群中队列数量上限为10个。
268
- */
269
- async AddQueue(
270
- req: AddQueueRequest,
271
- cb?: (error: string, rep: AddQueueResponse) => void
272
- ): Promise<AddQueueResponse> {
273
- return this.request("AddQueue", req, cb)
274
- }
275
-
276
- /**
277
- * 本接口 (DescribeInitNodeScripts) 用于查询节点初始化脚本列表。
278
- */
279
- async DescribeInitNodeScripts(
280
- req: DescribeInitNodeScriptsRequest,
281
- cb?: (error: string, rep: DescribeInitNodeScriptsResponse) => void
282
- ): Promise<DescribeInitNodeScriptsResponse> {
283
- return this.request("DescribeInitNodeScripts", req, cb)
284
- }
285
-
286
- /**
287
- * 本接口 (AttachNodes) 用于绑定一个或者多个计算节点指定资源到指定集群中。
288
- */
289
- async AttachNodes(
290
- req: AttachNodesRequest,
291
- cb?: (error: string, rep: AttachNodesResponse) => void
292
- ): Promise<AttachNodesResponse> {
293
- return this.request("AttachNodes", req, cb)
294
- }
295
-
296
- /**
297
- * 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
298
- */
299
- async DescribeAutoScalingConfiguration(
300
- req: DescribeAutoScalingConfigurationRequest,
301
- cb?: (error: string, rep: DescribeAutoScalingConfigurationResponse) => void
302
- ): Promise<DescribeAutoScalingConfigurationResponse> {
303
- return this.request("DescribeAutoScalingConfiguration", req, cb)
304
- }
305
-
306
- /**
307
- * 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
308
- */
309
- async DescribeClusterActivities(
310
- req: DescribeClusterActivitiesRequest,
311
- cb?: (error: string, rep: DescribeClusterActivitiesResponse) => void
312
- ): Promise<DescribeClusterActivitiesResponse> {
313
- return this.request("DescribeClusterActivities", req, cb)
314
- }
315
-
316
- /**
317
- * 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
318
- */
319
- async DescribeClusterStorageOption(
320
- req: DescribeClusterStorageOptionRequest,
321
- cb?: (error: string, rep: DescribeClusterStorageOptionResponse) => void
322
- ): Promise<DescribeClusterStorageOptionResponse> {
323
- return this.request("DescribeClusterStorageOption", req, cb)
324
- }
325
-
326
- /**
327
- * 本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
328
- */
329
- async ModifyInitNodeScripts(
330
- req: ModifyInitNodeScriptsRequest,
331
- cb?: (error: string, rep: ModifyInitNodeScriptsResponse) => void
332
- ): Promise<ModifyInitNodeScriptsResponse> {
333
- return this.request("ModifyInitNodeScripts", req, cb)
334
- }
335
-
336
- /**
337
- * 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
338
- */
339
- async AddClusterStorageOption(
340
- req: AddClusterStorageOptionRequest,
341
- cb?: (error: string, rep: AddClusterStorageOptionResponse) => void
342
- ): Promise<AddClusterStorageOptionResponse> {
343
- return this.request("AddClusterStorageOption", req, cb)
344
- }
345
-
346
- /**
347
- * 本接口(DeleteQueue)用于从指定集群删除队列。
348
- * 本接口为目前只支持SchedulerType为SLURM的集群。
349
-
350
- * 删除队列时,需要保证队列内不存在节点。
351
- */
352
- async DeleteQueue(
353
- req: DeleteQueueRequest,
354
- cb?: (error: string, rep: DeleteQueueResponse) => void
355
- ): Promise<DeleteQueueResponse> {
356
- return this.request("DeleteQueue", req, cb)
357
- }
358
- }