tencentcloud-sdk-python-thpc 3.0.834__tar.gz → 3.0.840__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.
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20220401/errorcodes.py +48 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20220401/models.py +343 -4
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20220401/thpc_client.py +94 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud_sdk_python_thpc.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/README.rst +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/setup.cfg +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/setup.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/__init__.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20211109/__init__.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20211109/errorcodes.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20211109/models.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20211109/thpc_client.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud/thpc/v20220401/__init__.py +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud_sdk_python_thpc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud_sdk_python_thpc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-thpc-3.0.834 → tencentcloud-sdk-python-thpc-3.0.840}/tencentcloud_sdk_python_thpc.egg-info/top_level.txt +0 -0
|
@@ -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'
|
|
@@ -104,11 +104,10 @@ class AddNodesRequest(AbstractModel):
|
|
|
104
104
|
:type SecurityGroupIds: list of str
|
|
105
105
|
:param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
|
|
106
106
|
:type ClientToken: str
|
|
107
|
-
:param QueueName: 队列名称。不指定则为默认队列。<
|
|
108
|
-
<li>SGE默认队列为:all.q。<br>
|
|
107
|
+
:param QueueName: 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。<li>SGE默认队列为:all.q。
|
|
109
108
|
|
|
110
109
|
:type QueueName: str
|
|
111
|
-
:param NodeRole:
|
|
110
|
+
:param NodeRole: 添加节点角色。默认值:Compute<br><li>Compute:计算节点。<br><li>Login:登录节点。
|
|
112
111
|
:type NodeRole: str
|
|
113
112
|
:param DryRun: 是否只预检此次请求。
|
|
114
113
|
true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
|
|
@@ -116,6 +115,8 @@ true:发送检查请求,不会创建实例。检查项包括是否填写了
|
|
|
116
115
|
如果检查通过,则返回RequestId.
|
|
117
116
|
false(默认):发送正常请求,通过检查后直接创建实例
|
|
118
117
|
:type DryRun: bool
|
|
118
|
+
:param NodeType: 添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。<li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。
|
|
119
|
+
:type NodeType: str
|
|
119
120
|
"""
|
|
120
121
|
self.Placement = None
|
|
121
122
|
self.ClusterId = None
|
|
@@ -135,6 +136,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
|
135
136
|
self.QueueName = None
|
|
136
137
|
self.NodeRole = None
|
|
137
138
|
self.DryRun = None
|
|
139
|
+
self.NodeType = None
|
|
138
140
|
|
|
139
141
|
|
|
140
142
|
def _deserialize(self, params):
|
|
@@ -176,6 +178,7 @@ false(默认):发送正常请求,通过检查后直接创建实例
|
|
|
176
178
|
self.QueueName = params.get("QueueName")
|
|
177
179
|
self.NodeRole = params.get("NodeRole")
|
|
178
180
|
self.DryRun = params.get("DryRun")
|
|
181
|
+
self.NodeType = params.get("NodeType")
|
|
179
182
|
memeber_set = set(params.keys())
|
|
180
183
|
for name, value in vars(self).items():
|
|
181
184
|
if name in memeber_set:
|
|
@@ -202,6 +205,51 @@ class AddNodesResponse(AbstractModel):
|
|
|
202
205
|
self.RequestId = params.get("RequestId")
|
|
203
206
|
|
|
204
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
|
+
|
|
205
253
|
class BindAutoScalingGroupRequest(AbstractModel):
|
|
206
254
|
"""BindAutoScalingGroup请求参数结构体
|
|
207
255
|
|
|
@@ -368,7 +416,8 @@ class ClusterActivity(AbstractModel):
|
|
|
368
416
|
:type ClusterId: str
|
|
369
417
|
:param ActivityId: 集群活动ID。
|
|
370
418
|
:type ActivityId: str
|
|
371
|
-
:param ActivityType:
|
|
419
|
+
:param ActivityType: 集群活动类型。取值范围:<br><li>CreateAndAddNodes:创建实例并添加进集群<br><li>RemoveNodesFromCluster:从集群移除实例<br><li>TerminateNodes:销毁实例<br><li>MountStorageOption:增加挂载选项并进行挂载<br><li>UmountStorageOption:删除集群挂载存储选项并解挂载
|
|
420
|
+
|
|
372
421
|
:type ActivityType: str
|
|
373
422
|
:param ActivityStatus: 集群活动状态。取值范围:<br><li>PENDING:等待运行<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>PARTIALLY_SUCCESSFUL:活动部分成功<br><li>FAILED:活动失败
|
|
374
423
|
:type ActivityStatus: str
|
|
@@ -907,6 +956,51 @@ class DeleteNodesResponse(AbstractModel):
|
|
|
907
956
|
self.RequestId = params.get("RequestId")
|
|
908
957
|
|
|
909
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
|
+
|
|
910
1004
|
class DescribeAutoScalingConfigurationRequest(AbstractModel):
|
|
911
1005
|
"""DescribeAutoScalingConfiguration请求参数结构体
|
|
912
1006
|
|
|
@@ -1140,6 +1234,139 @@ class DescribeClustersResponse(AbstractModel):
|
|
|
1140
1234
|
self.RequestId = params.get("RequestId")
|
|
1141
1235
|
|
|
1142
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
|
+
|
|
1143
1370
|
class ExpansionNodeConfig(AbstractModel):
|
|
1144
1371
|
"""弹性扩容节点配置信息。
|
|
1145
1372
|
|
|
@@ -1267,6 +1494,38 @@ class ExpansionNodeConfigOverview(AbstractModel):
|
|
|
1267
1494
|
|
|
1268
1495
|
|
|
1269
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
|
+
|
|
1270
1529
|
class GooseFSOption(AbstractModel):
|
|
1271
1530
|
"""描述GooseFS挂载信息
|
|
1272
1531
|
|
|
@@ -1641,6 +1900,61 @@ class NodeActivity(AbstractModel):
|
|
|
1641
1900
|
|
|
1642
1901
|
|
|
1643
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
|
+
|
|
1644
1958
|
class Placement(AbstractModel):
|
|
1645
1959
|
"""描述了实例的抽象位置
|
|
1646
1960
|
|
|
@@ -1788,6 +2102,31 @@ class QueueConfigOverview(AbstractModel):
|
|
|
1788
2102
|
|
|
1789
2103
|
|
|
1790
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
|
+
|
|
1791
2130
|
class SetAutoScalingConfigurationRequest(AbstractModel):
|
|
1792
2131
|
"""SetAutoScalingConfiguration请求参数结构体
|
|
1793
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|