tencentcloud-sdk-python-cdb 3.1.149__tar.gz → 3.1.158__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.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/setup.py +1 -1
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud/cdb/v20170320/cdb_client_async.py +36 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud/cdb/v20170320/models.py +271 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud_sdk_python_cdb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cdb-3.1.158/tencentcloud_sdk_python_cdb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cdb-3.1.149/tencentcloud_sdk_python_cdb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/README.rst +0 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud/cdb/__init__.py +0 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud/cdb/v20170320/__init__.py +0 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud/cdb/v20170320/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud_sdk_python_cdb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/tencentcloud_sdk_python_cdb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cdb-3.1.149 → tencentcloud_sdk_python_cdb-3.1.158}/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.
|
|
3
|
+
Version: 3.1.158
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.158
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.158,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cdb SDK for Python',
|
|
@@ -3214,6 +3214,52 @@ class CdbClient(AbstractClient):
|
|
|
3214
3214
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3215
3215
|
|
|
3216
3216
|
|
|
3217
|
+
def ModifyInstanceChargeType(self, request):
|
|
3218
|
+
r"""本接口(ModifyInstanceChargeType)用于将实例的计费模式从包年包月改为按量计费。
|
|
3219
|
+
|
|
3220
|
+
:param request: Request instance for ModifyInstanceChargeType.
|
|
3221
|
+
:type request: :class:`tencentcloud.cdb.v20170320.models.ModifyInstanceChargeTypeRequest`
|
|
3222
|
+
:rtype: :class:`tencentcloud.cdb.v20170320.models.ModifyInstanceChargeTypeResponse`
|
|
3223
|
+
|
|
3224
|
+
"""
|
|
3225
|
+
try:
|
|
3226
|
+
params = request._serialize()
|
|
3227
|
+
headers = request.headers
|
|
3228
|
+
body = self.call("ModifyInstanceChargeType", params, headers=headers)
|
|
3229
|
+
response = json.loads(body)
|
|
3230
|
+
model = models.ModifyInstanceChargeTypeResponse()
|
|
3231
|
+
model._deserialize(response["Response"])
|
|
3232
|
+
return model
|
|
3233
|
+
except Exception as e:
|
|
3234
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3235
|
+
raise
|
|
3236
|
+
else:
|
|
3237
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3238
|
+
|
|
3239
|
+
|
|
3240
|
+
def ModifyInstanceDestroyProtect(self, request):
|
|
3241
|
+
r"""该接口(ModifyInstanceDestroyProtect)用于修改实例销毁保护状态。
|
|
3242
|
+
|
|
3243
|
+
:param request: Request instance for ModifyInstanceDestroyProtect.
|
|
3244
|
+
:type request: :class:`tencentcloud.cdb.v20170320.models.ModifyInstanceDestroyProtectRequest`
|
|
3245
|
+
:rtype: :class:`tencentcloud.cdb.v20170320.models.ModifyInstanceDestroyProtectResponse`
|
|
3246
|
+
|
|
3247
|
+
"""
|
|
3248
|
+
try:
|
|
3249
|
+
params = request._serialize()
|
|
3250
|
+
headers = request.headers
|
|
3251
|
+
body = self.call("ModifyInstanceDestroyProtect", params, headers=headers)
|
|
3252
|
+
response = json.loads(body)
|
|
3253
|
+
model = models.ModifyInstanceDestroyProtectResponse()
|
|
3254
|
+
model._deserialize(response["Response"])
|
|
3255
|
+
return model
|
|
3256
|
+
except Exception as e:
|
|
3257
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3258
|
+
raise
|
|
3259
|
+
else:
|
|
3260
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3261
|
+
|
|
3262
|
+
|
|
3217
3263
|
def ModifyInstanceParam(self, request):
|
|
3218
3264
|
r"""本接口(ModifyInstanceParam)用于修改云数据库实例的参数。
|
|
3219
3265
|
|
|
@@ -2528,6 +2528,42 @@ class CdbClient(AbstractClient):
|
|
|
2528
2528
|
|
|
2529
2529
|
return await self.call_and_deserialize(**kwargs)
|
|
2530
2530
|
|
|
2531
|
+
async def ModifyInstanceChargeType(
|
|
2532
|
+
self,
|
|
2533
|
+
request: models.ModifyInstanceChargeTypeRequest,
|
|
2534
|
+
opts: Dict = None,
|
|
2535
|
+
) -> models.ModifyInstanceChargeTypeResponse:
|
|
2536
|
+
"""
|
|
2537
|
+
本接口(ModifyInstanceChargeType)用于将实例的计费模式从包年包月改为按量计费。
|
|
2538
|
+
"""
|
|
2539
|
+
|
|
2540
|
+
kwargs = {}
|
|
2541
|
+
kwargs["action"] = "ModifyInstanceChargeType"
|
|
2542
|
+
kwargs["params"] = request._serialize()
|
|
2543
|
+
kwargs["resp_cls"] = models.ModifyInstanceChargeTypeResponse
|
|
2544
|
+
kwargs["headers"] = request.headers
|
|
2545
|
+
kwargs["opts"] = opts or {}
|
|
2546
|
+
|
|
2547
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2548
|
+
|
|
2549
|
+
async def ModifyInstanceDestroyProtect(
|
|
2550
|
+
self,
|
|
2551
|
+
request: models.ModifyInstanceDestroyProtectRequest,
|
|
2552
|
+
opts: Dict = None,
|
|
2553
|
+
) -> models.ModifyInstanceDestroyProtectResponse:
|
|
2554
|
+
"""
|
|
2555
|
+
该接口(ModifyInstanceDestroyProtect)用于修改实例销毁保护状态。
|
|
2556
|
+
"""
|
|
2557
|
+
|
|
2558
|
+
kwargs = {}
|
|
2559
|
+
kwargs["action"] = "ModifyInstanceDestroyProtect"
|
|
2560
|
+
kwargs["params"] = request._serialize()
|
|
2561
|
+
kwargs["resp_cls"] = models.ModifyInstanceDestroyProtectResponse
|
|
2562
|
+
kwargs["headers"] = request.headers
|
|
2563
|
+
kwargs["opts"] = opts or {}
|
|
2564
|
+
|
|
2565
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2566
|
+
|
|
2531
2567
|
async def ModifyInstanceParam(
|
|
2532
2568
|
self,
|
|
2533
2569
|
request: models.ModifyInstanceParamRequest,
|
|
@@ -8667,6 +8667,8 @@ class CreateDBInstanceHourRequest(AbstractModel):
|
|
|
8667
8667
|
:type ClusterTopology: :class:`tencentcloud.cdb.v20170320.models.ClusterTopology`
|
|
8668
8668
|
:param _DiskType: <p>硬盘类型,单节点(云盘)或者云盘版实例可以指定此参数。CLOUD_SSD 表示 SSD 云硬盘,CLOUD_HSSD 表示增强型 SSD 云硬盘,CLOUD_PREMIUM 表示高性能云硬盘。<br>说明:单节点(云盘)、云盘版实例硬盘类型所支持的地域略有不同,具体支持情况请参考 <a href="https://cloud.tencent.com/document/product/236/8458">地域和可用区</a>。</p>
|
|
8669
8669
|
:type DiskType: str
|
|
8670
|
+
:param _CdcId: <p>CDC集群ID,非CDC场景无需指定该入参</p>
|
|
8671
|
+
:type CdcId: str
|
|
8670
8672
|
:param _ClusterType: <p>集群类型:cage——金融围拢,cdc——CDB ON CDC;dedicate——独享集群</p>
|
|
8671
8673
|
:type ClusterType: str
|
|
8672
8674
|
:param _DiskEncryption: <p>是否对磁盘进行加密。仅云盘版实例支持该功能。 指定为 "on" 表示开启加密, 否则不加密。 购买只读实例、灾备实例、新克隆实例时该参数自动和主实例保持一致。</p>
|
|
@@ -8716,6 +8718,7 @@ class CreateDBInstanceHourRequest(AbstractModel):
|
|
|
8716
8718
|
self._DataProtectVolume = None
|
|
8717
8719
|
self._ClusterTopology = None
|
|
8718
8720
|
self._DiskType = None
|
|
8721
|
+
self._CdcId = None
|
|
8719
8722
|
self._ClusterType = None
|
|
8720
8723
|
self._DiskEncryption = None
|
|
8721
8724
|
self._DestroyProtect = None
|
|
@@ -9161,6 +9164,17 @@ class CreateDBInstanceHourRequest(AbstractModel):
|
|
|
9161
9164
|
def DiskType(self, DiskType):
|
|
9162
9165
|
self._DiskType = DiskType
|
|
9163
9166
|
|
|
9167
|
+
@property
|
|
9168
|
+
def CdcId(self):
|
|
9169
|
+
r"""<p>CDC集群ID,非CDC场景无需指定该入参</p>
|
|
9170
|
+
:rtype: str
|
|
9171
|
+
"""
|
|
9172
|
+
return self._CdcId
|
|
9173
|
+
|
|
9174
|
+
@CdcId.setter
|
|
9175
|
+
def CdcId(self, CdcId):
|
|
9176
|
+
self._CdcId = CdcId
|
|
9177
|
+
|
|
9164
9178
|
@property
|
|
9165
9179
|
def ClusterType(self):
|
|
9166
9180
|
r"""<p>集群类型:cage——金融围拢,cdc——CDB ON CDC;dedicate——独享集群</p>
|
|
@@ -9261,6 +9275,7 @@ class CreateDBInstanceHourRequest(AbstractModel):
|
|
|
9261
9275
|
self._ClusterTopology = ClusterTopology()
|
|
9262
9276
|
self._ClusterTopology._deserialize(params.get("ClusterTopology"))
|
|
9263
9277
|
self._DiskType = params.get("DiskType")
|
|
9278
|
+
self._CdcId = params.get("CdcId")
|
|
9264
9279
|
self._ClusterType = params.get("ClusterType")
|
|
9265
9280
|
self._DiskEncryption = params.get("DiskEncryption")
|
|
9266
9281
|
self._DestroyProtect = params.get("DestroyProtect")
|
|
@@ -25110,6 +25125,57 @@ RA - 范围。
|
|
|
25110
25125
|
|
|
25111
25126
|
|
|
25112
25127
|
|
|
25128
|
+
class InstanceChargePrepaid(AbstractModel):
|
|
25129
|
+
r"""修改计费模式时,如果需要从按量计费转为包年包月,则需指定时长和自动续费标志
|
|
25130
|
+
|
|
25131
|
+
"""
|
|
25132
|
+
|
|
25133
|
+
def __init__(self):
|
|
25134
|
+
r"""
|
|
25135
|
+
:param _Period: <p>购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。</p>
|
|
25136
|
+
:type Period: int
|
|
25137
|
+
:param _RenewFlag: <p>自动续费标识,0:不自动续费,1:自动续费</p>
|
|
25138
|
+
:type RenewFlag: int
|
|
25139
|
+
"""
|
|
25140
|
+
self._Period = None
|
|
25141
|
+
self._RenewFlag = None
|
|
25142
|
+
|
|
25143
|
+
@property
|
|
25144
|
+
def Period(self):
|
|
25145
|
+
r"""<p>购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。</p>
|
|
25146
|
+
:rtype: int
|
|
25147
|
+
"""
|
|
25148
|
+
return self._Period
|
|
25149
|
+
|
|
25150
|
+
@Period.setter
|
|
25151
|
+
def Period(self, Period):
|
|
25152
|
+
self._Period = Period
|
|
25153
|
+
|
|
25154
|
+
@property
|
|
25155
|
+
def RenewFlag(self):
|
|
25156
|
+
r"""<p>自动续费标识,0:不自动续费,1:自动续费</p>
|
|
25157
|
+
:rtype: int
|
|
25158
|
+
"""
|
|
25159
|
+
return self._RenewFlag
|
|
25160
|
+
|
|
25161
|
+
@RenewFlag.setter
|
|
25162
|
+
def RenewFlag(self, RenewFlag):
|
|
25163
|
+
self._RenewFlag = RenewFlag
|
|
25164
|
+
|
|
25165
|
+
|
|
25166
|
+
def _deserialize(self, params):
|
|
25167
|
+
self._Period = params.get("Period")
|
|
25168
|
+
self._RenewFlag = params.get("RenewFlag")
|
|
25169
|
+
memeber_set = set(params.keys())
|
|
25170
|
+
for name, value in vars(self).items():
|
|
25171
|
+
property_name = name[1:]
|
|
25172
|
+
if property_name in memeber_set:
|
|
25173
|
+
memeber_set.remove(property_name)
|
|
25174
|
+
if len(memeber_set) > 0:
|
|
25175
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
25176
|
+
|
|
25177
|
+
|
|
25178
|
+
|
|
25113
25179
|
class InstanceDbAuditStatus(AbstractModel):
|
|
25114
25180
|
r"""实例审计详情信息
|
|
25115
25181
|
|
|
@@ -30400,6 +30466,196 @@ class ModifyDBInstanceVipVportResponse(AbstractModel):
|
|
|
30400
30466
|
self._RequestId = params.get("RequestId")
|
|
30401
30467
|
|
|
30402
30468
|
|
|
30469
|
+
class ModifyInstanceChargeTypeRequest(AbstractModel):
|
|
30470
|
+
r"""ModifyInstanceChargeType请求参数结构体
|
|
30471
|
+
|
|
30472
|
+
"""
|
|
30473
|
+
|
|
30474
|
+
def __init__(self):
|
|
30475
|
+
r"""
|
|
30476
|
+
:param _InstanceId: <p>实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。</p>
|
|
30477
|
+
:type InstanceId: str
|
|
30478
|
+
:param _InstanceChargeType: <p>修改后的计费类型</p><p>枚举值:</p><ul><li>PREPAID: 包年包月</li><li>POSTPAID_BY_HOUR: 按量计费</li></ul>
|
|
30479
|
+
:type InstanceChargeType: str
|
|
30480
|
+
:param _InstanceChargePrepaid: <p>修改后包年包月相关参数设置</p>
|
|
30481
|
+
:type InstanceChargePrepaid: :class:`tencentcloud.cdb.v20170320.models.InstanceChargePrepaid`
|
|
30482
|
+
"""
|
|
30483
|
+
self._InstanceId = None
|
|
30484
|
+
self._InstanceChargeType = None
|
|
30485
|
+
self._InstanceChargePrepaid = None
|
|
30486
|
+
|
|
30487
|
+
@property
|
|
30488
|
+
def InstanceId(self):
|
|
30489
|
+
r"""<p>实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。</p>
|
|
30490
|
+
:rtype: str
|
|
30491
|
+
"""
|
|
30492
|
+
return self._InstanceId
|
|
30493
|
+
|
|
30494
|
+
@InstanceId.setter
|
|
30495
|
+
def InstanceId(self, InstanceId):
|
|
30496
|
+
self._InstanceId = InstanceId
|
|
30497
|
+
|
|
30498
|
+
@property
|
|
30499
|
+
def InstanceChargeType(self):
|
|
30500
|
+
r"""<p>修改后的计费类型</p><p>枚举值:</p><ul><li>PREPAID: 包年包月</li><li>POSTPAID_BY_HOUR: 按量计费</li></ul>
|
|
30501
|
+
:rtype: str
|
|
30502
|
+
"""
|
|
30503
|
+
return self._InstanceChargeType
|
|
30504
|
+
|
|
30505
|
+
@InstanceChargeType.setter
|
|
30506
|
+
def InstanceChargeType(self, InstanceChargeType):
|
|
30507
|
+
self._InstanceChargeType = InstanceChargeType
|
|
30508
|
+
|
|
30509
|
+
@property
|
|
30510
|
+
def InstanceChargePrepaid(self):
|
|
30511
|
+
r"""<p>修改后包年包月相关参数设置</p>
|
|
30512
|
+
:rtype: :class:`tencentcloud.cdb.v20170320.models.InstanceChargePrepaid`
|
|
30513
|
+
"""
|
|
30514
|
+
return self._InstanceChargePrepaid
|
|
30515
|
+
|
|
30516
|
+
@InstanceChargePrepaid.setter
|
|
30517
|
+
def InstanceChargePrepaid(self, InstanceChargePrepaid):
|
|
30518
|
+
self._InstanceChargePrepaid = InstanceChargePrepaid
|
|
30519
|
+
|
|
30520
|
+
|
|
30521
|
+
def _deserialize(self, params):
|
|
30522
|
+
self._InstanceId = params.get("InstanceId")
|
|
30523
|
+
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
30524
|
+
if params.get("InstanceChargePrepaid") is not None:
|
|
30525
|
+
self._InstanceChargePrepaid = InstanceChargePrepaid()
|
|
30526
|
+
self._InstanceChargePrepaid._deserialize(params.get("InstanceChargePrepaid"))
|
|
30527
|
+
memeber_set = set(params.keys())
|
|
30528
|
+
for name, value in vars(self).items():
|
|
30529
|
+
property_name = name[1:]
|
|
30530
|
+
if property_name in memeber_set:
|
|
30531
|
+
memeber_set.remove(property_name)
|
|
30532
|
+
if len(memeber_set) > 0:
|
|
30533
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30534
|
+
|
|
30535
|
+
|
|
30536
|
+
|
|
30537
|
+
class ModifyInstanceChargeTypeResponse(AbstractModel):
|
|
30538
|
+
r"""ModifyInstanceChargeType返回参数结构体
|
|
30539
|
+
|
|
30540
|
+
"""
|
|
30541
|
+
|
|
30542
|
+
def __init__(self):
|
|
30543
|
+
r"""
|
|
30544
|
+
:param _DealName: <p>订单ID</p>
|
|
30545
|
+
:type DealName: str
|
|
30546
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30547
|
+
:type RequestId: str
|
|
30548
|
+
"""
|
|
30549
|
+
self._DealName = None
|
|
30550
|
+
self._RequestId = None
|
|
30551
|
+
|
|
30552
|
+
@property
|
|
30553
|
+
def DealName(self):
|
|
30554
|
+
r"""<p>订单ID</p>
|
|
30555
|
+
:rtype: str
|
|
30556
|
+
"""
|
|
30557
|
+
return self._DealName
|
|
30558
|
+
|
|
30559
|
+
@DealName.setter
|
|
30560
|
+
def DealName(self, DealName):
|
|
30561
|
+
self._DealName = DealName
|
|
30562
|
+
|
|
30563
|
+
@property
|
|
30564
|
+
def RequestId(self):
|
|
30565
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30566
|
+
:rtype: str
|
|
30567
|
+
"""
|
|
30568
|
+
return self._RequestId
|
|
30569
|
+
|
|
30570
|
+
@RequestId.setter
|
|
30571
|
+
def RequestId(self, RequestId):
|
|
30572
|
+
self._RequestId = RequestId
|
|
30573
|
+
|
|
30574
|
+
|
|
30575
|
+
def _deserialize(self, params):
|
|
30576
|
+
self._DealName = params.get("DealName")
|
|
30577
|
+
self._RequestId = params.get("RequestId")
|
|
30578
|
+
|
|
30579
|
+
|
|
30580
|
+
class ModifyInstanceDestroyProtectRequest(AbstractModel):
|
|
30581
|
+
r"""ModifyInstanceDestroyProtect请求参数结构体
|
|
30582
|
+
|
|
30583
|
+
"""
|
|
30584
|
+
|
|
30585
|
+
def __init__(self):
|
|
30586
|
+
r"""
|
|
30587
|
+
:param _InstanceIds: 实例 ID 列表
|
|
30588
|
+
:type InstanceIds: list of str
|
|
30589
|
+
:param _DestroyProtect: 开启或关闭实例销毁保护
|
|
30590
|
+
:type DestroyProtect: str
|
|
30591
|
+
"""
|
|
30592
|
+
self._InstanceIds = None
|
|
30593
|
+
self._DestroyProtect = None
|
|
30594
|
+
|
|
30595
|
+
@property
|
|
30596
|
+
def InstanceIds(self):
|
|
30597
|
+
r"""实例 ID 列表
|
|
30598
|
+
:rtype: list of str
|
|
30599
|
+
"""
|
|
30600
|
+
return self._InstanceIds
|
|
30601
|
+
|
|
30602
|
+
@InstanceIds.setter
|
|
30603
|
+
def InstanceIds(self, InstanceIds):
|
|
30604
|
+
self._InstanceIds = InstanceIds
|
|
30605
|
+
|
|
30606
|
+
@property
|
|
30607
|
+
def DestroyProtect(self):
|
|
30608
|
+
r"""开启或关闭实例销毁保护
|
|
30609
|
+
:rtype: str
|
|
30610
|
+
"""
|
|
30611
|
+
return self._DestroyProtect
|
|
30612
|
+
|
|
30613
|
+
@DestroyProtect.setter
|
|
30614
|
+
def DestroyProtect(self, DestroyProtect):
|
|
30615
|
+
self._DestroyProtect = DestroyProtect
|
|
30616
|
+
|
|
30617
|
+
|
|
30618
|
+
def _deserialize(self, params):
|
|
30619
|
+
self._InstanceIds = params.get("InstanceIds")
|
|
30620
|
+
self._DestroyProtect = params.get("DestroyProtect")
|
|
30621
|
+
memeber_set = set(params.keys())
|
|
30622
|
+
for name, value in vars(self).items():
|
|
30623
|
+
property_name = name[1:]
|
|
30624
|
+
if property_name in memeber_set:
|
|
30625
|
+
memeber_set.remove(property_name)
|
|
30626
|
+
if len(memeber_set) > 0:
|
|
30627
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30628
|
+
|
|
30629
|
+
|
|
30630
|
+
|
|
30631
|
+
class ModifyInstanceDestroyProtectResponse(AbstractModel):
|
|
30632
|
+
r"""ModifyInstanceDestroyProtect返回参数结构体
|
|
30633
|
+
|
|
30634
|
+
"""
|
|
30635
|
+
|
|
30636
|
+
def __init__(self):
|
|
30637
|
+
r"""
|
|
30638
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30639
|
+
:type RequestId: str
|
|
30640
|
+
"""
|
|
30641
|
+
self._RequestId = None
|
|
30642
|
+
|
|
30643
|
+
@property
|
|
30644
|
+
def RequestId(self):
|
|
30645
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30646
|
+
:rtype: str
|
|
30647
|
+
"""
|
|
30648
|
+
return self._RequestId
|
|
30649
|
+
|
|
30650
|
+
@RequestId.setter
|
|
30651
|
+
def RequestId(self, RequestId):
|
|
30652
|
+
self._RequestId = RequestId
|
|
30653
|
+
|
|
30654
|
+
|
|
30655
|
+
def _deserialize(self, params):
|
|
30656
|
+
self._RequestId = params.get("RequestId")
|
|
30657
|
+
|
|
30658
|
+
|
|
30403
30659
|
class ModifyInstanceParamRequest(AbstractModel):
|
|
30404
30660
|
r"""ModifyInstanceParam请求参数结构体
|
|
30405
30661
|
|
|
@@ -40007,11 +40263,14 @@ class UpgradeDBInstanceResponse(AbstractModel):
|
|
|
40007
40263
|
:type DealIds: list of str
|
|
40008
40264
|
:param _AsyncRequestId: <p>异步任务的请求 ID,可使用此 ID <a href="https://cloud.tencent.com/document/product/236/20410">查询异步任务的执行结果</a>。</p>
|
|
40009
40265
|
:type AsyncRequestId: str
|
|
40266
|
+
:param _JobId: <p>任务列表的任务ID</p>
|
|
40267
|
+
:type JobId: int
|
|
40010
40268
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
40011
40269
|
:type RequestId: str
|
|
40012
40270
|
"""
|
|
40013
40271
|
self._DealIds = None
|
|
40014
40272
|
self._AsyncRequestId = None
|
|
40273
|
+
self._JobId = None
|
|
40015
40274
|
self._RequestId = None
|
|
40016
40275
|
|
|
40017
40276
|
@property
|
|
@@ -40036,6 +40295,17 @@ class UpgradeDBInstanceResponse(AbstractModel):
|
|
|
40036
40295
|
def AsyncRequestId(self, AsyncRequestId):
|
|
40037
40296
|
self._AsyncRequestId = AsyncRequestId
|
|
40038
40297
|
|
|
40298
|
+
@property
|
|
40299
|
+
def JobId(self):
|
|
40300
|
+
r"""<p>任务列表的任务ID</p>
|
|
40301
|
+
:rtype: int
|
|
40302
|
+
"""
|
|
40303
|
+
return self._JobId
|
|
40304
|
+
|
|
40305
|
+
@JobId.setter
|
|
40306
|
+
def JobId(self, JobId):
|
|
40307
|
+
self._JobId = JobId
|
|
40308
|
+
|
|
40039
40309
|
@property
|
|
40040
40310
|
def RequestId(self):
|
|
40041
40311
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -40051,6 +40321,7 @@ class UpgradeDBInstanceResponse(AbstractModel):
|
|
|
40051
40321
|
def _deserialize(self, params):
|
|
40052
40322
|
self._DealIds = params.get("DealIds")
|
|
40053
40323
|
self._AsyncRequestId = params.get("AsyncRequestId")
|
|
40324
|
+
self._JobId = params.get("JobId")
|
|
40054
40325
|
self._RequestId = params.get("RequestId")
|
|
40055
40326
|
|
|
40056
40327
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cdb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.158
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.158
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.158
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.149
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|