tencentcloud-sdk-python-cdb 3.1.137__tar.gz → 3.1.145__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-cdb might be problematic. Click here for more details.

Files changed (17) hide show
  1. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud/cdb/v20170320/cdb_client.py +23 -0
  5. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud/cdb/v20170320/cdb_client_async.py +18 -0
  6. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud/cdb/v20170320/models.py +94 -0
  7. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud_sdk_python_cdb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cdb-3.1.145/tencentcloud_sdk_python_cdb.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cdb-3.1.137/tencentcloud_sdk_python_cdb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud/cdb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud/cdb/v20170320/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud/cdb/v20170320/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud_sdk_python_cdb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud_sdk_python_cdb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cdb-3.1.137 → tencentcloud_sdk_python_cdb-3.1.145}/tencentcloud_sdk_python_cdb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cdb
3
- Version: 3.1.137
3
+ Version: 3.1.145
4
4
  Summary: Tencent Cloud Cdb 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.137
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.145
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-cdb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.137,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.145,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cdb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.137'
17
+ __version__ = '3.1.145'
@@ -4112,6 +4112,29 @@ class CdbClient(AbstractClient):
4112
4112
  raise TencentCloudSDKException(type(e).__name__, str(e))
4113
4113
 
4114
4114
 
4115
+ def UpgradeRoGroup(self, request):
4116
+ r"""该接口(UpgradeRoGroup)用于只读组升级为纯网络转发模式。
4117
+
4118
+ :param request: Request instance for UpgradeRoGroup.
4119
+ :type request: :class:`tencentcloud.cdb.v20170320.models.UpgradeRoGroupRequest`
4120
+ :rtype: :class:`tencentcloud.cdb.v20170320.models.UpgradeRoGroupResponse`
4121
+
4122
+ """
4123
+ try:
4124
+ params = request._serialize()
4125
+ headers = request.headers
4126
+ body = self.call("UpgradeRoGroup", params, headers=headers)
4127
+ response = json.loads(body)
4128
+ model = models.UpgradeRoGroupResponse()
4129
+ model._deserialize(response["Response"])
4130
+ return model
4131
+ except Exception as e:
4132
+ if isinstance(e, TencentCloudSDKException):
4133
+ raise
4134
+ else:
4135
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4136
+
4137
+
4115
4138
  def VerifyRootAccount(self, request):
4116
4139
  r"""本接口(VerifyRootAccount)用于校验云数据库实例的 ROOT 账号是否有足够的权限进行授权操作。
4117
4140
 
@@ -3236,6 +3236,24 @@ class CdbClient(AbstractClient):
3236
3236
 
3237
3237
  return await self.call_and_deserialize(**kwargs)
3238
3238
 
3239
+ async def UpgradeRoGroup(
3240
+ self,
3241
+ request: models.UpgradeRoGroupRequest,
3242
+ opts: Dict = None,
3243
+ ) -> models.UpgradeRoGroupResponse:
3244
+ """
3245
+ 该接口(UpgradeRoGroup)用于只读组升级为纯网络转发模式。
3246
+ """
3247
+
3248
+ kwargs = {}
3249
+ kwargs["action"] = "UpgradeRoGroup"
3250
+ kwargs["params"] = request._serialize()
3251
+ kwargs["resp_cls"] = models.UpgradeRoGroupResponse
3252
+ kwargs["headers"] = request.headers
3253
+ kwargs["opts"] = opts or {}
3254
+
3255
+ return await self.call_and_deserialize(**kwargs)
3256
+
3239
3257
  async def VerifyRootAccount(
3240
3258
  self,
3241
3259
  request: models.VerifyRootAccountRequest,
@@ -40115,6 +40115,100 @@ class UpgradeEngineVersionParams(AbstractModel):
40115
40115
 
40116
40116
 
40117
40117
 
40118
+ class UpgradeRoGroupRequest(AbstractModel):
40119
+ r"""UpgradeRoGroup请求参数结构体
40120
+
40121
+ """
40122
+
40123
+ def __init__(self):
40124
+ r"""
40125
+ :param _InstanceId: 实例id。
40126
+ :type InstanceId: str
40127
+ :param _UniqRoGroupId: RO组的ID。
40128
+ :type UniqRoGroupId: str
40129
+ """
40130
+ self._InstanceId = None
40131
+ self._UniqRoGroupId = None
40132
+
40133
+ @property
40134
+ def InstanceId(self):
40135
+ r"""实例id。
40136
+ :rtype: str
40137
+ """
40138
+ return self._InstanceId
40139
+
40140
+ @InstanceId.setter
40141
+ def InstanceId(self, InstanceId):
40142
+ self._InstanceId = InstanceId
40143
+
40144
+ @property
40145
+ def UniqRoGroupId(self):
40146
+ r"""RO组的ID。
40147
+ :rtype: str
40148
+ """
40149
+ return self._UniqRoGroupId
40150
+
40151
+ @UniqRoGroupId.setter
40152
+ def UniqRoGroupId(self, UniqRoGroupId):
40153
+ self._UniqRoGroupId = UniqRoGroupId
40154
+
40155
+
40156
+ def _deserialize(self, params):
40157
+ self._InstanceId = params.get("InstanceId")
40158
+ self._UniqRoGroupId = params.get("UniqRoGroupId")
40159
+ memeber_set = set(params.keys())
40160
+ for name, value in vars(self).items():
40161
+ property_name = name[1:]
40162
+ if property_name in memeber_set:
40163
+ memeber_set.remove(property_name)
40164
+ if len(memeber_set) > 0:
40165
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
40166
+
40167
+
40168
+
40169
+ class UpgradeRoGroupResponse(AbstractModel):
40170
+ r"""UpgradeRoGroup返回参数结构体
40171
+
40172
+ """
40173
+
40174
+ def __init__(self):
40175
+ r"""
40176
+ :param _AsyncRequestId: 异步任务ID。
40177
+ :type AsyncRequestId: str
40178
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
40179
+ :type RequestId: str
40180
+ """
40181
+ self._AsyncRequestId = None
40182
+ self._RequestId = None
40183
+
40184
+ @property
40185
+ def AsyncRequestId(self):
40186
+ r"""异步任务ID。
40187
+ :rtype: str
40188
+ """
40189
+ return self._AsyncRequestId
40190
+
40191
+ @AsyncRequestId.setter
40192
+ def AsyncRequestId(self, AsyncRequestId):
40193
+ self._AsyncRequestId = AsyncRequestId
40194
+
40195
+ @property
40196
+ def RequestId(self):
40197
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
40198
+ :rtype: str
40199
+ """
40200
+ return self._RequestId
40201
+
40202
+ @RequestId.setter
40203
+ def RequestId(self, RequestId):
40204
+ self._RequestId = RequestId
40205
+
40206
+
40207
+ def _deserialize(self, params):
40208
+ self._AsyncRequestId = params.get("AsyncRequestId")
40209
+ self._RequestId = params.get("RequestId")
40210
+
40211
+
40118
40212
  class UploadInfo(AbstractModel):
40119
40213
  r"""文件上传描述
40120
40214
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cdb
3
- Version: 3.1.137
3
+ Version: 3.1.145
4
4
  Summary: Tencent Cloud Cdb 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.137
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.145
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.145
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.137