tencentcloud-sdk-dcdb 3.0.1094 → 3.0.1130

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58634c94ead5543cdea30e71f966f51974a20903
4
- data.tar.gz: 4c51aa30abe6ec86350e04a4fa68265f14c91ac7
3
+ metadata.gz: 91fe74deb059695fbd299da0bc55d102a8050526
4
+ data.tar.gz: 3f36f42bbe971cb888fc5d825dce8a6836dec7b4
5
5
  SHA512:
6
- metadata.gz: 8a1000bd507e1c0785f0685e4649d56de2755ae3f32770671e69deb20509b4557cb20de64f40def2572427fb13570b545fadbd473cab5f2566c646b4958875c6
7
- data.tar.gz: bc1ad19b222fae46d092e1ce5a7015240273a8c43899af7722eb2a39d3bf294e23292b167b69f7c5d179a71f3b3cfb698c466c2b92e823541a19fc763131328c
6
+ metadata.gz: 824290e3a3af9641a1511c7920f072f8de907e77474c2861a94718c40fd9cf82fd80efcb26a6d5e78fab7a5baed7226db62aa30d0538bfbfee5132139f3a6b0c
7
+ data.tar.gz: 6d62a79af961d386028f0cecd3d7e8476a110449257c906d46c9515c73d7ca7869f12e363361265d573298d8ed78b6be202c862d183e6548ef72c6839326b5f4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1094
1
+ 3.0.1130
@@ -992,6 +992,30 @@ module TencentCloud
992
992
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
993
993
  end
994
994
 
995
+ # 本接口(DescribeInstanceSSLAttributes)用于拉取实例SSL认证属性
996
+
997
+ # @param request: Request instance for DescribeInstanceSSLAttributes.
998
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeInstanceSSLAttributesRequest`
999
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeInstanceSSLAttributesResponse`
1000
+ def DescribeInstanceSSLAttributes(request)
1001
+ body = send_request('DescribeInstanceSSLAttributes', request.serialize)
1002
+ response = JSON.parse(body)
1003
+ if response['Response'].key?('Error') == false
1004
+ model = DescribeInstanceSSLAttributesResponse.new
1005
+ model.deserialize(response['Response'])
1006
+ model
1007
+ else
1008
+ code = response['Response']['Error']['Code']
1009
+ message = response['Response']['Error']['Message']
1010
+ reqid = response['Response']['RequestId']
1011
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1012
+ end
1013
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1014
+ raise e
1015
+ rescue StandardError => e
1016
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1017
+ end
1018
+
995
1019
  # 本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。
996
1020
 
997
1021
  # @param request: Request instance for DescribeLogFileRetentionPeriod.
@@ -1064,6 +1088,33 @@ module TencentCloud
1064
1088
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1065
1089
  end
1066
1090
 
1091
+ # 本接口 (DescribeProcessList) 用于查询当前正在运行的线程(连接/查询)信息。
1092
+
1093
+ # - 可以根据客户端IP,DB,执行时间等信息来查询实例正在运行的线程信息。过滤信息详细请见过滤器Filter。
1094
+ # - 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的线程信息。
1095
+
1096
+ # @param request: Request instance for DescribeProcessList.
1097
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeProcessListRequest`
1098
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeProcessListResponse`
1099
+ def DescribeProcessList(request)
1100
+ body = send_request('DescribeProcessList', request.serialize)
1101
+ response = JSON.parse(body)
1102
+ if response['Response'].key?('Error') == false
1103
+ model = DescribeProcessListResponse.new
1104
+ model.deserialize(response['Response'])
1105
+ model
1106
+ else
1107
+ code = response['Response']['Error']['Code']
1108
+ message = response['Response']['Error']['Message']
1109
+ reqid = response['Response']['RequestId']
1110
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1111
+ end
1112
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1113
+ raise e
1114
+ rescue StandardError => e
1115
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1116
+ end
1117
+
1067
1118
  # 本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息
1068
1119
 
1069
1120
  # @param request: Request instance for DescribeProjectSecurityGroups.
@@ -1673,6 +1724,54 @@ module TencentCloud
1673
1724
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1674
1725
  end
1675
1726
 
1727
+ # 该接口用于修改实例的保护属性
1728
+
1729
+ # @param request: Request instance for ModifyInstanceProtectedProperty.
1730
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceProtectedPropertyRequest`
1731
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceProtectedPropertyResponse`
1732
+ def ModifyInstanceProtectedProperty(request)
1733
+ body = send_request('ModifyInstanceProtectedProperty', request.serialize)
1734
+ response = JSON.parse(body)
1735
+ if response['Response'].key?('Error') == false
1736
+ model = ModifyInstanceProtectedPropertyResponse.new
1737
+ model.deserialize(response['Response'])
1738
+ model
1739
+ else
1740
+ code = response['Response']['Error']['Code']
1741
+ message = response['Response']['Error']['Message']
1742
+ reqid = response['Response']['RequestId']
1743
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1744
+ end
1745
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1746
+ raise e
1747
+ rescue StandardError => e
1748
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1749
+ end
1750
+
1751
+ # 本接口 (ModifyInstanceSSLAttributes)用于修改实例SSL认证功能属性
1752
+
1753
+ # @param request: Request instance for ModifyInstanceSSLAttributes.
1754
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceSSLAttributesRequest`
1755
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceSSLAttributesResponse`
1756
+ def ModifyInstanceSSLAttributes(request)
1757
+ body = send_request('ModifyInstanceSSLAttributes', request.serialize)
1758
+ response = JSON.parse(body)
1759
+ if response['Response'].key?('Error') == false
1760
+ model = ModifyInstanceSSLAttributesResponse.new
1761
+ model.deserialize(response['Response'])
1762
+ model
1763
+ else
1764
+ code = response['Response']['Error']['Code']
1765
+ message = response['Response']['Error']['Message']
1766
+ reqid = response['Response']['RequestId']
1767
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1768
+ end
1769
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1770
+ raise e
1771
+ rescue StandardError => e
1772
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1773
+ end
1774
+
1676
1775
  # 本接口(ModifyInstanceVip)用于修改实例Vip
1677
1776
 
1678
1777
  # @param request: Request instance for ModifyInstanceVip.
@@ -1354,10 +1354,12 @@ module TencentCloud
1354
1354
  # @type ResourceTags: Array
1355
1355
  # @param DbVersionId: 数据库引擎版本
1356
1356
  # @type DbVersionId: String
1357
+ # @param ProtectedProperty: 实例删除保护标签,1: 已开启删除保护,0: 未开启删除保护
1358
+ # @type ProtectedProperty: Integer
1357
1359
 
1358
- attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :StatusDesc, :Status, :Vip, :Vport, :CreateTime, :AutoRenewFlag, :Memory, :Storage, :ShardCount, :PeriodEndTime, :IsolatedTimestamp, :Uin, :ShardDetail, :NodeCount, :IsTmp, :ExclusterId, :UniqueVpcId, :UniqueSubnetId, :Id, :WanDomain, :WanVip, :WanPort, :Pid, :UpdateTime, :DbEngine, :DbVersion, :Paymode, :Locker, :WanStatus, :IsAuditSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :ResourceTags, :DbVersionId
1360
+ attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :StatusDesc, :Status, :Vip, :Vport, :CreateTime, :AutoRenewFlag, :Memory, :Storage, :ShardCount, :PeriodEndTime, :IsolatedTimestamp, :Uin, :ShardDetail, :NodeCount, :IsTmp, :ExclusterId, :UniqueVpcId, :UniqueSubnetId, :Id, :WanDomain, :WanVip, :WanPort, :Pid, :UpdateTime, :DbEngine, :DbVersion, :Paymode, :Locker, :WanStatus, :IsAuditSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :ResourceTags, :DbVersionId, :ProtectedProperty
1359
1361
 
1360
- def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, statusdesc=nil, status=nil, vip=nil, vport=nil, createtime=nil, autorenewflag=nil, memory=nil, storage=nil, shardcount=nil, periodendtime=nil, isolatedtimestamp=nil, uin=nil, sharddetail=nil, nodecount=nil, istmp=nil, exclusterid=nil, uniquevpcid=nil, uniquesubnetid=nil, id=nil, wandomain=nil, wanvip=nil, wanport=nil, pid=nil, updatetime=nil, dbengine=nil, dbversion=nil, paymode=nil, locker=nil, wanstatus=nil, isauditsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, resourcetags=nil, dbversionid=nil)
1362
+ def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, statusdesc=nil, status=nil, vip=nil, vport=nil, createtime=nil, autorenewflag=nil, memory=nil, storage=nil, shardcount=nil, periodendtime=nil, isolatedtimestamp=nil, uin=nil, sharddetail=nil, nodecount=nil, istmp=nil, exclusterid=nil, uniquevpcid=nil, uniquesubnetid=nil, id=nil, wandomain=nil, wanvip=nil, wanport=nil, pid=nil, updatetime=nil, dbengine=nil, dbversion=nil, paymode=nil, locker=nil, wanstatus=nil, isauditsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, resourcetags=nil, dbversionid=nil, protectedproperty=nil)
1361
1363
  @InstanceId = instanceid
1362
1364
  @InstanceName = instancename
1363
1365
  @AppId = appid
@@ -1408,6 +1410,7 @@ module TencentCloud
1408
1410
  @InstanceType = instancetype
1409
1411
  @ResourceTags = resourcetags
1410
1412
  @DbVersionId = dbversionid
1413
+ @ProtectedProperty = protectedproperty
1411
1414
  end
1412
1415
 
1413
1416
  def deserialize(params)
@@ -1475,6 +1478,7 @@ module TencentCloud
1475
1478
  end
1476
1479
  end
1477
1480
  @DbVersionId = params['DbVersionId']
1481
+ @ProtectedProperty = params['ProtectedProperty']
1478
1482
  end
1479
1483
  end
1480
1484
 
@@ -2779,12 +2783,14 @@ module TencentCloud
2779
2783
  # @type IsDcnSwitchSupported: Integer
2780
2784
  # @param CpuType: cpu类型,英特尔:Intel/AMD,海光:Hygon,默认Intel/AMD
2781
2785
  # @type CpuType: String
2786
+ # @param ProtectedProperty: 实例删除保护标签,1: 已开启删除保护,0: 未开启删除保护
2787
+ # @type ProtectedProperty: Integer
2782
2788
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2783
2789
  # @type RequestId: String
2784
2790
 
2785
- attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :Vip, :Vport, :NodeCount, :Region, :VpcId, :SubnetId, :WanStatus, :WanDomain, :WanVip, :WanPort, :ProjectId, :AutoRenewFlag, :ExclusterId, :PayMode, :CreateTime, :PeriodEndTime, :DbVersion, :IsAuditSupported, :IsEncryptSupported, :Machine, :Memory, :Storage, :StorageUsage, :LogStorage, :Pid, :MasterZone, :SlaveZones, :Shards, :Vip6, :Cpu, :Qps, :DbEngine, :Ipv6Flag, :WanVipv6, :WanStatusIpv6, :WanPortIpv6, :ResourceTags, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :IsMaxUserConnectionsSupported, :DbVersionId, :EncryptStatus, :ExclusterType, :RsAccessStrategy, :ReservedNetResources, :IsPhysicalReplicationSupported, :IsDcnStrongSyncSupported, :IsDcnSwitchSupported, :CpuType, :RequestId
2791
+ attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :Vip, :Vport, :NodeCount, :Region, :VpcId, :SubnetId, :WanStatus, :WanDomain, :WanVip, :WanPort, :ProjectId, :AutoRenewFlag, :ExclusterId, :PayMode, :CreateTime, :PeriodEndTime, :DbVersion, :IsAuditSupported, :IsEncryptSupported, :Machine, :Memory, :Storage, :StorageUsage, :LogStorage, :Pid, :MasterZone, :SlaveZones, :Shards, :Vip6, :Cpu, :Qps, :DbEngine, :Ipv6Flag, :WanVipv6, :WanStatusIpv6, :WanPortIpv6, :ResourceTags, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :IsMaxUserConnectionsSupported, :DbVersionId, :EncryptStatus, :ExclusterType, :RsAccessStrategy, :ReservedNetResources, :IsPhysicalReplicationSupported, :IsDcnStrongSyncSupported, :IsDcnSwitchSupported, :CpuType, :ProtectedProperty, :RequestId
2786
2792
 
2787
- def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, vip=nil, vport=nil, nodecount=nil, region=nil, vpcid=nil, subnetid=nil, wanstatus=nil, wandomain=nil, wanvip=nil, wanport=nil, projectid=nil, autorenewflag=nil, exclusterid=nil, paymode=nil, createtime=nil, periodendtime=nil, dbversion=nil, isauditsupported=nil, isencryptsupported=nil, machine=nil, memory=nil, storage=nil, storageusage=nil, logstorage=nil, pid=nil, masterzone=nil, slavezones=nil, shards=nil, vip6=nil, cpu=nil, qps=nil, dbengine=nil, ipv6flag=nil, wanvipv6=nil, wanstatusipv6=nil, wanportipv6=nil, resourcetags=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, ismaxuserconnectionssupported=nil, dbversionid=nil, encryptstatus=nil, exclustertype=nil, rsaccessstrategy=nil, reservednetresources=nil, isphysicalreplicationsupported=nil, isdcnstrongsyncsupported=nil, isdcnswitchsupported=nil, cputype=nil, requestid=nil)
2793
+ def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, vip=nil, vport=nil, nodecount=nil, region=nil, vpcid=nil, subnetid=nil, wanstatus=nil, wandomain=nil, wanvip=nil, wanport=nil, projectid=nil, autorenewflag=nil, exclusterid=nil, paymode=nil, createtime=nil, periodendtime=nil, dbversion=nil, isauditsupported=nil, isencryptsupported=nil, machine=nil, memory=nil, storage=nil, storageusage=nil, logstorage=nil, pid=nil, masterzone=nil, slavezones=nil, shards=nil, vip6=nil, cpu=nil, qps=nil, dbengine=nil, ipv6flag=nil, wanvipv6=nil, wanstatusipv6=nil, wanportipv6=nil, resourcetags=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, ismaxuserconnectionssupported=nil, dbversionid=nil, encryptstatus=nil, exclustertype=nil, rsaccessstrategy=nil, reservednetresources=nil, isphysicalreplicationsupported=nil, isdcnstrongsyncsupported=nil, isdcnswitchsupported=nil, cputype=nil, protectedproperty=nil, requestid=nil)
2788
2794
  @InstanceId = instanceid
2789
2795
  @InstanceName = instancename
2790
2796
  @Status = status
@@ -2840,6 +2846,7 @@ module TencentCloud
2840
2846
  @IsDcnStrongSyncSupported = isdcnstrongsyncsupported
2841
2847
  @IsDcnSwitchSupported = isdcnswitchsupported
2842
2848
  @CpuType = cputype
2849
+ @ProtectedProperty = protectedproperty
2843
2850
  @RequestId = requestid
2844
2851
  end
2845
2852
 
@@ -2920,6 +2927,7 @@ module TencentCloud
2920
2927
  @IsDcnStrongSyncSupported = params['IsDcnStrongSyncSupported']
2921
2928
  @IsDcnSwitchSupported = params['IsDcnSwitchSupported']
2922
2929
  @CpuType = params['CpuType']
2930
+ @ProtectedProperty = params['ProtectedProperty']
2923
2931
  @RequestId = params['RequestId']
2924
2932
  end
2925
2933
  end
@@ -3756,6 +3764,42 @@ module TencentCloud
3756
3764
  end
3757
3765
  end
3758
3766
 
3767
+ # DescribeInstanceSSLAttributes请求参数结构体
3768
+ class DescribeInstanceSSLAttributesRequest < TencentCloud::Common::AbstractModel
3769
+ # @param InstanceId: 实例ID
3770
+ # @type InstanceId: String
3771
+
3772
+ attr_accessor :InstanceId
3773
+
3774
+ def initialize(instanceid=nil)
3775
+ @InstanceId = instanceid
3776
+ end
3777
+
3778
+ def deserialize(params)
3779
+ @InstanceId = params['InstanceId']
3780
+ end
3781
+ end
3782
+
3783
+ # DescribeInstanceSSLAttributes返回参数结构体
3784
+ class DescribeInstanceSSLAttributesResponse < TencentCloud::Common::AbstractModel
3785
+ # @param Status: 实例SSL认证功能当前状态。1-开启中;2-已开启;3-已关闭;4-关闭中
3786
+ # @type Status: Integer
3787
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3788
+ # @type RequestId: String
3789
+
3790
+ attr_accessor :Status, :RequestId
3791
+
3792
+ def initialize(status=nil, requestid=nil)
3793
+ @Status = status
3794
+ @RequestId = requestid
3795
+ end
3796
+
3797
+ def deserialize(params)
3798
+ @Status = params['Status']
3799
+ @RequestId = params['RequestId']
3800
+ end
3801
+ end
3802
+
3759
3803
  # DescribeLogFileRetentionPeriod请求参数结构体
3760
3804
  class DescribeLogFileRetentionPeriodRequest < TencentCloud::Common::AbstractModel
3761
3805
  # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。
@@ -3902,6 +3946,121 @@ module TencentCloud
3902
3946
  end
3903
3947
  end
3904
3948
 
3949
+ # DescribeProcessList请求参数结构体
3950
+ class DescribeProcessListRequest < TencentCloud::Common::AbstractModel
3951
+ # @param InstanceId: 实例ID。
3952
+ # @type InstanceId: String
3953
+ # @param NodeId: 节点ID。
3954
+ # @type NodeId: String
3955
+ # @param ShardId: 分片ID,与ShardSerialId设置一个。
3956
+ # @type ShardId: String
3957
+ # @param ShardSerialId: 分片序列ID,与ShardId设置一个。
3958
+ # @type ShardSerialId: String
3959
+ # @param Filters: <li><strong>id</strong></li>
3960
+ # <p style="padding-left: 30px;">按照【<strong>会话ID</strong>】进行过滤。会话ID例如:125700。</p>
3961
+ # <p style="padding-left: 30px;">类型:String</p>
3962
+ # <p style="padding-left: 30px;">必选:否</p>
3963
+ # <p style="padding-left: 30px;">匹配类型:精确匹配</p>
3964
+
3965
+ # <li><strong>user</strong></li>
3966
+ # <p style="padding-left: 30px;">按照【<strong>用户名</strong>】进行过滤。用户名例如:root。</p>
3967
+ # <p style="padding-left: 30px;">类型:String</p>
3968
+ # <p style="padding-left: 30px;">必选:否</p>
3969
+ # <p style="padding-left: 30px;">匹配类型:精确匹配</p>
3970
+ # <li><strong>host</strong></li>
3971
+ # <p style="padding-left: 30px;">按照【<strong>客户端Host</strong>】进行过滤。客户端Host例如:127.0.0.1:46295。</p>
3972
+ # <p style="padding-left: 30px;">类型:String</p>
3973
+ # <p style="padding-left: 30px;">必选:否</p>
3974
+ # <p style="padding-left: 30px;">匹配类型:前缀匹配,例如可以查询客户端IP不加端口:127.0.0.1。</p>
3975
+ # <li><strong>state</strong></li>
3976
+ # <p style="padding-left: 30px;">按照【<strong>线程状态</strong>】进行过滤。线程状态例如:Updating。</p>
3977
+ # <p style="padding-left: 30px;">类型:String</p>
3978
+ # <p style="padding-left: 30px;">必选:否</p>
3979
+ # <p style="padding-left: 30px;">匹配类型:精确匹配</p>
3980
+ # <li><strong>db</strong></li>
3981
+ # <p style="padding-left: 30px;">按照【<strong>数据库名称</strong>】进行过滤。数据库名称例如:mysql。</p>
3982
+ # <p style="padding-left: 30px;">类型:String</p>
3983
+ # <p style="padding-left: 30px;">必选:否</p>
3984
+ # <p style="padding-left: 30px;">匹配类型:精确匹配</p>
3985
+ # <li><strong>command</strong></li>
3986
+ # <p style="padding-left: 30px;">按照【<strong>命令类型</strong>】进行过滤。命令类型例如:Query。</p>
3987
+ # <p style="padding-left: 30px;">类型:String</p>
3988
+ # <p style="padding-left: 30px;">必选:否</p>
3989
+ # <p style="padding-left: 30px;">匹配类型:精确匹配</p>
3990
+ # <li><strong>info</strong></li>
3991
+ # <p style="padding-left: 30px;">按照【<strong>执行语句</strong>】进行过滤。执行语句例如:select id, name from demo.table1 where id > 10。</p>
3992
+ # <p style="padding-left: 30px;">类型:String</p>
3993
+ # <p style="padding-left: 30px;">必选:否</p>
3994
+ # <p style="padding-left: 30px;">匹配类型:前缀匹配,例如SQL较长,可以输入SQL前缀:select id, name from demo.table1。</p>
3995
+ # <li><strong>time</strong></li>
3996
+ # <p style="padding-left: 30px;">按照【<strong>执行时间大于多少(秒)</strong>】进行过滤。例如:10,表示查询执行时间超过10秒的会话。</p>
3997
+ # <p style="padding-left: 30px;">类型:Integer</p>
3998
+ # <p style="padding-left: 30px;">必选:否</p>
3999
+ # <p style="padding-left: 30px;">匹配类型:范围匹配,Values值只支持输入1个。</p>
4000
+ # 每次请求的`Filters`的上限为10,`Filter.Values`的上限为50。
4001
+ # @type Filters: Array
4002
+ # @param Offset: 偏移量,默认为0。
4003
+ # @type Offset: Integer
4004
+ # @param Limit: 返回数量,默认为20,最大值为100。
4005
+ # @type Limit: Integer
4006
+
4007
+ attr_accessor :InstanceId, :NodeId, :ShardId, :ShardSerialId, :Filters, :Offset, :Limit
4008
+
4009
+ def initialize(instanceid=nil, nodeid=nil, shardid=nil, shardserialid=nil, filters=nil, offset=nil, limit=nil)
4010
+ @InstanceId = instanceid
4011
+ @NodeId = nodeid
4012
+ @ShardId = shardid
4013
+ @ShardSerialId = shardserialid
4014
+ @Filters = filters
4015
+ @Offset = offset
4016
+ @Limit = limit
4017
+ end
4018
+
4019
+ def deserialize(params)
4020
+ @InstanceId = params['InstanceId']
4021
+ @NodeId = params['NodeId']
4022
+ @ShardId = params['ShardId']
4023
+ @ShardSerialId = params['ShardSerialId']
4024
+ unless params['Filters'].nil?
4025
+ @Filters = []
4026
+ params['Filters'].each do |i|
4027
+ filter_tmp = Filter.new
4028
+ filter_tmp.deserialize(i)
4029
+ @Filters << filter_tmp
4030
+ end
4031
+ end
4032
+ @Offset = params['Offset']
4033
+ @Limit = params['Limit']
4034
+ end
4035
+ end
4036
+
4037
+ # DescribeProcessList返回参数结构体
4038
+ class DescribeProcessListResponse < TencentCloud::Common::AbstractModel
4039
+ # @param ProcessList: 当前正在运行的线程(连接/查询)信息列表。
4040
+ # @type ProcessList: Array
4041
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4042
+ # @type RequestId: String
4043
+
4044
+ attr_accessor :ProcessList, :RequestId
4045
+
4046
+ def initialize(processlist=nil, requestid=nil)
4047
+ @ProcessList = processlist
4048
+ @RequestId = requestid
4049
+ end
4050
+
4051
+ def deserialize(params)
4052
+ unless params['ProcessList'].nil?
4053
+ @ProcessList = []
4054
+ params['ProcessList'].each do |i|
4055
+ process_tmp = Process.new
4056
+ process_tmp.deserialize(i)
4057
+ @ProcessList << process_tmp
4058
+ end
4059
+ end
4060
+ @RequestId = params['RequestId']
4061
+ end
4062
+ end
4063
+
3905
4064
  # DescribeProjectSecurityGroups请求参数结构体
3906
4065
  class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel
3907
4066
  # @param Product: 数据库引擎名称,本接口取值:dcdb。
@@ -4257,6 +4416,29 @@ module TencentCloud
4257
4416
  end
4258
4417
  end
4259
4418
 
4419
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
4420
+
4421
+ # 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
4422
+ # 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
4423
+ class Filter < TencentCloud::Common::AbstractModel
4424
+ # @param Name: 需要过滤的字段。
4425
+ # @type Name: String
4426
+ # @param Values: 字段的过滤值。
4427
+ # @type Values: Array
4428
+
4429
+ attr_accessor :Name, :Values
4430
+
4431
+ def initialize(name=nil, values=nil)
4432
+ @Name = name
4433
+ @Values = values
4434
+ end
4435
+
4436
+ def deserialize(params)
4437
+ @Name = params['Name']
4438
+ @Values = params['Values']
4439
+ end
4440
+ end
4441
+
4260
4442
  # FlushBinlog请求参数结构体
4261
4443
  class FlushBinlogRequest < TencentCloud::Common::AbstractModel
4262
4444
  # @param InstanceId: 实例ID
@@ -4585,14 +4767,17 @@ module TencentCloud
4585
4767
  # @type ShardId: String
4586
4768
  # @param ShardSerialId: 分片序列ID,与ShardId设置一个
4587
4769
  # @type ShardSerialId: String
4770
+ # @param NodeId: 节点ID,可指定主节点或者备节点进行kill。可选参数,不传默认为主节点。
4771
+ # @type NodeId: String
4588
4772
 
4589
- attr_accessor :InstanceId, :SessionId, :ShardId, :ShardSerialId
4773
+ attr_accessor :InstanceId, :SessionId, :ShardId, :ShardSerialId, :NodeId
4590
4774
 
4591
- def initialize(instanceid=nil, sessionid=nil, shardid=nil, shardserialid=nil)
4775
+ def initialize(instanceid=nil, sessionid=nil, shardid=nil, shardserialid=nil, nodeid=nil)
4592
4776
  @InstanceId = instanceid
4593
4777
  @SessionId = sessionid
4594
4778
  @ShardId = shardid
4595
4779
  @ShardSerialId = shardserialid
4780
+ @NodeId = nodeid
4596
4781
  end
4597
4782
 
4598
4783
  def deserialize(params)
@@ -4600,6 +4785,7 @@ module TencentCloud
4600
4785
  @SessionId = params['SessionId']
4601
4786
  @ShardId = params['ShardId']
4602
4787
  @ShardSerialId = params['ShardSerialId']
4788
+ @NodeId = params['NodeId']
4603
4789
  end
4604
4790
  end
4605
4791
 
@@ -4991,7 +5177,7 @@ module TencentCloud
4991
5177
  # @type Product: String
4992
5178
  # @param InstanceId: 实例ID。
4993
5179
  # @type InstanceId: String
4994
- # @param SecurityGroupIds: 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。
5180
+ # @param SecurityGroupIds: 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。<br>注意:该入参会全量替换存量已有安全组集合,并非增量更新。修改需传入全量的预期集合。
4995
5181
  # @type SecurityGroupIds: Array
4996
5182
 
4997
5183
  attr_accessor :Product, :InstanceId, :SecurityGroupIds
@@ -5215,6 +5401,78 @@ module TencentCloud
5215
5401
  end
5216
5402
  end
5217
5403
 
5404
+ # ModifyInstanceProtectedProperty请求参数结构体
5405
+ class ModifyInstanceProtectedPropertyRequest < TencentCloud::Common::AbstractModel
5406
+ # @param InstanceId: 实例Id
5407
+ # @type InstanceId: String
5408
+ # @param ProtectedProperty: 0-允许删除,无销毁保护,1-禁止删除,有销毁保护
5409
+ # @type ProtectedProperty: Integer
5410
+
5411
+ attr_accessor :InstanceId, :ProtectedProperty
5412
+
5413
+ def initialize(instanceid=nil, protectedproperty=nil)
5414
+ @InstanceId = instanceid
5415
+ @ProtectedProperty = protectedproperty
5416
+ end
5417
+
5418
+ def deserialize(params)
5419
+ @InstanceId = params['InstanceId']
5420
+ @ProtectedProperty = params['ProtectedProperty']
5421
+ end
5422
+ end
5423
+
5424
+ # ModifyInstanceProtectedProperty返回参数结构体
5425
+ class ModifyInstanceProtectedPropertyResponse < TencentCloud::Common::AbstractModel
5426
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5427
+ # @type RequestId: String
5428
+
5429
+ attr_accessor :RequestId
5430
+
5431
+ def initialize(requestid=nil)
5432
+ @RequestId = requestid
5433
+ end
5434
+
5435
+ def deserialize(params)
5436
+ @RequestId = params['RequestId']
5437
+ end
5438
+ end
5439
+
5440
+ # ModifyInstanceSSLAttributes请求参数结构体
5441
+ class ModifyInstanceSSLAttributesRequest < TencentCloud::Common::AbstractModel
5442
+ # @param InstanceId: 实例ID
5443
+ # @type InstanceId: String
5444
+ # @param SSLEnabled: 是否开启实例的SSL认证。0-关闭;1-开启
5445
+ # @type SSLEnabled: Integer
5446
+
5447
+ attr_accessor :InstanceId, :SSLEnabled
5448
+
5449
+ def initialize(instanceid=nil, sslenabled=nil)
5450
+ @InstanceId = instanceid
5451
+ @SSLEnabled = sslenabled
5452
+ end
5453
+
5454
+ def deserialize(params)
5455
+ @InstanceId = params['InstanceId']
5456
+ @SSLEnabled = params['SSLEnabled']
5457
+ end
5458
+ end
5459
+
5460
+ # ModifyInstanceSSLAttributes返回参数结构体
5461
+ class ModifyInstanceSSLAttributesResponse < TencentCloud::Common::AbstractModel
5462
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5463
+ # @type RequestId: String
5464
+
5465
+ attr_accessor :RequestId
5466
+
5467
+ def initialize(requestid=nil)
5468
+ @RequestId = requestid
5469
+ end
5470
+
5471
+ def deserialize(params)
5472
+ @RequestId = params['RequestId']
5473
+ end
5474
+ end
5475
+
5218
5476
  # ModifyInstanceVip请求参数结构体
5219
5477
  class ModifyInstanceVipRequest < TencentCloud::Common::AbstractModel
5220
5478
  # @param InstanceId: 实例ID
@@ -5544,6 +5802,66 @@ module TencentCloud
5544
5802
  end
5545
5803
  end
5546
5804
 
5805
+ # 用于显示当前正在运行的线程(连接/查询)信息,数据源来自系统表:information_schema.processlist。
5806
+ class Process < TencentCloud::Common::AbstractModel
5807
+ # @param Id: 线程ID​​:唯一标识当前连接/线程的整数。
5808
+ # @type Id: Integer
5809
+ # @param User: 用户名​​:发起连接的 MySQL 用户。
5810
+ # @type User: String
5811
+ # @param Host: 客户端地址​​:发起连接的客户端主机名及端口(格式:host:port)。
5812
+ # @type Host: String
5813
+ # @param Db: 当前数据库​​:线程正在使用的数据库名(未选择数据库时为 空串)。
5814
+ # @type Db: String
5815
+ # @param Command: 命令类型​​:线程正在执行的命令类型。常见值:
5816
+
5817
+ # - Sleep:空闲等待状态(等待新查询)。
5818
+ # - Query:正在执行查询或 SQL 语句。
5819
+ # - Binlog Dump:主服务器线程向从服务器发送二进制日志。
5820
+ # - Connect:客户端正在连接。
5821
+ # - Killed:线程被终止但未完全退出。
5822
+ # @type Command: String
5823
+ # @param Time: 执行时间(秒)​​:线程在当前状态持续的秒数。
5824
+ # @type Time: Integer
5825
+ # @param ProcessStartTime: 执行开始时间(秒)​​:线程在当前状态开始执行的时间。
5826
+ # @type ProcessStartTime: String
5827
+ # @param State: ​​状态描述​​:线程当前的详细操作状态。常见值:
5828
+
5829
+ # - Sending data:正在处理/发送数据。
5830
+ # - Locked:等待表锁释放(例如 MyISAM 表级锁)。
5831
+ # - Sorting result:排序查询结果。
5832
+ # - Updating:更新表中数据。
5833
+ # - 当为NULL返回空串:无明确状态(如 Sleep 时)。
5834
+ # @type State: String
5835
+ # @param Info: 执行语句​​:正在执行的 SQL 语句(前 1024 字符)。
5836
+ # @type Info: String
5837
+
5838
+ attr_accessor :Id, :User, :Host, :Db, :Command, :Time, :ProcessStartTime, :State, :Info
5839
+
5840
+ def initialize(id=nil, user=nil, host=nil, db=nil, command=nil, time=nil, processstarttime=nil, state=nil, info=nil)
5841
+ @Id = id
5842
+ @User = user
5843
+ @Host = host
5844
+ @Db = db
5845
+ @Command = command
5846
+ @Time = time
5847
+ @ProcessStartTime = processstarttime
5848
+ @State = state
5849
+ @Info = info
5850
+ end
5851
+
5852
+ def deserialize(params)
5853
+ @Id = params['Id']
5854
+ @User = params['User']
5855
+ @Host = params['Host']
5856
+ @Db = params['Db']
5857
+ @Command = params['Command']
5858
+ @Time = params['Time']
5859
+ @ProcessStartTime = params['ProcessStartTime']
5860
+ @State = params['State']
5861
+ @Info = params['Info']
5862
+ end
5863
+ end
5864
+
5547
5865
  # 项目信息描述
5548
5866
  class Project < TencentCloud::Common::AbstractModel
5549
5867
  # @param ProjectId: 项目ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dcdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1094
4
+ version: 3.0.1130
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-05 00:00:00.000000000 Z
11
+ date: 2025-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common