tencentcloud-sdk-python-cdb 3.0.1220__tar.gz → 3.0.1230__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.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/setup.py +1 -1
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud/cdb/v20170320/models.py +190 -2
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud_sdk_python_cdb.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cdb-3.0.1230/tencentcloud_sdk_python_cdb.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cdb-3.0.1220/tencentcloud_sdk_python_cdb.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/README.rst +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud/cdb/__init__.py +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud/cdb/v20170320/__init__.py +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud/cdb/v20170320/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud_sdk_python_cdb.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/tencentcloud_sdk_python_cdb.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cdb-3.0.1220 → tencentcloud-sdk-python-cdb-3.0.1230}/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.1230"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cdb SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -2026,6 +2026,29 @@ class CdbClient(AbstractClient):
|
|
|
2026
2026
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2027
2027
|
|
|
2028
2028
|
|
|
2029
|
+
def DescribeInstanceUpgradeCheckJob(self, request):
|
|
2030
|
+
"""该接口(DescribeInstanceUpgradeCheckJob)查询实例版本升级校验任务。
|
|
2031
|
+
|
|
2032
|
+
:param request: Request instance for DescribeInstanceUpgradeCheckJob.
|
|
2033
|
+
:type request: :class:`tencentcloud.cdb.v20170320.models.DescribeInstanceUpgradeCheckJobRequest`
|
|
2034
|
+
:rtype: :class:`tencentcloud.cdb.v20170320.models.DescribeInstanceUpgradeCheckJobResponse`
|
|
2035
|
+
|
|
2036
|
+
"""
|
|
2037
|
+
try:
|
|
2038
|
+
params = request._serialize()
|
|
2039
|
+
headers = request.headers
|
|
2040
|
+
body = self.call("DescribeInstanceUpgradeCheckJob", params, headers=headers)
|
|
2041
|
+
response = json.loads(body)
|
|
2042
|
+
model = models.DescribeInstanceUpgradeCheckJobResponse()
|
|
2043
|
+
model._deserialize(response["Response"])
|
|
2044
|
+
return model
|
|
2045
|
+
except Exception as e:
|
|
2046
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2047
|
+
raise
|
|
2048
|
+
else:
|
|
2049
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2050
|
+
|
|
2051
|
+
|
|
2029
2052
|
def DescribeInstanceUpgradeType(self, request):
|
|
2030
2053
|
"""本接口(DescribeInstanceUpgradeType)用于查询数据库实例升级类型。
|
|
2031
2054
|
|
|
@@ -3754,6 +3777,29 @@ class CdbClient(AbstractClient):
|
|
|
3754
3777
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3755
3778
|
|
|
3756
3779
|
|
|
3780
|
+
def SubmitInstanceUpgradeCheckJob(self, request):
|
|
3781
|
+
"""该接口(SubmitInstanceUpgradeCheckJob)提交实例版本升级校验任务。
|
|
3782
|
+
|
|
3783
|
+
:param request: Request instance for SubmitInstanceUpgradeCheckJob.
|
|
3784
|
+
:type request: :class:`tencentcloud.cdb.v20170320.models.SubmitInstanceUpgradeCheckJobRequest`
|
|
3785
|
+
:rtype: :class:`tencentcloud.cdb.v20170320.models.SubmitInstanceUpgradeCheckJobResponse`
|
|
3786
|
+
|
|
3787
|
+
"""
|
|
3788
|
+
try:
|
|
3789
|
+
params = request._serialize()
|
|
3790
|
+
headers = request.headers
|
|
3791
|
+
body = self.call("SubmitInstanceUpgradeCheckJob", params, headers=headers)
|
|
3792
|
+
response = json.loads(body)
|
|
3793
|
+
model = models.SubmitInstanceUpgradeCheckJobResponse()
|
|
3794
|
+
model._deserialize(response["Response"])
|
|
3795
|
+
return model
|
|
3796
|
+
except Exception as e:
|
|
3797
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3798
|
+
raise
|
|
3799
|
+
else:
|
|
3800
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3801
|
+
|
|
3802
|
+
|
|
3757
3803
|
def SwitchCDBProxy(self, request):
|
|
3758
3804
|
"""数据库代理配置变更或则升级版本后手动发起立即切换
|
|
3759
3805
|
|
|
@@ -2584,7 +2584,7 @@ class BackupInfo(AbstractModel):
|
|
|
2584
2584
|
:type Region: str
|
|
2585
2585
|
:param _RemoteInfo: 异地备份详细信息
|
|
2586
2586
|
:type RemoteInfo: list of RemoteBackupInfo
|
|
2587
|
-
:param _CosStorageType: 存储方式,0-常规存储,1
|
|
2587
|
+
:param _CosStorageType: 存储方式,0-常规存储,1-归档存储,2-标准存储,默认为0
|
|
2588
2588
|
:type CosStorageType: int
|
|
2589
2589
|
:param _InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
|
|
2590
2590
|
:type InstanceId: str
|
|
@@ -3141,7 +3141,7 @@ class BinlogInfo(AbstractModel):
|
|
|
3141
3141
|
:type Status: str
|
|
3142
3142
|
:param _RemoteInfo: binlog异地备份详细信息
|
|
3143
3143
|
:type RemoteInfo: list of RemoteBackupInfo
|
|
3144
|
-
:param _CosStorageType: 存储方式,0-常规存储,1
|
|
3144
|
+
:param _CosStorageType: 存储方式,0-常规存储,1-归档存储,2-标准存储,默认为0
|
|
3145
3145
|
:type CosStorageType: int
|
|
3146
3146
|
:param _InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
|
|
3147
3147
|
:type InstanceId: str
|
|
@@ -15594,6 +15594,100 @@ class DescribeInstanceParamsResponse(AbstractModel):
|
|
|
15594
15594
|
self._RequestId = params.get("RequestId")
|
|
15595
15595
|
|
|
15596
15596
|
|
|
15597
|
+
class DescribeInstanceUpgradeCheckJobRequest(AbstractModel):
|
|
15598
|
+
"""DescribeInstanceUpgradeCheckJob请求参数结构体
|
|
15599
|
+
|
|
15600
|
+
"""
|
|
15601
|
+
|
|
15602
|
+
def __init__(self):
|
|
15603
|
+
r"""
|
|
15604
|
+
:param _InstanceId: 实例ID
|
|
15605
|
+
:type InstanceId: str
|
|
15606
|
+
:param _DstMysqlVersion: 目标数据库版本
|
|
15607
|
+
:type DstMysqlVersion: str
|
|
15608
|
+
"""
|
|
15609
|
+
self._InstanceId = None
|
|
15610
|
+
self._DstMysqlVersion = None
|
|
15611
|
+
|
|
15612
|
+
@property
|
|
15613
|
+
def InstanceId(self):
|
|
15614
|
+
return self._InstanceId
|
|
15615
|
+
|
|
15616
|
+
@InstanceId.setter
|
|
15617
|
+
def InstanceId(self, InstanceId):
|
|
15618
|
+
self._InstanceId = InstanceId
|
|
15619
|
+
|
|
15620
|
+
@property
|
|
15621
|
+
def DstMysqlVersion(self):
|
|
15622
|
+
return self._DstMysqlVersion
|
|
15623
|
+
|
|
15624
|
+
@DstMysqlVersion.setter
|
|
15625
|
+
def DstMysqlVersion(self, DstMysqlVersion):
|
|
15626
|
+
self._DstMysqlVersion = DstMysqlVersion
|
|
15627
|
+
|
|
15628
|
+
|
|
15629
|
+
def _deserialize(self, params):
|
|
15630
|
+
self._InstanceId = params.get("InstanceId")
|
|
15631
|
+
self._DstMysqlVersion = params.get("DstMysqlVersion")
|
|
15632
|
+
memeber_set = set(params.keys())
|
|
15633
|
+
for name, value in vars(self).items():
|
|
15634
|
+
property_name = name[1:]
|
|
15635
|
+
if property_name in memeber_set:
|
|
15636
|
+
memeber_set.remove(property_name)
|
|
15637
|
+
if len(memeber_set) > 0:
|
|
15638
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15639
|
+
|
|
15640
|
+
|
|
15641
|
+
|
|
15642
|
+
class DescribeInstanceUpgradeCheckJobResponse(AbstractModel):
|
|
15643
|
+
"""DescribeInstanceUpgradeCheckJob返回参数结构体
|
|
15644
|
+
|
|
15645
|
+
"""
|
|
15646
|
+
|
|
15647
|
+
def __init__(self):
|
|
15648
|
+
r"""
|
|
15649
|
+
:param _ExistUpgradeCheckJob: 24小时内是否存在历史升级校验任务
|
|
15650
|
+
:type ExistUpgradeCheckJob: bool
|
|
15651
|
+
:param _JobId: 任务id
|
|
15652
|
+
:type JobId: int
|
|
15653
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15654
|
+
:type RequestId: str
|
|
15655
|
+
"""
|
|
15656
|
+
self._ExistUpgradeCheckJob = None
|
|
15657
|
+
self._JobId = None
|
|
15658
|
+
self._RequestId = None
|
|
15659
|
+
|
|
15660
|
+
@property
|
|
15661
|
+
def ExistUpgradeCheckJob(self):
|
|
15662
|
+
return self._ExistUpgradeCheckJob
|
|
15663
|
+
|
|
15664
|
+
@ExistUpgradeCheckJob.setter
|
|
15665
|
+
def ExistUpgradeCheckJob(self, ExistUpgradeCheckJob):
|
|
15666
|
+
self._ExistUpgradeCheckJob = ExistUpgradeCheckJob
|
|
15667
|
+
|
|
15668
|
+
@property
|
|
15669
|
+
def JobId(self):
|
|
15670
|
+
return self._JobId
|
|
15671
|
+
|
|
15672
|
+
@JobId.setter
|
|
15673
|
+
def JobId(self, JobId):
|
|
15674
|
+
self._JobId = JobId
|
|
15675
|
+
|
|
15676
|
+
@property
|
|
15677
|
+
def RequestId(self):
|
|
15678
|
+
return self._RequestId
|
|
15679
|
+
|
|
15680
|
+
@RequestId.setter
|
|
15681
|
+
def RequestId(self, RequestId):
|
|
15682
|
+
self._RequestId = RequestId
|
|
15683
|
+
|
|
15684
|
+
|
|
15685
|
+
def _deserialize(self, params):
|
|
15686
|
+
self._ExistUpgradeCheckJob = params.get("ExistUpgradeCheckJob")
|
|
15687
|
+
self._JobId = params.get("JobId")
|
|
15688
|
+
self._RequestId = params.get("RequestId")
|
|
15689
|
+
|
|
15690
|
+
|
|
15597
15691
|
class DescribeInstanceUpgradeTypeRequest(AbstractModel):
|
|
15598
15692
|
"""DescribeInstanceUpgradeType请求参数结构体
|
|
15599
15693
|
|
|
@@ -29537,6 +29631,88 @@ class StopRollbackResponse(AbstractModel):
|
|
|
29537
29631
|
self._RequestId = params.get("RequestId")
|
|
29538
29632
|
|
|
29539
29633
|
|
|
29634
|
+
class SubmitInstanceUpgradeCheckJobRequest(AbstractModel):
|
|
29635
|
+
"""SubmitInstanceUpgradeCheckJob请求参数结构体
|
|
29636
|
+
|
|
29637
|
+
"""
|
|
29638
|
+
|
|
29639
|
+
def __init__(self):
|
|
29640
|
+
r"""
|
|
29641
|
+
:param _InstanceId: 实例D
|
|
29642
|
+
:type InstanceId: str
|
|
29643
|
+
:param _DstMysqlVersion: 目标数据库版本
|
|
29644
|
+
:type DstMysqlVersion: str
|
|
29645
|
+
"""
|
|
29646
|
+
self._InstanceId = None
|
|
29647
|
+
self._DstMysqlVersion = None
|
|
29648
|
+
|
|
29649
|
+
@property
|
|
29650
|
+
def InstanceId(self):
|
|
29651
|
+
return self._InstanceId
|
|
29652
|
+
|
|
29653
|
+
@InstanceId.setter
|
|
29654
|
+
def InstanceId(self, InstanceId):
|
|
29655
|
+
self._InstanceId = InstanceId
|
|
29656
|
+
|
|
29657
|
+
@property
|
|
29658
|
+
def DstMysqlVersion(self):
|
|
29659
|
+
return self._DstMysqlVersion
|
|
29660
|
+
|
|
29661
|
+
@DstMysqlVersion.setter
|
|
29662
|
+
def DstMysqlVersion(self, DstMysqlVersion):
|
|
29663
|
+
self._DstMysqlVersion = DstMysqlVersion
|
|
29664
|
+
|
|
29665
|
+
|
|
29666
|
+
def _deserialize(self, params):
|
|
29667
|
+
self._InstanceId = params.get("InstanceId")
|
|
29668
|
+
self._DstMysqlVersion = params.get("DstMysqlVersion")
|
|
29669
|
+
memeber_set = set(params.keys())
|
|
29670
|
+
for name, value in vars(self).items():
|
|
29671
|
+
property_name = name[1:]
|
|
29672
|
+
if property_name in memeber_set:
|
|
29673
|
+
memeber_set.remove(property_name)
|
|
29674
|
+
if len(memeber_set) > 0:
|
|
29675
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
29676
|
+
|
|
29677
|
+
|
|
29678
|
+
|
|
29679
|
+
class SubmitInstanceUpgradeCheckJobResponse(AbstractModel):
|
|
29680
|
+
"""SubmitInstanceUpgradeCheckJob返回参数结构体
|
|
29681
|
+
|
|
29682
|
+
"""
|
|
29683
|
+
|
|
29684
|
+
def __init__(self):
|
|
29685
|
+
r"""
|
|
29686
|
+
:param _JobId: 任务ID
|
|
29687
|
+
:type JobId: int
|
|
29688
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
29689
|
+
:type RequestId: str
|
|
29690
|
+
"""
|
|
29691
|
+
self._JobId = None
|
|
29692
|
+
self._RequestId = None
|
|
29693
|
+
|
|
29694
|
+
@property
|
|
29695
|
+
def JobId(self):
|
|
29696
|
+
return self._JobId
|
|
29697
|
+
|
|
29698
|
+
@JobId.setter
|
|
29699
|
+
def JobId(self, JobId):
|
|
29700
|
+
self._JobId = JobId
|
|
29701
|
+
|
|
29702
|
+
@property
|
|
29703
|
+
def RequestId(self):
|
|
29704
|
+
return self._RequestId
|
|
29705
|
+
|
|
29706
|
+
@RequestId.setter
|
|
29707
|
+
def RequestId(self, RequestId):
|
|
29708
|
+
self._RequestId = RequestId
|
|
29709
|
+
|
|
29710
|
+
|
|
29711
|
+
def _deserialize(self, params):
|
|
29712
|
+
self._JobId = params.get("JobId")
|
|
29713
|
+
self._RequestId = params.get("RequestId")
|
|
29714
|
+
|
|
29715
|
+
|
|
29540
29716
|
class SwitchCDBProxyRequest(AbstractModel):
|
|
29541
29717
|
"""SwitchCDBProxy请求参数结构体
|
|
29542
29718
|
|
|
@@ -30496,6 +30672,8 @@ class UpgradeDBInstanceEngineVersionRequest(AbstractModel):
|
|
|
30496
30672
|
:type UpgradeSubversion: int
|
|
30497
30673
|
:param _MaxDelayTime: 延迟阈值。取值范围1~10
|
|
30498
30674
|
:type MaxDelayTime: int
|
|
30675
|
+
:param _IgnoreErrKeyword: 5.7升级8.0是否忽略关键字错误,取值范围[0,1],1表示忽略,0表示不忽略
|
|
30676
|
+
:type IgnoreErrKeyword: int
|
|
30499
30677
|
:param _ParamList: 版本升级支持指定参数
|
|
30500
30678
|
:type ParamList: list of UpgradeEngineVersionParams
|
|
30501
30679
|
"""
|
|
@@ -30504,6 +30682,7 @@ class UpgradeDBInstanceEngineVersionRequest(AbstractModel):
|
|
|
30504
30682
|
self._WaitSwitch = None
|
|
30505
30683
|
self._UpgradeSubversion = None
|
|
30506
30684
|
self._MaxDelayTime = None
|
|
30685
|
+
self._IgnoreErrKeyword = None
|
|
30507
30686
|
self._ParamList = None
|
|
30508
30687
|
|
|
30509
30688
|
@property
|
|
@@ -30546,6 +30725,14 @@ class UpgradeDBInstanceEngineVersionRequest(AbstractModel):
|
|
|
30546
30725
|
def MaxDelayTime(self, MaxDelayTime):
|
|
30547
30726
|
self._MaxDelayTime = MaxDelayTime
|
|
30548
30727
|
|
|
30728
|
+
@property
|
|
30729
|
+
def IgnoreErrKeyword(self):
|
|
30730
|
+
return self._IgnoreErrKeyword
|
|
30731
|
+
|
|
30732
|
+
@IgnoreErrKeyword.setter
|
|
30733
|
+
def IgnoreErrKeyword(self, IgnoreErrKeyword):
|
|
30734
|
+
self._IgnoreErrKeyword = IgnoreErrKeyword
|
|
30735
|
+
|
|
30549
30736
|
@property
|
|
30550
30737
|
def ParamList(self):
|
|
30551
30738
|
return self._ParamList
|
|
@@ -30561,6 +30748,7 @@ class UpgradeDBInstanceEngineVersionRequest(AbstractModel):
|
|
|
30561
30748
|
self._WaitSwitch = params.get("WaitSwitch")
|
|
30562
30749
|
self._UpgradeSubversion = params.get("UpgradeSubversion")
|
|
30563
30750
|
self._MaxDelayTime = params.get("MaxDelayTime")
|
|
30751
|
+
self._IgnoreErrKeyword = params.get("IgnoreErrKeyword")
|
|
30564
30752
|
if params.get("ParamList") is not None:
|
|
30565
30753
|
self._ParamList = []
|
|
30566
30754
|
for item in params.get("ParamList"):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1230
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1220
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|