tencentcloud-sdk-python-dcdb 3.0.1416__tar.gz → 3.0.1450__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-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/setup.py +1 -1
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud/dcdb/v20180411/dcdb_client.py +95 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud/dcdb/v20180411/errorcodes.py +9 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud/dcdb/v20180411/models.py +779 -2
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud_sdk_python_dcdb.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-dcdb-3.0.1450/tencentcloud_sdk_python_dcdb.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-dcdb-3.0.1416/tencentcloud_sdk_python_dcdb.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/README.rst +0 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/setup.cfg +0 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud/dcdb/__init__.py +0 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud/dcdb/v20180411/__init__.py +0 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud_sdk_python_dcdb.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud_sdk_python_dcdb.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-dcdb-3.0.1416 → tencentcloud-sdk-python-dcdb-3.0.1450}/tencentcloud_sdk_python_dcdb.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-dcdb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1450,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Dcdb SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -949,6 +949,29 @@ class DcdbClient(AbstractClient):
|
|
|
949
949
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
950
950
|
|
|
951
951
|
|
|
952
|
+
def DescribeInstanceSSLAttributes(self, request):
|
|
953
|
+
"""本接口(DescribeInstanceSSLAttributes)用于拉取实例SSL认证属性
|
|
954
|
+
|
|
955
|
+
:param request: Request instance for DescribeInstanceSSLAttributes.
|
|
956
|
+
:type request: :class:`tencentcloud.dcdb.v20180411.models.DescribeInstanceSSLAttributesRequest`
|
|
957
|
+
:rtype: :class:`tencentcloud.dcdb.v20180411.models.DescribeInstanceSSLAttributesResponse`
|
|
958
|
+
|
|
959
|
+
"""
|
|
960
|
+
try:
|
|
961
|
+
params = request._serialize()
|
|
962
|
+
headers = request.headers
|
|
963
|
+
body = self.call("DescribeInstanceSSLAttributes", params, headers=headers)
|
|
964
|
+
response = json.loads(body)
|
|
965
|
+
model = models.DescribeInstanceSSLAttributesResponse()
|
|
966
|
+
model._deserialize(response["Response"])
|
|
967
|
+
return model
|
|
968
|
+
except Exception as e:
|
|
969
|
+
if isinstance(e, TencentCloudSDKException):
|
|
970
|
+
raise
|
|
971
|
+
else:
|
|
972
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
973
|
+
|
|
974
|
+
|
|
952
975
|
def DescribeLogFileRetentionPeriod(self, request):
|
|
953
976
|
"""本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。
|
|
954
977
|
|
|
@@ -1018,6 +1041,32 @@ class DcdbClient(AbstractClient):
|
|
|
1018
1041
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1019
1042
|
|
|
1020
1043
|
|
|
1044
|
+
def DescribeProcessList(self, request):
|
|
1045
|
+
"""本接口 (DescribeProcessList) 用于查询当前正在运行的线程(连接/查询)信息。
|
|
1046
|
+
|
|
1047
|
+
- 可以根据客户端IP,DB,执行时间等信息来查询实例正在运行的线程信息。过滤信息详细请见过滤器Filter。
|
|
1048
|
+
- 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的线程信息。
|
|
1049
|
+
|
|
1050
|
+
:param request: Request instance for DescribeProcessList.
|
|
1051
|
+
:type request: :class:`tencentcloud.dcdb.v20180411.models.DescribeProcessListRequest`
|
|
1052
|
+
:rtype: :class:`tencentcloud.dcdb.v20180411.models.DescribeProcessListResponse`
|
|
1053
|
+
|
|
1054
|
+
"""
|
|
1055
|
+
try:
|
|
1056
|
+
params = request._serialize()
|
|
1057
|
+
headers = request.headers
|
|
1058
|
+
body = self.call("DescribeProcessList", params, headers=headers)
|
|
1059
|
+
response = json.loads(body)
|
|
1060
|
+
model = models.DescribeProcessListResponse()
|
|
1061
|
+
model._deserialize(response["Response"])
|
|
1062
|
+
return model
|
|
1063
|
+
except Exception as e:
|
|
1064
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1065
|
+
raise
|
|
1066
|
+
else:
|
|
1067
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1068
|
+
|
|
1069
|
+
|
|
1021
1070
|
def DescribeProjectSecurityGroups(self, request):
|
|
1022
1071
|
"""本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息
|
|
1023
1072
|
|
|
@@ -1602,6 +1651,52 @@ class DcdbClient(AbstractClient):
|
|
|
1602
1651
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1603
1652
|
|
|
1604
1653
|
|
|
1654
|
+
def ModifyInstanceProtectedProperty(self, request):
|
|
1655
|
+
"""该接口用于修改实例的保护属性
|
|
1656
|
+
|
|
1657
|
+
:param request: Request instance for ModifyInstanceProtectedProperty.
|
|
1658
|
+
:type request: :class:`tencentcloud.dcdb.v20180411.models.ModifyInstanceProtectedPropertyRequest`
|
|
1659
|
+
:rtype: :class:`tencentcloud.dcdb.v20180411.models.ModifyInstanceProtectedPropertyResponse`
|
|
1660
|
+
|
|
1661
|
+
"""
|
|
1662
|
+
try:
|
|
1663
|
+
params = request._serialize()
|
|
1664
|
+
headers = request.headers
|
|
1665
|
+
body = self.call("ModifyInstanceProtectedProperty", params, headers=headers)
|
|
1666
|
+
response = json.loads(body)
|
|
1667
|
+
model = models.ModifyInstanceProtectedPropertyResponse()
|
|
1668
|
+
model._deserialize(response["Response"])
|
|
1669
|
+
return model
|
|
1670
|
+
except Exception as e:
|
|
1671
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1672
|
+
raise
|
|
1673
|
+
else:
|
|
1674
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
def ModifyInstanceSSLAttributes(self, request):
|
|
1678
|
+
"""本接口 (ModifyInstanceSSLAttributes)用于修改实例SSL认证功能属性
|
|
1679
|
+
|
|
1680
|
+
:param request: Request instance for ModifyInstanceSSLAttributes.
|
|
1681
|
+
:type request: :class:`tencentcloud.dcdb.v20180411.models.ModifyInstanceSSLAttributesRequest`
|
|
1682
|
+
:rtype: :class:`tencentcloud.dcdb.v20180411.models.ModifyInstanceSSLAttributesResponse`
|
|
1683
|
+
|
|
1684
|
+
"""
|
|
1685
|
+
try:
|
|
1686
|
+
params = request._serialize()
|
|
1687
|
+
headers = request.headers
|
|
1688
|
+
body = self.call("ModifyInstanceSSLAttributes", params, headers=headers)
|
|
1689
|
+
response = json.loads(body)
|
|
1690
|
+
model = models.ModifyInstanceSSLAttributesResponse()
|
|
1691
|
+
model._deserialize(response["Response"])
|
|
1692
|
+
return model
|
|
1693
|
+
except Exception as e:
|
|
1694
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1695
|
+
raise
|
|
1696
|
+
else:
|
|
1697
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1698
|
+
|
|
1699
|
+
|
|
1605
1700
|
def ModifyInstanceVip(self, request):
|
|
1606
1701
|
"""本接口(ModifyInstanceVip)用于修改实例Vip
|
|
1607
1702
|
|
|
@@ -86,6 +86,9 @@ FAILEDOPERATION_SETRULELOCATIONFAILED = 'FailedOperation.SetRuleLocationFailed'
|
|
|
86
86
|
# 安全组规则下发失败。
|
|
87
87
|
FAILEDOPERATION_SETSVCLOCATIONFAILED = 'FailedOperation.SetSvcLocationFailed'
|
|
88
88
|
|
|
89
|
+
# SSL状态异常。
|
|
90
|
+
FAILEDOPERATION_SSLSTATUSABNORMAL = 'FailedOperation.SslStatusAbnormal'
|
|
91
|
+
|
|
89
92
|
# 标签键值校验或鉴权失败。
|
|
90
93
|
FAILEDOPERATION_TAGDRYRUNERROR = 'FailedOperation.TagDryRunError'
|
|
91
94
|
|
|
@@ -383,6 +386,9 @@ RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = 'ResourceUnavailable.InstanceStatus
|
|
|
383
386
|
# 安全组校验失败。
|
|
384
387
|
RESOURCEUNAVAILABLE_SGCHECKFAIL = 'ResourceUnavailable.SGCheckFail'
|
|
385
388
|
|
|
389
|
+
# SSL状态异常。
|
|
390
|
+
RESOURCEUNAVAILABLE_SSLSTATUSABNORMAL = 'ResourceUnavailable.SSLStatusAbnormal'
|
|
391
|
+
|
|
386
392
|
# 没有权限操作该接口或资源。
|
|
387
393
|
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = 'UnauthorizedOperation.PermissionDenied'
|
|
388
394
|
|
|
@@ -394,3 +400,6 @@ UNSUPPORTEDOPERATION_INVALIDOPERATION = 'UnsupportedOperation.InvalidOperation'
|
|
|
394
400
|
|
|
395
401
|
# Proxy软件版本太旧,请联系客服升级到新版本后再试。
|
|
396
402
|
UNSUPPORTEDOPERATION_OLDPROXYVERSION = 'UnsupportedOperation.OldProxyVersion'
|
|
403
|
+
|
|
404
|
+
# 当前版本不支持SSL认证,请联系客服升级到新版本后再试。
|
|
405
|
+
UNSUPPORTEDOPERATION_SSLNOTSUPPORTED = 'UnsupportedOperation.SSLNotSupported'
|
|
@@ -3641,6 +3641,8 @@ class DCDBInstanceInfo(AbstractModel):
|
|
|
3641
3641
|
:type ResourceTags: list of ResourceTag
|
|
3642
3642
|
:param _DbVersionId: 数据库引擎版本
|
|
3643
3643
|
:type DbVersionId: str
|
|
3644
|
+
:param _ProtectedProperty: 实例删除保护标签,1: 已开启删除保护,0: 未开启删除保护
|
|
3645
|
+
:type ProtectedProperty: int
|
|
3644
3646
|
"""
|
|
3645
3647
|
self._InstanceId = None
|
|
3646
3648
|
self._InstanceName = None
|
|
@@ -3692,6 +3694,7 @@ class DCDBInstanceInfo(AbstractModel):
|
|
|
3692
3694
|
self._InstanceType = None
|
|
3693
3695
|
self._ResourceTags = None
|
|
3694
3696
|
self._DbVersionId = None
|
|
3697
|
+
self._ProtectedProperty = None
|
|
3695
3698
|
|
|
3696
3699
|
@property
|
|
3697
3700
|
def InstanceId(self):
|
|
@@ -4243,6 +4246,17 @@ class DCDBInstanceInfo(AbstractModel):
|
|
|
4243
4246
|
def DbVersionId(self, DbVersionId):
|
|
4244
4247
|
self._DbVersionId = DbVersionId
|
|
4245
4248
|
|
|
4249
|
+
@property
|
|
4250
|
+
def ProtectedProperty(self):
|
|
4251
|
+
"""实例删除保护标签,1: 已开启删除保护,0: 未开启删除保护
|
|
4252
|
+
:rtype: int
|
|
4253
|
+
"""
|
|
4254
|
+
return self._ProtectedProperty
|
|
4255
|
+
|
|
4256
|
+
@ProtectedProperty.setter
|
|
4257
|
+
def ProtectedProperty(self, ProtectedProperty):
|
|
4258
|
+
self._ProtectedProperty = ProtectedProperty
|
|
4259
|
+
|
|
4246
4260
|
|
|
4247
4261
|
def _deserialize(self, params):
|
|
4248
4262
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -4305,6 +4319,7 @@ class DCDBInstanceInfo(AbstractModel):
|
|
|
4305
4319
|
obj._deserialize(item)
|
|
4306
4320
|
self._ResourceTags.append(obj)
|
|
4307
4321
|
self._DbVersionId = params.get("DbVersionId")
|
|
4322
|
+
self._ProtectedProperty = params.get("ProtectedProperty")
|
|
4308
4323
|
memeber_set = set(params.keys())
|
|
4309
4324
|
for name, value in vars(self).items():
|
|
4310
4325
|
property_name = name[1:]
|
|
@@ -7727,6 +7742,8 @@ class DescribeDCDBInstanceDetailResponse(AbstractModel):
|
|
|
7727
7742
|
:type IsDcnSwitchSupported: int
|
|
7728
7743
|
:param _CpuType: cpu类型,英特尔:Intel/AMD,海光:Hygon,默认Intel/AMD
|
|
7729
7744
|
:type CpuType: str
|
|
7745
|
+
:param _ProtectedProperty: 实例删除保护标签,1: 已开启删除保护,0: 未开启删除保护
|
|
7746
|
+
:type ProtectedProperty: int
|
|
7730
7747
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7731
7748
|
:type RequestId: str
|
|
7732
7749
|
"""
|
|
@@ -7785,6 +7802,7 @@ class DescribeDCDBInstanceDetailResponse(AbstractModel):
|
|
|
7785
7802
|
self._IsDcnStrongSyncSupported = None
|
|
7786
7803
|
self._IsDcnSwitchSupported = None
|
|
7787
7804
|
self._CpuType = None
|
|
7805
|
+
self._ProtectedProperty = None
|
|
7788
7806
|
self._RequestId = None
|
|
7789
7807
|
|
|
7790
7808
|
@property
|
|
@@ -8392,6 +8410,17 @@ class DescribeDCDBInstanceDetailResponse(AbstractModel):
|
|
|
8392
8410
|
def CpuType(self, CpuType):
|
|
8393
8411
|
self._CpuType = CpuType
|
|
8394
8412
|
|
|
8413
|
+
@property
|
|
8414
|
+
def ProtectedProperty(self):
|
|
8415
|
+
"""实例删除保护标签,1: 已开启删除保护,0: 未开启删除保护
|
|
8416
|
+
:rtype: int
|
|
8417
|
+
"""
|
|
8418
|
+
return self._ProtectedProperty
|
|
8419
|
+
|
|
8420
|
+
@ProtectedProperty.setter
|
|
8421
|
+
def ProtectedProperty(self, ProtectedProperty):
|
|
8422
|
+
self._ProtectedProperty = ProtectedProperty
|
|
8423
|
+
|
|
8395
8424
|
@property
|
|
8396
8425
|
def RequestId(self):
|
|
8397
8426
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -8475,6 +8504,7 @@ class DescribeDCDBInstanceDetailResponse(AbstractModel):
|
|
|
8475
8504
|
self._IsDcnStrongSyncSupported = params.get("IsDcnStrongSyncSupported")
|
|
8476
8505
|
self._IsDcnSwitchSupported = params.get("IsDcnSwitchSupported")
|
|
8477
8506
|
self._CpuType = params.get("CpuType")
|
|
8507
|
+
self._ProtectedProperty = params.get("ProtectedProperty")
|
|
8478
8508
|
self._RequestId = params.get("RequestId")
|
|
8479
8509
|
|
|
8480
8510
|
|
|
@@ -10534,6 +10564,85 @@ class DescribeFlowResponse(AbstractModel):
|
|
|
10534
10564
|
self._RequestId = params.get("RequestId")
|
|
10535
10565
|
|
|
10536
10566
|
|
|
10567
|
+
class DescribeInstanceSSLAttributesRequest(AbstractModel):
|
|
10568
|
+
"""DescribeInstanceSSLAttributes请求参数结构体
|
|
10569
|
+
|
|
10570
|
+
"""
|
|
10571
|
+
|
|
10572
|
+
def __init__(self):
|
|
10573
|
+
r"""
|
|
10574
|
+
:param _InstanceId: 实例ID
|
|
10575
|
+
:type InstanceId: str
|
|
10576
|
+
"""
|
|
10577
|
+
self._InstanceId = None
|
|
10578
|
+
|
|
10579
|
+
@property
|
|
10580
|
+
def InstanceId(self):
|
|
10581
|
+
"""实例ID
|
|
10582
|
+
:rtype: str
|
|
10583
|
+
"""
|
|
10584
|
+
return self._InstanceId
|
|
10585
|
+
|
|
10586
|
+
@InstanceId.setter
|
|
10587
|
+
def InstanceId(self, InstanceId):
|
|
10588
|
+
self._InstanceId = InstanceId
|
|
10589
|
+
|
|
10590
|
+
|
|
10591
|
+
def _deserialize(self, params):
|
|
10592
|
+
self._InstanceId = params.get("InstanceId")
|
|
10593
|
+
memeber_set = set(params.keys())
|
|
10594
|
+
for name, value in vars(self).items():
|
|
10595
|
+
property_name = name[1:]
|
|
10596
|
+
if property_name in memeber_set:
|
|
10597
|
+
memeber_set.remove(property_name)
|
|
10598
|
+
if len(memeber_set) > 0:
|
|
10599
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10600
|
+
|
|
10601
|
+
|
|
10602
|
+
|
|
10603
|
+
class DescribeInstanceSSLAttributesResponse(AbstractModel):
|
|
10604
|
+
"""DescribeInstanceSSLAttributes返回参数结构体
|
|
10605
|
+
|
|
10606
|
+
"""
|
|
10607
|
+
|
|
10608
|
+
def __init__(self):
|
|
10609
|
+
r"""
|
|
10610
|
+
:param _Status: 实例SSL认证功能当前状态。1-开启中;2-已开启;3-已关闭;4-关闭中
|
|
10611
|
+
:type Status: int
|
|
10612
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10613
|
+
:type RequestId: str
|
|
10614
|
+
"""
|
|
10615
|
+
self._Status = None
|
|
10616
|
+
self._RequestId = None
|
|
10617
|
+
|
|
10618
|
+
@property
|
|
10619
|
+
def Status(self):
|
|
10620
|
+
"""实例SSL认证功能当前状态。1-开启中;2-已开启;3-已关闭;4-关闭中
|
|
10621
|
+
:rtype: int
|
|
10622
|
+
"""
|
|
10623
|
+
return self._Status
|
|
10624
|
+
|
|
10625
|
+
@Status.setter
|
|
10626
|
+
def Status(self, Status):
|
|
10627
|
+
self._Status = Status
|
|
10628
|
+
|
|
10629
|
+
@property
|
|
10630
|
+
def RequestId(self):
|
|
10631
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10632
|
+
:rtype: str
|
|
10633
|
+
"""
|
|
10634
|
+
return self._RequestId
|
|
10635
|
+
|
|
10636
|
+
@RequestId.setter
|
|
10637
|
+
def RequestId(self, RequestId):
|
|
10638
|
+
self._RequestId = RequestId
|
|
10639
|
+
|
|
10640
|
+
|
|
10641
|
+
def _deserialize(self, params):
|
|
10642
|
+
self._Status = params.get("Status")
|
|
10643
|
+
self._RequestId = params.get("RequestId")
|
|
10644
|
+
|
|
10645
|
+
|
|
10537
10646
|
class DescribeLogFileRetentionPeriodRequest(AbstractModel):
|
|
10538
10647
|
"""DescribeLogFileRetentionPeriod请求参数结构体
|
|
10539
10648
|
|
|
@@ -10871,6 +10980,267 @@ class DescribeOrdersResponse(AbstractModel):
|
|
|
10871
10980
|
self._RequestId = params.get("RequestId")
|
|
10872
10981
|
|
|
10873
10982
|
|
|
10983
|
+
class DescribeProcessListRequest(AbstractModel):
|
|
10984
|
+
"""DescribeProcessList请求参数结构体
|
|
10985
|
+
|
|
10986
|
+
"""
|
|
10987
|
+
|
|
10988
|
+
def __init__(self):
|
|
10989
|
+
r"""
|
|
10990
|
+
:param _InstanceId: 实例ID。
|
|
10991
|
+
:type InstanceId: str
|
|
10992
|
+
:param _NodeId: 节点ID。
|
|
10993
|
+
:type NodeId: str
|
|
10994
|
+
:param _ShardId: 分片ID,与ShardSerialId设置一个。
|
|
10995
|
+
:type ShardId: str
|
|
10996
|
+
:param _ShardSerialId: 分片序列ID,与ShardId设置一个。
|
|
10997
|
+
:type ShardSerialId: str
|
|
10998
|
+
:param _Filters: <li><strong>id</strong></li>
|
|
10999
|
+
<p style="padding-left: 30px;">按照【<strong>会话ID</strong>】进行过滤。会话ID例如:125700。</p>
|
|
11000
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11001
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11002
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11003
|
+
|
|
11004
|
+
<li><strong>user</strong></li>
|
|
11005
|
+
<p style="padding-left: 30px;">按照【<strong>用户名</strong>】进行过滤。用户名例如:root。</p>
|
|
11006
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11007
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11008
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11009
|
+
<li><strong>host</strong></li>
|
|
11010
|
+
<p style="padding-left: 30px;">按照【<strong>客户端Host</strong>】进行过滤。客户端Host例如:127.0.0.1:46295。</p>
|
|
11011
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11012
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11013
|
+
<p style="padding-left: 30px;">匹配类型:前缀匹配,例如可以查询客户端IP不加端口:127.0.0.1。</p>
|
|
11014
|
+
<li><strong>state</strong></li>
|
|
11015
|
+
<p style="padding-left: 30px;">按照【<strong>线程状态</strong>】进行过滤。线程状态例如:Updating。</p>
|
|
11016
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11017
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11018
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11019
|
+
<li><strong>db</strong></li>
|
|
11020
|
+
<p style="padding-left: 30px;">按照【<strong>数据库名称</strong>】进行过滤。数据库名称例如:mysql。</p>
|
|
11021
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11022
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11023
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11024
|
+
<li><strong>command</strong></li>
|
|
11025
|
+
<p style="padding-left: 30px;">按照【<strong>命令类型</strong>】进行过滤。命令类型例如:Query。</p>
|
|
11026
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11027
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11028
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11029
|
+
<li><strong>info</strong></li>
|
|
11030
|
+
<p style="padding-left: 30px;">按照【<strong>执行语句</strong>】进行过滤。执行语句例如:select id, name from demo.table1 where id > 10。</p>
|
|
11031
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11032
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11033
|
+
<p style="padding-left: 30px;">匹配类型:前缀匹配,例如SQL较长,可以输入SQL前缀:select id, name from demo.table1。</p>
|
|
11034
|
+
<li><strong>time</strong></li>
|
|
11035
|
+
<p style="padding-left: 30px;">按照【<strong>执行时间大于多少(秒)</strong>】进行过滤。例如:10,表示查询执行时间超过10秒的会话。</p>
|
|
11036
|
+
<p style="padding-left: 30px;">类型:Integer</p>
|
|
11037
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11038
|
+
<p style="padding-left: 30px;">匹配类型:范围匹配,Values值只支持输入1个。</p>
|
|
11039
|
+
每次请求的`Filters`的上限为10,`Filter.Values`的上限为50。
|
|
11040
|
+
:type Filters: list of Filter
|
|
11041
|
+
:param _Offset: 偏移量,默认为0。
|
|
11042
|
+
:type Offset: int
|
|
11043
|
+
:param _Limit: 返回数量,默认为20,最大值为100。
|
|
11044
|
+
:type Limit: int
|
|
11045
|
+
"""
|
|
11046
|
+
self._InstanceId = None
|
|
11047
|
+
self._NodeId = None
|
|
11048
|
+
self._ShardId = None
|
|
11049
|
+
self._ShardSerialId = None
|
|
11050
|
+
self._Filters = None
|
|
11051
|
+
self._Offset = None
|
|
11052
|
+
self._Limit = None
|
|
11053
|
+
|
|
11054
|
+
@property
|
|
11055
|
+
def InstanceId(self):
|
|
11056
|
+
"""实例ID。
|
|
11057
|
+
:rtype: str
|
|
11058
|
+
"""
|
|
11059
|
+
return self._InstanceId
|
|
11060
|
+
|
|
11061
|
+
@InstanceId.setter
|
|
11062
|
+
def InstanceId(self, InstanceId):
|
|
11063
|
+
self._InstanceId = InstanceId
|
|
11064
|
+
|
|
11065
|
+
@property
|
|
11066
|
+
def NodeId(self):
|
|
11067
|
+
"""节点ID。
|
|
11068
|
+
:rtype: str
|
|
11069
|
+
"""
|
|
11070
|
+
return self._NodeId
|
|
11071
|
+
|
|
11072
|
+
@NodeId.setter
|
|
11073
|
+
def NodeId(self, NodeId):
|
|
11074
|
+
self._NodeId = NodeId
|
|
11075
|
+
|
|
11076
|
+
@property
|
|
11077
|
+
def ShardId(self):
|
|
11078
|
+
"""分片ID,与ShardSerialId设置一个。
|
|
11079
|
+
:rtype: str
|
|
11080
|
+
"""
|
|
11081
|
+
return self._ShardId
|
|
11082
|
+
|
|
11083
|
+
@ShardId.setter
|
|
11084
|
+
def ShardId(self, ShardId):
|
|
11085
|
+
self._ShardId = ShardId
|
|
11086
|
+
|
|
11087
|
+
@property
|
|
11088
|
+
def ShardSerialId(self):
|
|
11089
|
+
"""分片序列ID,与ShardId设置一个。
|
|
11090
|
+
:rtype: str
|
|
11091
|
+
"""
|
|
11092
|
+
return self._ShardSerialId
|
|
11093
|
+
|
|
11094
|
+
@ShardSerialId.setter
|
|
11095
|
+
def ShardSerialId(self, ShardSerialId):
|
|
11096
|
+
self._ShardSerialId = ShardSerialId
|
|
11097
|
+
|
|
11098
|
+
@property
|
|
11099
|
+
def Filters(self):
|
|
11100
|
+
"""<li><strong>id</strong></li>
|
|
11101
|
+
<p style="padding-left: 30px;">按照【<strong>会话ID</strong>】进行过滤。会话ID例如:125700。</p>
|
|
11102
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11103
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11104
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11105
|
+
|
|
11106
|
+
<li><strong>user</strong></li>
|
|
11107
|
+
<p style="padding-left: 30px;">按照【<strong>用户名</strong>】进行过滤。用户名例如:root。</p>
|
|
11108
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11109
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11110
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11111
|
+
<li><strong>host</strong></li>
|
|
11112
|
+
<p style="padding-left: 30px;">按照【<strong>客户端Host</strong>】进行过滤。客户端Host例如:127.0.0.1:46295。</p>
|
|
11113
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11114
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11115
|
+
<p style="padding-left: 30px;">匹配类型:前缀匹配,例如可以查询客户端IP不加端口:127.0.0.1。</p>
|
|
11116
|
+
<li><strong>state</strong></li>
|
|
11117
|
+
<p style="padding-left: 30px;">按照【<strong>线程状态</strong>】进行过滤。线程状态例如:Updating。</p>
|
|
11118
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11119
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11120
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11121
|
+
<li><strong>db</strong></li>
|
|
11122
|
+
<p style="padding-left: 30px;">按照【<strong>数据库名称</strong>】进行过滤。数据库名称例如:mysql。</p>
|
|
11123
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11124
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11125
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11126
|
+
<li><strong>command</strong></li>
|
|
11127
|
+
<p style="padding-left: 30px;">按照【<strong>命令类型</strong>】进行过滤。命令类型例如:Query。</p>
|
|
11128
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11129
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11130
|
+
<p style="padding-left: 30px;">匹配类型:精确匹配</p>
|
|
11131
|
+
<li><strong>info</strong></li>
|
|
11132
|
+
<p style="padding-left: 30px;">按照【<strong>执行语句</strong>】进行过滤。执行语句例如:select id, name from demo.table1 where id > 10。</p>
|
|
11133
|
+
<p style="padding-left: 30px;">类型:String</p>
|
|
11134
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11135
|
+
<p style="padding-left: 30px;">匹配类型:前缀匹配,例如SQL较长,可以输入SQL前缀:select id, name from demo.table1。</p>
|
|
11136
|
+
<li><strong>time</strong></li>
|
|
11137
|
+
<p style="padding-left: 30px;">按照【<strong>执行时间大于多少(秒)</strong>】进行过滤。例如:10,表示查询执行时间超过10秒的会话。</p>
|
|
11138
|
+
<p style="padding-left: 30px;">类型:Integer</p>
|
|
11139
|
+
<p style="padding-left: 30px;">必选:否</p>
|
|
11140
|
+
<p style="padding-left: 30px;">匹配类型:范围匹配,Values值只支持输入1个。</p>
|
|
11141
|
+
每次请求的`Filters`的上限为10,`Filter.Values`的上限为50。
|
|
11142
|
+
:rtype: list of Filter
|
|
11143
|
+
"""
|
|
11144
|
+
return self._Filters
|
|
11145
|
+
|
|
11146
|
+
@Filters.setter
|
|
11147
|
+
def Filters(self, Filters):
|
|
11148
|
+
self._Filters = Filters
|
|
11149
|
+
|
|
11150
|
+
@property
|
|
11151
|
+
def Offset(self):
|
|
11152
|
+
"""偏移量,默认为0。
|
|
11153
|
+
:rtype: int
|
|
11154
|
+
"""
|
|
11155
|
+
return self._Offset
|
|
11156
|
+
|
|
11157
|
+
@Offset.setter
|
|
11158
|
+
def Offset(self, Offset):
|
|
11159
|
+
self._Offset = Offset
|
|
11160
|
+
|
|
11161
|
+
@property
|
|
11162
|
+
def Limit(self):
|
|
11163
|
+
"""返回数量,默认为20,最大值为100。
|
|
11164
|
+
:rtype: int
|
|
11165
|
+
"""
|
|
11166
|
+
return self._Limit
|
|
11167
|
+
|
|
11168
|
+
@Limit.setter
|
|
11169
|
+
def Limit(self, Limit):
|
|
11170
|
+
self._Limit = Limit
|
|
11171
|
+
|
|
11172
|
+
|
|
11173
|
+
def _deserialize(self, params):
|
|
11174
|
+
self._InstanceId = params.get("InstanceId")
|
|
11175
|
+
self._NodeId = params.get("NodeId")
|
|
11176
|
+
self._ShardId = params.get("ShardId")
|
|
11177
|
+
self._ShardSerialId = params.get("ShardSerialId")
|
|
11178
|
+
if params.get("Filters") is not None:
|
|
11179
|
+
self._Filters = []
|
|
11180
|
+
for item in params.get("Filters"):
|
|
11181
|
+
obj = Filter()
|
|
11182
|
+
obj._deserialize(item)
|
|
11183
|
+
self._Filters.append(obj)
|
|
11184
|
+
self._Offset = params.get("Offset")
|
|
11185
|
+
self._Limit = params.get("Limit")
|
|
11186
|
+
memeber_set = set(params.keys())
|
|
11187
|
+
for name, value in vars(self).items():
|
|
11188
|
+
property_name = name[1:]
|
|
11189
|
+
if property_name in memeber_set:
|
|
11190
|
+
memeber_set.remove(property_name)
|
|
11191
|
+
if len(memeber_set) > 0:
|
|
11192
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11193
|
+
|
|
11194
|
+
|
|
11195
|
+
|
|
11196
|
+
class DescribeProcessListResponse(AbstractModel):
|
|
11197
|
+
"""DescribeProcessList返回参数结构体
|
|
11198
|
+
|
|
11199
|
+
"""
|
|
11200
|
+
|
|
11201
|
+
def __init__(self):
|
|
11202
|
+
r"""
|
|
11203
|
+
:param _ProcessList: 当前正在运行的线程(连接/查询)信息列表。
|
|
11204
|
+
:type ProcessList: list of Process
|
|
11205
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11206
|
+
:type RequestId: str
|
|
11207
|
+
"""
|
|
11208
|
+
self._ProcessList = None
|
|
11209
|
+
self._RequestId = None
|
|
11210
|
+
|
|
11211
|
+
@property
|
|
11212
|
+
def ProcessList(self):
|
|
11213
|
+
"""当前正在运行的线程(连接/查询)信息列表。
|
|
11214
|
+
:rtype: list of Process
|
|
11215
|
+
"""
|
|
11216
|
+
return self._ProcessList
|
|
11217
|
+
|
|
11218
|
+
@ProcessList.setter
|
|
11219
|
+
def ProcessList(self, ProcessList):
|
|
11220
|
+
self._ProcessList = ProcessList
|
|
11221
|
+
|
|
11222
|
+
@property
|
|
11223
|
+
def RequestId(self):
|
|
11224
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11225
|
+
:rtype: str
|
|
11226
|
+
"""
|
|
11227
|
+
return self._RequestId
|
|
11228
|
+
|
|
11229
|
+
@RequestId.setter
|
|
11230
|
+
def RequestId(self, RequestId):
|
|
11231
|
+
self._RequestId = RequestId
|
|
11232
|
+
|
|
11233
|
+
|
|
11234
|
+
def _deserialize(self, params):
|
|
11235
|
+
if params.get("ProcessList") is not None:
|
|
11236
|
+
self._ProcessList = []
|
|
11237
|
+
for item in params.get("ProcessList"):
|
|
11238
|
+
obj = Process()
|
|
11239
|
+
obj._deserialize(item)
|
|
11240
|
+
self._ProcessList.append(obj)
|
|
11241
|
+
self._RequestId = params.get("RequestId")
|
|
11242
|
+
|
|
11243
|
+
|
|
10874
11244
|
class DescribeProjectSecurityGroupsRequest(AbstractModel):
|
|
10875
11245
|
"""DescribeProjectSecurityGroups请求参数结构体
|
|
10876
11246
|
|
|
@@ -11690,6 +12060,60 @@ class ExpandShardConfig(AbstractModel):
|
|
|
11690
12060
|
|
|
11691
12061
|
|
|
11692
12062
|
|
|
12063
|
+
class Filter(AbstractModel):
|
|
12064
|
+
"""描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
|
|
12065
|
+
|
|
12066
|
+
若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
|
|
12067
|
+
若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
|
|
12068
|
+
|
|
12069
|
+
"""
|
|
12070
|
+
|
|
12071
|
+
def __init__(self):
|
|
12072
|
+
r"""
|
|
12073
|
+
:param _Name: 需要过滤的字段。
|
|
12074
|
+
:type Name: str
|
|
12075
|
+
:param _Values: 字段的过滤值。
|
|
12076
|
+
:type Values: list of str
|
|
12077
|
+
"""
|
|
12078
|
+
self._Name = None
|
|
12079
|
+
self._Values = None
|
|
12080
|
+
|
|
12081
|
+
@property
|
|
12082
|
+
def Name(self):
|
|
12083
|
+
"""需要过滤的字段。
|
|
12084
|
+
:rtype: str
|
|
12085
|
+
"""
|
|
12086
|
+
return self._Name
|
|
12087
|
+
|
|
12088
|
+
@Name.setter
|
|
12089
|
+
def Name(self, Name):
|
|
12090
|
+
self._Name = Name
|
|
12091
|
+
|
|
12092
|
+
@property
|
|
12093
|
+
def Values(self):
|
|
12094
|
+
"""字段的过滤值。
|
|
12095
|
+
:rtype: list of str
|
|
12096
|
+
"""
|
|
12097
|
+
return self._Values
|
|
12098
|
+
|
|
12099
|
+
@Values.setter
|
|
12100
|
+
def Values(self, Values):
|
|
12101
|
+
self._Values = Values
|
|
12102
|
+
|
|
12103
|
+
|
|
12104
|
+
def _deserialize(self, params):
|
|
12105
|
+
self._Name = params.get("Name")
|
|
12106
|
+
self._Values = params.get("Values")
|
|
12107
|
+
memeber_set = set(params.keys())
|
|
12108
|
+
for name, value in vars(self).items():
|
|
12109
|
+
property_name = name[1:]
|
|
12110
|
+
if property_name in memeber_set:
|
|
12111
|
+
memeber_set.remove(property_name)
|
|
12112
|
+
if len(memeber_set) > 0:
|
|
12113
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12114
|
+
|
|
12115
|
+
|
|
12116
|
+
|
|
11693
12117
|
class FlushBinlogRequest(AbstractModel):
|
|
11694
12118
|
"""FlushBinlog请求参数结构体
|
|
11695
12119
|
|
|
@@ -12511,11 +12935,14 @@ class KillSessionRequest(AbstractModel):
|
|
|
12511
12935
|
:type ShardId: str
|
|
12512
12936
|
:param _ShardSerialId: 分片序列ID,与ShardId设置一个
|
|
12513
12937
|
:type ShardSerialId: str
|
|
12938
|
+
:param _NodeId: 节点ID,可指定主节点或者备节点进行kill。可选参数,不传默认为主节点。
|
|
12939
|
+
:type NodeId: str
|
|
12514
12940
|
"""
|
|
12515
12941
|
self._InstanceId = None
|
|
12516
12942
|
self._SessionId = None
|
|
12517
12943
|
self._ShardId = None
|
|
12518
12944
|
self._ShardSerialId = None
|
|
12945
|
+
self._NodeId = None
|
|
12519
12946
|
|
|
12520
12947
|
@property
|
|
12521
12948
|
def InstanceId(self):
|
|
@@ -12561,12 +12988,24 @@ class KillSessionRequest(AbstractModel):
|
|
|
12561
12988
|
def ShardSerialId(self, ShardSerialId):
|
|
12562
12989
|
self._ShardSerialId = ShardSerialId
|
|
12563
12990
|
|
|
12991
|
+
@property
|
|
12992
|
+
def NodeId(self):
|
|
12993
|
+
"""节点ID,可指定主节点或者备节点进行kill。可选参数,不传默认为主节点。
|
|
12994
|
+
:rtype: str
|
|
12995
|
+
"""
|
|
12996
|
+
return self._NodeId
|
|
12997
|
+
|
|
12998
|
+
@NodeId.setter
|
|
12999
|
+
def NodeId(self, NodeId):
|
|
13000
|
+
self._NodeId = NodeId
|
|
13001
|
+
|
|
12564
13002
|
|
|
12565
13003
|
def _deserialize(self, params):
|
|
12566
13004
|
self._InstanceId = params.get("InstanceId")
|
|
12567
13005
|
self._SessionId = params.get("SessionId")
|
|
12568
13006
|
self._ShardId = params.get("ShardId")
|
|
12569
13007
|
self._ShardSerialId = params.get("ShardSerialId")
|
|
13008
|
+
self._NodeId = params.get("NodeId")
|
|
12570
13009
|
memeber_set = set(params.keys())
|
|
12571
13010
|
for name, value in vars(self).items():
|
|
12572
13011
|
property_name = name[1:]
|
|
@@ -13471,7 +13910,7 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
|
|
|
13471
13910
|
:type Product: str
|
|
13472
13911
|
:param _InstanceId: 实例ID。
|
|
13473
13912
|
:type InstanceId: str
|
|
13474
|
-
:param _SecurityGroupIds: 要修改的安全组 ID 列表,一个或者多个安全组 ID
|
|
13913
|
+
:param _SecurityGroupIds: 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。<br>注意:该入参会全量替换存量已有安全组集合,并非增量更新。修改需传入全量的预期集合。
|
|
13475
13914
|
:type SecurityGroupIds: list of str
|
|
13476
13915
|
"""
|
|
13477
13916
|
self._Product = None
|
|
@@ -13502,7 +13941,7 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
|
|
|
13502
13941
|
|
|
13503
13942
|
@property
|
|
13504
13943
|
def SecurityGroupIds(self):
|
|
13505
|
-
"""要修改的安全组 ID 列表,一个或者多个安全组 ID
|
|
13944
|
+
"""要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。<br>注意:该入参会全量替换存量已有安全组集合,并非增量更新。修改需传入全量的预期集合。
|
|
13506
13945
|
:rtype: list of str
|
|
13507
13946
|
"""
|
|
13508
13947
|
return self._SecurityGroupIds
|
|
@@ -14000,6 +14439,164 @@ class ModifyInstanceNetworkResponse(AbstractModel):
|
|
|
14000
14439
|
self._RequestId = params.get("RequestId")
|
|
14001
14440
|
|
|
14002
14441
|
|
|
14442
|
+
class ModifyInstanceProtectedPropertyRequest(AbstractModel):
|
|
14443
|
+
"""ModifyInstanceProtectedProperty请求参数结构体
|
|
14444
|
+
|
|
14445
|
+
"""
|
|
14446
|
+
|
|
14447
|
+
def __init__(self):
|
|
14448
|
+
r"""
|
|
14449
|
+
:param _InstanceId: 实例Id
|
|
14450
|
+
:type InstanceId: str
|
|
14451
|
+
:param _ProtectedProperty: 0-允许删除,无销毁保护,1-禁止删除,有销毁保护
|
|
14452
|
+
:type ProtectedProperty: int
|
|
14453
|
+
"""
|
|
14454
|
+
self._InstanceId = None
|
|
14455
|
+
self._ProtectedProperty = None
|
|
14456
|
+
|
|
14457
|
+
@property
|
|
14458
|
+
def InstanceId(self):
|
|
14459
|
+
"""实例Id
|
|
14460
|
+
:rtype: str
|
|
14461
|
+
"""
|
|
14462
|
+
return self._InstanceId
|
|
14463
|
+
|
|
14464
|
+
@InstanceId.setter
|
|
14465
|
+
def InstanceId(self, InstanceId):
|
|
14466
|
+
self._InstanceId = InstanceId
|
|
14467
|
+
|
|
14468
|
+
@property
|
|
14469
|
+
def ProtectedProperty(self):
|
|
14470
|
+
"""0-允许删除,无销毁保护,1-禁止删除,有销毁保护
|
|
14471
|
+
:rtype: int
|
|
14472
|
+
"""
|
|
14473
|
+
return self._ProtectedProperty
|
|
14474
|
+
|
|
14475
|
+
@ProtectedProperty.setter
|
|
14476
|
+
def ProtectedProperty(self, ProtectedProperty):
|
|
14477
|
+
self._ProtectedProperty = ProtectedProperty
|
|
14478
|
+
|
|
14479
|
+
|
|
14480
|
+
def _deserialize(self, params):
|
|
14481
|
+
self._InstanceId = params.get("InstanceId")
|
|
14482
|
+
self._ProtectedProperty = params.get("ProtectedProperty")
|
|
14483
|
+
memeber_set = set(params.keys())
|
|
14484
|
+
for name, value in vars(self).items():
|
|
14485
|
+
property_name = name[1:]
|
|
14486
|
+
if property_name in memeber_set:
|
|
14487
|
+
memeber_set.remove(property_name)
|
|
14488
|
+
if len(memeber_set) > 0:
|
|
14489
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14490
|
+
|
|
14491
|
+
|
|
14492
|
+
|
|
14493
|
+
class ModifyInstanceProtectedPropertyResponse(AbstractModel):
|
|
14494
|
+
"""ModifyInstanceProtectedProperty返回参数结构体
|
|
14495
|
+
|
|
14496
|
+
"""
|
|
14497
|
+
|
|
14498
|
+
def __init__(self):
|
|
14499
|
+
r"""
|
|
14500
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14501
|
+
:type RequestId: str
|
|
14502
|
+
"""
|
|
14503
|
+
self._RequestId = None
|
|
14504
|
+
|
|
14505
|
+
@property
|
|
14506
|
+
def RequestId(self):
|
|
14507
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14508
|
+
:rtype: str
|
|
14509
|
+
"""
|
|
14510
|
+
return self._RequestId
|
|
14511
|
+
|
|
14512
|
+
@RequestId.setter
|
|
14513
|
+
def RequestId(self, RequestId):
|
|
14514
|
+
self._RequestId = RequestId
|
|
14515
|
+
|
|
14516
|
+
|
|
14517
|
+
def _deserialize(self, params):
|
|
14518
|
+
self._RequestId = params.get("RequestId")
|
|
14519
|
+
|
|
14520
|
+
|
|
14521
|
+
class ModifyInstanceSSLAttributesRequest(AbstractModel):
|
|
14522
|
+
"""ModifyInstanceSSLAttributes请求参数结构体
|
|
14523
|
+
|
|
14524
|
+
"""
|
|
14525
|
+
|
|
14526
|
+
def __init__(self):
|
|
14527
|
+
r"""
|
|
14528
|
+
:param _InstanceId: 实例ID
|
|
14529
|
+
:type InstanceId: str
|
|
14530
|
+
:param _SSLEnabled: 是否开启实例的SSL认证。0-关闭;1-开启
|
|
14531
|
+
:type SSLEnabled: int
|
|
14532
|
+
"""
|
|
14533
|
+
self._InstanceId = None
|
|
14534
|
+
self._SSLEnabled = None
|
|
14535
|
+
|
|
14536
|
+
@property
|
|
14537
|
+
def InstanceId(self):
|
|
14538
|
+
"""实例ID
|
|
14539
|
+
:rtype: str
|
|
14540
|
+
"""
|
|
14541
|
+
return self._InstanceId
|
|
14542
|
+
|
|
14543
|
+
@InstanceId.setter
|
|
14544
|
+
def InstanceId(self, InstanceId):
|
|
14545
|
+
self._InstanceId = InstanceId
|
|
14546
|
+
|
|
14547
|
+
@property
|
|
14548
|
+
def SSLEnabled(self):
|
|
14549
|
+
"""是否开启实例的SSL认证。0-关闭;1-开启
|
|
14550
|
+
:rtype: int
|
|
14551
|
+
"""
|
|
14552
|
+
return self._SSLEnabled
|
|
14553
|
+
|
|
14554
|
+
@SSLEnabled.setter
|
|
14555
|
+
def SSLEnabled(self, SSLEnabled):
|
|
14556
|
+
self._SSLEnabled = SSLEnabled
|
|
14557
|
+
|
|
14558
|
+
|
|
14559
|
+
def _deserialize(self, params):
|
|
14560
|
+
self._InstanceId = params.get("InstanceId")
|
|
14561
|
+
self._SSLEnabled = params.get("SSLEnabled")
|
|
14562
|
+
memeber_set = set(params.keys())
|
|
14563
|
+
for name, value in vars(self).items():
|
|
14564
|
+
property_name = name[1:]
|
|
14565
|
+
if property_name in memeber_set:
|
|
14566
|
+
memeber_set.remove(property_name)
|
|
14567
|
+
if len(memeber_set) > 0:
|
|
14568
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14569
|
+
|
|
14570
|
+
|
|
14571
|
+
|
|
14572
|
+
class ModifyInstanceSSLAttributesResponse(AbstractModel):
|
|
14573
|
+
"""ModifyInstanceSSLAttributes返回参数结构体
|
|
14574
|
+
|
|
14575
|
+
"""
|
|
14576
|
+
|
|
14577
|
+
def __init__(self):
|
|
14578
|
+
r"""
|
|
14579
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14580
|
+
:type RequestId: str
|
|
14581
|
+
"""
|
|
14582
|
+
self._RequestId = None
|
|
14583
|
+
|
|
14584
|
+
@property
|
|
14585
|
+
def RequestId(self):
|
|
14586
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14587
|
+
:rtype: str
|
|
14588
|
+
"""
|
|
14589
|
+
return self._RequestId
|
|
14590
|
+
|
|
14591
|
+
@RequestId.setter
|
|
14592
|
+
def RequestId(self, RequestId):
|
|
14593
|
+
self._RequestId = RequestId
|
|
14594
|
+
|
|
14595
|
+
|
|
14596
|
+
def _deserialize(self, params):
|
|
14597
|
+
self._RequestId = params.get("RequestId")
|
|
14598
|
+
|
|
14599
|
+
|
|
14003
14600
|
class ModifyInstanceVipRequest(AbstractModel):
|
|
14004
14601
|
"""ModifyInstanceVip请求参数结构体
|
|
14005
14602
|
|
|
@@ -14845,6 +15442,186 @@ class ParamModifyResult(AbstractModel):
|
|
|
14845
15442
|
|
|
14846
15443
|
|
|
14847
15444
|
|
|
15445
|
+
class Process(AbstractModel):
|
|
15446
|
+
"""用于显示当前正在运行的线程(连接/查询)信息,数据源来自系统表:information_schema.processlist。
|
|
15447
|
+
|
|
15448
|
+
"""
|
|
15449
|
+
|
|
15450
|
+
def __init__(self):
|
|
15451
|
+
r"""
|
|
15452
|
+
:param _Id: 线程ID:唯一标识当前连接/线程的整数。
|
|
15453
|
+
:type Id: int
|
|
15454
|
+
:param _User: 用户名:发起连接的 MySQL 用户。
|
|
15455
|
+
:type User: str
|
|
15456
|
+
:param _Host: 客户端地址:发起连接的客户端主机名及端口(格式:host:port)。
|
|
15457
|
+
:type Host: str
|
|
15458
|
+
:param _Db: 当前数据库:线程正在使用的数据库名(未选择数据库时为 空串)。
|
|
15459
|
+
:type Db: str
|
|
15460
|
+
:param _Command: 命令类型:线程正在执行的命令类型。常见值:
|
|
15461
|
+
|
|
15462
|
+
- Sleep:空闲等待状态(等待新查询)。
|
|
15463
|
+
- Query:正在执行查询或 SQL 语句。
|
|
15464
|
+
- Binlog Dump:主服务器线程向从服务器发送二进制日志。
|
|
15465
|
+
- Connect:客户端正在连接。
|
|
15466
|
+
- Killed:线程被终止但未完全退出。
|
|
15467
|
+
:type Command: str
|
|
15468
|
+
:param _Time: 执行时间(秒):线程在当前状态持续的秒数。
|
|
15469
|
+
:type Time: int
|
|
15470
|
+
:param _ProcessStartTime: 执行开始时间(秒):线程在当前状态开始执行的时间。
|
|
15471
|
+
:type ProcessStartTime: str
|
|
15472
|
+
:param _State: 状态描述:线程当前的详细操作状态。常见值:
|
|
15473
|
+
|
|
15474
|
+
- Sending data:正在处理/发送数据。
|
|
15475
|
+
- Locked:等待表锁释放(例如 MyISAM 表级锁)。
|
|
15476
|
+
- Sorting result:排序查询结果。
|
|
15477
|
+
- Updating:更新表中数据。
|
|
15478
|
+
- 当为NULL返回空串:无明确状态(如 Sleep 时)。
|
|
15479
|
+
:type State: str
|
|
15480
|
+
:param _Info: 执行语句:正在执行的 SQL 语句(前 1024 字符)。
|
|
15481
|
+
:type Info: str
|
|
15482
|
+
"""
|
|
15483
|
+
self._Id = None
|
|
15484
|
+
self._User = None
|
|
15485
|
+
self._Host = None
|
|
15486
|
+
self._Db = None
|
|
15487
|
+
self._Command = None
|
|
15488
|
+
self._Time = None
|
|
15489
|
+
self._ProcessStartTime = None
|
|
15490
|
+
self._State = None
|
|
15491
|
+
self._Info = None
|
|
15492
|
+
|
|
15493
|
+
@property
|
|
15494
|
+
def Id(self):
|
|
15495
|
+
"""线程ID:唯一标识当前连接/线程的整数。
|
|
15496
|
+
:rtype: int
|
|
15497
|
+
"""
|
|
15498
|
+
return self._Id
|
|
15499
|
+
|
|
15500
|
+
@Id.setter
|
|
15501
|
+
def Id(self, Id):
|
|
15502
|
+
self._Id = Id
|
|
15503
|
+
|
|
15504
|
+
@property
|
|
15505
|
+
def User(self):
|
|
15506
|
+
"""用户名:发起连接的 MySQL 用户。
|
|
15507
|
+
:rtype: str
|
|
15508
|
+
"""
|
|
15509
|
+
return self._User
|
|
15510
|
+
|
|
15511
|
+
@User.setter
|
|
15512
|
+
def User(self, User):
|
|
15513
|
+
self._User = User
|
|
15514
|
+
|
|
15515
|
+
@property
|
|
15516
|
+
def Host(self):
|
|
15517
|
+
"""客户端地址:发起连接的客户端主机名及端口(格式:host:port)。
|
|
15518
|
+
:rtype: str
|
|
15519
|
+
"""
|
|
15520
|
+
return self._Host
|
|
15521
|
+
|
|
15522
|
+
@Host.setter
|
|
15523
|
+
def Host(self, Host):
|
|
15524
|
+
self._Host = Host
|
|
15525
|
+
|
|
15526
|
+
@property
|
|
15527
|
+
def Db(self):
|
|
15528
|
+
"""当前数据库:线程正在使用的数据库名(未选择数据库时为 空串)。
|
|
15529
|
+
:rtype: str
|
|
15530
|
+
"""
|
|
15531
|
+
return self._Db
|
|
15532
|
+
|
|
15533
|
+
@Db.setter
|
|
15534
|
+
def Db(self, Db):
|
|
15535
|
+
self._Db = Db
|
|
15536
|
+
|
|
15537
|
+
@property
|
|
15538
|
+
def Command(self):
|
|
15539
|
+
"""命令类型:线程正在执行的命令类型。常见值:
|
|
15540
|
+
|
|
15541
|
+
- Sleep:空闲等待状态(等待新查询)。
|
|
15542
|
+
- Query:正在执行查询或 SQL 语句。
|
|
15543
|
+
- Binlog Dump:主服务器线程向从服务器发送二进制日志。
|
|
15544
|
+
- Connect:客户端正在连接。
|
|
15545
|
+
- Killed:线程被终止但未完全退出。
|
|
15546
|
+
:rtype: str
|
|
15547
|
+
"""
|
|
15548
|
+
return self._Command
|
|
15549
|
+
|
|
15550
|
+
@Command.setter
|
|
15551
|
+
def Command(self, Command):
|
|
15552
|
+
self._Command = Command
|
|
15553
|
+
|
|
15554
|
+
@property
|
|
15555
|
+
def Time(self):
|
|
15556
|
+
"""执行时间(秒):线程在当前状态持续的秒数。
|
|
15557
|
+
:rtype: int
|
|
15558
|
+
"""
|
|
15559
|
+
return self._Time
|
|
15560
|
+
|
|
15561
|
+
@Time.setter
|
|
15562
|
+
def Time(self, Time):
|
|
15563
|
+
self._Time = Time
|
|
15564
|
+
|
|
15565
|
+
@property
|
|
15566
|
+
def ProcessStartTime(self):
|
|
15567
|
+
"""执行开始时间(秒):线程在当前状态开始执行的时间。
|
|
15568
|
+
:rtype: str
|
|
15569
|
+
"""
|
|
15570
|
+
return self._ProcessStartTime
|
|
15571
|
+
|
|
15572
|
+
@ProcessStartTime.setter
|
|
15573
|
+
def ProcessStartTime(self, ProcessStartTime):
|
|
15574
|
+
self._ProcessStartTime = ProcessStartTime
|
|
15575
|
+
|
|
15576
|
+
@property
|
|
15577
|
+
def State(self):
|
|
15578
|
+
"""状态描述:线程当前的详细操作状态。常见值:
|
|
15579
|
+
|
|
15580
|
+
- Sending data:正在处理/发送数据。
|
|
15581
|
+
- Locked:等待表锁释放(例如 MyISAM 表级锁)。
|
|
15582
|
+
- Sorting result:排序查询结果。
|
|
15583
|
+
- Updating:更新表中数据。
|
|
15584
|
+
- 当为NULL返回空串:无明确状态(如 Sleep 时)。
|
|
15585
|
+
:rtype: str
|
|
15586
|
+
"""
|
|
15587
|
+
return self._State
|
|
15588
|
+
|
|
15589
|
+
@State.setter
|
|
15590
|
+
def State(self, State):
|
|
15591
|
+
self._State = State
|
|
15592
|
+
|
|
15593
|
+
@property
|
|
15594
|
+
def Info(self):
|
|
15595
|
+
"""执行语句:正在执行的 SQL 语句(前 1024 字符)。
|
|
15596
|
+
:rtype: str
|
|
15597
|
+
"""
|
|
15598
|
+
return self._Info
|
|
15599
|
+
|
|
15600
|
+
@Info.setter
|
|
15601
|
+
def Info(self, Info):
|
|
15602
|
+
self._Info = Info
|
|
15603
|
+
|
|
15604
|
+
|
|
15605
|
+
def _deserialize(self, params):
|
|
15606
|
+
self._Id = params.get("Id")
|
|
15607
|
+
self._User = params.get("User")
|
|
15608
|
+
self._Host = params.get("Host")
|
|
15609
|
+
self._Db = params.get("Db")
|
|
15610
|
+
self._Command = params.get("Command")
|
|
15611
|
+
self._Time = params.get("Time")
|
|
15612
|
+
self._ProcessStartTime = params.get("ProcessStartTime")
|
|
15613
|
+
self._State = params.get("State")
|
|
15614
|
+
self._Info = params.get("Info")
|
|
15615
|
+
memeber_set = set(params.keys())
|
|
15616
|
+
for name, value in vars(self).items():
|
|
15617
|
+
property_name = name[1:]
|
|
15618
|
+
if property_name in memeber_set:
|
|
15619
|
+
memeber_set.remove(property_name)
|
|
15620
|
+
if len(memeber_set) > 0:
|
|
15621
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15622
|
+
|
|
15623
|
+
|
|
15624
|
+
|
|
14848
15625
|
class Project(AbstractModel):
|
|
14849
15626
|
"""项目信息描述
|
|
14850
15627
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1450
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1416
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|