tencentcloud-sdk-python-thpc 3.0.837__py2.py3-none-any.whl → 3.0.841__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/thpc/v20220401/errorcodes.py +48 -0
- tencentcloud/thpc/v20220401/models.py +337 -1
- tencentcloud/thpc/v20220401/thpc_client.py +94 -0
- {tencentcloud_sdk_python_thpc-3.0.837.dist-info → tencentcloud_sdk_python_thpc-3.0.841.dist-info}/METADATA +1 -1
- tencentcloud_sdk_python_thpc-3.0.841.dist-info/RECORD +14 -0
- tencentcloud_sdk_python_thpc-3.0.837.dist-info/RECORD +0 -14
- {tencentcloud_sdk_python_thpc-3.0.837.dist-info → tencentcloud_sdk_python_thpc-3.0.841.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_thpc-3.0.837.dist-info → tencentcloud_sdk_python_thpc-3.0.841.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -14,12 +14,24 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
# CAM签名/鉴权错误。
|
|
18
|
+
AUTHFAILURE = 'AuthFailure'
|
|
19
|
+
|
|
17
20
|
# DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
|
|
18
21
|
DRYRUNOPERATION = 'DryRunOperation'
|
|
19
22
|
|
|
23
|
+
# 操作失败。
|
|
24
|
+
FAILEDOPERATION = 'FailedOperation'
|
|
25
|
+
|
|
26
|
+
# 内部错误。
|
|
27
|
+
INTERNALERROR = 'InternalError'
|
|
28
|
+
|
|
20
29
|
# cvm调用失败。
|
|
21
30
|
INTERNALERROR_CALLCVM = 'InternalError.CallCvm'
|
|
22
31
|
|
|
32
|
+
# 参数错误。
|
|
33
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
|
34
|
+
|
|
23
35
|
# 参数格式有误。
|
|
24
36
|
INVALIDPARAMETER_MALFORMED = 'InvalidParameter.Malformed'
|
|
25
37
|
|
|
@@ -47,12 +59,30 @@ INVALIDPARAMETERVALUE_TOOSHORT = 'InvalidParameterValue.TooShort'
|
|
|
47
59
|
# 参数值过小。
|
|
48
60
|
INVALIDPARAMETERVALUE_TOOSMALL = 'InvalidParameterValue.TooSmall'
|
|
49
61
|
|
|
62
|
+
# 参数值重复。不支持此操作。
|
|
63
|
+
INVALIDPARAMETERVALUE_VALUEDUPLICATED = 'InvalidParameterValue.ValueDuplicated'
|
|
64
|
+
|
|
65
|
+
# 超过配额限制。
|
|
66
|
+
LIMITEXCEEDED = 'LimitExceeded'
|
|
67
|
+
|
|
50
68
|
# 缺少参数错误。
|
|
51
69
|
MISSINGPARAMETER = 'MissingParameter'
|
|
52
70
|
|
|
71
|
+
# 操作被拒绝。
|
|
72
|
+
OPERATIONDENIED = 'OperationDenied'
|
|
73
|
+
|
|
74
|
+
# 请求的次数超过了频率限制。
|
|
75
|
+
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
|
76
|
+
|
|
77
|
+
# 资源被占用。
|
|
78
|
+
RESOURCEINUSE = 'ResourceInUse'
|
|
79
|
+
|
|
53
80
|
# 资源不足。
|
|
54
81
|
RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
55
82
|
|
|
83
|
+
# 资源不存在。
|
|
84
|
+
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
85
|
+
|
|
56
86
|
# 无法找到弹性伸缩组ID。
|
|
57
87
|
RESOURCENOTFOUND_AUTOSCALINGGROUPID = 'ResourceNotFound.AutoScalingGroupId'
|
|
58
88
|
|
|
@@ -68,6 +98,18 @@ RESOURCENOTFOUND_LAUNCHCONFIGURATIONID = 'ResourceNotFound.LaunchConfigurationId
|
|
|
68
98
|
# 无法找到ID对应节点。
|
|
69
99
|
RESOURCENOTFOUND_NODEID = 'ResourceNotFound.NodeId'
|
|
70
100
|
|
|
101
|
+
# 无法找到指定队列。
|
|
102
|
+
RESOURCENOTFOUND_QUEUE = 'ResourceNotFound.Queue'
|
|
103
|
+
|
|
104
|
+
# 未授权操作。
|
|
105
|
+
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
106
|
+
|
|
107
|
+
# 未知参数错误。
|
|
108
|
+
UNKNOWNPARAMETER = 'UnknownParameter'
|
|
109
|
+
|
|
110
|
+
# 操作不支持。
|
|
111
|
+
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
112
|
+
|
|
71
113
|
# 该伸缩组已绑定集群,请更换伸缩组。
|
|
72
114
|
UNSUPPORTEDOPERATION_AUTOSCALINGGROUPALREADYBINDED = 'UnsupportedOperation.AutoScalingGroupAlreadyBinded'
|
|
73
115
|
|
|
@@ -83,5 +125,11 @@ UNSUPPORTEDOPERATION_INVALIDNODEROLE = 'UnsupportedOperation.InvalidNodeRole'
|
|
|
83
125
|
# 节点状态不支持此操作。
|
|
84
126
|
UNSUPPORTEDOPERATION_NODESTATUSNOTSUPPORT = 'UnsupportedOperation.NodeStatusNotSupport'
|
|
85
127
|
|
|
128
|
+
# 参数值过大,不支持此操作。
|
|
129
|
+
UNSUPPORTEDOPERATION_PARAMETERTOOLARGE = 'UnsupportedOperation.ParameterTooLarge'
|
|
130
|
+
|
|
131
|
+
# 参数值过小,不支持此操作。
|
|
132
|
+
UNSUPPORTEDOPERATION_PARAMETERTOOSMALL = 'UnsupportedOperation.ParameterTooSmall'
|
|
133
|
+
|
|
86
134
|
# vpc冲突,不支持当前操作。
|
|
87
135
|
UNSUPPORTEDOPERATION_VPCIDCONFLICT = 'UnsupportedOperation.VpcIdConflict'
|
|
@@ -205,6 +205,51 @@ class AddNodesResponse(AbstractModel):
|
|
|
205
205
|
self.RequestId = params.get("RequestId")
|
|
206
206
|
|
|
207
207
|
|
|
208
|
+
class AddQueueRequest(AbstractModel):
|
|
209
|
+
"""AddQueue请求参数结构体
|
|
210
|
+
|
|
211
|
+
"""
|
|
212
|
+
|
|
213
|
+
def __init__(self):
|
|
214
|
+
r"""
|
|
215
|
+
:param ClusterId: 集群ID。
|
|
216
|
+
:type ClusterId: str
|
|
217
|
+
:param QueueName: 队列名称。<br><li>最多支持32个字符。
|
|
218
|
+
:type QueueName: str
|
|
219
|
+
"""
|
|
220
|
+
self.ClusterId = None
|
|
221
|
+
self.QueueName = None
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
def _deserialize(self, params):
|
|
225
|
+
self.ClusterId = params.get("ClusterId")
|
|
226
|
+
self.QueueName = params.get("QueueName")
|
|
227
|
+
memeber_set = set(params.keys())
|
|
228
|
+
for name, value in vars(self).items():
|
|
229
|
+
if name in memeber_set:
|
|
230
|
+
memeber_set.remove(name)
|
|
231
|
+
if len(memeber_set) > 0:
|
|
232
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class AddQueueResponse(AbstractModel):
|
|
237
|
+
"""AddQueue返回参数结构体
|
|
238
|
+
|
|
239
|
+
"""
|
|
240
|
+
|
|
241
|
+
def __init__(self):
|
|
242
|
+
r"""
|
|
243
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
244
|
+
:type RequestId: str
|
|
245
|
+
"""
|
|
246
|
+
self.RequestId = None
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
def _deserialize(self, params):
|
|
250
|
+
self.RequestId = params.get("RequestId")
|
|
251
|
+
|
|
252
|
+
|
|
208
253
|
class BindAutoScalingGroupRequest(AbstractModel):
|
|
209
254
|
"""BindAutoScalingGroup请求参数结构体
|
|
210
255
|
|
|
@@ -371,7 +416,8 @@ class ClusterActivity(AbstractModel):
|
|
|
371
416
|
:type ClusterId: str
|
|
372
417
|
:param ActivityId: 集群活动ID。
|
|
373
418
|
:type ActivityId: str
|
|
374
|
-
:param ActivityType:
|
|
419
|
+
:param ActivityType: 集群活动类型。取值范围:<br><li>CreateAndAddNodes:创建实例并添加进集群<br><li>RemoveNodesFromCluster:从集群移除实例<br><li>TerminateNodes:销毁实例<br><li>MountStorageOption:增加挂载选项并进行挂载<br><li>UmountStorageOption:删除集群挂载存储选项并解挂载
|
|
420
|
+
|
|
375
421
|
:type ActivityType: str
|
|
376
422
|
:param ActivityStatus: 集群活动状态。取值范围:<br><li>PENDING:等待运行<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>PARTIALLY_SUCCESSFUL:活动部分成功<br><li>FAILED:活动失败
|
|
377
423
|
:type ActivityStatus: str
|
|
@@ -910,6 +956,51 @@ class DeleteNodesResponse(AbstractModel):
|
|
|
910
956
|
self.RequestId = params.get("RequestId")
|
|
911
957
|
|
|
912
958
|
|
|
959
|
+
class DeleteQueueRequest(AbstractModel):
|
|
960
|
+
"""DeleteQueue请求参数结构体
|
|
961
|
+
|
|
962
|
+
"""
|
|
963
|
+
|
|
964
|
+
def __init__(self):
|
|
965
|
+
r"""
|
|
966
|
+
:param ClusterId: 集群ID。
|
|
967
|
+
:type ClusterId: str
|
|
968
|
+
:param QueueName: 队列名称。<br><li>最多支持32个字符。
|
|
969
|
+
:type QueueName: str
|
|
970
|
+
"""
|
|
971
|
+
self.ClusterId = None
|
|
972
|
+
self.QueueName = None
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
def _deserialize(self, params):
|
|
976
|
+
self.ClusterId = params.get("ClusterId")
|
|
977
|
+
self.QueueName = params.get("QueueName")
|
|
978
|
+
memeber_set = set(params.keys())
|
|
979
|
+
for name, value in vars(self).items():
|
|
980
|
+
if name in memeber_set:
|
|
981
|
+
memeber_set.remove(name)
|
|
982
|
+
if len(memeber_set) > 0:
|
|
983
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
class DeleteQueueResponse(AbstractModel):
|
|
988
|
+
"""DeleteQueue返回参数结构体
|
|
989
|
+
|
|
990
|
+
"""
|
|
991
|
+
|
|
992
|
+
def __init__(self):
|
|
993
|
+
r"""
|
|
994
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
995
|
+
:type RequestId: str
|
|
996
|
+
"""
|
|
997
|
+
self.RequestId = None
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
def _deserialize(self, params):
|
|
1001
|
+
self.RequestId = params.get("RequestId")
|
|
1002
|
+
|
|
1003
|
+
|
|
913
1004
|
class DescribeAutoScalingConfigurationRequest(AbstractModel):
|
|
914
1005
|
"""DescribeAutoScalingConfiguration请求参数结构体
|
|
915
1006
|
|
|
@@ -1143,6 +1234,139 @@ class DescribeClustersResponse(AbstractModel):
|
|
|
1143
1234
|
self.RequestId = params.get("RequestId")
|
|
1144
1235
|
|
|
1145
1236
|
|
|
1237
|
+
class DescribeNodesRequest(AbstractModel):
|
|
1238
|
+
"""DescribeNodes请求参数结构体
|
|
1239
|
+
|
|
1240
|
+
"""
|
|
1241
|
+
|
|
1242
|
+
def __init__(self):
|
|
1243
|
+
r"""
|
|
1244
|
+
:param ClusterId: 集群ID。
|
|
1245
|
+
:type ClusterId: str
|
|
1246
|
+
:param Filters: <li><strong>queue-name</strong></li> <p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-role</strong></li> <p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-type</strong></li> <p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
|
|
1247
|
+
:type Filters: list of Filter
|
|
1248
|
+
:param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
1249
|
+
:type Offset: int
|
|
1250
|
+
:param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
1251
|
+
:type Limit: int
|
|
1252
|
+
"""
|
|
1253
|
+
self.ClusterId = None
|
|
1254
|
+
self.Filters = None
|
|
1255
|
+
self.Offset = None
|
|
1256
|
+
self.Limit = None
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
def _deserialize(self, params):
|
|
1260
|
+
self.ClusterId = params.get("ClusterId")
|
|
1261
|
+
if params.get("Filters") is not None:
|
|
1262
|
+
self.Filters = []
|
|
1263
|
+
for item in params.get("Filters"):
|
|
1264
|
+
obj = Filter()
|
|
1265
|
+
obj._deserialize(item)
|
|
1266
|
+
self.Filters.append(obj)
|
|
1267
|
+
self.Offset = params.get("Offset")
|
|
1268
|
+
self.Limit = params.get("Limit")
|
|
1269
|
+
memeber_set = set(params.keys())
|
|
1270
|
+
for name, value in vars(self).items():
|
|
1271
|
+
if name in memeber_set:
|
|
1272
|
+
memeber_set.remove(name)
|
|
1273
|
+
if len(memeber_set) > 0:
|
|
1274
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
class DescribeNodesResponse(AbstractModel):
|
|
1279
|
+
"""DescribeNodes返回参数结构体
|
|
1280
|
+
|
|
1281
|
+
"""
|
|
1282
|
+
|
|
1283
|
+
def __init__(self):
|
|
1284
|
+
r"""
|
|
1285
|
+
:param NodeSet: 节点概览信息列表。
|
|
1286
|
+
:type NodeSet: list of NodeOverview
|
|
1287
|
+
:param TotalCount: 符合条件的节点数量。
|
|
1288
|
+
:type TotalCount: int
|
|
1289
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1290
|
+
:type RequestId: str
|
|
1291
|
+
"""
|
|
1292
|
+
self.NodeSet = None
|
|
1293
|
+
self.TotalCount = None
|
|
1294
|
+
self.RequestId = None
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
def _deserialize(self, params):
|
|
1298
|
+
if params.get("NodeSet") is not None:
|
|
1299
|
+
self.NodeSet = []
|
|
1300
|
+
for item in params.get("NodeSet"):
|
|
1301
|
+
obj = NodeOverview()
|
|
1302
|
+
obj._deserialize(item)
|
|
1303
|
+
self.NodeSet.append(obj)
|
|
1304
|
+
self.TotalCount = params.get("TotalCount")
|
|
1305
|
+
self.RequestId = params.get("RequestId")
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
class DescribeQueuesRequest(AbstractModel):
|
|
1309
|
+
"""DescribeQueues请求参数结构体
|
|
1310
|
+
|
|
1311
|
+
"""
|
|
1312
|
+
|
|
1313
|
+
def __init__(self):
|
|
1314
|
+
r"""
|
|
1315
|
+
:param ClusterId: 集群ID。
|
|
1316
|
+
:type ClusterId: str
|
|
1317
|
+
:param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
1318
|
+
:type Offset: int
|
|
1319
|
+
:param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
|
1320
|
+
:type Limit: int
|
|
1321
|
+
"""
|
|
1322
|
+
self.ClusterId = None
|
|
1323
|
+
self.Offset = None
|
|
1324
|
+
self.Limit = None
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
def _deserialize(self, params):
|
|
1328
|
+
self.ClusterId = params.get("ClusterId")
|
|
1329
|
+
self.Offset = params.get("Offset")
|
|
1330
|
+
self.Limit = params.get("Limit")
|
|
1331
|
+
memeber_set = set(params.keys())
|
|
1332
|
+
for name, value in vars(self).items():
|
|
1333
|
+
if name in memeber_set:
|
|
1334
|
+
memeber_set.remove(name)
|
|
1335
|
+
if len(memeber_set) > 0:
|
|
1336
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
class DescribeQueuesResponse(AbstractModel):
|
|
1341
|
+
"""DescribeQueues返回参数结构体
|
|
1342
|
+
|
|
1343
|
+
"""
|
|
1344
|
+
|
|
1345
|
+
def __init__(self):
|
|
1346
|
+
r"""
|
|
1347
|
+
:param QueueSet: 队列概览信息列表。
|
|
1348
|
+
:type QueueSet: list of QueueOverview
|
|
1349
|
+
:param TotalCount: 符合条件的节点数量。
|
|
1350
|
+
:type TotalCount: int
|
|
1351
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1352
|
+
:type RequestId: str
|
|
1353
|
+
"""
|
|
1354
|
+
self.QueueSet = None
|
|
1355
|
+
self.TotalCount = None
|
|
1356
|
+
self.RequestId = None
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
def _deserialize(self, params):
|
|
1360
|
+
if params.get("QueueSet") is not None:
|
|
1361
|
+
self.QueueSet = []
|
|
1362
|
+
for item in params.get("QueueSet"):
|
|
1363
|
+
obj = QueueOverview()
|
|
1364
|
+
obj._deserialize(item)
|
|
1365
|
+
self.QueueSet.append(obj)
|
|
1366
|
+
self.TotalCount = params.get("TotalCount")
|
|
1367
|
+
self.RequestId = params.get("RequestId")
|
|
1368
|
+
|
|
1369
|
+
|
|
1146
1370
|
class ExpansionNodeConfig(AbstractModel):
|
|
1147
1371
|
"""弹性扩容节点配置信息。
|
|
1148
1372
|
|
|
@@ -1270,6 +1494,38 @@ class ExpansionNodeConfigOverview(AbstractModel):
|
|
|
1270
1494
|
|
|
1271
1495
|
|
|
1272
1496
|
|
|
1497
|
+
class Filter(AbstractModel):
|
|
1498
|
+
""">描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
|
|
1499
|
+
> * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。
|
|
1500
|
+
> * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
|
|
1501
|
+
|
|
1502
|
+
"""
|
|
1503
|
+
|
|
1504
|
+
def __init__(self):
|
|
1505
|
+
r"""
|
|
1506
|
+
:param Name: 需要过滤的字段。
|
|
1507
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1508
|
+
:type Name: str
|
|
1509
|
+
:param Values: 字段的过滤值。
|
|
1510
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1511
|
+
:type Values: list of str
|
|
1512
|
+
"""
|
|
1513
|
+
self.Name = None
|
|
1514
|
+
self.Values = None
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
def _deserialize(self, params):
|
|
1518
|
+
self.Name = params.get("Name")
|
|
1519
|
+
self.Values = params.get("Values")
|
|
1520
|
+
memeber_set = set(params.keys())
|
|
1521
|
+
for name, value in vars(self).items():
|
|
1522
|
+
if name in memeber_set:
|
|
1523
|
+
memeber_set.remove(name)
|
|
1524
|
+
if len(memeber_set) > 0:
|
|
1525
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
|
|
1273
1529
|
class GooseFSOption(AbstractModel):
|
|
1274
1530
|
"""描述GooseFS挂载信息
|
|
1275
1531
|
|
|
@@ -1644,6 +1900,61 @@ class NodeActivity(AbstractModel):
|
|
|
1644
1900
|
|
|
1645
1901
|
|
|
1646
1902
|
|
|
1903
|
+
class NodeOverview(AbstractModel):
|
|
1904
|
+
"""节点概览信息。
|
|
1905
|
+
|
|
1906
|
+
"""
|
|
1907
|
+
|
|
1908
|
+
def __init__(self):
|
|
1909
|
+
r"""
|
|
1910
|
+
:param InstanceId: 节点实例ID。
|
|
1911
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1912
|
+
:type InstanceId: str
|
|
1913
|
+
:param Zone: 节点所在可用区信息。
|
|
1914
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1915
|
+
:type Zone: str
|
|
1916
|
+
:param NodeState: 节点状态。<br><li>SUBMITTED:已完成提交。<br><li>CREATING:创建中。<br><li>CREATED:完成创建。<br><li>INITING:初始化中。<br><li>INIT_FAILED:初始化失败。<br><li>RUNNING:运行中。<br><li>DELETING:销毁中。
|
|
1917
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1918
|
+
:type NodeState: str
|
|
1919
|
+
:param ImageId: 镜像ID。
|
|
1920
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1921
|
+
:type ImageId: str
|
|
1922
|
+
:param QueueName: 节点所属队列名称。
|
|
1923
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1924
|
+
:type QueueName: str
|
|
1925
|
+
:param NodeRole: 节点角色。<br><li>Manager:管控节点。<br><li>Compute:计算节点。<br><li>Login:登录节点。<br><li>ManagerBackup:备用管控节点。
|
|
1926
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1927
|
+
:type NodeRole: str
|
|
1928
|
+
:param NodeType: 节点类型。<br><li>STATIC:静态节点。<br><li>DYNAMIC:弹性节点。
|
|
1929
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1930
|
+
:type NodeType: str
|
|
1931
|
+
"""
|
|
1932
|
+
self.InstanceId = None
|
|
1933
|
+
self.Zone = None
|
|
1934
|
+
self.NodeState = None
|
|
1935
|
+
self.ImageId = None
|
|
1936
|
+
self.QueueName = None
|
|
1937
|
+
self.NodeRole = None
|
|
1938
|
+
self.NodeType = None
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
def _deserialize(self, params):
|
|
1942
|
+
self.InstanceId = params.get("InstanceId")
|
|
1943
|
+
self.Zone = params.get("Zone")
|
|
1944
|
+
self.NodeState = params.get("NodeState")
|
|
1945
|
+
self.ImageId = params.get("ImageId")
|
|
1946
|
+
self.QueueName = params.get("QueueName")
|
|
1947
|
+
self.NodeRole = params.get("NodeRole")
|
|
1948
|
+
self.NodeType = params.get("NodeType")
|
|
1949
|
+
memeber_set = set(params.keys())
|
|
1950
|
+
for name, value in vars(self).items():
|
|
1951
|
+
if name in memeber_set:
|
|
1952
|
+
memeber_set.remove(name)
|
|
1953
|
+
if len(memeber_set) > 0:
|
|
1954
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
|
|
1647
1958
|
class Placement(AbstractModel):
|
|
1648
1959
|
"""描述了实例的抽象位置
|
|
1649
1960
|
|
|
@@ -1791,6 +2102,31 @@ class QueueConfigOverview(AbstractModel):
|
|
|
1791
2102
|
|
|
1792
2103
|
|
|
1793
2104
|
|
|
2105
|
+
class QueueOverview(AbstractModel):
|
|
2106
|
+
"""队列信息概览。
|
|
2107
|
+
|
|
2108
|
+
"""
|
|
2109
|
+
|
|
2110
|
+
def __init__(self):
|
|
2111
|
+
r"""
|
|
2112
|
+
:param QueueName: 队列名称。
|
|
2113
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2114
|
+
:type QueueName: str
|
|
2115
|
+
"""
|
|
2116
|
+
self.QueueName = None
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
def _deserialize(self, params):
|
|
2120
|
+
self.QueueName = params.get("QueueName")
|
|
2121
|
+
memeber_set = set(params.keys())
|
|
2122
|
+
for name, value in vars(self).items():
|
|
2123
|
+
if name in memeber_set:
|
|
2124
|
+
memeber_set.remove(name)
|
|
2125
|
+
if len(memeber_set) > 0:
|
|
2126
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
1794
2130
|
class SetAutoScalingConfigurationRequest(AbstractModel):
|
|
1795
2131
|
"""SetAutoScalingConfiguration请求参数结构体
|
|
1796
2132
|
|
|
@@ -72,6 +72,29 @@ class ThpcClient(AbstractClient):
|
|
|
72
72
|
raise TencentCloudSDKException(e.message, e.message)
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def AddQueue(self, request):
|
|
76
|
+
"""本接口(AddQueue)用于添加队列到指定集群。
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for AddQueue.
|
|
79
|
+
:type request: :class:`tencentcloud.thpc.v20220401.models.AddQueueRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.thpc.v20220401.models.AddQueueResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("AddQueue", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.AddQueueResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
96
|
+
|
|
97
|
+
|
|
75
98
|
def BindAutoScalingGroup(self, request):
|
|
76
99
|
"""本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
|
|
77
100
|
|
|
@@ -187,6 +210,31 @@ class ThpcClient(AbstractClient):
|
|
|
187
210
|
raise TencentCloudSDKException(e.message, e.message)
|
|
188
211
|
|
|
189
212
|
|
|
213
|
+
def DeleteQueue(self, request):
|
|
214
|
+
"""本接口(DeleteQueue)用于从指定集群删除队列。
|
|
215
|
+
|
|
216
|
+
* 删除队列时,需要保证队列内不存在节点。
|
|
217
|
+
|
|
218
|
+
:param request: Request instance for DeleteQueue.
|
|
219
|
+
:type request: :class:`tencentcloud.thpc.v20220401.models.DeleteQueueRequest`
|
|
220
|
+
:rtype: :class:`tencentcloud.thpc.v20220401.models.DeleteQueueResponse`
|
|
221
|
+
|
|
222
|
+
"""
|
|
223
|
+
try:
|
|
224
|
+
params = request._serialize()
|
|
225
|
+
headers = request.headers
|
|
226
|
+
body = self.call("DeleteQueue", params, headers=headers)
|
|
227
|
+
response = json.loads(body)
|
|
228
|
+
model = models.DeleteQueueResponse()
|
|
229
|
+
model._deserialize(response["Response"])
|
|
230
|
+
return model
|
|
231
|
+
except Exception as e:
|
|
232
|
+
if isinstance(e, TencentCloudSDKException):
|
|
233
|
+
raise
|
|
234
|
+
else:
|
|
235
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
236
|
+
|
|
237
|
+
|
|
190
238
|
def DescribeAutoScalingConfiguration(self, request):
|
|
191
239
|
"""本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
|
|
192
240
|
|
|
@@ -279,6 +327,52 @@ class ThpcClient(AbstractClient):
|
|
|
279
327
|
raise TencentCloudSDKException(e.message, e.message)
|
|
280
328
|
|
|
281
329
|
|
|
330
|
+
def DescribeNodes(self, request):
|
|
331
|
+
"""本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
|
|
332
|
+
|
|
333
|
+
:param request: Request instance for DescribeNodes.
|
|
334
|
+
:type request: :class:`tencentcloud.thpc.v20220401.models.DescribeNodesRequest`
|
|
335
|
+
:rtype: :class:`tencentcloud.thpc.v20220401.models.DescribeNodesResponse`
|
|
336
|
+
|
|
337
|
+
"""
|
|
338
|
+
try:
|
|
339
|
+
params = request._serialize()
|
|
340
|
+
headers = request.headers
|
|
341
|
+
body = self.call("DescribeNodes", params, headers=headers)
|
|
342
|
+
response = json.loads(body)
|
|
343
|
+
model = models.DescribeNodesResponse()
|
|
344
|
+
model._deserialize(response["Response"])
|
|
345
|
+
return model
|
|
346
|
+
except Exception as e:
|
|
347
|
+
if isinstance(e, TencentCloudSDKException):
|
|
348
|
+
raise
|
|
349
|
+
else:
|
|
350
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
def DescribeQueues(self, request):
|
|
354
|
+
"""本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
|
|
355
|
+
|
|
356
|
+
:param request: Request instance for DescribeQueues.
|
|
357
|
+
:type request: :class:`tencentcloud.thpc.v20220401.models.DescribeQueuesRequest`
|
|
358
|
+
:rtype: :class:`tencentcloud.thpc.v20220401.models.DescribeQueuesResponse`
|
|
359
|
+
|
|
360
|
+
"""
|
|
361
|
+
try:
|
|
362
|
+
params = request._serialize()
|
|
363
|
+
headers = request.headers
|
|
364
|
+
body = self.call("DescribeQueues", params, headers=headers)
|
|
365
|
+
response = json.loads(body)
|
|
366
|
+
model = models.DescribeQueuesResponse()
|
|
367
|
+
model._deserialize(response["Response"])
|
|
368
|
+
return model
|
|
369
|
+
except Exception as e:
|
|
370
|
+
if isinstance(e, TencentCloudSDKException):
|
|
371
|
+
raise
|
|
372
|
+
else:
|
|
373
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
374
|
+
|
|
375
|
+
|
|
282
376
|
def SetAutoScalingConfiguration(self, request):
|
|
283
377
|
"""本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
|
284
378
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=B4Slccu0CvUinSqlxYzaT80LtD0PXpRf3rNReBB_9w0,630
|
|
2
|
+
tencentcloud/thpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/thpc/v20211109/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/thpc/v20211109/errorcodes.py,sha256=xwipivn8e41cJXazb93E1dSq36noRO_aNmrGy_EjxTc,2035
|
|
5
|
+
tencentcloud/thpc/v20211109/models.py,sha256=drot_IkC-Ehxyl1OcDOqe1KLRIh0aLTUMiVjKR1BHp0,43727
|
|
6
|
+
tencentcloud/thpc/v20211109/thpc_client.py,sha256=2f5vIhJplBuGCOhPAI8lo3_4BnTTP_B0RhF3TO3cID0,4612
|
|
7
|
+
tencentcloud/thpc/v20220401/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
tencentcloud/thpc/v20220401/errorcodes.py,sha256=UyBh3DTqZG82YJRGNwQsJF5AwLb7dBf1s12P777hpAM,4298
|
|
9
|
+
tencentcloud/thpc/v20220401/models.py,sha256=MuQm_lw8nmBxgx_tXyPv1lRixC_xJ0q_JAl84B-harA,97498
|
|
10
|
+
tencentcloud/thpc/v20220401/thpc_client.py,sha256=1oWWTt1IpofVRlA6-r_uB1DJk3O-UTkh5dVODBiyv7c,16025
|
|
11
|
+
tencentcloud_sdk_python_thpc-3.0.841.dist-info/METADATA,sha256=bxM_EYNG8WWHZOiMGbFWmgK2IsfdF7Twowh0a-IG-XA,1437
|
|
12
|
+
tencentcloud_sdk_python_thpc-3.0.841.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
13
|
+
tencentcloud_sdk_python_thpc-3.0.841.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
14
|
+
tencentcloud_sdk_python_thpc-3.0.841.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=8uSs_gis7wtP9jgIEBxIB7EsjV3cfhhDwXPA5mmnrU8,630
|
|
2
|
-
tencentcloud/thpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/thpc/v20211109/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/thpc/v20211109/errorcodes.py,sha256=xwipivn8e41cJXazb93E1dSq36noRO_aNmrGy_EjxTc,2035
|
|
5
|
-
tencentcloud/thpc/v20211109/models.py,sha256=drot_IkC-Ehxyl1OcDOqe1KLRIh0aLTUMiVjKR1BHp0,43727
|
|
6
|
-
tencentcloud/thpc/v20211109/thpc_client.py,sha256=2f5vIhJplBuGCOhPAI8lo3_4BnTTP_B0RhF3TO3cID0,4612
|
|
7
|
-
tencentcloud/thpc/v20220401/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
tencentcloud/thpc/v20220401/errorcodes.py,sha256=qRtOHLsrC5dfOyD7MPAfAZv1WIfSwKxaNySjqtOnz5c,3105
|
|
9
|
-
tencentcloud/thpc/v20220401/models.py,sha256=PDFZa81V0KLz3oFsjtv-RP99xcRkw9he5p5HTW8aJ14,84917
|
|
10
|
-
tencentcloud/thpc/v20220401/thpc_client.py,sha256=jDvzqHEmPovDJbxWomZh-VWi7GdAWPSyPB80wGTNLKs,12426
|
|
11
|
-
tencentcloud_sdk_python_thpc-3.0.837.dist-info/METADATA,sha256=cm8gosiJbjYiD91QprGtOrncO5qVHlL8e7gc6xi-XdI,1437
|
|
12
|
-
tencentcloud_sdk_python_thpc-3.0.837.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
13
|
-
tencentcloud_sdk_python_thpc-3.0.837.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
14
|
-
tencentcloud_sdk_python_thpc-3.0.837.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|