tencentcloud-sdk-python-thpc 3.0.1483__tar.gz → 3.1.2__tar.gz

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 (27) hide show
  1. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/setup.py +2 -1
  3. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_thpc-3.1.2/tencentcloud/thpc/v20211109/thpc_client_async.py +98 -0
  5. tencentcloud_sdk_python_thpc-3.1.2/tencentcloud/thpc/v20220401/thpc_client_async.py +321 -0
  6. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20230321/models.py +15 -0
  7. tencentcloud_sdk_python_thpc-3.1.2/tencentcloud/thpc/v20230321/thpc_client_async.py +591 -0
  8. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud_sdk_python_thpc.egg-info/PKG-INFO +2 -2
  9. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud_sdk_python_thpc.egg-info/SOURCES.txt +3 -0
  10. tencentcloud_sdk_python_thpc-3.1.2/tencentcloud_sdk_python_thpc.egg-info/requires.txt +1 -0
  11. tencentcloud_sdk_python_thpc-3.0.1483/tencentcloud_sdk_python_thpc.egg-info/requires.txt +0 -1
  12. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/README.rst +0 -0
  13. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/setup.cfg +0 -0
  14. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/__init__.py +0 -0
  15. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20211109/__init__.py +0 -0
  16. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20211109/errorcodes.py +0 -0
  17. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20211109/models.py +0 -0
  18. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20211109/thpc_client.py +0 -0
  19. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20220401/__init__.py +0 -0
  20. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20220401/errorcodes.py +0 -0
  21. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20220401/models.py +0 -0
  22. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20220401/thpc_client.py +0 -0
  23. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20230321/__init__.py +0 -0
  24. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20230321/errorcodes.py +0 -0
  25. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud/thpc/v20230321/thpc_client.py +0 -0
  26. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud_sdk_python_thpc.egg-info/dependency_links.txt +0 -0
  27. {tencentcloud_sdk_python_thpc-3.0.1483 → tencentcloud_sdk_python_thpc-3.1.2}/tencentcloud_sdk_python_thpc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-thpc
3
- Version: 3.0.1483
3
+ Version: 3.1.2
4
4
  Summary: Tencent Cloud Thpc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1483
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.2
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-thpc',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1483,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.2,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Thpc SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1483'
17
+ __version__ = '3.1.2'
@@ -0,0 +1,98 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.thpc.v20211109 import models
20
+ from typing import Dict
21
+
22
+
23
+ class ThpcClient(AbstractClient):
24
+ _apiVersion = '2021-11-09'
25
+ _endpoint = 'thpc.tencentcloudapi.com'
26
+ _service = 'thpc'
27
+
28
+ async def BindAutoScalingGroup(
29
+ self,
30
+ request: models.BindAutoScalingGroupRequest,
31
+ opts: Dict = None,
32
+ ) -> models.BindAutoScalingGroupResponse:
33
+ """
34
+ 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "BindAutoScalingGroup"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.BindAutoScalingGroupResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def CreateCluster(
47
+ self,
48
+ request: models.CreateClusterRequest,
49
+ opts: Dict = None,
50
+ ) -> models.CreateClusterResponse:
51
+ """
52
+ 本接口 (CreateCluster) 用于创建并启动集群。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "CreateCluster"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.CreateClusterResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def DeleteCluster(
65
+ self,
66
+ request: models.DeleteClusterRequest,
67
+ opts: Dict = None,
68
+ ) -> models.DeleteClusterResponse:
69
+ """
70
+ 本接口(DeleteCluster)用于删除一个指定的集群。
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "DeleteCluster"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.DeleteClusterResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def DescribeClusters(
83
+ self,
84
+ request: models.DescribeClustersRequest,
85
+ opts: Dict = None,
86
+ ) -> models.DescribeClustersResponse:
87
+ """
88
+ 本接口(DescribeClusters)用于查询集群列表。
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "DescribeClusters"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.DescribeClustersResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
@@ -0,0 +1,321 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.thpc.v20220401 import models
20
+ from typing import Dict
21
+
22
+
23
+ class ThpcClient(AbstractClient):
24
+ _apiVersion = '2022-04-01'
25
+ _endpoint = 'thpc.tencentcloudapi.com'
26
+ _service = 'thpc'
27
+
28
+ async def AddClusterStorageOption(
29
+ self,
30
+ request: models.AddClusterStorageOptionRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AddClusterStorageOptionResponse:
33
+ """
34
+ 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AddClusterStorageOption"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AddClusterStorageOptionResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def AddNodes(
47
+ self,
48
+ request: models.AddNodesRequest,
49
+ opts: Dict = None,
50
+ ) -> models.AddNodesResponse:
51
+ """
52
+ 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "AddNodes"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.AddNodesResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def AddQueue(
65
+ self,
66
+ request: models.AddQueueRequest,
67
+ opts: Dict = None,
68
+ ) -> models.AddQueueResponse:
69
+ """
70
+ 本接口(AddQueue)用于添加队列到指定集群。
71
+ * 本接口为目前只支持SchedulerType为SLURM的集群。
72
+ * 单个集群中队列数量上限为10个。
73
+ """
74
+
75
+ kwargs = {}
76
+ kwargs["action"] = "AddQueue"
77
+ kwargs["params"] = request._serialize()
78
+ kwargs["resp_cls"] = models.AddQueueResponse
79
+ kwargs["headers"] = request.headers
80
+ kwargs["opts"] = opts or {}
81
+
82
+ return await self.call_and_deserialize(**kwargs)
83
+
84
+ async def BindAutoScalingGroup(
85
+ self,
86
+ request: models.BindAutoScalingGroupRequest,
87
+ opts: Dict = None,
88
+ ) -> models.BindAutoScalingGroupResponse:
89
+ """
90
+ 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
91
+ """
92
+
93
+ kwargs = {}
94
+ kwargs["action"] = "BindAutoScalingGroup"
95
+ kwargs["params"] = request._serialize()
96
+ kwargs["resp_cls"] = models.BindAutoScalingGroupResponse
97
+ kwargs["headers"] = request.headers
98
+ kwargs["opts"] = opts or {}
99
+
100
+ return await self.call_and_deserialize(**kwargs)
101
+
102
+ async def CreateCluster(
103
+ self,
104
+ request: models.CreateClusterRequest,
105
+ opts: Dict = None,
106
+ ) -> models.CreateClusterResponse:
107
+ """
108
+ 本接口 (CreateCluster) 用于创建并启动集群。
109
+
110
+ * 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
111
+ """
112
+
113
+ kwargs = {}
114
+ kwargs["action"] = "CreateCluster"
115
+ kwargs["params"] = request._serialize()
116
+ kwargs["resp_cls"] = models.CreateClusterResponse
117
+ kwargs["headers"] = request.headers
118
+ kwargs["opts"] = opts or {}
119
+
120
+ return await self.call_and_deserialize(**kwargs)
121
+
122
+ async def DeleteCluster(
123
+ self,
124
+ request: models.DeleteClusterRequest,
125
+ opts: Dict = None,
126
+ ) -> models.DeleteClusterResponse:
127
+ """
128
+ 本接口(DeleteCluster)用于删除一个指定的集群。
129
+ """
130
+
131
+ kwargs = {}
132
+ kwargs["action"] = "DeleteCluster"
133
+ kwargs["params"] = request._serialize()
134
+ kwargs["resp_cls"] = models.DeleteClusterResponse
135
+ kwargs["headers"] = request.headers
136
+ kwargs["opts"] = opts or {}
137
+
138
+ return await self.call_and_deserialize(**kwargs)
139
+
140
+ async def DeleteClusterStorageOption(
141
+ self,
142
+ request: models.DeleteClusterStorageOptionRequest,
143
+ opts: Dict = None,
144
+ ) -> models.DeleteClusterStorageOptionResponse:
145
+ """
146
+ 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
147
+ """
148
+
149
+ kwargs = {}
150
+ kwargs["action"] = "DeleteClusterStorageOption"
151
+ kwargs["params"] = request._serialize()
152
+ kwargs["resp_cls"] = models.DeleteClusterStorageOptionResponse
153
+ kwargs["headers"] = request.headers
154
+ kwargs["opts"] = opts or {}
155
+
156
+ return await self.call_and_deserialize(**kwargs)
157
+
158
+ async def DeleteNodes(
159
+ self,
160
+ request: models.DeleteNodesRequest,
161
+ opts: Dict = None,
162
+ ) -> models.DeleteNodesResponse:
163
+ """
164
+ 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
165
+ """
166
+
167
+ kwargs = {}
168
+ kwargs["action"] = "DeleteNodes"
169
+ kwargs["params"] = request._serialize()
170
+ kwargs["resp_cls"] = models.DeleteNodesResponse
171
+ kwargs["headers"] = request.headers
172
+ kwargs["opts"] = opts or {}
173
+
174
+ return await self.call_and_deserialize(**kwargs)
175
+
176
+ async def DeleteQueue(
177
+ self,
178
+ request: models.DeleteQueueRequest,
179
+ opts: Dict = None,
180
+ ) -> models.DeleteQueueResponse:
181
+ """
182
+ 本接口(DeleteQueue)用于从指定集群删除队列。
183
+ * 本接口为目前只支持SchedulerType为SLURM的集群。
184
+
185
+ * 删除队列时,需要保证队列内不存在节点。
186
+ """
187
+
188
+ kwargs = {}
189
+ kwargs["action"] = "DeleteQueue"
190
+ kwargs["params"] = request._serialize()
191
+ kwargs["resp_cls"] = models.DeleteQueueResponse
192
+ kwargs["headers"] = request.headers
193
+ kwargs["opts"] = opts or {}
194
+
195
+ return await self.call_and_deserialize(**kwargs)
196
+
197
+ async def DescribeAutoScalingConfiguration(
198
+ self,
199
+ request: models.DescribeAutoScalingConfigurationRequest,
200
+ opts: Dict = None,
201
+ ) -> models.DescribeAutoScalingConfigurationResponse:
202
+ """
203
+ 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
204
+ """
205
+
206
+ kwargs = {}
207
+ kwargs["action"] = "DescribeAutoScalingConfiguration"
208
+ kwargs["params"] = request._serialize()
209
+ kwargs["resp_cls"] = models.DescribeAutoScalingConfigurationResponse
210
+ kwargs["headers"] = request.headers
211
+ kwargs["opts"] = opts or {}
212
+
213
+ return await self.call_and_deserialize(**kwargs)
214
+
215
+ async def DescribeClusterActivities(
216
+ self,
217
+ request: models.DescribeClusterActivitiesRequest,
218
+ opts: Dict = None,
219
+ ) -> models.DescribeClusterActivitiesResponse:
220
+ """
221
+ 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
222
+ """
223
+
224
+ kwargs = {}
225
+ kwargs["action"] = "DescribeClusterActivities"
226
+ kwargs["params"] = request._serialize()
227
+ kwargs["resp_cls"] = models.DescribeClusterActivitiesResponse
228
+ kwargs["headers"] = request.headers
229
+ kwargs["opts"] = opts or {}
230
+
231
+ return await self.call_and_deserialize(**kwargs)
232
+
233
+ async def DescribeClusterStorageOption(
234
+ self,
235
+ request: models.DescribeClusterStorageOptionRequest,
236
+ opts: Dict = None,
237
+ ) -> models.DescribeClusterStorageOptionResponse:
238
+ """
239
+ 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
240
+ """
241
+
242
+ kwargs = {}
243
+ kwargs["action"] = "DescribeClusterStorageOption"
244
+ kwargs["params"] = request._serialize()
245
+ kwargs["resp_cls"] = models.DescribeClusterStorageOptionResponse
246
+ kwargs["headers"] = request.headers
247
+ kwargs["opts"] = opts or {}
248
+
249
+ return await self.call_and_deserialize(**kwargs)
250
+
251
+ async def DescribeClusters(
252
+ self,
253
+ request: models.DescribeClustersRequest,
254
+ opts: Dict = None,
255
+ ) -> models.DescribeClustersResponse:
256
+ """
257
+ 本接口(DescribeClusters)用于查询集群列表。
258
+ """
259
+
260
+ kwargs = {}
261
+ kwargs["action"] = "DescribeClusters"
262
+ kwargs["params"] = request._serialize()
263
+ kwargs["resp_cls"] = models.DescribeClustersResponse
264
+ kwargs["headers"] = request.headers
265
+ kwargs["opts"] = opts or {}
266
+
267
+ return await self.call_and_deserialize(**kwargs)
268
+
269
+ async def DescribeNodes(
270
+ self,
271
+ request: models.DescribeNodesRequest,
272
+ opts: Dict = None,
273
+ ) -> models.DescribeNodesResponse:
274
+ """
275
+ 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
276
+ """
277
+
278
+ kwargs = {}
279
+ kwargs["action"] = "DescribeNodes"
280
+ kwargs["params"] = request._serialize()
281
+ kwargs["resp_cls"] = models.DescribeNodesResponse
282
+ kwargs["headers"] = request.headers
283
+ kwargs["opts"] = opts or {}
284
+
285
+ return await self.call_and_deserialize(**kwargs)
286
+
287
+ async def DescribeQueues(
288
+ self,
289
+ request: models.DescribeQueuesRequest,
290
+ opts: Dict = None,
291
+ ) -> models.DescribeQueuesResponse:
292
+ """
293
+ 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
294
+ """
295
+
296
+ kwargs = {}
297
+ kwargs["action"] = "DescribeQueues"
298
+ kwargs["params"] = request._serialize()
299
+ kwargs["resp_cls"] = models.DescribeQueuesResponse
300
+ kwargs["headers"] = request.headers
301
+ kwargs["opts"] = opts or {}
302
+
303
+ return await self.call_and_deserialize(**kwargs)
304
+
305
+ async def SetAutoScalingConfiguration(
306
+ self,
307
+ request: models.SetAutoScalingConfigurationRequest,
308
+ opts: Dict = None,
309
+ ) -> models.SetAutoScalingConfigurationResponse:
310
+ """
311
+ 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
312
+ """
313
+
314
+ kwargs = {}
315
+ kwargs["action"] = "SetAutoScalingConfiguration"
316
+ kwargs["params"] = request._serialize()
317
+ kwargs["resp_cls"] = models.SetAutoScalingConfigurationResponse
318
+ kwargs["headers"] = request.headers
319
+ kwargs["opts"] = opts or {}
320
+
321
+ return await self.call_and_deserialize(**kwargs)
@@ -5271,9 +5271,12 @@ class GooseFSxOption(AbstractModel):
5271
5271
  :type Masters: list of str
5272
5272
  :param _LocalPath: 文件系统的本地挂载路径。GooseFSx目前只支持挂载在/goosefsx/{文件系统ID}_proxy/目录下。
5273
5273
  :type LocalPath: str
5274
+ :param _FileSystemId: GooseFSx文件系统ID 文件系统ID通过调用接口[DescribeFileSystems](https://cloud.tencent.com/document/api/1424/95789)获取。
5275
+ :type FileSystemId: str
5274
5276
  """
5275
5277
  self._Masters = None
5276
5278
  self._LocalPath = None
5279
+ self._FileSystemId = None
5277
5280
 
5278
5281
  @property
5279
5282
  def Masters(self):
@@ -5297,10 +5300,22 @@ class GooseFSxOption(AbstractModel):
5297
5300
  def LocalPath(self, LocalPath):
5298
5301
  self._LocalPath = LocalPath
5299
5302
 
5303
+ @property
5304
+ def FileSystemId(self):
5305
+ r"""GooseFSx文件系统ID 文件系统ID通过调用接口[DescribeFileSystems](https://cloud.tencent.com/document/api/1424/95789)获取。
5306
+ :rtype: str
5307
+ """
5308
+ return self._FileSystemId
5309
+
5310
+ @FileSystemId.setter
5311
+ def FileSystemId(self, FileSystemId):
5312
+ self._FileSystemId = FileSystemId
5313
+
5300
5314
 
5301
5315
  def _deserialize(self, params):
5302
5316
  self._Masters = params.get("Masters")
5303
5317
  self._LocalPath = params.get("LocalPath")
5318
+ self._FileSystemId = params.get("FileSystemId")
5304
5319
  memeber_set = set(params.keys())
5305
5320
  for name, value in vars(self).items():
5306
5321
  property_name = name[1:]
@@ -0,0 +1,591 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.thpc.v20230321 import models
20
+ from typing import Dict
21
+
22
+
23
+ class ThpcClient(AbstractClient):
24
+ _apiVersion = '2023-03-21'
25
+ _endpoint = 'thpc.tencentcloudapi.com'
26
+ _service = 'thpc'
27
+
28
+ async def AddClusterStorageOption(
29
+ self,
30
+ request: models.AddClusterStorageOptionRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AddClusterStorageOptionResponse:
33
+ """
34
+ 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AddClusterStorageOption"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AddClusterStorageOptionResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def AddNodes(
47
+ self,
48
+ request: models.AddNodesRequest,
49
+ opts: Dict = None,
50
+ ) -> models.AddNodesResponse:
51
+ """
52
+ 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "AddNodes"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.AddNodesResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def AddQueue(
65
+ self,
66
+ request: models.AddQueueRequest,
67
+ opts: Dict = None,
68
+ ) -> models.AddQueueResponse:
69
+ """
70
+ 本接口(AddQueue)用于添加队列到指定集群。
71
+ * 本接口为目前只支持SchedulerType为SLURM的集群。
72
+ * 单个集群中队列数量上限为10个。
73
+ """
74
+
75
+ kwargs = {}
76
+ kwargs["action"] = "AddQueue"
77
+ kwargs["params"] = request._serialize()
78
+ kwargs["resp_cls"] = models.AddQueueResponse
79
+ kwargs["headers"] = request.headers
80
+ kwargs["opts"] = opts or {}
81
+
82
+ return await self.call_and_deserialize(**kwargs)
83
+
84
+ async def AttachNodes(
85
+ self,
86
+ request: models.AttachNodesRequest,
87
+ opts: Dict = None,
88
+ ) -> models.AttachNodesResponse:
89
+ """
90
+ 本接口 (AttachNodes) 用于绑定一个或者多个计算节点指定资源到指定集群中。
91
+ """
92
+
93
+ kwargs = {}
94
+ kwargs["action"] = "AttachNodes"
95
+ kwargs["params"] = request._serialize()
96
+ kwargs["resp_cls"] = models.AttachNodesResponse
97
+ kwargs["headers"] = request.headers
98
+ kwargs["opts"] = opts or {}
99
+
100
+ return await self.call_and_deserialize(**kwargs)
101
+
102
+ async def CreateCluster(
103
+ self,
104
+ request: models.CreateClusterRequest,
105
+ opts: Dict = None,
106
+ ) -> models.CreateClusterResponse:
107
+ """
108
+ 本接口 (CreateCluster) 用于创建并启动集群。
109
+
110
+ * 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
111
+ """
112
+
113
+ kwargs = {}
114
+ kwargs["action"] = "CreateCluster"
115
+ kwargs["params"] = request._serialize()
116
+ kwargs["resp_cls"] = models.CreateClusterResponse
117
+ kwargs["headers"] = request.headers
118
+ kwargs["opts"] = opts or {}
119
+
120
+ return await self.call_and_deserialize(**kwargs)
121
+
122
+ async def CreateWorkspaces(
123
+ self,
124
+ request: models.CreateWorkspacesRequest,
125
+ opts: Dict = None,
126
+ ) -> models.CreateWorkspacesResponse:
127
+ """
128
+ 本接口 (CreateWorkspaces) 用于创建工作空间。
129
+ """
130
+
131
+ kwargs = {}
132
+ kwargs["action"] = "CreateWorkspaces"
133
+ kwargs["params"] = request._serialize()
134
+ kwargs["resp_cls"] = models.CreateWorkspacesResponse
135
+ kwargs["headers"] = request.headers
136
+ kwargs["opts"] = opts or {}
137
+
138
+ return await self.call_and_deserialize(**kwargs)
139
+
140
+ async def DeleteCluster(
141
+ self,
142
+ request: models.DeleteClusterRequest,
143
+ opts: Dict = None,
144
+ ) -> models.DeleteClusterResponse:
145
+ """
146
+ 本接口(DeleteCluster)用于删除一个指定的集群。
147
+ """
148
+
149
+ kwargs = {}
150
+ kwargs["action"] = "DeleteCluster"
151
+ kwargs["params"] = request._serialize()
152
+ kwargs["resp_cls"] = models.DeleteClusterResponse
153
+ kwargs["headers"] = request.headers
154
+ kwargs["opts"] = opts or {}
155
+
156
+ return await self.call_and_deserialize(**kwargs)
157
+
158
+ async def DeleteClusterStorageOption(
159
+ self,
160
+ request: models.DeleteClusterStorageOptionRequest,
161
+ opts: Dict = None,
162
+ ) -> models.DeleteClusterStorageOptionResponse:
163
+ """
164
+ 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
165
+ """
166
+
167
+ kwargs = {}
168
+ kwargs["action"] = "DeleteClusterStorageOption"
169
+ kwargs["params"] = request._serialize()
170
+ kwargs["resp_cls"] = models.DeleteClusterStorageOptionResponse
171
+ kwargs["headers"] = request.headers
172
+ kwargs["opts"] = opts or {}
173
+
174
+ return await self.call_and_deserialize(**kwargs)
175
+
176
+ async def DeleteJob(
177
+ self,
178
+ request: models.DeleteJobRequest,
179
+ opts: Dict = None,
180
+ ) -> models.DeleteJobResponse:
181
+ """
182
+ 本接口 (DeleteJob) 用于删除一个作业任务。
183
+ """
184
+
185
+ kwargs = {}
186
+ kwargs["action"] = "DeleteJob"
187
+ kwargs["params"] = request._serialize()
188
+ kwargs["resp_cls"] = models.DeleteJobResponse
189
+ kwargs["headers"] = request.headers
190
+ kwargs["opts"] = opts or {}
191
+
192
+ return await self.call_and_deserialize(**kwargs)
193
+
194
+ async def DeleteNodes(
195
+ self,
196
+ request: models.DeleteNodesRequest,
197
+ opts: Dict = None,
198
+ ) -> models.DeleteNodesResponse:
199
+ """
200
+ 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
201
+ """
202
+
203
+ kwargs = {}
204
+ kwargs["action"] = "DeleteNodes"
205
+ kwargs["params"] = request._serialize()
206
+ kwargs["resp_cls"] = models.DeleteNodesResponse
207
+ kwargs["headers"] = request.headers
208
+ kwargs["opts"] = opts or {}
209
+
210
+ return await self.call_and_deserialize(**kwargs)
211
+
212
+ async def DeleteQueue(
213
+ self,
214
+ request: models.DeleteQueueRequest,
215
+ opts: Dict = None,
216
+ ) -> models.DeleteQueueResponse:
217
+ """
218
+ 本接口(DeleteQueue)用于从指定集群删除队列。
219
+ * 本接口为目前只支持SchedulerType为SLURM的集群。
220
+
221
+ * 删除队列时,需要保证队列内不存在节点。
222
+ """
223
+
224
+ kwargs = {}
225
+ kwargs["action"] = "DeleteQueue"
226
+ kwargs["params"] = request._serialize()
227
+ kwargs["resp_cls"] = models.DeleteQueueResponse
228
+ kwargs["headers"] = request.headers
229
+ kwargs["opts"] = opts or {}
230
+
231
+ return await self.call_and_deserialize(**kwargs)
232
+
233
+ async def DescribeAutoScalingConfiguration(
234
+ self,
235
+ request: models.DescribeAutoScalingConfigurationRequest,
236
+ opts: Dict = None,
237
+ ) -> models.DescribeAutoScalingConfigurationResponse:
238
+ """
239
+ 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
240
+ """
241
+
242
+ kwargs = {}
243
+ kwargs["action"] = "DescribeAutoScalingConfiguration"
244
+ kwargs["params"] = request._serialize()
245
+ kwargs["resp_cls"] = models.DescribeAutoScalingConfigurationResponse
246
+ kwargs["headers"] = request.headers
247
+ kwargs["opts"] = opts or {}
248
+
249
+ return await self.call_and_deserialize(**kwargs)
250
+
251
+ async def DescribeClusterActivities(
252
+ self,
253
+ request: models.DescribeClusterActivitiesRequest,
254
+ opts: Dict = None,
255
+ ) -> models.DescribeClusterActivitiesResponse:
256
+ """
257
+ 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
258
+ """
259
+
260
+ kwargs = {}
261
+ kwargs["action"] = "DescribeClusterActivities"
262
+ kwargs["params"] = request._serialize()
263
+ kwargs["resp_cls"] = models.DescribeClusterActivitiesResponse
264
+ kwargs["headers"] = request.headers
265
+ kwargs["opts"] = opts or {}
266
+
267
+ return await self.call_and_deserialize(**kwargs)
268
+
269
+ async def DescribeClusterStorageOption(
270
+ self,
271
+ request: models.DescribeClusterStorageOptionRequest,
272
+ opts: Dict = None,
273
+ ) -> models.DescribeClusterStorageOptionResponse:
274
+ """
275
+ 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
276
+ """
277
+
278
+ kwargs = {}
279
+ kwargs["action"] = "DescribeClusterStorageOption"
280
+ kwargs["params"] = request._serialize()
281
+ kwargs["resp_cls"] = models.DescribeClusterStorageOptionResponse
282
+ kwargs["headers"] = request.headers
283
+ kwargs["opts"] = opts or {}
284
+
285
+ return await self.call_and_deserialize(**kwargs)
286
+
287
+ async def DescribeClusters(
288
+ self,
289
+ request: models.DescribeClustersRequest,
290
+ opts: Dict = None,
291
+ ) -> models.DescribeClustersResponse:
292
+ """
293
+ 本接口(DescribeClusters)用于查询集群列表。
294
+ """
295
+
296
+ kwargs = {}
297
+ kwargs["action"] = "DescribeClusters"
298
+ kwargs["params"] = request._serialize()
299
+ kwargs["resp_cls"] = models.DescribeClustersResponse
300
+ kwargs["headers"] = request.headers
301
+ kwargs["opts"] = opts or {}
302
+
303
+ return await self.call_and_deserialize(**kwargs)
304
+
305
+ async def DescribeInitNodeScripts(
306
+ self,
307
+ request: models.DescribeInitNodeScriptsRequest,
308
+ opts: Dict = None,
309
+ ) -> models.DescribeInitNodeScriptsResponse:
310
+ """
311
+ 本接口 (DescribeInitNodeScripts) 用于查询节点初始化脚本列表。
312
+ """
313
+
314
+ kwargs = {}
315
+ kwargs["action"] = "DescribeInitNodeScripts"
316
+ kwargs["params"] = request._serialize()
317
+ kwargs["resp_cls"] = models.DescribeInitNodeScriptsResponse
318
+ kwargs["headers"] = request.headers
319
+ kwargs["opts"] = opts or {}
320
+
321
+ return await self.call_and_deserialize(**kwargs)
322
+
323
+ async def DescribeJobSubmitInfo(
324
+ self,
325
+ request: models.DescribeJobSubmitInfoRequest,
326
+ opts: Dict = None,
327
+ ) -> models.DescribeJobSubmitInfoResponse:
328
+ """
329
+ 本接口用于查询作业的提交信息。
330
+ """
331
+
332
+ kwargs = {}
333
+ kwargs["action"] = "DescribeJobSubmitInfo"
334
+ kwargs["params"] = request._serialize()
335
+ kwargs["resp_cls"] = models.DescribeJobSubmitInfoResponse
336
+ kwargs["headers"] = request.headers
337
+ kwargs["opts"] = opts or {}
338
+
339
+ return await self.call_and_deserialize(**kwargs)
340
+
341
+ async def DescribeJobs(
342
+ self,
343
+ request: models.DescribeJobsRequest,
344
+ opts: Dict = None,
345
+ ) -> models.DescribeJobsResponse:
346
+ """
347
+ 本接口 (DescribeJobs) 用于查询作业任务列表信息。
348
+ """
349
+
350
+ kwargs = {}
351
+ kwargs["action"] = "DescribeJobs"
352
+ kwargs["params"] = request._serialize()
353
+ kwargs["resp_cls"] = models.DescribeJobsResponse
354
+ kwargs["headers"] = request.headers
355
+ kwargs["opts"] = opts or {}
356
+
357
+ return await self.call_and_deserialize(**kwargs)
358
+
359
+ async def DescribeJobsOverview(
360
+ self,
361
+ request: models.DescribeJobsOverviewRequest,
362
+ opts: Dict = None,
363
+ ) -> models.DescribeJobsOverviewResponse:
364
+ """
365
+ 本接口 (DescribeJobs) 用于查询作业任务列表信息。
366
+ """
367
+
368
+ kwargs = {}
369
+ kwargs["action"] = "DescribeJobsOverview"
370
+ kwargs["params"] = request._serialize()
371
+ kwargs["resp_cls"] = models.DescribeJobsOverviewResponse
372
+ kwargs["headers"] = request.headers
373
+ kwargs["opts"] = opts or {}
374
+
375
+ return await self.call_and_deserialize(**kwargs)
376
+
377
+ async def DescribeNodes(
378
+ self,
379
+ request: models.DescribeNodesRequest,
380
+ opts: Dict = None,
381
+ ) -> models.DescribeNodesResponse:
382
+ """
383
+ 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
384
+ """
385
+
386
+ kwargs = {}
387
+ kwargs["action"] = "DescribeNodes"
388
+ kwargs["params"] = request._serialize()
389
+ kwargs["resp_cls"] = models.DescribeNodesResponse
390
+ kwargs["headers"] = request.headers
391
+ kwargs["opts"] = opts or {}
392
+
393
+ return await self.call_and_deserialize(**kwargs)
394
+
395
+ async def DescribeQueues(
396
+ self,
397
+ request: models.DescribeQueuesRequest,
398
+ opts: Dict = None,
399
+ ) -> models.DescribeQueuesResponse:
400
+ """
401
+ 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
402
+ """
403
+
404
+ kwargs = {}
405
+ kwargs["action"] = "DescribeQueues"
406
+ kwargs["params"] = request._serialize()
407
+ kwargs["resp_cls"] = models.DescribeQueuesResponse
408
+ kwargs["headers"] = request.headers
409
+ kwargs["opts"] = opts or {}
410
+
411
+ return await self.call_and_deserialize(**kwargs)
412
+
413
+ async def DescribeWorkspaces(
414
+ self,
415
+ request: models.DescribeWorkspacesRequest,
416
+ opts: Dict = None,
417
+ ) -> models.DescribeWorkspacesResponse:
418
+ """
419
+ 本接口(DescribeWorkspaces)用于查询工作空间列表。
420
+ """
421
+
422
+ kwargs = {}
423
+ kwargs["action"] = "DescribeWorkspaces"
424
+ kwargs["params"] = request._serialize()
425
+ kwargs["resp_cls"] = models.DescribeWorkspacesResponse
426
+ kwargs["headers"] = request.headers
427
+ kwargs["opts"] = opts or {}
428
+
429
+ return await self.call_and_deserialize(**kwargs)
430
+
431
+ async def DetachNodes(
432
+ self,
433
+ request: models.DetachNodesRequest,
434
+ opts: Dict = None,
435
+ ) -> models.DetachNodesResponse:
436
+ """
437
+ 本接口 (DetachNodes) 用于将一个或者多个计算节点从集群中移除,但是不销毁指定计算资源。
438
+ """
439
+
440
+ kwargs = {}
441
+ kwargs["action"] = "DetachNodes"
442
+ kwargs["params"] = request._serialize()
443
+ kwargs["resp_cls"] = models.DetachNodesResponse
444
+ kwargs["headers"] = request.headers
445
+ kwargs["opts"] = opts or {}
446
+
447
+ return await self.call_and_deserialize(**kwargs)
448
+
449
+ async def ModifyClusterDeletionProtection(
450
+ self,
451
+ request: models.ModifyClusterDeletionProtectionRequest,
452
+ opts: Dict = None,
453
+ ) -> models.ModifyClusterDeletionProtectionResponse:
454
+ """
455
+ 修改集群删除保护状态
456
+ """
457
+
458
+ kwargs = {}
459
+ kwargs["action"] = "ModifyClusterDeletionProtection"
460
+ kwargs["params"] = request._serialize()
461
+ kwargs["resp_cls"] = models.ModifyClusterDeletionProtectionResponse
462
+ kwargs["headers"] = request.headers
463
+ kwargs["opts"] = opts or {}
464
+
465
+ return await self.call_and_deserialize(**kwargs)
466
+
467
+ async def ModifyInitNodeScripts(
468
+ self,
469
+ request: models.ModifyInitNodeScriptsRequest,
470
+ opts: Dict = None,
471
+ ) -> models.ModifyInitNodeScriptsResponse:
472
+ """
473
+ 本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。
474
+ """
475
+
476
+ kwargs = {}
477
+ kwargs["action"] = "ModifyInitNodeScripts"
478
+ kwargs["params"] = request._serialize()
479
+ kwargs["resp_cls"] = models.ModifyInitNodeScriptsResponse
480
+ kwargs["headers"] = request.headers
481
+ kwargs["opts"] = opts or {}
482
+
483
+ return await self.call_and_deserialize(**kwargs)
484
+
485
+ async def ModifyWorkspacesAttribute(
486
+ self,
487
+ request: models.ModifyWorkspacesAttributeRequest,
488
+ opts: Dict = None,
489
+ ) -> models.ModifyWorkspacesAttributeResponse:
490
+ """
491
+ 本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
492
+ """
493
+
494
+ kwargs = {}
495
+ kwargs["action"] = "ModifyWorkspacesAttribute"
496
+ kwargs["params"] = request._serialize()
497
+ kwargs["resp_cls"] = models.ModifyWorkspacesAttributeResponse
498
+ kwargs["headers"] = request.headers
499
+ kwargs["opts"] = opts or {}
500
+
501
+ return await self.call_and_deserialize(**kwargs)
502
+
503
+ async def ModifyWorkspacesRenewFlag(
504
+ self,
505
+ request: models.ModifyWorkspacesRenewFlagRequest,
506
+ opts: Dict = None,
507
+ ) -> models.ModifyWorkspacesRenewFlagResponse:
508
+ """
509
+ 本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
510
+ """
511
+
512
+ kwargs = {}
513
+ kwargs["action"] = "ModifyWorkspacesRenewFlag"
514
+ kwargs["params"] = request._serialize()
515
+ kwargs["resp_cls"] = models.ModifyWorkspacesRenewFlagResponse
516
+ kwargs["headers"] = request.headers
517
+ kwargs["opts"] = opts or {}
518
+
519
+ return await self.call_and_deserialize(**kwargs)
520
+
521
+ async def SetAutoScalingConfiguration(
522
+ self,
523
+ request: models.SetAutoScalingConfigurationRequest,
524
+ opts: Dict = None,
525
+ ) -> models.SetAutoScalingConfigurationResponse:
526
+ """
527
+ 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
528
+ """
529
+
530
+ kwargs = {}
531
+ kwargs["action"] = "SetAutoScalingConfiguration"
532
+ kwargs["params"] = request._serialize()
533
+ kwargs["resp_cls"] = models.SetAutoScalingConfigurationResponse
534
+ kwargs["headers"] = request.headers
535
+ kwargs["opts"] = opts or {}
536
+
537
+ return await self.call_and_deserialize(**kwargs)
538
+
539
+ async def SubmitJob(
540
+ self,
541
+ request: models.SubmitJobRequest,
542
+ opts: Dict = None,
543
+ ) -> models.SubmitJobResponse:
544
+ """
545
+ 本接口 (SubmitJob) 用于提交一个作业任务。
546
+ """
547
+
548
+ kwargs = {}
549
+ kwargs["action"] = "SubmitJob"
550
+ kwargs["params"] = request._serialize()
551
+ kwargs["resp_cls"] = models.SubmitJobResponse
552
+ kwargs["headers"] = request.headers
553
+ kwargs["opts"] = opts or {}
554
+
555
+ return await self.call_and_deserialize(**kwargs)
556
+
557
+ async def TerminateJob(
558
+ self,
559
+ request: models.TerminateJobRequest,
560
+ opts: Dict = None,
561
+ ) -> models.TerminateJobResponse:
562
+ """
563
+ 本接口 (TerminateJob) 用于终止一个作业任务。
564
+ """
565
+
566
+ kwargs = {}
567
+ kwargs["action"] = "TerminateJob"
568
+ kwargs["params"] = request._serialize()
569
+ kwargs["resp_cls"] = models.TerminateJobResponse
570
+ kwargs["headers"] = request.headers
571
+ kwargs["opts"] = opts or {}
572
+
573
+ return await self.call_and_deserialize(**kwargs)
574
+
575
+ async def TerminateWorkspaces(
576
+ self,
577
+ request: models.TerminateWorkspacesRequest,
578
+ opts: Dict = None,
579
+ ) -> models.TerminateWorkspacesResponse:
580
+ """
581
+ 本接口 (TerminateWorkspaces) 用于主动退还工作空间。
582
+ """
583
+
584
+ kwargs = {}
585
+ kwargs["action"] = "TerminateWorkspaces"
586
+ kwargs["params"] = request._serialize()
587
+ kwargs["resp_cls"] = models.TerminateWorkspacesResponse
588
+ kwargs["headers"] = request.headers
589
+ kwargs["opts"] = opts or {}
590
+
591
+ return await self.call_and_deserialize(**kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-thpc
3
- Version: 3.0.1483
3
+ Version: 3.1.2
4
4
  Summary: Tencent Cloud Thpc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1483
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.2
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -7,14 +7,17 @@ tencentcloud/thpc/v20211109/__init__.py
7
7
  tencentcloud/thpc/v20211109/errorcodes.py
8
8
  tencentcloud/thpc/v20211109/models.py
9
9
  tencentcloud/thpc/v20211109/thpc_client.py
10
+ tencentcloud/thpc/v20211109/thpc_client_async.py
10
11
  tencentcloud/thpc/v20220401/__init__.py
11
12
  tencentcloud/thpc/v20220401/errorcodes.py
12
13
  tencentcloud/thpc/v20220401/models.py
13
14
  tencentcloud/thpc/v20220401/thpc_client.py
15
+ tencentcloud/thpc/v20220401/thpc_client_async.py
14
16
  tencentcloud/thpc/v20230321/__init__.py
15
17
  tencentcloud/thpc/v20230321/errorcodes.py
16
18
  tencentcloud/thpc/v20230321/models.py
17
19
  tencentcloud/thpc/v20230321/thpc_client.py
20
+ tencentcloud/thpc/v20230321/thpc_client_async.py
18
21
  tencentcloud_sdk_python_thpc.egg-info/PKG-INFO
19
22
  tencentcloud_sdk_python_thpc.egg-info/SOURCES.txt
20
23
  tencentcloud_sdk_python_thpc.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.2
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1483