tencentcloud-sdk-python-cdwch 3.0.910__tar.gz → 3.0.911__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-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud/cdwch/v20200915/models.py +107 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud_sdk_python_cdwch.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/README.rst +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/setup.py +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud/cdwch/__init__.py +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud/cdwch/v20200915/__init__.py +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud/cdwch/v20200915/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud_sdk_python_cdwch.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud_sdk_python_cdwch.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cdwch-3.0.910 → tencentcloud-sdk-python-cdwch-3.0.911}/tencentcloud_sdk_python_cdwch.egg-info/top_level.txt +0 -0
|
@@ -279,6 +279,29 @@ class CdwchClient(AbstractClient):
|
|
|
279
279
|
raise TencentCloudSDKException(e.message, e.message)
|
|
280
280
|
|
|
281
281
|
|
|
282
|
+
def DescribeInstancesNew(self, request):
|
|
283
|
+
"""获取实例列表,供外部sdk使用
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DescribeInstancesNew.
|
|
286
|
+
:type request: :class:`tencentcloud.cdwch.v20200915.models.DescribeInstancesNewRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.cdwch.v20200915.models.DescribeInstancesNewResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DescribeInstancesNew", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DescribeInstancesNewResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
303
|
+
|
|
304
|
+
|
|
282
305
|
def DescribeSpec(self, request):
|
|
283
306
|
"""购买页拉取集群的数据节点和zookeeper节点的规格列表
|
|
284
307
|
|
|
@@ -988,6 +988,81 @@ class DescribeInstanceStateResponse(AbstractModel):
|
|
|
988
988
|
self.RequestId = params.get("RequestId")
|
|
989
989
|
|
|
990
990
|
|
|
991
|
+
class DescribeInstancesNewRequest(AbstractModel):
|
|
992
|
+
"""DescribeInstancesNew请求参数结构体
|
|
993
|
+
|
|
994
|
+
"""
|
|
995
|
+
|
|
996
|
+
def __init__(self):
|
|
997
|
+
r"""
|
|
998
|
+
:param SearchInstanceId: 搜索的集群id名称
|
|
999
|
+
:type SearchInstanceId: str
|
|
1000
|
+
:param SearchInstanceName: 搜索的集群name
|
|
1001
|
+
:type SearchInstanceName: str
|
|
1002
|
+
:param Offset: 分页参数,第一页为0,第二页为10
|
|
1003
|
+
:type Offset: int
|
|
1004
|
+
:param Limit: 分页参数,分页步长,默认为10
|
|
1005
|
+
:type Limit: int
|
|
1006
|
+
:param SearchTags: 搜索标签列表
|
|
1007
|
+
:type SearchTags: list of SearchTags
|
|
1008
|
+
"""
|
|
1009
|
+
self.SearchInstanceId = None
|
|
1010
|
+
self.SearchInstanceName = None
|
|
1011
|
+
self.Offset = None
|
|
1012
|
+
self.Limit = None
|
|
1013
|
+
self.SearchTags = None
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
def _deserialize(self, params):
|
|
1017
|
+
self.SearchInstanceId = params.get("SearchInstanceId")
|
|
1018
|
+
self.SearchInstanceName = params.get("SearchInstanceName")
|
|
1019
|
+
self.Offset = params.get("Offset")
|
|
1020
|
+
self.Limit = params.get("Limit")
|
|
1021
|
+
if params.get("SearchTags") is not None:
|
|
1022
|
+
self.SearchTags = []
|
|
1023
|
+
for item in params.get("SearchTags"):
|
|
1024
|
+
obj = SearchTags()
|
|
1025
|
+
obj._deserialize(item)
|
|
1026
|
+
self.SearchTags.append(obj)
|
|
1027
|
+
memeber_set = set(params.keys())
|
|
1028
|
+
for name, value in vars(self).items():
|
|
1029
|
+
if name in memeber_set:
|
|
1030
|
+
memeber_set.remove(name)
|
|
1031
|
+
if len(memeber_set) > 0:
|
|
1032
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
class DescribeInstancesNewResponse(AbstractModel):
|
|
1037
|
+
"""DescribeInstancesNew返回参数结构体
|
|
1038
|
+
|
|
1039
|
+
"""
|
|
1040
|
+
|
|
1041
|
+
def __init__(self):
|
|
1042
|
+
r"""
|
|
1043
|
+
:param TotalCount: 实例总数
|
|
1044
|
+
:type TotalCount: int
|
|
1045
|
+
:param InstancesList: 实例数组
|
|
1046
|
+
:type InstancesList: list of InstanceInfo
|
|
1047
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1048
|
+
:type RequestId: str
|
|
1049
|
+
"""
|
|
1050
|
+
self.TotalCount = None
|
|
1051
|
+
self.InstancesList = None
|
|
1052
|
+
self.RequestId = None
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
def _deserialize(self, params):
|
|
1056
|
+
self.TotalCount = params.get("TotalCount")
|
|
1057
|
+
if params.get("InstancesList") is not None:
|
|
1058
|
+
self.InstancesList = []
|
|
1059
|
+
for item in params.get("InstancesList"):
|
|
1060
|
+
obj = InstanceInfo()
|
|
1061
|
+
obj._deserialize(item)
|
|
1062
|
+
self.InstancesList.append(obj)
|
|
1063
|
+
self.RequestId = params.get("RequestId")
|
|
1064
|
+
|
|
1065
|
+
|
|
991
1066
|
class DescribeSpecRequest(AbstractModel):
|
|
992
1067
|
"""DescribeSpec请求参数结构体
|
|
993
1068
|
|
|
@@ -2257,6 +2332,38 @@ class ScheduleStrategy(AbstractModel):
|
|
|
2257
2332
|
|
|
2258
2333
|
|
|
2259
2334
|
|
|
2335
|
+
class SearchTags(AbstractModel):
|
|
2336
|
+
"""列表页搜索的标记列表
|
|
2337
|
+
|
|
2338
|
+
"""
|
|
2339
|
+
|
|
2340
|
+
def __init__(self):
|
|
2341
|
+
r"""
|
|
2342
|
+
:param TagKey: 标签的键
|
|
2343
|
+
:type TagKey: str
|
|
2344
|
+
:param TagValue: 标签的值
|
|
2345
|
+
:type TagValue: str
|
|
2346
|
+
:param AllValue: 1表示只输入标签的键,没有输入值;0表示输入键时且输入值
|
|
2347
|
+
:type AllValue: int
|
|
2348
|
+
"""
|
|
2349
|
+
self.TagKey = None
|
|
2350
|
+
self.TagValue = None
|
|
2351
|
+
self.AllValue = None
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
def _deserialize(self, params):
|
|
2355
|
+
self.TagKey = params.get("TagKey")
|
|
2356
|
+
self.TagValue = params.get("TagValue")
|
|
2357
|
+
self.AllValue = params.get("AllValue")
|
|
2358
|
+
memeber_set = set(params.keys())
|
|
2359
|
+
for name, value in vars(self).items():
|
|
2360
|
+
if name in memeber_set:
|
|
2361
|
+
memeber_set.remove(name)
|
|
2362
|
+
if len(memeber_set) > 0:
|
|
2363
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2364
|
+
|
|
2365
|
+
|
|
2366
|
+
|
|
2260
2367
|
class ServiceInfo(AbstractModel):
|
|
2261
2368
|
"""服务详细信息描述。
|
|
2262
2369
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|