tencentcloud-sdk-cdb 3.0.557 → 3.0.559

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.
@@ -178,6 +178,155 @@ module TencentCloud
178
178
  end
179
179
  end
180
180
 
181
+ # AdjustCdbProxyAddress请求参数结构体
182
+ class AdjustCdbProxyAddressRequest < TencentCloud::Common::AbstractModel
183
+ # @param ProxyGroupId: 代理组ID
184
+ # @type ProxyGroupId: String
185
+ # @param WeightMode: 权重分配模式,
186
+ # 系统自动分配:"system", 自定义:"custom"
187
+ # @type WeightMode: String
188
+ # @param IsKickOut: 是否开启延迟剔除,取值:"true" | "false"
189
+ # @type IsKickOut: Boolean
190
+ # @param MinCount: 最小保留数量,最小取值:0
191
+ # @type MinCount: Integer
192
+ # @param MaxDelay: 延迟剔除阈值,最小取值:0
193
+ # @type MaxDelay: Integer
194
+ # @param FailOver: 是否开启故障转移,取值:"true" | "false"
195
+ # @type FailOver: Boolean
196
+ # @param AutoAddRo: 是否自动添加RO,取值:"true" | "false"
197
+ # @type AutoAddRo: Boolean
198
+ # @param ReadOnly: 是否是只读,取值:"true" | "false"
199
+ # @type ReadOnly: Boolean
200
+ # @param ProxyAddressId: 代理组地址ID
201
+ # @type ProxyAddressId: String
202
+ # @param TransSplit: 是否开启事务分离,取值:"true" | "false"
203
+ # @type TransSplit: Boolean
204
+ # @param ConnectionPool: 是否开启连接池
205
+ # @type ConnectionPool: Boolean
206
+ # @param ProxyAllocation: 读写权重分配。如果 WeightMode 传的是 system ,则传入的权重不生效,由系统分配默认权重。
207
+ # @type ProxyAllocation: Array
208
+
209
+ attr_accessor :ProxyGroupId, :WeightMode, :IsKickOut, :MinCount, :MaxDelay, :FailOver, :AutoAddRo, :ReadOnly, :ProxyAddressId, :TransSplit, :ConnectionPool, :ProxyAllocation
210
+
211
+ def initialize(proxygroupid=nil, weightmode=nil, iskickout=nil, mincount=nil, maxdelay=nil, failover=nil, autoaddro=nil, readonly=nil, proxyaddressid=nil, transsplit=nil, connectionpool=nil, proxyallocation=nil)
212
+ @ProxyGroupId = proxygroupid
213
+ @WeightMode = weightmode
214
+ @IsKickOut = iskickout
215
+ @MinCount = mincount
216
+ @MaxDelay = maxdelay
217
+ @FailOver = failover
218
+ @AutoAddRo = autoaddro
219
+ @ReadOnly = readonly
220
+ @ProxyAddressId = proxyaddressid
221
+ @TransSplit = transsplit
222
+ @ConnectionPool = connectionpool
223
+ @ProxyAllocation = proxyallocation
224
+ end
225
+
226
+ def deserialize(params)
227
+ @ProxyGroupId = params['ProxyGroupId']
228
+ @WeightMode = params['WeightMode']
229
+ @IsKickOut = params['IsKickOut']
230
+ @MinCount = params['MinCount']
231
+ @MaxDelay = params['MaxDelay']
232
+ @FailOver = params['FailOver']
233
+ @AutoAddRo = params['AutoAddRo']
234
+ @ReadOnly = params['ReadOnly']
235
+ @ProxyAddressId = params['ProxyAddressId']
236
+ @TransSplit = params['TransSplit']
237
+ @ConnectionPool = params['ConnectionPool']
238
+ unless params['ProxyAllocation'].nil?
239
+ @ProxyAllocation = []
240
+ params['ProxyAllocation'].each do |i|
241
+ proxyallocation_tmp = ProxyAllocation.new
242
+ proxyallocation_tmp.deserialize(i)
243
+ @ProxyAllocation << proxyallocation_tmp
244
+ end
245
+ end
246
+ end
247
+ end
248
+
249
+ # AdjustCdbProxyAddress返回参数结构体
250
+ class AdjustCdbProxyAddressResponse < TencentCloud::Common::AbstractModel
251
+ # @param AsyncRequestId: 异步任务ID
252
+ # 注意:此字段可能返回 null,表示取不到有效值。
253
+ # @type AsyncRequestId: String
254
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
255
+ # @type RequestId: String
256
+
257
+ attr_accessor :AsyncRequestId, :RequestId
258
+
259
+ def initialize(asyncrequestid=nil, requestid=nil)
260
+ @AsyncRequestId = asyncrequestid
261
+ @RequestId = requestid
262
+ end
263
+
264
+ def deserialize(params)
265
+ @AsyncRequestId = params['AsyncRequestId']
266
+ @RequestId = params['RequestId']
267
+ end
268
+ end
269
+
270
+ # AdjustCdbProxy请求参数结构体
271
+ class AdjustCdbProxyRequest < TencentCloud::Common::AbstractModel
272
+ # @param InstanceId: 实例ID
273
+ # @type InstanceId: String
274
+ # @param ProxyGroupId: 代理组ID
275
+ # @type ProxyGroupId: String
276
+ # @param ProxyNodeCustom: 节点规格配置
277
+ # @type ProxyNodeCustom: Array
278
+ # @param ReloadBalance: 重新负载均衡:auto(自动),manual(手动)
279
+ # @type ReloadBalance: String
280
+ # @param UpgradeTime: 升级切换时间:nowTime(升级完成时),timeWindow(维护时间内)
281
+ # @type UpgradeTime: String
282
+
283
+ attr_accessor :InstanceId, :ProxyGroupId, :ProxyNodeCustom, :ReloadBalance, :UpgradeTime
284
+
285
+ def initialize(instanceid=nil, proxygroupid=nil, proxynodecustom=nil, reloadbalance=nil, upgradetime=nil)
286
+ @InstanceId = instanceid
287
+ @ProxyGroupId = proxygroupid
288
+ @ProxyNodeCustom = proxynodecustom
289
+ @ReloadBalance = reloadbalance
290
+ @UpgradeTime = upgradetime
291
+ end
292
+
293
+ def deserialize(params)
294
+ @InstanceId = params['InstanceId']
295
+ @ProxyGroupId = params['ProxyGroupId']
296
+ unless params['ProxyNodeCustom'].nil?
297
+ @ProxyNodeCustom = []
298
+ params['ProxyNodeCustom'].each do |i|
299
+ proxynodecustom_tmp = ProxyNodeCustom.new
300
+ proxynodecustom_tmp.deserialize(i)
301
+ @ProxyNodeCustom << proxynodecustom_tmp
302
+ end
303
+ end
304
+ @ReloadBalance = params['ReloadBalance']
305
+ @UpgradeTime = params['UpgradeTime']
306
+ end
307
+ end
308
+
309
+ # AdjustCdbProxy返回参数结构体
310
+ class AdjustCdbProxyResponse < TencentCloud::Common::AbstractModel
311
+ # @param AsyncRequestId: 异步任务ID
312
+ # 注意:此字段可能返回 null,表示取不到有效值。
313
+ # @type AsyncRequestId: String
314
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
315
+ # @type RequestId: String
316
+
317
+ attr_accessor :AsyncRequestId, :RequestId
318
+
319
+ def initialize(asyncrequestid=nil, requestid=nil)
320
+ @AsyncRequestId = asyncrequestid
321
+ @RequestId = requestid
322
+ end
323
+
324
+ def deserialize(params)
325
+ @AsyncRequestId = params['AsyncRequestId']
326
+ @RequestId = params['RequestId']
327
+ end
328
+ end
329
+
181
330
  # 审计日志聚合条件
182
331
  class AggregationCondition < TencentCloud::Common::AbstractModel
183
332
  # @param AggregationField: 聚合字段。目前仅支持host-源IP、user-用户名、dbName-数据库名、sqlType-sql类型。
@@ -455,10 +604,16 @@ module TencentCloud
455
604
  # @type IoWaitTimeSection: String
456
605
  # @param TransactionLivingTimeSection: 事务持续时间,格式为M-N,例如:10-200
457
606
  # @type TransactionLivingTimeSection: String
607
+ # @param ThreadId: 线程ID
608
+ # @type ThreadId: Array
609
+ # @param SentRows: 返回行数。表示筛选返回行数大于该值的审计日志。
610
+ # @type SentRows: Integer
611
+ # @param ErrCode: mysql错误码
612
+ # @type ErrCode: Array
458
613
 
459
- attr_accessor :Host, :User, :DBName, :TableName, :PolicyName, :Sql, :SqlType, :ExecTime, :AffectRows, :SqlTypes, :Sqls, :AffectRowsSection, :SentRowsSection, :ExecTimeSection, :LockWaitTimeSection, :IoWaitTimeSection, :TransactionLivingTimeSection
614
+ attr_accessor :Host, :User, :DBName, :TableName, :PolicyName, :Sql, :SqlType, :ExecTime, :AffectRows, :SqlTypes, :Sqls, :AffectRowsSection, :SentRowsSection, :ExecTimeSection, :LockWaitTimeSection, :IoWaitTimeSection, :TransactionLivingTimeSection, :ThreadId, :SentRows, :ErrCode
460
615
 
461
- def initialize(host=nil, user=nil, dbname=nil, tablename=nil, policyname=nil, sql=nil, sqltype=nil, exectime=nil, affectrows=nil, sqltypes=nil, sqls=nil, affectrowssection=nil, sentrowssection=nil, exectimesection=nil, lockwaittimesection=nil, iowaittimesection=nil, transactionlivingtimesection=nil)
616
+ def initialize(host=nil, user=nil, dbname=nil, tablename=nil, policyname=nil, sql=nil, sqltype=nil, exectime=nil, affectrows=nil, sqltypes=nil, sqls=nil, affectrowssection=nil, sentrowssection=nil, exectimesection=nil, lockwaittimesection=nil, iowaittimesection=nil, transactionlivingtimesection=nil, threadid=nil, sentrows=nil, errcode=nil)
462
617
  @Host = host
463
618
  @User = user
464
619
  @DBName = dbname
@@ -476,6 +631,9 @@ module TencentCloud
476
631
  @LockWaitTimeSection = lockwaittimesection
477
632
  @IoWaitTimeSection = iowaittimesection
478
633
  @TransactionLivingTimeSection = transactionlivingtimesection
634
+ @ThreadId = threadid
635
+ @SentRows = sentrows
636
+ @ErrCode = errcode
479
637
  end
480
638
 
481
639
  def deserialize(params)
@@ -496,6 +654,9 @@ module TencentCloud
496
654
  @LockWaitTimeSection = params['LockWaitTimeSection']
497
655
  @IoWaitTimeSection = params['IoWaitTimeSection']
498
656
  @TransactionLivingTimeSection = params['TransactionLivingTimeSection']
657
+ @ThreadId = params['ThreadId']
658
+ @SentRows = params['SentRows']
659
+ @ErrCode = params['ErrCode']
499
660
  end
500
661
  end
501
662
 
@@ -603,6 +764,30 @@ module TencentCloud
603
764
  end
604
765
  end
605
766
 
767
+ # 审计规则的过滤条件
768
+ class AuditRuleFilters < TencentCloud::Common::AbstractModel
769
+ # @param RuleFilters: 单条审计规则。
770
+ # 注意:此字段可能返回 null,表示取不到有效值。
771
+ # @type RuleFilters: Array
772
+
773
+ attr_accessor :RuleFilters
774
+
775
+ def initialize(rulefilters=nil)
776
+ @RuleFilters = rulefilters
777
+ end
778
+
779
+ def deserialize(params)
780
+ unless params['RuleFilters'].nil?
781
+ @RuleFilters = []
782
+ params['RuleFilters'].each do |i|
783
+ rulefilters_tmp = RuleFilters.new
784
+ rulefilters_tmp.deserialize(i)
785
+ @RuleFilters << rulefilters_tmp
786
+ end
787
+ end
788
+ end
789
+ end
790
+
606
791
  # ECDB第二个从库的配置信息,只有ECDB实例才有这个字段
607
792
  class BackupConfig < TencentCloud::Common::AbstractModel
608
793
  # @param ReplicationMode: 第二个从库复制方式,可能的返回值:async-异步,semisync-半同步
@@ -1358,6 +1543,42 @@ module TencentCloud
1358
1543
  end
1359
1544
  end
1360
1545
 
1546
+ # CloseCdbProxyAddress请求参数结构体
1547
+ class CloseCdbProxyAddressRequest < TencentCloud::Common::AbstractModel
1548
+ # @param ProxyGroupId: 代理组ID
1549
+ # @type ProxyGroupId: String
1550
+ # @param ProxyAddressId: 代理组地址ID
1551
+ # @type ProxyAddressId: String
1552
+
1553
+ attr_accessor :ProxyGroupId, :ProxyAddressId
1554
+
1555
+ def initialize(proxygroupid=nil, proxyaddressid=nil)
1556
+ @ProxyGroupId = proxygroupid
1557
+ @ProxyAddressId = proxyaddressid
1558
+ end
1559
+
1560
+ def deserialize(params)
1561
+ @ProxyGroupId = params['ProxyGroupId']
1562
+ @ProxyAddressId = params['ProxyAddressId']
1563
+ end
1564
+ end
1565
+
1566
+ # CloseCdbProxyAddress返回参数结构体
1567
+ class CloseCdbProxyAddressResponse < TencentCloud::Common::AbstractModel
1568
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1569
+ # @type RequestId: String
1570
+
1571
+ attr_accessor :RequestId
1572
+
1573
+ def initialize(requestid=nil)
1574
+ @RequestId = requestid
1575
+ end
1576
+
1577
+ def deserialize(params)
1578
+ @RequestId = params['RequestId']
1579
+ end
1580
+ end
1581
+
1361
1582
  # CloseWanService请求参数结构体
1362
1583
  class CloseWanServiceRequest < TencentCloud::Common::AbstractModel
1363
1584
  # @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
@@ -1788,6 +2009,183 @@ module TencentCloud
1788
2009
  end
1789
2010
  end
1790
2011
 
2012
+ # CreateCdbProxyAddress请求参数结构体
2013
+ class CreateCdbProxyAddressRequest < TencentCloud::Common::AbstractModel
2014
+ # @param ProxyGroupId: 代理组ID
2015
+ # @type ProxyGroupId: String
2016
+ # @param WeightMode: 权重分配模式,
2017
+ # 系统自动分配:"system", 自定义:"custom"
2018
+ # @type WeightMode: String
2019
+ # @param IsKickOut: 是否开启延迟剔除,取值:"true" | "false"
2020
+ # @type IsKickOut: Boolean
2021
+ # @param MinCount: 最小保留数量,最小取值:0
2022
+ # @type MinCount: Integer
2023
+ # @param MaxDelay: 延迟剔除阈值,最小取值:0
2024
+ # @type MaxDelay: Integer
2025
+ # @param FailOver: 是否开启故障转移,取值:"true" | "false"
2026
+ # @type FailOver: Boolean
2027
+ # @param AutoAddRo: 是否自动添加RO,取值:"true" | "false"
2028
+ # @type AutoAddRo: Boolean
2029
+ # @param ReadOnly: 是否是只读,取值:"true" | "false"
2030
+ # @type ReadOnly: Boolean
2031
+ # @param TransSplit: 是否开启事务分离,取值:"true" | "false"
2032
+ # @type TransSplit: Boolean
2033
+ # @param ProxyAllocation: 读写权重分配
2034
+ # @type ProxyAllocation: Array
2035
+ # @param UniqVpcId: 私有网络ID
2036
+ # @type UniqVpcId: String
2037
+ # @param UniqSubnetId: 私有子网ID
2038
+ # @type UniqSubnetId: String
2039
+ # @param ConnectionPool: 是否开启连接池
2040
+ # @type ConnectionPool: Boolean
2041
+ # @param Desc: 描述
2042
+ # @type Desc: String
2043
+ # @param Vip: IP地址
2044
+ # @type Vip: String
2045
+ # @param VPort: 端口
2046
+ # @type VPort: Integer
2047
+ # @param SecurityGroup: 安全组
2048
+ # @type SecurityGroup: Array
2049
+
2050
+ attr_accessor :ProxyGroupId, :WeightMode, :IsKickOut, :MinCount, :MaxDelay, :FailOver, :AutoAddRo, :ReadOnly, :TransSplit, :ProxyAllocation, :UniqVpcId, :UniqSubnetId, :ConnectionPool, :Desc, :Vip, :VPort, :SecurityGroup
2051
+
2052
+ def initialize(proxygroupid=nil, weightmode=nil, iskickout=nil, mincount=nil, maxdelay=nil, failover=nil, autoaddro=nil, readonly=nil, transsplit=nil, proxyallocation=nil, uniqvpcid=nil, uniqsubnetid=nil, connectionpool=nil, desc=nil, vip=nil, vport=nil, securitygroup=nil)
2053
+ @ProxyGroupId = proxygroupid
2054
+ @WeightMode = weightmode
2055
+ @IsKickOut = iskickout
2056
+ @MinCount = mincount
2057
+ @MaxDelay = maxdelay
2058
+ @FailOver = failover
2059
+ @AutoAddRo = autoaddro
2060
+ @ReadOnly = readonly
2061
+ @TransSplit = transsplit
2062
+ @ProxyAllocation = proxyallocation
2063
+ @UniqVpcId = uniqvpcid
2064
+ @UniqSubnetId = uniqsubnetid
2065
+ @ConnectionPool = connectionpool
2066
+ @Desc = desc
2067
+ @Vip = vip
2068
+ @VPort = vport
2069
+ @SecurityGroup = securitygroup
2070
+ end
2071
+
2072
+ def deserialize(params)
2073
+ @ProxyGroupId = params['ProxyGroupId']
2074
+ @WeightMode = params['WeightMode']
2075
+ @IsKickOut = params['IsKickOut']
2076
+ @MinCount = params['MinCount']
2077
+ @MaxDelay = params['MaxDelay']
2078
+ @FailOver = params['FailOver']
2079
+ @AutoAddRo = params['AutoAddRo']
2080
+ @ReadOnly = params['ReadOnly']
2081
+ @TransSplit = params['TransSplit']
2082
+ unless params['ProxyAllocation'].nil?
2083
+ @ProxyAllocation = []
2084
+ params['ProxyAllocation'].each do |i|
2085
+ proxyallocation_tmp = ProxyAllocation.new
2086
+ proxyallocation_tmp.deserialize(i)
2087
+ @ProxyAllocation << proxyallocation_tmp
2088
+ end
2089
+ end
2090
+ @UniqVpcId = params['UniqVpcId']
2091
+ @UniqSubnetId = params['UniqSubnetId']
2092
+ @ConnectionPool = params['ConnectionPool']
2093
+ @Desc = params['Desc']
2094
+ @Vip = params['Vip']
2095
+ @VPort = params['VPort']
2096
+ @SecurityGroup = params['SecurityGroup']
2097
+ end
2098
+ end
2099
+
2100
+ # CreateCdbProxyAddress返回参数结构体
2101
+ class CreateCdbProxyAddressResponse < TencentCloud::Common::AbstractModel
2102
+ # @param AsyncRequestId: 异步任务ID
2103
+ # 注意:此字段可能返回 null,表示取不到有效值。
2104
+ # @type AsyncRequestId: String
2105
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2106
+ # @type RequestId: String
2107
+
2108
+ attr_accessor :AsyncRequestId, :RequestId
2109
+
2110
+ def initialize(asyncrequestid=nil, requestid=nil)
2111
+ @AsyncRequestId = asyncrequestid
2112
+ @RequestId = requestid
2113
+ end
2114
+
2115
+ def deserialize(params)
2116
+ @AsyncRequestId = params['AsyncRequestId']
2117
+ @RequestId = params['RequestId']
2118
+ end
2119
+ end
2120
+
2121
+ # CreateCdbProxy请求参数结构体
2122
+ class CreateCdbProxyRequest < TencentCloud::Common::AbstractModel
2123
+ # @param InstanceId: 实例ID
2124
+ # @type InstanceId: String
2125
+ # @param UniqVpcId: 私有网络ID
2126
+ # @type UniqVpcId: String
2127
+ # @param UniqSubnetId: 私有子网ID
2128
+ # @type UniqSubnetId: String
2129
+ # @param ProxyNodeCustom: 节点规格配置
2130
+ # @type ProxyNodeCustom: Array
2131
+ # @param SecurityGroup: 安全组
2132
+ # @type SecurityGroup: Array
2133
+ # @param Desc: 描述
2134
+ # @type Desc: String
2135
+ # @param ConnectionPoolLimit: 连接池阈值
2136
+ # @type ConnectionPoolLimit: Integer
2137
+
2138
+ attr_accessor :InstanceId, :UniqVpcId, :UniqSubnetId, :ProxyNodeCustom, :SecurityGroup, :Desc, :ConnectionPoolLimit
2139
+
2140
+ def initialize(instanceid=nil, uniqvpcid=nil, uniqsubnetid=nil, proxynodecustom=nil, securitygroup=nil, desc=nil, connectionpoollimit=nil)
2141
+ @InstanceId = instanceid
2142
+ @UniqVpcId = uniqvpcid
2143
+ @UniqSubnetId = uniqsubnetid
2144
+ @ProxyNodeCustom = proxynodecustom
2145
+ @SecurityGroup = securitygroup
2146
+ @Desc = desc
2147
+ @ConnectionPoolLimit = connectionpoollimit
2148
+ end
2149
+
2150
+ def deserialize(params)
2151
+ @InstanceId = params['InstanceId']
2152
+ @UniqVpcId = params['UniqVpcId']
2153
+ @UniqSubnetId = params['UniqSubnetId']
2154
+ unless params['ProxyNodeCustom'].nil?
2155
+ @ProxyNodeCustom = []
2156
+ params['ProxyNodeCustom'].each do |i|
2157
+ proxynodecustom_tmp = ProxyNodeCustom.new
2158
+ proxynodecustom_tmp.deserialize(i)
2159
+ @ProxyNodeCustom << proxynodecustom_tmp
2160
+ end
2161
+ end
2162
+ @SecurityGroup = params['SecurityGroup']
2163
+ @Desc = params['Desc']
2164
+ @ConnectionPoolLimit = params['ConnectionPoolLimit']
2165
+ end
2166
+ end
2167
+
2168
+ # CreateCdbProxy返回参数结构体
2169
+ class CreateCdbProxyResponse < TencentCloud::Common::AbstractModel
2170
+ # @param AsyncRequestId: 异步任务ID
2171
+ # 注意:此字段可能返回 null,表示取不到有效值。
2172
+ # @type AsyncRequestId: String
2173
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2174
+ # @type RequestId: String
2175
+
2176
+ attr_accessor :AsyncRequestId, :RequestId
2177
+
2178
+ def initialize(asyncrequestid=nil, requestid=nil)
2179
+ @AsyncRequestId = asyncrequestid
2180
+ @RequestId = requestid
2181
+ end
2182
+
2183
+ def deserialize(params)
2184
+ @AsyncRequestId = params['AsyncRequestId']
2185
+ @RequestId = params['RequestId']
2186
+ end
2187
+ end
2188
+
1791
2189
  # CreateCloneInstance请求参数结构体
1792
2190
  class CreateCloneInstanceRequest < TencentCloud::Common::AbstractModel
1793
2191
  # @param InstanceId: 克隆源实例Id。
@@ -1989,7 +2387,7 @@ module TencentCloud
1989
2387
  # @type MasterInstanceId: String
1990
2388
  # @param InstanceRole: 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
1991
2389
  # @type InstanceRole: String
1992
- # @param MasterRegion: 主实例的可用区信息,购买灾备、RO实例时必填。
2390
+ # @param MasterRegion: 主实例地域信息,购买灾备、RO实例时,该字段必填。
1993
2391
  # @type MasterRegion: String
1994
2392
  # @param Port: 自定义端口,端口支持范围:[ 1024-65535 ] 。
1995
2393
  # @type Port: Integer
@@ -4139,6 +4537,59 @@ module TencentCloud
4139
4537
  end
4140
4538
  end
4141
4539
 
4540
+ # DescribeCdbProxyInfo请求参数结构体
4541
+ class DescribeCdbProxyInfoRequest < TencentCloud::Common::AbstractModel
4542
+ # @param InstanceId: 实例ID
4543
+ # @type InstanceId: String
4544
+ # @param ProxyGroupId: 代理组ID
4545
+ # @type ProxyGroupId: String
4546
+
4547
+ attr_accessor :InstanceId, :ProxyGroupId
4548
+
4549
+ def initialize(instanceid=nil, proxygroupid=nil)
4550
+ @InstanceId = instanceid
4551
+ @ProxyGroupId = proxygroupid
4552
+ end
4553
+
4554
+ def deserialize(params)
4555
+ @InstanceId = params['InstanceId']
4556
+ @ProxyGroupId = params['ProxyGroupId']
4557
+ end
4558
+ end
4559
+
4560
+ # DescribeCdbProxyInfo返回参数结构体
4561
+ class DescribeCdbProxyInfoResponse < TencentCloud::Common::AbstractModel
4562
+ # @param Count: 代理组数量
4563
+ # 注意:此字段可能返回 null,表示取不到有效值。
4564
+ # @type Count: Integer
4565
+ # @param ProxyInfos: 代理组信息
4566
+ # 注意:此字段可能返回 null,表示取不到有效值。
4567
+ # @type ProxyInfos: Array
4568
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4569
+ # @type RequestId: String
4570
+
4571
+ attr_accessor :Count, :ProxyInfos, :RequestId
4572
+
4573
+ def initialize(count=nil, proxyinfos=nil, requestid=nil)
4574
+ @Count = count
4575
+ @ProxyInfos = proxyinfos
4576
+ @RequestId = requestid
4577
+ end
4578
+
4579
+ def deserialize(params)
4580
+ @Count = params['Count']
4581
+ unless params['ProxyInfos'].nil?
4582
+ @ProxyInfos = []
4583
+ params['ProxyInfos'].each do |i|
4584
+ proxygroupinfo_tmp = ProxyGroupInfo.new
4585
+ proxygroupinfo_tmp.deserialize(i)
4586
+ @ProxyInfos << proxygroupinfo_tmp
4587
+ end
4588
+ end
4589
+ @RequestId = params['RequestId']
4590
+ end
4591
+ end
4592
+
4142
4593
  # DescribeCdbZoneConfig请求参数结构体
4143
4594
  class DescribeCdbZoneConfigRequest < TencentCloud::Common::AbstractModel
4144
4595
 
@@ -5814,6 +6265,78 @@ module TencentCloud
5814
6265
  end
5815
6266
  end
5816
6267
 
6268
+ # DescribeProxySupportParam请求参数结构体
6269
+ class DescribeProxySupportParamRequest < TencentCloud::Common::AbstractModel
6270
+ # @param InstanceId: 实例ID
6271
+ # @type InstanceId: String
6272
+
6273
+ attr_accessor :InstanceId
6274
+
6275
+ def initialize(instanceid=nil)
6276
+ @InstanceId = instanceid
6277
+ end
6278
+
6279
+ def deserialize(params)
6280
+ @InstanceId = params['InstanceId']
6281
+ end
6282
+ end
6283
+
6284
+ # DescribeProxySupportParam返回参数结构体
6285
+ class DescribeProxySupportParamResponse < TencentCloud::Common::AbstractModel
6286
+ # @param ProxyVersion: 支持最大代理版本
6287
+ # 注意:此字段可能返回 null,表示取不到有效值。
6288
+ # @type ProxyVersion: String
6289
+ # @param SupportPool: 是否支持连接池
6290
+ # 注意:此字段可能返回 null,表示取不到有效值。
6291
+ # @type SupportPool: Boolean
6292
+ # @param PoolMin: 连接池最小值
6293
+ # 注意:此字段可能返回 null,表示取不到有效值。
6294
+ # @type PoolMin: Integer
6295
+ # @param PoolMax: 连接池最大值
6296
+ # 注意:此字段可能返回 null,表示取不到有效值。
6297
+ # @type PoolMax: Integer
6298
+ # @param SupportTransSplit: 是否支持事务拆分
6299
+ # 注意:此字段可能返回 null,表示取不到有效值。
6300
+ # @type SupportTransSplit: Boolean
6301
+ # @param SupportPoolMinVersion: 支持连接池的最小代理版本
6302
+ # 注意:此字段可能返回 null,表示取不到有效值。
6303
+ # @type SupportPoolMinVersion: String
6304
+ # @param SupportTransSplitMinVersion: 支持事务拆分的最小代理版本
6305
+ # 注意:此字段可能返回 null,表示取不到有效值。
6306
+ # @type SupportTransSplitMinVersion: String
6307
+ # @param SupportReadOnly: 是否支持设置只读
6308
+ # 注意:此字段可能返回 null,表示取不到有效值。
6309
+ # @type SupportReadOnly: Boolean
6310
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6311
+ # @type RequestId: String
6312
+
6313
+ attr_accessor :ProxyVersion, :SupportPool, :PoolMin, :PoolMax, :SupportTransSplit, :SupportPoolMinVersion, :SupportTransSplitMinVersion, :SupportReadOnly, :RequestId
6314
+
6315
+ def initialize(proxyversion=nil, supportpool=nil, poolmin=nil, poolmax=nil, supporttranssplit=nil, supportpoolminversion=nil, supporttranssplitminversion=nil, supportreadonly=nil, requestid=nil)
6316
+ @ProxyVersion = proxyversion
6317
+ @SupportPool = supportpool
6318
+ @PoolMin = poolmin
6319
+ @PoolMax = poolmax
6320
+ @SupportTransSplit = supporttranssplit
6321
+ @SupportPoolMinVersion = supportpoolminversion
6322
+ @SupportTransSplitMinVersion = supporttranssplitminversion
6323
+ @SupportReadOnly = supportreadonly
6324
+ @RequestId = requestid
6325
+ end
6326
+
6327
+ def deserialize(params)
6328
+ @ProxyVersion = params['ProxyVersion']
6329
+ @SupportPool = params['SupportPool']
6330
+ @PoolMin = params['PoolMin']
6331
+ @PoolMax = params['PoolMax']
6332
+ @SupportTransSplit = params['SupportTransSplit']
6333
+ @SupportPoolMinVersion = params['SupportPoolMinVersion']
6334
+ @SupportTransSplitMinVersion = params['SupportTransSplitMinVersion']
6335
+ @SupportReadOnly = params['SupportReadOnly']
6336
+ @RequestId = params['RequestId']
6337
+ end
6338
+ end
6339
+
5817
6340
  # DescribeRemoteBackupConfig请求参数结构体
5818
6341
  class DescribeRemoteBackupConfigRequest < TencentCloud::Common::AbstractModel
5819
6342
  # @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
@@ -8240,29 +8763,165 @@ module TencentCloud
8240
8763
  # @param ReleaseDuration: 旧IP回收时间 单位小时
8241
8764
  # @type ReleaseDuration: Integer
8242
8765
 
8243
- attr_accessor :ProxyGroupId, :UniqVpcId, :UniqSubnetId, :DstIp, :DstPort, :ReleaseDuration
8766
+ attr_accessor :ProxyGroupId, :UniqVpcId, :UniqSubnetId, :DstIp, :DstPort, :ReleaseDuration
8767
+
8768
+ def initialize(proxygroupid=nil, uniqvpcid=nil, uniqsubnetid=nil, dstip=nil, dstport=nil, releaseduration=nil)
8769
+ @ProxyGroupId = proxygroupid
8770
+ @UniqVpcId = uniqvpcid
8771
+ @UniqSubnetId = uniqsubnetid
8772
+ @DstIp = dstip
8773
+ @DstPort = dstport
8774
+ @ReleaseDuration = releaseduration
8775
+ end
8776
+
8777
+ def deserialize(params)
8778
+ @ProxyGroupId = params['ProxyGroupId']
8779
+ @UniqVpcId = params['UniqVpcId']
8780
+ @UniqSubnetId = params['UniqSubnetId']
8781
+ @DstIp = params['DstIp']
8782
+ @DstPort = params['DstPort']
8783
+ @ReleaseDuration = params['ReleaseDuration']
8784
+ end
8785
+ end
8786
+
8787
+ # ModifyCDBProxyVipVPort返回参数结构体
8788
+ class ModifyCDBProxyVipVPortResponse < TencentCloud::Common::AbstractModel
8789
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8790
+ # @type RequestId: String
8791
+
8792
+ attr_accessor :RequestId
8793
+
8794
+ def initialize(requestid=nil)
8795
+ @RequestId = requestid
8796
+ end
8797
+
8798
+ def deserialize(params)
8799
+ @RequestId = params['RequestId']
8800
+ end
8801
+ end
8802
+
8803
+ # ModifyCdbProxyAddressDesc请求参数结构体
8804
+ class ModifyCdbProxyAddressDescRequest < TencentCloud::Common::AbstractModel
8805
+ # @param ProxyGroupId: 代理组ID
8806
+ # @type ProxyGroupId: String
8807
+ # @param ProxyAddressId: 代理组地址ID
8808
+ # @type ProxyAddressId: String
8809
+ # @param Desc: 描述
8810
+ # @type Desc: String
8811
+
8812
+ attr_accessor :ProxyGroupId, :ProxyAddressId, :Desc
8813
+
8814
+ def initialize(proxygroupid=nil, proxyaddressid=nil, desc=nil)
8815
+ @ProxyGroupId = proxygroupid
8816
+ @ProxyAddressId = proxyaddressid
8817
+ @Desc = desc
8818
+ end
8819
+
8820
+ def deserialize(params)
8821
+ @ProxyGroupId = params['ProxyGroupId']
8822
+ @ProxyAddressId = params['ProxyAddressId']
8823
+ @Desc = params['Desc']
8824
+ end
8825
+ end
8826
+
8827
+ # ModifyCdbProxyAddressDesc返回参数结构体
8828
+ class ModifyCdbProxyAddressDescResponse < TencentCloud::Common::AbstractModel
8829
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8830
+ # @type RequestId: String
8831
+
8832
+ attr_accessor :RequestId
8833
+
8834
+ def initialize(requestid=nil)
8835
+ @RequestId = requestid
8836
+ end
8837
+
8838
+ def deserialize(params)
8839
+ @RequestId = params['RequestId']
8840
+ end
8841
+ end
8842
+
8843
+ # ModifyCdbProxyAddressVipAndVPort请求参数结构体
8844
+ class ModifyCdbProxyAddressVipAndVPortRequest < TencentCloud::Common::AbstractModel
8845
+ # @param ProxyGroupId: 代理组ID
8846
+ # @type ProxyGroupId: String
8847
+ # @param ProxyAddressId: 代理组地址ID
8848
+ # @type ProxyAddressId: String
8849
+ # @param UniqVpcId: 私有网络ID
8850
+ # @type UniqVpcId: String
8851
+ # @param UniqSubnetId: 私有子网ID
8852
+ # @type UniqSubnetId: String
8853
+ # @param Vip: IP地址
8854
+ # @type Vip: String
8855
+ # @param VPort: 端口
8856
+ # @type VPort: Integer
8857
+ # @param ReleaseDuration: 旧IP地址回收时间
8858
+ # @type ReleaseDuration: Integer
8859
+
8860
+ attr_accessor :ProxyGroupId, :ProxyAddressId, :UniqVpcId, :UniqSubnetId, :Vip, :VPort, :ReleaseDuration
8861
+
8862
+ def initialize(proxygroupid=nil, proxyaddressid=nil, uniqvpcid=nil, uniqsubnetid=nil, vip=nil, vport=nil, releaseduration=nil)
8863
+ @ProxyGroupId = proxygroupid
8864
+ @ProxyAddressId = proxyaddressid
8865
+ @UniqVpcId = uniqvpcid
8866
+ @UniqSubnetId = uniqsubnetid
8867
+ @Vip = vip
8868
+ @VPort = vport
8869
+ @ReleaseDuration = releaseduration
8870
+ end
8871
+
8872
+ def deserialize(params)
8873
+ @ProxyGroupId = params['ProxyGroupId']
8874
+ @ProxyAddressId = params['ProxyAddressId']
8875
+ @UniqVpcId = params['UniqVpcId']
8876
+ @UniqSubnetId = params['UniqSubnetId']
8877
+ @Vip = params['Vip']
8878
+ @VPort = params['VPort']
8879
+ @ReleaseDuration = params['ReleaseDuration']
8880
+ end
8881
+ end
8882
+
8883
+ # ModifyCdbProxyAddressVipAndVPort返回参数结构体
8884
+ class ModifyCdbProxyAddressVipAndVPortResponse < TencentCloud::Common::AbstractModel
8885
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8886
+ # @type RequestId: String
8887
+
8888
+ attr_accessor :RequestId
8889
+
8890
+ def initialize(requestid=nil)
8891
+ @RequestId = requestid
8892
+ end
8893
+
8894
+ def deserialize(params)
8895
+ @RequestId = params['RequestId']
8896
+ end
8897
+ end
8898
+
8899
+ # ModifyCdbProxyParam请求参数结构体
8900
+ class ModifyCdbProxyParamRequest < TencentCloud::Common::AbstractModel
8901
+ # @param InstanceId: 实例ID
8902
+ # @type InstanceId: String
8903
+ # @param ProxyGroupId: 代理组ID
8904
+ # @type ProxyGroupId: String
8905
+ # @param ConnectionPoolLimit: 连接池阈值
8906
+ # @type ConnectionPoolLimit: Integer
8907
+
8908
+ attr_accessor :InstanceId, :ProxyGroupId, :ConnectionPoolLimit
8244
8909
 
8245
- def initialize(proxygroupid=nil, uniqvpcid=nil, uniqsubnetid=nil, dstip=nil, dstport=nil, releaseduration=nil)
8910
+ def initialize(instanceid=nil, proxygroupid=nil, connectionpoollimit=nil)
8911
+ @InstanceId = instanceid
8246
8912
  @ProxyGroupId = proxygroupid
8247
- @UniqVpcId = uniqvpcid
8248
- @UniqSubnetId = uniqsubnetid
8249
- @DstIp = dstip
8250
- @DstPort = dstport
8251
- @ReleaseDuration = releaseduration
8913
+ @ConnectionPoolLimit = connectionpoollimit
8252
8914
  end
8253
8915
 
8254
8916
  def deserialize(params)
8917
+ @InstanceId = params['InstanceId']
8255
8918
  @ProxyGroupId = params['ProxyGroupId']
8256
- @UniqVpcId = params['UniqVpcId']
8257
- @UniqSubnetId = params['UniqSubnetId']
8258
- @DstIp = params['DstIp']
8259
- @DstPort = params['DstPort']
8260
- @ReleaseDuration = params['ReleaseDuration']
8919
+ @ConnectionPoolLimit = params['ConnectionPoolLimit']
8261
8920
  end
8262
8921
  end
8263
8922
 
8264
- # ModifyCDBProxyVipVPort返回参数结构体
8265
- class ModifyCDBProxyVipVPortResponse < TencentCloud::Common::AbstractModel
8923
+ # ModifyCdbProxyParam返回参数结构体
8924
+ class ModifyCdbProxyParamResponse < TencentCloud::Common::AbstractModel
8266
8925
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8267
8926
  # @type RequestId: String
8268
8927
 
@@ -8935,6 +9594,7 @@ module TencentCloud
8935
9594
  # @param LogExpireDay: 审计日志保存时长。支持值包括:
8936
9595
  # 7 - 一周
8937
9596
  # 30 - 一个月;
9597
+ # 90 - 三个月;
8938
9598
  # 180 - 六个月;
8939
9599
  # 365 - 一年;
8940
9600
  # 1095 - 三年;
@@ -8943,24 +9603,35 @@ module TencentCloud
8943
9603
  # @param HighLogExpireDay: 高频审计日志保存时长。支持值包括:
8944
9604
  # 7 - 一周
8945
9605
  # 30 - 一个月;
8946
- # 180 - 六个月;
8947
- # 365 - 一年;
8948
- # 1095 - 三年;
8949
- # 1825 - 五年;
8950
9606
  # @type HighLogExpireDay: Integer
9607
+ # @param AuditRuleFilters: 审计规则。同RuleTemplateIds都不填是全审计。
9608
+ # @type AuditRuleFilters: Array
9609
+ # @param RuleTemplateIds: 规则模版ID。同AuditRuleFilters都不填是全审计。
9610
+ # @type RuleTemplateIds: Array
8951
9611
 
8952
- attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay
9612
+ attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds
8953
9613
 
8954
- def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil)
9614
+ def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil)
8955
9615
  @InstanceId = instanceid
8956
9616
  @LogExpireDay = logexpireday
8957
9617
  @HighLogExpireDay = highlogexpireday
9618
+ @AuditRuleFilters = auditrulefilters
9619
+ @RuleTemplateIds = ruletemplateids
8958
9620
  end
8959
9621
 
8960
9622
  def deserialize(params)
8961
9623
  @InstanceId = params['InstanceId']
8962
9624
  @LogExpireDay = params['LogExpireDay']
8963
9625
  @HighLogExpireDay = params['HighLogExpireDay']
9626
+ unless params['AuditRuleFilters'].nil?
9627
+ @AuditRuleFilters = []
9628
+ params['AuditRuleFilters'].each do |i|
9629
+ auditrulefilters_tmp = AuditRuleFilters.new
9630
+ auditrulefilters_tmp.deserialize(i)
9631
+ @AuditRuleFilters << auditrulefilters_tmp
9632
+ end
9633
+ end
9634
+ @RuleTemplateIds = params['RuleTemplateIds']
8964
9635
  end
8965
9636
  end
8966
9637
 
@@ -9319,6 +9990,132 @@ module TencentCloud
9319
9990
  end
9320
9991
  end
9321
9992
 
9993
+ # 数据库代理地址信息
9994
+ class ProxyAddress < TencentCloud::Common::AbstractModel
9995
+ # @param ProxyAddressId: 代理组地址ID
9996
+ # @type ProxyAddressId: String
9997
+ # @param UniqVpcId: 私有网络ID
9998
+ # @type UniqVpcId: String
9999
+ # @param UniqSubnetId: 私有子网ID
10000
+ # @type UniqSubnetId: String
10001
+ # @param Vip: IP地址
10002
+ # @type Vip: String
10003
+ # @param VPort: 端口
10004
+ # @type VPort: Integer
10005
+ # @param WeightMode: 权重分配模式;
10006
+ # 系统自动分配:"system", 自定义:"custom"
10007
+ # 注意:此字段可能返回 null,表示取不到有效值。
10008
+ # @type WeightMode: String
10009
+ # @param IsKickOut: 是否开启延迟剔除,取值:"true" | "false"
10010
+ # 注意:此字段可能返回 null,表示取不到有效值。
10011
+ # @type IsKickOut: Boolean
10012
+ # @param MinCount: 最小保留数量,最小取值:0
10013
+ # 注意:此字段可能返回 null,表示取不到有效值。
10014
+ # @type MinCount: Integer
10015
+ # @param MaxDelay: 延迟剔除阈值,最小取值:0
10016
+ # 注意:此字段可能返回 null,表示取不到有效值。
10017
+ # @type MaxDelay: Integer
10018
+ # @param AutoAddRo: 是否自动添加RO,取值:"true" | "false"
10019
+ # 注意:此字段可能返回 null,表示取不到有效值。
10020
+ # @type AutoAddRo: Boolean
10021
+ # @param ReadOnly: 是否是只读,取值:"true" | "false"
10022
+ # 注意:此字段可能返回 null,表示取不到有效值。
10023
+ # @type ReadOnly: Boolean
10024
+ # @param TransSplit: 是否开启事务分离
10025
+ # 注意:此字段可能返回 null,表示取不到有效值。
10026
+ # @type TransSplit: Boolean
10027
+ # @param FailOver: 是否开启故障转移
10028
+ # 注意:此字段可能返回 null,表示取不到有效值。
10029
+ # @type FailOver: Boolean
10030
+ # @param ConnectionPool: 是否开启连接池
10031
+ # 注意:此字段可能返回 null,表示取不到有效值。
10032
+ # @type ConnectionPool: Boolean
10033
+ # @param Desc: 描述
10034
+ # 注意:此字段可能返回 null,表示取不到有效值。
10035
+ # @type Desc: String
10036
+ # @param ProxyAllocation: 实例读权重分配
10037
+ # 注意:此字段可能返回 null,表示取不到有效值。
10038
+ # @type ProxyAllocation: Array
10039
+
10040
+ attr_accessor :ProxyAddressId, :UniqVpcId, :UniqSubnetId, :Vip, :VPort, :WeightMode, :IsKickOut, :MinCount, :MaxDelay, :AutoAddRo, :ReadOnly, :TransSplit, :FailOver, :ConnectionPool, :Desc, :ProxyAllocation
10041
+
10042
+ def initialize(proxyaddressid=nil, uniqvpcid=nil, uniqsubnetid=nil, vip=nil, vport=nil, weightmode=nil, iskickout=nil, mincount=nil, maxdelay=nil, autoaddro=nil, readonly=nil, transsplit=nil, failover=nil, connectionpool=nil, desc=nil, proxyallocation=nil)
10043
+ @ProxyAddressId = proxyaddressid
10044
+ @UniqVpcId = uniqvpcid
10045
+ @UniqSubnetId = uniqsubnetid
10046
+ @Vip = vip
10047
+ @VPort = vport
10048
+ @WeightMode = weightmode
10049
+ @IsKickOut = iskickout
10050
+ @MinCount = mincount
10051
+ @MaxDelay = maxdelay
10052
+ @AutoAddRo = autoaddro
10053
+ @ReadOnly = readonly
10054
+ @TransSplit = transsplit
10055
+ @FailOver = failover
10056
+ @ConnectionPool = connectionpool
10057
+ @Desc = desc
10058
+ @ProxyAllocation = proxyallocation
10059
+ end
10060
+
10061
+ def deserialize(params)
10062
+ @ProxyAddressId = params['ProxyAddressId']
10063
+ @UniqVpcId = params['UniqVpcId']
10064
+ @UniqSubnetId = params['UniqSubnetId']
10065
+ @Vip = params['Vip']
10066
+ @VPort = params['VPort']
10067
+ @WeightMode = params['WeightMode']
10068
+ @IsKickOut = params['IsKickOut']
10069
+ @MinCount = params['MinCount']
10070
+ @MaxDelay = params['MaxDelay']
10071
+ @AutoAddRo = params['AutoAddRo']
10072
+ @ReadOnly = params['ReadOnly']
10073
+ @TransSplit = params['TransSplit']
10074
+ @FailOver = params['FailOver']
10075
+ @ConnectionPool = params['ConnectionPool']
10076
+ @Desc = params['Desc']
10077
+ unless params['ProxyAllocation'].nil?
10078
+ @ProxyAllocation = []
10079
+ params['ProxyAllocation'].each do |i|
10080
+ proxyallocation_tmp = ProxyAllocation.new
10081
+ proxyallocation_tmp.deserialize(i)
10082
+ @ProxyAllocation << proxyallocation_tmp
10083
+ end
10084
+ end
10085
+ end
10086
+ end
10087
+
10088
+ # 代理节点权重分布
10089
+ class ProxyAllocation < TencentCloud::Common::AbstractModel
10090
+ # @param Region: 代理节点所属地域
10091
+ # @type Region: String
10092
+ # @param Zone: 代理节点所属可用区
10093
+ # @type Zone: String
10094
+ # @param ProxyInstance: 代理实例分布
10095
+ # @type ProxyInstance: Array
10096
+
10097
+ attr_accessor :Region, :Zone, :ProxyInstance
10098
+
10099
+ def initialize(region=nil, zone=nil, proxyinstance=nil)
10100
+ @Region = region
10101
+ @Zone = zone
10102
+ @ProxyInstance = proxyinstance
10103
+ end
10104
+
10105
+ def deserialize(params)
10106
+ @Region = params['Region']
10107
+ @Zone = params['Zone']
10108
+ unless params['ProxyInstance'].nil?
10109
+ @ProxyInstance = []
10110
+ params['ProxyInstance'].each do |i|
10111
+ proxyinst_tmp = ProxyInst.new
10112
+ proxyinst_tmp.deserialize(i)
10113
+ @ProxyInstance << proxyinst_tmp
10114
+ end
10115
+ end
10116
+ end
10117
+ end
10118
+
9322
10119
  # 数据代理组信息
9323
10120
  class ProxyGroup < TencentCloud::Common::AbstractModel
9324
10121
  # @param BaseGroup: 代理基本信息
@@ -9379,6 +10176,81 @@ module TencentCloud
9379
10176
  end
9380
10177
  end
9381
10178
 
10179
+ # 代理组详情
10180
+ class ProxyGroupInfo < TencentCloud::Common::AbstractModel
10181
+ # @param ProxyGroupId: 代理组ID
10182
+ # @type ProxyGroupId: String
10183
+ # @param ProxyVersion: 代理版本
10184
+ # 注意:此字段可能返回 null,表示取不到有效值。
10185
+ # @type ProxyVersion: String
10186
+ # @param SupportUpgradeProxyVersion: 代理支持升级版本
10187
+ # 注意:此字段可能返回 null,表示取不到有效值。
10188
+ # @type SupportUpgradeProxyVersion: String
10189
+ # @param Status: 代理状态
10190
+ # 注意:此字段可能返回 null,表示取不到有效值。
10191
+ # @type Status: String
10192
+ # @param TaskStatus: 代理任务状态
10193
+ # 注意:此字段可能返回 null,表示取不到有效值。
10194
+ # @type TaskStatus: String
10195
+ # @param ProxyNode: 代理组节点信息
10196
+ # 注意:此字段可能返回 null,表示取不到有效值。
10197
+ # @type ProxyNode: Array
10198
+ # @param ProxyAddress: 代理组地址信息
10199
+ # 注意:此字段可能返回 null,表示取不到有效值。
10200
+ # @type ProxyAddress: Array
10201
+ # @param ConnectionPoolLimit: 连接池阈值
10202
+ # 注意:此字段可能返回 null,表示取不到有效值。
10203
+ # @type ConnectionPoolLimit: Integer
10204
+ # @param SupportCreateProxyAddress: 支持创建地址
10205
+ # 注意:此字段可能返回 null,表示取不到有效值。
10206
+ # @type SupportCreateProxyAddress: Boolean
10207
+ # @param SupportUpgradeProxyMysqlVersion: 支持升级代理版本所需的cdb版本
10208
+ # 注意:此字段可能返回 null,表示取不到有效值。
10209
+ # @type SupportUpgradeProxyMysqlVersion: String
10210
+
10211
+ attr_accessor :ProxyGroupId, :ProxyVersion, :SupportUpgradeProxyVersion, :Status, :TaskStatus, :ProxyNode, :ProxyAddress, :ConnectionPoolLimit, :SupportCreateProxyAddress, :SupportUpgradeProxyMysqlVersion
10212
+
10213
+ def initialize(proxygroupid=nil, proxyversion=nil, supportupgradeproxyversion=nil, status=nil, taskstatus=nil, proxynode=nil, proxyaddress=nil, connectionpoollimit=nil, supportcreateproxyaddress=nil, supportupgradeproxymysqlversion=nil)
10214
+ @ProxyGroupId = proxygroupid
10215
+ @ProxyVersion = proxyversion
10216
+ @SupportUpgradeProxyVersion = supportupgradeproxyversion
10217
+ @Status = status
10218
+ @TaskStatus = taskstatus
10219
+ @ProxyNode = proxynode
10220
+ @ProxyAddress = proxyaddress
10221
+ @ConnectionPoolLimit = connectionpoollimit
10222
+ @SupportCreateProxyAddress = supportcreateproxyaddress
10223
+ @SupportUpgradeProxyMysqlVersion = supportupgradeproxymysqlversion
10224
+ end
10225
+
10226
+ def deserialize(params)
10227
+ @ProxyGroupId = params['ProxyGroupId']
10228
+ @ProxyVersion = params['ProxyVersion']
10229
+ @SupportUpgradeProxyVersion = params['SupportUpgradeProxyVersion']
10230
+ @Status = params['Status']
10231
+ @TaskStatus = params['TaskStatus']
10232
+ unless params['ProxyNode'].nil?
10233
+ @ProxyNode = []
10234
+ params['ProxyNode'].each do |i|
10235
+ proxynode_tmp = ProxyNode.new
10236
+ proxynode_tmp.deserialize(i)
10237
+ @ProxyNode << proxynode_tmp
10238
+ end
10239
+ end
10240
+ unless params['ProxyAddress'].nil?
10241
+ @ProxyAddress = []
10242
+ params['ProxyAddress'].each do |i|
10243
+ proxyaddress_tmp = ProxyAddress.new
10244
+ proxyaddress_tmp.deserialize(i)
10245
+ @ProxyAddress << proxyaddress_tmp
10246
+ end
10247
+ end
10248
+ @ConnectionPoolLimit = params['ConnectionPoolLimit']
10249
+ @SupportCreateProxyAddress = params['SupportCreateProxyAddress']
10250
+ @SupportUpgradeProxyMysqlVersion = params['SupportUpgradeProxyMysqlVersion']
10251
+ end
10252
+ end
10253
+
9382
10254
  # 数据代理组信息
9383
10255
  class ProxyGroups < TencentCloud::Common::AbstractModel
9384
10256
  # @param BaseGroup: 代理基本信息
@@ -9439,6 +10311,132 @@ module TencentCloud
9439
10311
  end
9440
10312
  end
9441
10313
 
10314
+ # 代理实例
10315
+ class ProxyInst < TencentCloud::Common::AbstractModel
10316
+ # @param InstanceId: 实例ID
10317
+ # 注意:此字段可能返回 null,表示取不到有效值。
10318
+ # @type InstanceId: String
10319
+ # @param InstanceName: 实例名称
10320
+ # 注意:此字段可能返回 null,表示取不到有效值。
10321
+ # @type InstanceName: String
10322
+ # @param InstanceType: 实例类型
10323
+ # 注意:此字段可能返回 null,表示取不到有效值。
10324
+ # @type InstanceType: String
10325
+ # @param Status: 实例状态,可能的返回值:0-创建中;1-运行中;4-隔离中;5-已隔离
10326
+ # 注意:此字段可能返回 null,表示取不到有效值。
10327
+ # @type Status: Integer
10328
+ # @param Weight: 只读权重,如果权重为系统自动分配,改值不生效,只代表是否启用该实例
10329
+ # 注意:此字段可能返回 null,表示取不到有效值。
10330
+ # @type Weight: Integer
10331
+ # @param Region: 实例所属地域
10332
+ # 注意:此字段可能返回 null,表示取不到有效值。
10333
+ # @type Region: String
10334
+ # @param Zone: 实例所属可用区
10335
+ # 注意:此字段可能返回 null,表示取不到有效值。
10336
+ # @type Zone: String
10337
+
10338
+ attr_accessor :InstanceId, :InstanceName, :InstanceType, :Status, :Weight, :Region, :Zone
10339
+
10340
+ def initialize(instanceid=nil, instancename=nil, instancetype=nil, status=nil, weight=nil, region=nil, zone=nil)
10341
+ @InstanceId = instanceid
10342
+ @InstanceName = instancename
10343
+ @InstanceType = instancetype
10344
+ @Status = status
10345
+ @Weight = weight
10346
+ @Region = region
10347
+ @Zone = zone
10348
+ end
10349
+
10350
+ def deserialize(params)
10351
+ @InstanceId = params['InstanceId']
10352
+ @InstanceName = params['InstanceName']
10353
+ @InstanceType = params['InstanceType']
10354
+ @Status = params['Status']
10355
+ @Weight = params['Weight']
10356
+ @Region = params['Region']
10357
+ @Zone = params['Zone']
10358
+ end
10359
+ end
10360
+
10361
+ # 代理节点
10362
+ class ProxyNode < TencentCloud::Common::AbstractModel
10363
+ # @param ProxyId: 代理节点ID
10364
+ # 注意:此字段可能返回 null,表示取不到有效值。
10365
+ # @type ProxyId: String
10366
+ # @param Cpu: CPU核数
10367
+ # 注意:此字段可能返回 null,表示取不到有效值。
10368
+ # @type Cpu: Integer
10369
+ # @param Mem: 内存大小
10370
+ # 注意:此字段可能返回 null,表示取不到有效值。
10371
+ # @type Mem: Integer
10372
+ # @param Status: 节点状态
10373
+ # 注意:此字段可能返回 null,表示取不到有效值。
10374
+ # @type Status: String
10375
+ # @param Zone: 代理节点可用区
10376
+ # 注意:此字段可能返回 null,表示取不到有效值。
10377
+ # @type Zone: String
10378
+ # @param Region: 代理节点地域
10379
+ # 注意:此字段可能返回 null,表示取不到有效值。
10380
+ # @type Region: String
10381
+ # @param Connection: 连接数
10382
+ # 注意:此字段可能返回 null,表示取不到有效值。
10383
+ # @type Connection: Integer
10384
+
10385
+ attr_accessor :ProxyId, :Cpu, :Mem, :Status, :Zone, :Region, :Connection
10386
+
10387
+ def initialize(proxyid=nil, cpu=nil, mem=nil, status=nil, zone=nil, region=nil, connection=nil)
10388
+ @ProxyId = proxyid
10389
+ @Cpu = cpu
10390
+ @Mem = mem
10391
+ @Status = status
10392
+ @Zone = zone
10393
+ @Region = region
10394
+ @Connection = connection
10395
+ end
10396
+
10397
+ def deserialize(params)
10398
+ @ProxyId = params['ProxyId']
10399
+ @Cpu = params['Cpu']
10400
+ @Mem = params['Mem']
10401
+ @Status = params['Status']
10402
+ @Zone = params['Zone']
10403
+ @Region = params['Region']
10404
+ @Connection = params['Connection']
10405
+ end
10406
+ end
10407
+
10408
+ # 节点规格配置
10409
+ class ProxyNodeCustom < TencentCloud::Common::AbstractModel
10410
+ # @param NodeCount: 节点个数
10411
+ # @type NodeCount: Integer
10412
+ # @param Cpu: CPU核数
10413
+ # @type Cpu: Integer
10414
+ # @param Mem: 内存大小
10415
+ # @type Mem: Integer
10416
+ # @param Region: 地域
10417
+ # @type Region: String
10418
+ # @param Zone: 可用区
10419
+ # @type Zone: String
10420
+
10421
+ attr_accessor :NodeCount, :Cpu, :Mem, :Region, :Zone
10422
+
10423
+ def initialize(nodecount=nil, cpu=nil, mem=nil, region=nil, zone=nil)
10424
+ @NodeCount = nodecount
10425
+ @Cpu = cpu
10426
+ @Mem = mem
10427
+ @Region = region
10428
+ @Zone = zone
10429
+ end
10430
+
10431
+ def deserialize(params)
10432
+ @NodeCount = params['NodeCount']
10433
+ @Cpu = params['Cpu']
10434
+ @Mem = params['Mem']
10435
+ @Region = params['Region']
10436
+ @Zone = params['Zone']
10437
+ end
10438
+ end
10439
+
9442
10440
  # 代理节点信息
9443
10441
  class ProxyNodeInfo < TencentCloud::Common::AbstractModel
9444
10442
  # @param ProxyNodeId: 代理节点ID
@@ -10401,6 +11399,30 @@ module TencentCloud
10401
11399
  end
10402
11400
  end
10403
11401
 
11402
+ # 审计规则的规则过滤条件
11403
+ class RuleFilters < TencentCloud::Common::AbstractModel
11404
+ # @param Type: 审计规则过滤条件的参数名称。可选值:host – 客户端 IP;user – 数据库账户;dbName – 数据库名称;sqlType-SQL类型;sql-sql语句;affectRows -影响行数;sentRows-返回行数;checkRows-扫描行数;execTime-执行时间。
11405
+ # @type Type: String
11406
+ # @param Compare: 审计规则过滤条件的匹配类型。可选值:INC – 包含;EXC – 不包含;EQS – 等于;NEQ – 不等于;REG-正则;GT-大于;LT-小于。
11407
+ # @type Compare: String
11408
+ # @param Value: 审计规则过滤条件的匹配值。sqlType条件的Value需在一下选择"alter", "changeuser", "create", "delete", "drop", "execute", "insert", "login", "logout", "other", "replace", "select", "set", "update"。
11409
+ # @type Value: Array
11410
+
11411
+ attr_accessor :Type, :Compare, :Value
11412
+
11413
+ def initialize(type=nil, compare=nil, value=nil)
11414
+ @Type = type
11415
+ @Compare = compare
11416
+ @Value = value
11417
+ end
11418
+
11419
+ def deserialize(params)
11420
+ @Type = params['Type']
11421
+ @Compare = params['Compare']
11422
+ @Value = params['Value']
11423
+ end
11424
+ end
11425
+
10404
11426
  # 安全组详情
10405
11427
  class SecurityGroup < TencentCloud::Common::AbstractModel
10406
11428
  # @param ProjectId: 项目ID