tencentcloud-sdk-python-cdb 3.0.1343__tar.gz → 3.0.1345__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-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/setup.py +1 -1
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud/cdb/v20170320/cdb_client.py +23 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud/cdb/v20170320/models.py +117 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud_sdk_python_cdb.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cdb-3.0.1345/tencentcloud_sdk_python_cdb.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cdb-3.0.1343/tencentcloud_sdk_python_cdb.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/README.rst +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud/cdb/__init__.py +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud/cdb/v20170320/__init__.py +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud/cdb/v20170320/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud_sdk_python_cdb.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud_sdk_python_cdb.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1343 → tencentcloud-sdk-python-cdb-3.0.1345}/tencentcloud_sdk_python_cdb.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cdb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1345"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cdb SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1428,6 +1428,29 @@ class CdbClient(AbstractClient):
|
|
|
1428
1428
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1429
1429
|
|
|
1430
1430
|
|
|
1431
|
+
def DescribeCPUExpandStrategyInfo(self, request):
|
|
1432
|
+
"""通过该 API 可以查询实例的 CPU 弹性扩容信息
|
|
1433
|
+
|
|
1434
|
+
:param request: Request instance for DescribeCPUExpandStrategyInfo.
|
|
1435
|
+
:type request: :class:`tencentcloud.cdb.v20170320.models.DescribeCPUExpandStrategyInfoRequest`
|
|
1436
|
+
:rtype: :class:`tencentcloud.cdb.v20170320.models.DescribeCPUExpandStrategyInfoResponse`
|
|
1437
|
+
|
|
1438
|
+
"""
|
|
1439
|
+
try:
|
|
1440
|
+
params = request._serialize()
|
|
1441
|
+
headers = request.headers
|
|
1442
|
+
body = self.call("DescribeCPUExpandStrategyInfo", params, headers=headers)
|
|
1443
|
+
response = json.loads(body)
|
|
1444
|
+
model = models.DescribeCPUExpandStrategyInfoResponse()
|
|
1445
|
+
model._deserialize(response["Response"])
|
|
1446
|
+
return model
|
|
1447
|
+
except Exception as e:
|
|
1448
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1449
|
+
raise
|
|
1450
|
+
else:
|
|
1451
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1452
|
+
|
|
1453
|
+
|
|
1431
1454
|
def DescribeCdbProxyInfo(self, request):
|
|
1432
1455
|
"""本接口(DescribeCdbProxyInfo)用于查询数据库代理详情信息。
|
|
1433
1456
|
|
|
@@ -14797,6 +14797,123 @@ class DescribeBinlogsResponse(AbstractModel):
|
|
|
14797
14797
|
self._RequestId = params.get("RequestId")
|
|
14798
14798
|
|
|
14799
14799
|
|
|
14800
|
+
class DescribeCPUExpandStrategyInfoRequest(AbstractModel):
|
|
14801
|
+
"""DescribeCPUExpandStrategyInfo请求参数结构体
|
|
14802
|
+
|
|
14803
|
+
"""
|
|
14804
|
+
|
|
14805
|
+
def __init__(self):
|
|
14806
|
+
r"""
|
|
14807
|
+
:param _InstanceId: 实例 ID 。
|
|
14808
|
+
:type InstanceId: str
|
|
14809
|
+
"""
|
|
14810
|
+
self._InstanceId = None
|
|
14811
|
+
|
|
14812
|
+
@property
|
|
14813
|
+
def InstanceId(self):
|
|
14814
|
+
"""实例 ID 。
|
|
14815
|
+
:rtype: str
|
|
14816
|
+
"""
|
|
14817
|
+
return self._InstanceId
|
|
14818
|
+
|
|
14819
|
+
@InstanceId.setter
|
|
14820
|
+
def InstanceId(self, InstanceId):
|
|
14821
|
+
self._InstanceId = InstanceId
|
|
14822
|
+
|
|
14823
|
+
|
|
14824
|
+
def _deserialize(self, params):
|
|
14825
|
+
self._InstanceId = params.get("InstanceId")
|
|
14826
|
+
memeber_set = set(params.keys())
|
|
14827
|
+
for name, value in vars(self).items():
|
|
14828
|
+
property_name = name[1:]
|
|
14829
|
+
if property_name in memeber_set:
|
|
14830
|
+
memeber_set.remove(property_name)
|
|
14831
|
+
if len(memeber_set) > 0:
|
|
14832
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14833
|
+
|
|
14834
|
+
|
|
14835
|
+
|
|
14836
|
+
class DescribeCPUExpandStrategyInfoResponse(AbstractModel):
|
|
14837
|
+
"""DescribeCPUExpandStrategyInfo返回参数结构体
|
|
14838
|
+
|
|
14839
|
+
"""
|
|
14840
|
+
|
|
14841
|
+
def __init__(self):
|
|
14842
|
+
r"""
|
|
14843
|
+
:param _Type: 策略类型。可选值 auto、manual。如果返回为NULL说明尚未开通弹性扩容策略
|
|
14844
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14845
|
+
:type Type: str
|
|
14846
|
+
:param _ExpandCpu: 手动扩容的 CPU 。Type为 manual 时有效。
|
|
14847
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14848
|
+
:type ExpandCpu: int
|
|
14849
|
+
:param _AutoStrategy: 自动扩容策略。Type 为 auto 时有效
|
|
14850
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14851
|
+
:type AutoStrategy: :class:`tencentcloud.cdb.v20170320.models.AutoStrategy`
|
|
14852
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14853
|
+
:type RequestId: str
|
|
14854
|
+
"""
|
|
14855
|
+
self._Type = None
|
|
14856
|
+
self._ExpandCpu = None
|
|
14857
|
+
self._AutoStrategy = None
|
|
14858
|
+
self._RequestId = None
|
|
14859
|
+
|
|
14860
|
+
@property
|
|
14861
|
+
def Type(self):
|
|
14862
|
+
"""策略类型。可选值 auto、manual。如果返回为NULL说明尚未开通弹性扩容策略
|
|
14863
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14864
|
+
:rtype: str
|
|
14865
|
+
"""
|
|
14866
|
+
return self._Type
|
|
14867
|
+
|
|
14868
|
+
@Type.setter
|
|
14869
|
+
def Type(self, Type):
|
|
14870
|
+
self._Type = Type
|
|
14871
|
+
|
|
14872
|
+
@property
|
|
14873
|
+
def ExpandCpu(self):
|
|
14874
|
+
"""手动扩容的 CPU 。Type为 manual 时有效。
|
|
14875
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14876
|
+
:rtype: int
|
|
14877
|
+
"""
|
|
14878
|
+
return self._ExpandCpu
|
|
14879
|
+
|
|
14880
|
+
@ExpandCpu.setter
|
|
14881
|
+
def ExpandCpu(self, ExpandCpu):
|
|
14882
|
+
self._ExpandCpu = ExpandCpu
|
|
14883
|
+
|
|
14884
|
+
@property
|
|
14885
|
+
def AutoStrategy(self):
|
|
14886
|
+
"""自动扩容策略。Type 为 auto 时有效
|
|
14887
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14888
|
+
:rtype: :class:`tencentcloud.cdb.v20170320.models.AutoStrategy`
|
|
14889
|
+
"""
|
|
14890
|
+
return self._AutoStrategy
|
|
14891
|
+
|
|
14892
|
+
@AutoStrategy.setter
|
|
14893
|
+
def AutoStrategy(self, AutoStrategy):
|
|
14894
|
+
self._AutoStrategy = AutoStrategy
|
|
14895
|
+
|
|
14896
|
+
@property
|
|
14897
|
+
def RequestId(self):
|
|
14898
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14899
|
+
:rtype: str
|
|
14900
|
+
"""
|
|
14901
|
+
return self._RequestId
|
|
14902
|
+
|
|
14903
|
+
@RequestId.setter
|
|
14904
|
+
def RequestId(self, RequestId):
|
|
14905
|
+
self._RequestId = RequestId
|
|
14906
|
+
|
|
14907
|
+
|
|
14908
|
+
def _deserialize(self, params):
|
|
14909
|
+
self._Type = params.get("Type")
|
|
14910
|
+
self._ExpandCpu = params.get("ExpandCpu")
|
|
14911
|
+
if params.get("AutoStrategy") is not None:
|
|
14912
|
+
self._AutoStrategy = AutoStrategy()
|
|
14913
|
+
self._AutoStrategy._deserialize(params.get("AutoStrategy"))
|
|
14914
|
+
self._RequestId = params.get("RequestId")
|
|
14915
|
+
|
|
14916
|
+
|
|
14800
14917
|
class DescribeCdbProxyInfoRequest(AbstractModel):
|
|
14801
14918
|
"""DescribeCdbProxyInfo请求参数结构体
|
|
14802
14919
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1345
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1343
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|