tencentcloud-sdk-python-cynosdb 3.1.4__tar.gz → 3.1.8__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
  5. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud/cynosdb/v20190107/cynosdb_client_async.py +18 -0
  6. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud/cynosdb/v20190107/models.py +96 -2
  7. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud_sdk_python_cynosdb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cynosdb-3.1.8/tencentcloud_sdk_python_cynosdb.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cynosdb-3.1.4/tencentcloud_sdk_python_cynosdb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud/cynosdb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud/cynosdb/v20190107/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud/cynosdb/v20190107/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud_sdk_python_cynosdb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud_sdk_python_cynosdb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cynosdb-3.1.4 → tencentcloud_sdk_python_cynosdb-3.1.8}/tencentcloud_sdk_python_cynosdb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cynosdb
3
- Version: 3.1.4
3
+ Version: 3.1.8
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.4
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -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.4,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.8,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cynosdb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.4'
17
+ __version__ = '3.1.8'
@@ -2694,6 +2694,29 @@ class CynosdbClient(AbstractClient):
2694
2694
  raise TencentCloudSDKException(type(e).__name__, str(e))
2695
2695
 
2696
2696
 
2697
+ def ModifyClusterGlobalEncryption(self, request):
2698
+ r"""开关全局加密
2699
+
2700
+ :param request: Request instance for ModifyClusterGlobalEncryption.
2701
+ :type request: :class:`tencentcloud.cynosdb.v20190107.models.ModifyClusterGlobalEncryptionRequest`
2702
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.ModifyClusterGlobalEncryptionResponse`
2703
+
2704
+ """
2705
+ try:
2706
+ params = request._serialize()
2707
+ headers = request.headers
2708
+ body = self.call("ModifyClusterGlobalEncryption", params, headers=headers)
2709
+ response = json.loads(body)
2710
+ model = models.ModifyClusterGlobalEncryptionResponse()
2711
+ model._deserialize(response["Response"])
2712
+ return model
2713
+ except Exception as e:
2714
+ if isinstance(e, TencentCloudSDKException):
2715
+ raise
2716
+ else:
2717
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2718
+
2719
+
2697
2720
  def ModifyClusterName(self, request):
2698
2721
  r"""本接口(ModifyClusterName)用于修改集群名称。
2699
2722
 
@@ -2113,6 +2113,24 @@ class CynosdbClient(AbstractClient):
2113
2113
 
2114
2114
  return await self.call_and_deserialize(**kwargs)
2115
2115
 
2116
+ async def ModifyClusterGlobalEncryption(
2117
+ self,
2118
+ request: models.ModifyClusterGlobalEncryptionRequest,
2119
+ opts: Dict = None,
2120
+ ) -> models.ModifyClusterGlobalEncryptionResponse:
2121
+ """
2122
+ 开关全局加密
2123
+ """
2124
+
2125
+ kwargs = {}
2126
+ kwargs["action"] = "ModifyClusterGlobalEncryption"
2127
+ kwargs["params"] = request._serialize()
2128
+ kwargs["resp_cls"] = models.ModifyClusterGlobalEncryptionResponse
2129
+ kwargs["headers"] = request.headers
2130
+ kwargs["opts"] = opts or {}
2131
+
2132
+ return await self.call_and_deserialize(**kwargs)
2133
+
2116
2134
  async def ModifyClusterName(
2117
2135
  self,
2118
2136
  request: models.ModifyClusterNameRequest,
@@ -28521,6 +28521,100 @@ class ModifyClusterDatabaseResponse(AbstractModel):
28521
28521
  self._RequestId = params.get("RequestId")
28522
28522
 
28523
28523
 
28524
+ class ModifyClusterGlobalEncryptionRequest(AbstractModel):
28525
+ r"""ModifyClusterGlobalEncryption请求参数结构体
28526
+
28527
+ """
28528
+
28529
+ def __init__(self):
28530
+ r"""
28531
+ :param _ClusterId: 集群id
28532
+ :type ClusterId: str
28533
+ :param _IsOpenGlobalEncryption: 开启或关闭全局加密
28534
+ :type IsOpenGlobalEncryption: bool
28535
+ """
28536
+ self._ClusterId = None
28537
+ self._IsOpenGlobalEncryption = None
28538
+
28539
+ @property
28540
+ def ClusterId(self):
28541
+ r"""集群id
28542
+ :rtype: str
28543
+ """
28544
+ return self._ClusterId
28545
+
28546
+ @ClusterId.setter
28547
+ def ClusterId(self, ClusterId):
28548
+ self._ClusterId = ClusterId
28549
+
28550
+ @property
28551
+ def IsOpenGlobalEncryption(self):
28552
+ r"""开启或关闭全局加密
28553
+ :rtype: bool
28554
+ """
28555
+ return self._IsOpenGlobalEncryption
28556
+
28557
+ @IsOpenGlobalEncryption.setter
28558
+ def IsOpenGlobalEncryption(self, IsOpenGlobalEncryption):
28559
+ self._IsOpenGlobalEncryption = IsOpenGlobalEncryption
28560
+
28561
+
28562
+ def _deserialize(self, params):
28563
+ self._ClusterId = params.get("ClusterId")
28564
+ self._IsOpenGlobalEncryption = params.get("IsOpenGlobalEncryption")
28565
+ memeber_set = set(params.keys())
28566
+ for name, value in vars(self).items():
28567
+ property_name = name[1:]
28568
+ if property_name in memeber_set:
28569
+ memeber_set.remove(property_name)
28570
+ if len(memeber_set) > 0:
28571
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
28572
+
28573
+
28574
+
28575
+ class ModifyClusterGlobalEncryptionResponse(AbstractModel):
28576
+ r"""ModifyClusterGlobalEncryption返回参数结构体
28577
+
28578
+ """
28579
+
28580
+ def __init__(self):
28581
+ r"""
28582
+ :param _TaskId: 异步任务id
28583
+ :type TaskId: int
28584
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28585
+ :type RequestId: str
28586
+ """
28587
+ self._TaskId = None
28588
+ self._RequestId = None
28589
+
28590
+ @property
28591
+ def TaskId(self):
28592
+ r"""异步任务id
28593
+ :rtype: int
28594
+ """
28595
+ return self._TaskId
28596
+
28597
+ @TaskId.setter
28598
+ def TaskId(self, TaskId):
28599
+ self._TaskId = TaskId
28600
+
28601
+ @property
28602
+ def RequestId(self):
28603
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28604
+ :rtype: str
28605
+ """
28606
+ return self._RequestId
28607
+
28608
+ @RequestId.setter
28609
+ def RequestId(self, RequestId):
28610
+ self._RequestId = RequestId
28611
+
28612
+
28613
+ def _deserialize(self, params):
28614
+ self._TaskId = params.get("TaskId")
28615
+ self._RequestId = params.get("RequestId")
28616
+
28617
+
28524
28618
  class ModifyClusterNameRequest(AbstractModel):
28525
28619
  r"""ModifyClusterName请求参数结构体
28526
28620
 
@@ -30443,7 +30537,7 @@ class ModifyProxyRwSplitRequest(AbstractModel):
30443
30537
  :param _WeightMode: 读写权重分配模式;系统自动分配:"system", 自定义:"custom"
30444
30538
  :type WeightMode: str
30445
30539
  :param _InstanceWeights: 实例只读权重。
30446
- 该参数必填。
30540
+
30447
30541
  :type InstanceWeights: list of ProxyInstanceWeight
30448
30542
  :param _FailOver: 是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:"yes" , "no"
30449
30543
  :type FailOver: str
@@ -30552,7 +30646,7 @@ SessionConnectionPool
30552
30646
  @property
30553
30647
  def InstanceWeights(self):
30554
30648
  r"""实例只读权重。
30555
- 该参数必填。
30649
+
30556
30650
  :rtype: list of ProxyInstanceWeight
30557
30651
  """
30558
30652
  return self._InstanceWeights
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cynosdb
3
- Version: 3.1.4
3
+ Version: 3.1.8
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.4
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.8
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.4