tencentcloud-sdk-python-cynosdb 3.1.203__tar.gz → 3.1.209__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_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/setup.py +1 -1
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud/cynosdb/v20190107/cynosdb_client_async.py +18 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud/cynosdb/v20190107/models.py +410 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud_sdk_python_cynosdb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cynosdb-3.1.209/tencentcloud_sdk_python_cynosdb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cynosdb-3.1.203/tencentcloud_sdk_python_cynosdb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/README.rst +0 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud/cynosdb/__init__.py +0 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud/cynosdb/v20190107/__init__.py +0 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud/cynosdb/v20190107/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud_sdk_python_cynosdb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud_sdk_python_cynosdb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/tencentcloud_sdk_python_cynosdb.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cynosdb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.209
|
|
4
4
|
Summary: Tencent Cloud Cynosdb 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.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.209
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cynosdb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.209,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cynosdb SDK for Python',
|
|
@@ -854,6 +854,29 @@ class CynosdbClient(AbstractClient):
|
|
|
854
854
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
855
855
|
|
|
856
856
|
|
|
857
|
+
def CreateProxyEndPoints(self, request):
|
|
858
|
+
r"""本接口(CreateProxyEndPoints)用于批量创建数据库代理连接点。
|
|
859
|
+
|
|
860
|
+
:param request: Request instance for CreateProxyEndPoints.
|
|
861
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.CreateProxyEndPointsRequest`
|
|
862
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.CreateProxyEndPointsResponse`
|
|
863
|
+
|
|
864
|
+
"""
|
|
865
|
+
try:
|
|
866
|
+
params = request._serialize()
|
|
867
|
+
headers = request.headers
|
|
868
|
+
body = self.call("CreateProxyEndPoints", params, headers=headers)
|
|
869
|
+
response = json.loads(body)
|
|
870
|
+
model = models.CreateProxyEndPointsResponse()
|
|
871
|
+
model._deserialize(response["Response"])
|
|
872
|
+
return model
|
|
873
|
+
except Exception as e:
|
|
874
|
+
if isinstance(e, TencentCloudSDKException):
|
|
875
|
+
raise
|
|
876
|
+
else:
|
|
877
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
878
|
+
|
|
879
|
+
|
|
857
880
|
def CreateResourcePackage(self, request):
|
|
858
881
|
r"""本接口(CreateResourcePackage)用于新购资源包。
|
|
859
882
|
|
|
@@ -673,6 +673,24 @@ class CynosdbClient(AbstractClient):
|
|
|
673
673
|
|
|
674
674
|
return await self.call_and_deserialize(**kwargs)
|
|
675
675
|
|
|
676
|
+
async def CreateProxyEndPoints(
|
|
677
|
+
self,
|
|
678
|
+
request: models.CreateProxyEndPointsRequest,
|
|
679
|
+
opts: Dict = None,
|
|
680
|
+
) -> models.CreateProxyEndPointsResponse:
|
|
681
|
+
"""
|
|
682
|
+
本接口(CreateProxyEndPoints)用于批量创建数据库代理连接点。
|
|
683
|
+
"""
|
|
684
|
+
|
|
685
|
+
kwargs = {}
|
|
686
|
+
kwargs["action"] = "CreateProxyEndPoints"
|
|
687
|
+
kwargs["params"] = request._serialize()
|
|
688
|
+
kwargs["resp_cls"] = models.CreateProxyEndPointsResponse
|
|
689
|
+
kwargs["headers"] = request.headers
|
|
690
|
+
kwargs["opts"] = opts or {}
|
|
691
|
+
|
|
692
|
+
return await self.call_and_deserialize(**kwargs)
|
|
693
|
+
|
|
676
694
|
async def CreateResourcePackage(
|
|
677
695
|
self,
|
|
678
696
|
request: models.CreateResourcePackageRequest,
|
|
@@ -13285,6 +13285,120 @@ class CreateProxyEndPointResponse(AbstractModel):
|
|
|
13285
13285
|
self._RequestId = params.get("RequestId")
|
|
13286
13286
|
|
|
13287
13287
|
|
|
13288
|
+
class CreateProxyEndPointsRequest(AbstractModel):
|
|
13289
|
+
r"""CreateProxyEndPoints请求参数结构体
|
|
13290
|
+
|
|
13291
|
+
"""
|
|
13292
|
+
|
|
13293
|
+
def __init__(self):
|
|
13294
|
+
r"""
|
|
13295
|
+
:param _ClusterId: <p>集群 ID。</p>
|
|
13296
|
+
:type ClusterId: str
|
|
13297
|
+
:param _ProxyEndPointItems: <p>proxyEndPoint的参数配置</p>
|
|
13298
|
+
:type ProxyEndPointItems: list of ProxyEndPointItem
|
|
13299
|
+
"""
|
|
13300
|
+
self._ClusterId = None
|
|
13301
|
+
self._ProxyEndPointItems = None
|
|
13302
|
+
|
|
13303
|
+
@property
|
|
13304
|
+
def ClusterId(self):
|
|
13305
|
+
r"""<p>集群 ID。</p>
|
|
13306
|
+
:rtype: str
|
|
13307
|
+
"""
|
|
13308
|
+
return self._ClusterId
|
|
13309
|
+
|
|
13310
|
+
@ClusterId.setter
|
|
13311
|
+
def ClusterId(self, ClusterId):
|
|
13312
|
+
self._ClusterId = ClusterId
|
|
13313
|
+
|
|
13314
|
+
@property
|
|
13315
|
+
def ProxyEndPointItems(self):
|
|
13316
|
+
r"""<p>proxyEndPoint的参数配置</p>
|
|
13317
|
+
:rtype: list of ProxyEndPointItem
|
|
13318
|
+
"""
|
|
13319
|
+
return self._ProxyEndPointItems
|
|
13320
|
+
|
|
13321
|
+
@ProxyEndPointItems.setter
|
|
13322
|
+
def ProxyEndPointItems(self, ProxyEndPointItems):
|
|
13323
|
+
self._ProxyEndPointItems = ProxyEndPointItems
|
|
13324
|
+
|
|
13325
|
+
|
|
13326
|
+
def _deserialize(self, params):
|
|
13327
|
+
self._ClusterId = params.get("ClusterId")
|
|
13328
|
+
if params.get("ProxyEndPointItems") is not None:
|
|
13329
|
+
self._ProxyEndPointItems = []
|
|
13330
|
+
for item in params.get("ProxyEndPointItems"):
|
|
13331
|
+
obj = ProxyEndPointItem()
|
|
13332
|
+
obj._deserialize(item)
|
|
13333
|
+
self._ProxyEndPointItems.append(obj)
|
|
13334
|
+
memeber_set = set(params.keys())
|
|
13335
|
+
for name, value in vars(self).items():
|
|
13336
|
+
property_name = name[1:]
|
|
13337
|
+
if property_name in memeber_set:
|
|
13338
|
+
memeber_set.remove(property_name)
|
|
13339
|
+
if len(memeber_set) > 0:
|
|
13340
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
13341
|
+
|
|
13342
|
+
|
|
13343
|
+
|
|
13344
|
+
class CreateProxyEndPointsResponse(AbstractModel):
|
|
13345
|
+
r"""CreateProxyEndPoints返回参数结构体
|
|
13346
|
+
|
|
13347
|
+
"""
|
|
13348
|
+
|
|
13349
|
+
def __init__(self):
|
|
13350
|
+
r"""
|
|
13351
|
+
:param _FlowId: <p>异步流程 ID。</p>
|
|
13352
|
+
:type FlowId: int
|
|
13353
|
+
:param _TaskId: <p>异步任务 ID。</p>
|
|
13354
|
+
:type TaskId: int
|
|
13355
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13356
|
+
:type RequestId: str
|
|
13357
|
+
"""
|
|
13358
|
+
self._FlowId = None
|
|
13359
|
+
self._TaskId = None
|
|
13360
|
+
self._RequestId = None
|
|
13361
|
+
|
|
13362
|
+
@property
|
|
13363
|
+
def FlowId(self):
|
|
13364
|
+
r"""<p>异步流程 ID。</p>
|
|
13365
|
+
:rtype: int
|
|
13366
|
+
"""
|
|
13367
|
+
return self._FlowId
|
|
13368
|
+
|
|
13369
|
+
@FlowId.setter
|
|
13370
|
+
def FlowId(self, FlowId):
|
|
13371
|
+
self._FlowId = FlowId
|
|
13372
|
+
|
|
13373
|
+
@property
|
|
13374
|
+
def TaskId(self):
|
|
13375
|
+
r"""<p>异步任务 ID。</p>
|
|
13376
|
+
:rtype: int
|
|
13377
|
+
"""
|
|
13378
|
+
return self._TaskId
|
|
13379
|
+
|
|
13380
|
+
@TaskId.setter
|
|
13381
|
+
def TaskId(self, TaskId):
|
|
13382
|
+
self._TaskId = TaskId
|
|
13383
|
+
|
|
13384
|
+
@property
|
|
13385
|
+
def RequestId(self):
|
|
13386
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13387
|
+
:rtype: str
|
|
13388
|
+
"""
|
|
13389
|
+
return self._RequestId
|
|
13390
|
+
|
|
13391
|
+
@RequestId.setter
|
|
13392
|
+
def RequestId(self, RequestId):
|
|
13393
|
+
self._RequestId = RequestId
|
|
13394
|
+
|
|
13395
|
+
|
|
13396
|
+
def _deserialize(self, params):
|
|
13397
|
+
self._FlowId = params.get("FlowId")
|
|
13398
|
+
self._TaskId = params.get("TaskId")
|
|
13399
|
+
self._RequestId = params.get("RequestId")
|
|
13400
|
+
|
|
13401
|
+
|
|
13288
13402
|
class CreateProxyRequest(AbstractModel):
|
|
13289
13403
|
r"""CreateProxy请求参数结构体
|
|
13290
13404
|
|
|
@@ -14862,6 +14976,8 @@ class CynosdbClusterDetail(AbstractModel):
|
|
|
14862
14976
|
:type StorageOverUse: str
|
|
14863
14977
|
:param _StorageAutoExpand: <p>自动扩容开启状态</p><p>枚举值:</p><ul><li>yes: 已开启</li><li>no: 关闭</li></ul><p>默认值:no</p>
|
|
14864
14978
|
:type StorageAutoExpand: str
|
|
14979
|
+
:param _IsInInstantRollbackChain: <p>是否在秒级回档链路中</p>
|
|
14980
|
+
:type IsInInstantRollbackChain: bool
|
|
14865
14981
|
"""
|
|
14866
14982
|
self._ClusterId = None
|
|
14867
14983
|
self._ClusterName = None
|
|
@@ -14924,6 +15040,7 @@ class CynosdbClusterDetail(AbstractModel):
|
|
|
14924
15040
|
self._RealZone = None
|
|
14925
15041
|
self._StorageOverUse = None
|
|
14926
15042
|
self._StorageAutoExpand = None
|
|
15043
|
+
self._IsInInstantRollbackChain = None
|
|
14927
15044
|
|
|
14928
15045
|
@property
|
|
14929
15046
|
def ClusterId(self):
|
|
@@ -15596,6 +15713,17 @@ class CynosdbClusterDetail(AbstractModel):
|
|
|
15596
15713
|
def StorageAutoExpand(self, StorageAutoExpand):
|
|
15597
15714
|
self._StorageAutoExpand = StorageAutoExpand
|
|
15598
15715
|
|
|
15716
|
+
@property
|
|
15717
|
+
def IsInInstantRollbackChain(self):
|
|
15718
|
+
r"""<p>是否在秒级回档链路中</p>
|
|
15719
|
+
:rtype: bool
|
|
15720
|
+
"""
|
|
15721
|
+
return self._IsInInstantRollbackChain
|
|
15722
|
+
|
|
15723
|
+
@IsInInstantRollbackChain.setter
|
|
15724
|
+
def IsInInstantRollbackChain(self, IsInInstantRollbackChain):
|
|
15725
|
+
self._IsInInstantRollbackChain = IsInInstantRollbackChain
|
|
15726
|
+
|
|
15599
15727
|
|
|
15600
15728
|
def _deserialize(self, params):
|
|
15601
15729
|
self._ClusterId = params.get("ClusterId")
|
|
@@ -15691,6 +15819,7 @@ class CynosdbClusterDetail(AbstractModel):
|
|
|
15691
15819
|
self._RealZone = params.get("RealZone")
|
|
15692
15820
|
self._StorageOverUse = params.get("StorageOverUse")
|
|
15693
15821
|
self._StorageAutoExpand = params.get("StorageAutoExpand")
|
|
15822
|
+
self._IsInInstantRollbackChain = params.get("IsInInstantRollbackChain")
|
|
15694
15823
|
memeber_set = set(params.keys())
|
|
15695
15824
|
for name, value in vars(self).items():
|
|
15696
15825
|
property_name = name[1:]
|
|
@@ -53205,6 +53334,287 @@ class ProxyEndPointConfigInfo(AbstractModel):
|
|
|
53205
53334
|
|
|
53206
53335
|
|
|
53207
53336
|
|
|
53337
|
+
class ProxyEndPointItem(AbstractModel):
|
|
53338
|
+
r"""批量proxy接入点配置
|
|
53339
|
+
|
|
53340
|
+
"""
|
|
53341
|
+
|
|
53342
|
+
def __init__(self):
|
|
53343
|
+
r"""
|
|
53344
|
+
:param _UniqueVpcId: <p>vpc id</p>
|
|
53345
|
+
:type UniqueVpcId: str
|
|
53346
|
+
:param _UniqueSubnetId: <p>子网ID</p>
|
|
53347
|
+
:type UniqueSubnetId: str
|
|
53348
|
+
:param _SecurityGroupIds: <p>安全组列表</p>
|
|
53349
|
+
:type SecurityGroupIds: list of str
|
|
53350
|
+
:param _WeightMode: <p>权重模式</p><p>枚举值:</p><ul><li>system: 系统分配</li><li>custom: 自定义</li></ul>
|
|
53351
|
+
:type WeightMode: str
|
|
53352
|
+
:param _AutoAddRo: <p>是否自动添加只读实例</p><p>枚举值:</p><ul><li>yes: 是</li><li>no: 否</li></ul>
|
|
53353
|
+
:type AutoAddRo: str
|
|
53354
|
+
:param _RwType: <p>读写类型</p><p>枚举值:</p><ul><li>READWRITE: 读写</li><li>READONLY: 只读</li></ul>
|
|
53355
|
+
:type RwType: str
|
|
53356
|
+
:param _FailOver: <p>是否开启故障转移</p><p>枚举值:</p><ul><li>yes: 是</li><li>no: 否</li></ul>
|
|
53357
|
+
:type FailOver: str
|
|
53358
|
+
:param _ConsistencyTimeOut: <p>一致性超时时间</p>
|
|
53359
|
+
:type ConsistencyTimeOut: int
|
|
53360
|
+
:param _ConsistencyType: <p>一致性类型。</p><p>枚举值:</p><ul><li>eventual: 最终一致性</li><li>global: 全局一致性</li><li>session: 会话一致性</li></ul><p>仅当 RwType 参数值为 READWRITE 时,才支持设置此项。</p>
|
|
53361
|
+
:type ConsistencyType: str
|
|
53362
|
+
:param _TransSplit: <p>是否开启事务拆分。</p><p>开启后,在一个事务中拆分读和写到不同的实例上去执行。</p>
|
|
53363
|
+
:type TransSplit: bool
|
|
53364
|
+
:param _AccessMode: <p>接入模式</p><p>枚举值:</p><ul><li>nearby: 就近访问</li><li>balance: 均衡分配</li></ul>
|
|
53365
|
+
:type AccessMode: str
|
|
53366
|
+
:param _InstanceWeights: <p>实例及权重</p>
|
|
53367
|
+
:type InstanceWeights: list of ProxyInstanceWeight
|
|
53368
|
+
:param _Description: <p>描述信息</p>
|
|
53369
|
+
:type Description: str
|
|
53370
|
+
:param _LoadBalanceMode: <p>自动负载模式</p><p>枚举值:</p><ul><li>static: 静态</li><li>dynamic: 自适应</li></ul>
|
|
53371
|
+
:type LoadBalanceMode: str
|
|
53372
|
+
:param _OpenConnectionPool: <p>是否开启连接池</p><p>枚举值:</p><ul><li>yes: 打开</li><li>no: 不打开</li></ul>
|
|
53373
|
+
:type OpenConnectionPool: str
|
|
53374
|
+
:param _ConnectionPoolType: <p>连接池类型</p><p>枚举值:</p><ul><li>SessionConnectionPool: 会话级连接池</li><li>TransactionConnectionPool: 事物级连接池</li></ul>
|
|
53375
|
+
:type ConnectionPoolType: str
|
|
53376
|
+
:param _ConnectionPoolTimeOut: <p>连接池阀值</p>
|
|
53377
|
+
:type ConnectionPoolTimeOut: int
|
|
53378
|
+
"""
|
|
53379
|
+
self._UniqueVpcId = None
|
|
53380
|
+
self._UniqueSubnetId = None
|
|
53381
|
+
self._SecurityGroupIds = None
|
|
53382
|
+
self._WeightMode = None
|
|
53383
|
+
self._AutoAddRo = None
|
|
53384
|
+
self._RwType = None
|
|
53385
|
+
self._FailOver = None
|
|
53386
|
+
self._ConsistencyTimeOut = None
|
|
53387
|
+
self._ConsistencyType = None
|
|
53388
|
+
self._TransSplit = None
|
|
53389
|
+
self._AccessMode = None
|
|
53390
|
+
self._InstanceWeights = None
|
|
53391
|
+
self._Description = None
|
|
53392
|
+
self._LoadBalanceMode = None
|
|
53393
|
+
self._OpenConnectionPool = None
|
|
53394
|
+
self._ConnectionPoolType = None
|
|
53395
|
+
self._ConnectionPoolTimeOut = None
|
|
53396
|
+
|
|
53397
|
+
@property
|
|
53398
|
+
def UniqueVpcId(self):
|
|
53399
|
+
r"""<p>vpc id</p>
|
|
53400
|
+
:rtype: str
|
|
53401
|
+
"""
|
|
53402
|
+
return self._UniqueVpcId
|
|
53403
|
+
|
|
53404
|
+
@UniqueVpcId.setter
|
|
53405
|
+
def UniqueVpcId(self, UniqueVpcId):
|
|
53406
|
+
self._UniqueVpcId = UniqueVpcId
|
|
53407
|
+
|
|
53408
|
+
@property
|
|
53409
|
+
def UniqueSubnetId(self):
|
|
53410
|
+
r"""<p>子网ID</p>
|
|
53411
|
+
:rtype: str
|
|
53412
|
+
"""
|
|
53413
|
+
return self._UniqueSubnetId
|
|
53414
|
+
|
|
53415
|
+
@UniqueSubnetId.setter
|
|
53416
|
+
def UniqueSubnetId(self, UniqueSubnetId):
|
|
53417
|
+
self._UniqueSubnetId = UniqueSubnetId
|
|
53418
|
+
|
|
53419
|
+
@property
|
|
53420
|
+
def SecurityGroupIds(self):
|
|
53421
|
+
r"""<p>安全组列表</p>
|
|
53422
|
+
:rtype: list of str
|
|
53423
|
+
"""
|
|
53424
|
+
return self._SecurityGroupIds
|
|
53425
|
+
|
|
53426
|
+
@SecurityGroupIds.setter
|
|
53427
|
+
def SecurityGroupIds(self, SecurityGroupIds):
|
|
53428
|
+
self._SecurityGroupIds = SecurityGroupIds
|
|
53429
|
+
|
|
53430
|
+
@property
|
|
53431
|
+
def WeightMode(self):
|
|
53432
|
+
r"""<p>权重模式</p><p>枚举值:</p><ul><li>system: 系统分配</li><li>custom: 自定义</li></ul>
|
|
53433
|
+
:rtype: str
|
|
53434
|
+
"""
|
|
53435
|
+
return self._WeightMode
|
|
53436
|
+
|
|
53437
|
+
@WeightMode.setter
|
|
53438
|
+
def WeightMode(self, WeightMode):
|
|
53439
|
+
self._WeightMode = WeightMode
|
|
53440
|
+
|
|
53441
|
+
@property
|
|
53442
|
+
def AutoAddRo(self):
|
|
53443
|
+
r"""<p>是否自动添加只读实例</p><p>枚举值:</p><ul><li>yes: 是</li><li>no: 否</li></ul>
|
|
53444
|
+
:rtype: str
|
|
53445
|
+
"""
|
|
53446
|
+
return self._AutoAddRo
|
|
53447
|
+
|
|
53448
|
+
@AutoAddRo.setter
|
|
53449
|
+
def AutoAddRo(self, AutoAddRo):
|
|
53450
|
+
self._AutoAddRo = AutoAddRo
|
|
53451
|
+
|
|
53452
|
+
@property
|
|
53453
|
+
def RwType(self):
|
|
53454
|
+
r"""<p>读写类型</p><p>枚举值:</p><ul><li>READWRITE: 读写</li><li>READONLY: 只读</li></ul>
|
|
53455
|
+
:rtype: str
|
|
53456
|
+
"""
|
|
53457
|
+
return self._RwType
|
|
53458
|
+
|
|
53459
|
+
@RwType.setter
|
|
53460
|
+
def RwType(self, RwType):
|
|
53461
|
+
self._RwType = RwType
|
|
53462
|
+
|
|
53463
|
+
@property
|
|
53464
|
+
def FailOver(self):
|
|
53465
|
+
r"""<p>是否开启故障转移</p><p>枚举值:</p><ul><li>yes: 是</li><li>no: 否</li></ul>
|
|
53466
|
+
:rtype: str
|
|
53467
|
+
"""
|
|
53468
|
+
return self._FailOver
|
|
53469
|
+
|
|
53470
|
+
@FailOver.setter
|
|
53471
|
+
def FailOver(self, FailOver):
|
|
53472
|
+
self._FailOver = FailOver
|
|
53473
|
+
|
|
53474
|
+
@property
|
|
53475
|
+
def ConsistencyTimeOut(self):
|
|
53476
|
+
r"""<p>一致性超时时间</p>
|
|
53477
|
+
:rtype: int
|
|
53478
|
+
"""
|
|
53479
|
+
return self._ConsistencyTimeOut
|
|
53480
|
+
|
|
53481
|
+
@ConsistencyTimeOut.setter
|
|
53482
|
+
def ConsistencyTimeOut(self, ConsistencyTimeOut):
|
|
53483
|
+
self._ConsistencyTimeOut = ConsistencyTimeOut
|
|
53484
|
+
|
|
53485
|
+
@property
|
|
53486
|
+
def ConsistencyType(self):
|
|
53487
|
+
r"""<p>一致性类型。</p><p>枚举值:</p><ul><li>eventual: 最终一致性</li><li>global: 全局一致性</li><li>session: 会话一致性</li></ul><p>仅当 RwType 参数值为 READWRITE 时,才支持设置此项。</p>
|
|
53488
|
+
:rtype: str
|
|
53489
|
+
"""
|
|
53490
|
+
return self._ConsistencyType
|
|
53491
|
+
|
|
53492
|
+
@ConsistencyType.setter
|
|
53493
|
+
def ConsistencyType(self, ConsistencyType):
|
|
53494
|
+
self._ConsistencyType = ConsistencyType
|
|
53495
|
+
|
|
53496
|
+
@property
|
|
53497
|
+
def TransSplit(self):
|
|
53498
|
+
r"""<p>是否开启事务拆分。</p><p>开启后,在一个事务中拆分读和写到不同的实例上去执行。</p>
|
|
53499
|
+
:rtype: bool
|
|
53500
|
+
"""
|
|
53501
|
+
return self._TransSplit
|
|
53502
|
+
|
|
53503
|
+
@TransSplit.setter
|
|
53504
|
+
def TransSplit(self, TransSplit):
|
|
53505
|
+
self._TransSplit = TransSplit
|
|
53506
|
+
|
|
53507
|
+
@property
|
|
53508
|
+
def AccessMode(self):
|
|
53509
|
+
r"""<p>接入模式</p><p>枚举值:</p><ul><li>nearby: 就近访问</li><li>balance: 均衡分配</li></ul>
|
|
53510
|
+
:rtype: str
|
|
53511
|
+
"""
|
|
53512
|
+
return self._AccessMode
|
|
53513
|
+
|
|
53514
|
+
@AccessMode.setter
|
|
53515
|
+
def AccessMode(self, AccessMode):
|
|
53516
|
+
self._AccessMode = AccessMode
|
|
53517
|
+
|
|
53518
|
+
@property
|
|
53519
|
+
def InstanceWeights(self):
|
|
53520
|
+
r"""<p>实例及权重</p>
|
|
53521
|
+
:rtype: list of ProxyInstanceWeight
|
|
53522
|
+
"""
|
|
53523
|
+
return self._InstanceWeights
|
|
53524
|
+
|
|
53525
|
+
@InstanceWeights.setter
|
|
53526
|
+
def InstanceWeights(self, InstanceWeights):
|
|
53527
|
+
self._InstanceWeights = InstanceWeights
|
|
53528
|
+
|
|
53529
|
+
@property
|
|
53530
|
+
def Description(self):
|
|
53531
|
+
r"""<p>描述信息</p>
|
|
53532
|
+
:rtype: str
|
|
53533
|
+
"""
|
|
53534
|
+
return self._Description
|
|
53535
|
+
|
|
53536
|
+
@Description.setter
|
|
53537
|
+
def Description(self, Description):
|
|
53538
|
+
self._Description = Description
|
|
53539
|
+
|
|
53540
|
+
@property
|
|
53541
|
+
def LoadBalanceMode(self):
|
|
53542
|
+
r"""<p>自动负载模式</p><p>枚举值:</p><ul><li>static: 静态</li><li>dynamic: 自适应</li></ul>
|
|
53543
|
+
:rtype: str
|
|
53544
|
+
"""
|
|
53545
|
+
return self._LoadBalanceMode
|
|
53546
|
+
|
|
53547
|
+
@LoadBalanceMode.setter
|
|
53548
|
+
def LoadBalanceMode(self, LoadBalanceMode):
|
|
53549
|
+
self._LoadBalanceMode = LoadBalanceMode
|
|
53550
|
+
|
|
53551
|
+
@property
|
|
53552
|
+
def OpenConnectionPool(self):
|
|
53553
|
+
r"""<p>是否开启连接池</p><p>枚举值:</p><ul><li>yes: 打开</li><li>no: 不打开</li></ul>
|
|
53554
|
+
:rtype: str
|
|
53555
|
+
"""
|
|
53556
|
+
return self._OpenConnectionPool
|
|
53557
|
+
|
|
53558
|
+
@OpenConnectionPool.setter
|
|
53559
|
+
def OpenConnectionPool(self, OpenConnectionPool):
|
|
53560
|
+
self._OpenConnectionPool = OpenConnectionPool
|
|
53561
|
+
|
|
53562
|
+
@property
|
|
53563
|
+
def ConnectionPoolType(self):
|
|
53564
|
+
r"""<p>连接池类型</p><p>枚举值:</p><ul><li>SessionConnectionPool: 会话级连接池</li><li>TransactionConnectionPool: 事物级连接池</li></ul>
|
|
53565
|
+
:rtype: str
|
|
53566
|
+
"""
|
|
53567
|
+
return self._ConnectionPoolType
|
|
53568
|
+
|
|
53569
|
+
@ConnectionPoolType.setter
|
|
53570
|
+
def ConnectionPoolType(self, ConnectionPoolType):
|
|
53571
|
+
self._ConnectionPoolType = ConnectionPoolType
|
|
53572
|
+
|
|
53573
|
+
@property
|
|
53574
|
+
def ConnectionPoolTimeOut(self):
|
|
53575
|
+
r"""<p>连接池阀值</p>
|
|
53576
|
+
:rtype: int
|
|
53577
|
+
"""
|
|
53578
|
+
return self._ConnectionPoolTimeOut
|
|
53579
|
+
|
|
53580
|
+
@ConnectionPoolTimeOut.setter
|
|
53581
|
+
def ConnectionPoolTimeOut(self, ConnectionPoolTimeOut):
|
|
53582
|
+
self._ConnectionPoolTimeOut = ConnectionPoolTimeOut
|
|
53583
|
+
|
|
53584
|
+
|
|
53585
|
+
def _deserialize(self, params):
|
|
53586
|
+
self._UniqueVpcId = params.get("UniqueVpcId")
|
|
53587
|
+
self._UniqueSubnetId = params.get("UniqueSubnetId")
|
|
53588
|
+
self._SecurityGroupIds = params.get("SecurityGroupIds")
|
|
53589
|
+
self._WeightMode = params.get("WeightMode")
|
|
53590
|
+
self._AutoAddRo = params.get("AutoAddRo")
|
|
53591
|
+
self._RwType = params.get("RwType")
|
|
53592
|
+
self._FailOver = params.get("FailOver")
|
|
53593
|
+
self._ConsistencyTimeOut = params.get("ConsistencyTimeOut")
|
|
53594
|
+
self._ConsistencyType = params.get("ConsistencyType")
|
|
53595
|
+
self._TransSplit = params.get("TransSplit")
|
|
53596
|
+
self._AccessMode = params.get("AccessMode")
|
|
53597
|
+
if params.get("InstanceWeights") is not None:
|
|
53598
|
+
self._InstanceWeights = []
|
|
53599
|
+
for item in params.get("InstanceWeights"):
|
|
53600
|
+
obj = ProxyInstanceWeight()
|
|
53601
|
+
obj._deserialize(item)
|
|
53602
|
+
self._InstanceWeights.append(obj)
|
|
53603
|
+
self._Description = params.get("Description")
|
|
53604
|
+
self._LoadBalanceMode = params.get("LoadBalanceMode")
|
|
53605
|
+
self._OpenConnectionPool = params.get("OpenConnectionPool")
|
|
53606
|
+
self._ConnectionPoolType = params.get("ConnectionPoolType")
|
|
53607
|
+
self._ConnectionPoolTimeOut = params.get("ConnectionPoolTimeOut")
|
|
53608
|
+
memeber_set = set(params.keys())
|
|
53609
|
+
for name, value in vars(self).items():
|
|
53610
|
+
property_name = name[1:]
|
|
53611
|
+
if property_name in memeber_set:
|
|
53612
|
+
memeber_set.remove(property_name)
|
|
53613
|
+
if len(memeber_set) > 0:
|
|
53614
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
53615
|
+
|
|
53616
|
+
|
|
53617
|
+
|
|
53208
53618
|
class ProxyGroup(AbstractModel):
|
|
53209
53619
|
r"""proxy组
|
|
53210
53620
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cynosdb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.209
|
|
4
4
|
Summary: Tencent Cloud Cynosdb 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.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.209
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.209
|
tencentcloud_sdk_python_cynosdb-3.1.203/tencentcloud_sdk_python_cynosdb.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.203
|
{tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_cynosdb-3.1.203 → tencentcloud_sdk_python_cynosdb-3.1.209}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|