tencentcloud-sdk-cdb 3.0.557 → 3.0.558
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170320/models.rb +81 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 483b92561f110d0fbe42b5dd6e49030f644c6033
|
4
|
+
data.tar.gz: f155515946f397bff1d7ff18d9e358786b7fcaeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e35c3f1bab8fb234d0d6964e886b46d8619be263f2729067fe72e9d5368efdeb851457efaa8a9eb6f3b2b204c5dcfdb0faf341fa0010161753357e8a3ffbf01
|
7
|
+
data.tar.gz: ff869c02570e374e1838aa5307522433a97bf62206f5cbd351d0be9edd11131fa83856e0df3c1bbd4b642e63339835599c5828d6f5df150c3efd9dc30a5f3efd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.558
|
data/lib/v20170320/models.rb
CHANGED
@@ -455,10 +455,16 @@ module TencentCloud
|
|
455
455
|
# @type IoWaitTimeSection: String
|
456
456
|
# @param TransactionLivingTimeSection: 事务持续时间,格式为M-N,例如:10-200
|
457
457
|
# @type TransactionLivingTimeSection: String
|
458
|
+
# @param ThreadId: 线程ID
|
459
|
+
# @type ThreadId: Array
|
460
|
+
# @param SentRows: 返回行数。表示筛选返回行数大于该值的审计日志。
|
461
|
+
# @type SentRows: Integer
|
462
|
+
# @param ErrCode: mysql错误码
|
463
|
+
# @type ErrCode: Array
|
458
464
|
|
459
|
-
attr_accessor :Host, :User, :DBName, :TableName, :PolicyName, :Sql, :SqlType, :ExecTime, :AffectRows, :SqlTypes, :Sqls, :AffectRowsSection, :SentRowsSection, :ExecTimeSection, :LockWaitTimeSection, :IoWaitTimeSection, :TransactionLivingTimeSection
|
465
|
+
attr_accessor :Host, :User, :DBName, :TableName, :PolicyName, :Sql, :SqlType, :ExecTime, :AffectRows, :SqlTypes, :Sqls, :AffectRowsSection, :SentRowsSection, :ExecTimeSection, :LockWaitTimeSection, :IoWaitTimeSection, :TransactionLivingTimeSection, :ThreadId, :SentRows, :ErrCode
|
460
466
|
|
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)
|
467
|
+
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
468
|
@Host = host
|
463
469
|
@User = user
|
464
470
|
@DBName = dbname
|
@@ -476,6 +482,9 @@ module TencentCloud
|
|
476
482
|
@LockWaitTimeSection = lockwaittimesection
|
477
483
|
@IoWaitTimeSection = iowaittimesection
|
478
484
|
@TransactionLivingTimeSection = transactionlivingtimesection
|
485
|
+
@ThreadId = threadid
|
486
|
+
@SentRows = sentrows
|
487
|
+
@ErrCode = errcode
|
479
488
|
end
|
480
489
|
|
481
490
|
def deserialize(params)
|
@@ -496,6 +505,9 @@ module TencentCloud
|
|
496
505
|
@LockWaitTimeSection = params['LockWaitTimeSection']
|
497
506
|
@IoWaitTimeSection = params['IoWaitTimeSection']
|
498
507
|
@TransactionLivingTimeSection = params['TransactionLivingTimeSection']
|
508
|
+
@ThreadId = params['ThreadId']
|
509
|
+
@SentRows = params['SentRows']
|
510
|
+
@ErrCode = params['ErrCode']
|
499
511
|
end
|
500
512
|
end
|
501
513
|
|
@@ -603,6 +615,30 @@ module TencentCloud
|
|
603
615
|
end
|
604
616
|
end
|
605
617
|
|
618
|
+
# 审计规则的过滤条件
|
619
|
+
class AuditRuleFilters < TencentCloud::Common::AbstractModel
|
620
|
+
# @param RuleFilters: 单条审计规则。
|
621
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
622
|
+
# @type RuleFilters: Array
|
623
|
+
|
624
|
+
attr_accessor :RuleFilters
|
625
|
+
|
626
|
+
def initialize(rulefilters=nil)
|
627
|
+
@RuleFilters = rulefilters
|
628
|
+
end
|
629
|
+
|
630
|
+
def deserialize(params)
|
631
|
+
unless params['RuleFilters'].nil?
|
632
|
+
@RuleFilters = []
|
633
|
+
params['RuleFilters'].each do |i|
|
634
|
+
rulefilters_tmp = RuleFilters.new
|
635
|
+
rulefilters_tmp.deserialize(i)
|
636
|
+
@RuleFilters << rulefilters_tmp
|
637
|
+
end
|
638
|
+
end
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
606
642
|
# ECDB第二个从库的配置信息,只有ECDB实例才有这个字段
|
607
643
|
class BackupConfig < TencentCloud::Common::AbstractModel
|
608
644
|
# @param ReplicationMode: 第二个从库复制方式,可能的返回值:async-异步,semisync-半同步
|
@@ -1989,7 +2025,7 @@ module TencentCloud
|
|
1989
2025
|
# @type MasterInstanceId: String
|
1990
2026
|
# @param InstanceRole: 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
|
1991
2027
|
# @type InstanceRole: String
|
1992
|
-
# @param MasterRegion:
|
2028
|
+
# @param MasterRegion: 主实例地域信息,购买灾备、RO实例时,该字段必填。
|
1993
2029
|
# @type MasterRegion: String
|
1994
2030
|
# @param Port: 自定义端口,端口支持范围:[ 1024-65535 ] 。
|
1995
2031
|
# @type Port: Integer
|
@@ -8935,6 +8971,7 @@ module TencentCloud
|
|
8935
8971
|
# @param LogExpireDay: 审计日志保存时长。支持值包括:
|
8936
8972
|
# 7 - 一周
|
8937
8973
|
# 30 - 一个月;
|
8974
|
+
# 90 - 三个月;
|
8938
8975
|
# 180 - 六个月;
|
8939
8976
|
# 365 - 一年;
|
8940
8977
|
# 1095 - 三年;
|
@@ -8943,24 +8980,35 @@ module TencentCloud
|
|
8943
8980
|
# @param HighLogExpireDay: 高频审计日志保存时长。支持值包括:
|
8944
8981
|
# 7 - 一周
|
8945
8982
|
# 30 - 一个月;
|
8946
|
-
# 180 - 六个月;
|
8947
|
-
# 365 - 一年;
|
8948
|
-
# 1095 - 三年;
|
8949
|
-
# 1825 - 五年;
|
8950
8983
|
# @type HighLogExpireDay: Integer
|
8984
|
+
# @param AuditRuleFilters: 审计规则。同RuleTemplateIds都不填是全审计。
|
8985
|
+
# @type AuditRuleFilters: Array
|
8986
|
+
# @param RuleTemplateIds: 规则模版ID。同AuditRuleFilters都不填是全审计。
|
8987
|
+
# @type RuleTemplateIds: Array
|
8951
8988
|
|
8952
|
-
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay
|
8989
|
+
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds
|
8953
8990
|
|
8954
|
-
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil)
|
8991
|
+
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil)
|
8955
8992
|
@InstanceId = instanceid
|
8956
8993
|
@LogExpireDay = logexpireday
|
8957
8994
|
@HighLogExpireDay = highlogexpireday
|
8995
|
+
@AuditRuleFilters = auditrulefilters
|
8996
|
+
@RuleTemplateIds = ruletemplateids
|
8958
8997
|
end
|
8959
8998
|
|
8960
8999
|
def deserialize(params)
|
8961
9000
|
@InstanceId = params['InstanceId']
|
8962
9001
|
@LogExpireDay = params['LogExpireDay']
|
8963
9002
|
@HighLogExpireDay = params['HighLogExpireDay']
|
9003
|
+
unless params['AuditRuleFilters'].nil?
|
9004
|
+
@AuditRuleFilters = []
|
9005
|
+
params['AuditRuleFilters'].each do |i|
|
9006
|
+
auditrulefilters_tmp = AuditRuleFilters.new
|
9007
|
+
auditrulefilters_tmp.deserialize(i)
|
9008
|
+
@AuditRuleFilters << auditrulefilters_tmp
|
9009
|
+
end
|
9010
|
+
end
|
9011
|
+
@RuleTemplateIds = params['RuleTemplateIds']
|
8964
9012
|
end
|
8965
9013
|
end
|
8966
9014
|
|
@@ -10401,6 +10449,30 @@ module TencentCloud
|
|
10401
10449
|
end
|
10402
10450
|
end
|
10403
10451
|
|
10452
|
+
# 审计规则的规则过滤条件
|
10453
|
+
class RuleFilters < TencentCloud::Common::AbstractModel
|
10454
|
+
# @param Type: 审计规则过滤条件的参数名称。可选值:host – 客户端 IP;user – 数据库账户;dbName – 数据库名称;sqlType-SQL类型;sql-sql语句;affectRows -影响行数;sentRows-返回行数;checkRows-扫描行数;execTime-执行时间。
|
10455
|
+
# @type Type: String
|
10456
|
+
# @param Compare: 审计规则过滤条件的匹配类型。可选值:INC – 包含;EXC – 不包含;EQS – 等于;NEQ – 不等于;REG-正则;GT-大于;LT-小于。
|
10457
|
+
# @type Compare: String
|
10458
|
+
# @param Value: 审计规则过滤条件的匹配值。sqlType条件的Value需在一下选择"alter", "changeuser", "create", "delete", "drop", "execute", "insert", "login", "logout", "other", "replace", "select", "set", "update"。
|
10459
|
+
# @type Value: Array
|
10460
|
+
|
10461
|
+
attr_accessor :Type, :Compare, :Value
|
10462
|
+
|
10463
|
+
def initialize(type=nil, compare=nil, value=nil)
|
10464
|
+
@Type = type
|
10465
|
+
@Compare = compare
|
10466
|
+
@Value = value
|
10467
|
+
end
|
10468
|
+
|
10469
|
+
def deserialize(params)
|
10470
|
+
@Type = params['Type']
|
10471
|
+
@Compare = params['Compare']
|
10472
|
+
@Value = params['Value']
|
10473
|
+
end
|
10474
|
+
end
|
10475
|
+
|
10404
10476
|
# 安全组详情
|
10405
10477
|
class SecurityGroup < TencentCloud::Common::AbstractModel
|
10406
10478
|
# @param ProjectId: 项目ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.558
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|