tencentcloud-sdk-cynosdb 3.0.755 → 3.0.756
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/v20190107/client.rb +24 -0
- data/lib/v20190107/models.rb +202 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17071dacd713cf93473103486df7126080e88d88
|
4
|
+
data.tar.gz: 4e8951e3d13b0f14ae15847835a20d5a064fcd7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c923e000d6bd0ac42f9d7d527348071d49e1863bcc584b5a766b6894b191e5e386541143105d7ee3f0987e36d5ea58f583c54dfe72c504f5ce0468ab45d98ea4
|
7
|
+
data.tar.gz: 601230d86201dcf6a41f928a0b3e394d43ecdb905dfcdec9b7b9664170096ef84c25553d256521180acd21b3a38d1084385f4d9ec1a83b1d259643d5f83eec26
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.756
|
data/lib/v20190107/client.rb
CHANGED
@@ -725,6 +725,30 @@ module TencentCloud
|
|
725
725
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
726
|
end
|
727
727
|
|
728
|
+
# 获取审计实例列表
|
729
|
+
|
730
|
+
# @param request: Request instance for DescribeAuditInstanceList.
|
731
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditInstanceListRequest`
|
732
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditInstanceListResponse`
|
733
|
+
def DescribeAuditInstanceList(request)
|
734
|
+
body = send_request('DescribeAuditInstanceList', request.serialize)
|
735
|
+
response = JSON.parse(body)
|
736
|
+
if response['Response'].key?('Error') == false
|
737
|
+
model = DescribeAuditInstanceListResponse.new
|
738
|
+
model.deserialize(response['Response'])
|
739
|
+
model
|
740
|
+
else
|
741
|
+
code = response['Response']['Error']['Code']
|
742
|
+
message = response['Response']['Error']['Message']
|
743
|
+
reqid = response['Response']['RequestId']
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
+
end
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
+
raise e
|
748
|
+
rescue StandardError => e
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
+
end
|
751
|
+
|
728
752
|
# 本接口(DescribeAuditLogFiles)用于查询云数据库实例的审计日志文件。
|
729
753
|
|
730
754
|
# @param request: Request instance for DescribeAuditLogFiles.
|
data/lib/v20190107/models.rb
CHANGED
@@ -371,6 +371,59 @@ module TencentCloud
|
|
371
371
|
end
|
372
372
|
end
|
373
373
|
|
374
|
+
# 查询审计实例的过滤条件
|
375
|
+
class AuditInstanceFilters < TencentCloud::Common::AbstractModel
|
376
|
+
# @param Name: 过滤条件值。支持InstanceId-实例ID,InstanceName-实例名称,ProjectId-项目ID,TagKey-标签键,Tag-标签(以竖线分割,例:Tagkey|Tagvalue)。
|
377
|
+
# @type Name: String
|
378
|
+
# @param ExactMatch: true表示精确查找,false表示模糊匹配。
|
379
|
+
# @type ExactMatch: Boolean
|
380
|
+
# @param Values: 筛选值
|
381
|
+
# @type Values: Array
|
382
|
+
|
383
|
+
attr_accessor :Name, :ExactMatch, :Values
|
384
|
+
|
385
|
+
def initialize(name=nil, exactmatch=nil, values=nil)
|
386
|
+
@Name = name
|
387
|
+
@ExactMatch = exactmatch
|
388
|
+
@Values = values
|
389
|
+
end
|
390
|
+
|
391
|
+
def deserialize(params)
|
392
|
+
@Name = params['Name']
|
393
|
+
@ExactMatch = params['ExactMatch']
|
394
|
+
@Values = params['Values']
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
# 审计实例详情
|
399
|
+
class AuditInstanceInfo < TencentCloud::Common::AbstractModel
|
400
|
+
# @param ProjectId: 项目ID
|
401
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
402
|
+
# @type ProjectId: Integer
|
403
|
+
# @param TagList: 标签信息
|
404
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
405
|
+
# @type TagList: Array
|
406
|
+
|
407
|
+
attr_accessor :ProjectId, :TagList
|
408
|
+
|
409
|
+
def initialize(projectid=nil, taglist=nil)
|
410
|
+
@ProjectId = projectid
|
411
|
+
@TagList = taglist
|
412
|
+
end
|
413
|
+
|
414
|
+
def deserialize(params)
|
415
|
+
@ProjectId = params['ProjectId']
|
416
|
+
unless params['TagList'].nil?
|
417
|
+
@TagList = []
|
418
|
+
params['TagList'].each do |i|
|
419
|
+
tag_tmp = Tag.new
|
420
|
+
tag_tmp.deserialize(i)
|
421
|
+
@TagList << tag_tmp
|
422
|
+
end
|
423
|
+
end
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
374
427
|
# 审计日志详细信息
|
375
428
|
class AuditLog < TencentCloud::Common::AbstractModel
|
376
429
|
# @param AffectRows: 影响行数。
|
@@ -3864,6 +3917,77 @@ module TencentCloud
|
|
3864
3917
|
end
|
3865
3918
|
end
|
3866
3919
|
|
3920
|
+
# DescribeAuditInstanceList请求参数结构体
|
3921
|
+
class DescribeAuditInstanceListRequest < TencentCloud::Common::AbstractModel
|
3922
|
+
# @param AuditSwitch: 实例审计开启的状态。1-已开启审计;0-未开启审计。
|
3923
|
+
# @type AuditSwitch: Integer
|
3924
|
+
# @param Filters: 查询实例列表的过滤条件。
|
3925
|
+
# @type Filters: Array
|
3926
|
+
# @param AuditMode: 实例的审计规则模式。1-规则审计;0-全审计。
|
3927
|
+
# @type AuditMode: Integer
|
3928
|
+
# @param Limit: 单次请求返回的数量。默认值为30,最大值为 20000。
|
3929
|
+
# @type Limit: Integer
|
3930
|
+
# @param Offset: 偏移量,默认值为 0。
|
3931
|
+
# @type Offset: Integer
|
3932
|
+
|
3933
|
+
attr_accessor :AuditSwitch, :Filters, :AuditMode, :Limit, :Offset
|
3934
|
+
|
3935
|
+
def initialize(auditswitch=nil, filters=nil, auditmode=nil, limit=nil, offset=nil)
|
3936
|
+
@AuditSwitch = auditswitch
|
3937
|
+
@Filters = filters
|
3938
|
+
@AuditMode = auditmode
|
3939
|
+
@Limit = limit
|
3940
|
+
@Offset = offset
|
3941
|
+
end
|
3942
|
+
|
3943
|
+
def deserialize(params)
|
3944
|
+
@AuditSwitch = params['AuditSwitch']
|
3945
|
+
unless params['Filters'].nil?
|
3946
|
+
@Filters = []
|
3947
|
+
params['Filters'].each do |i|
|
3948
|
+
auditinstancefilters_tmp = AuditInstanceFilters.new
|
3949
|
+
auditinstancefilters_tmp.deserialize(i)
|
3950
|
+
@Filters << auditinstancefilters_tmp
|
3951
|
+
end
|
3952
|
+
end
|
3953
|
+
@AuditMode = params['AuditMode']
|
3954
|
+
@Limit = params['Limit']
|
3955
|
+
@Offset = params['Offset']
|
3956
|
+
end
|
3957
|
+
end
|
3958
|
+
|
3959
|
+
# DescribeAuditInstanceList返回参数结构体
|
3960
|
+
class DescribeAuditInstanceListResponse < TencentCloud::Common::AbstractModel
|
3961
|
+
# @param TotalCount: 符合查询条件的实例总数。
|
3962
|
+
# @type TotalCount: Integer
|
3963
|
+
# @param Items: 审计实例详细信息列表。
|
3964
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3965
|
+
# @type Items: Array
|
3966
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3967
|
+
# @type RequestId: String
|
3968
|
+
|
3969
|
+
attr_accessor :TotalCount, :Items, :RequestId
|
3970
|
+
|
3971
|
+
def initialize(totalcount=nil, items=nil, requestid=nil)
|
3972
|
+
@TotalCount = totalcount
|
3973
|
+
@Items = items
|
3974
|
+
@RequestId = requestid
|
3975
|
+
end
|
3976
|
+
|
3977
|
+
def deserialize(params)
|
3978
|
+
@TotalCount = params['TotalCount']
|
3979
|
+
unless params['Items'].nil?
|
3980
|
+
@Items = []
|
3981
|
+
params['Items'].each do |i|
|
3982
|
+
instanceauditstatus_tmp = InstanceAuditStatus.new
|
3983
|
+
instanceauditstatus_tmp.deserialize(i)
|
3984
|
+
@Items << instanceauditstatus_tmp
|
3985
|
+
end
|
3986
|
+
end
|
3987
|
+
@RequestId = params['RequestId']
|
3988
|
+
end
|
3989
|
+
end
|
3990
|
+
|
3867
3991
|
# DescribeAuditLogFiles请求参数结构体
|
3868
3992
|
class DescribeAuditLogFilesRequest < TencentCloud::Common::AbstractModel
|
3869
3993
|
# @param InstanceId: 实例ID
|
@@ -6954,6 +7078,84 @@ module TencentCloud
|
|
6954
7078
|
end
|
6955
7079
|
end
|
6956
7080
|
|
7081
|
+
# 实例审计详情信息
|
7082
|
+
class InstanceAuditStatus < TencentCloud::Common::AbstractModel
|
7083
|
+
# @param InstanceId: 实例ID。
|
7084
|
+
# @type InstanceId: String
|
7085
|
+
# @param AuditStatus: 审计状态。ON-表示审计已开启,OFF-表示审计关闭。
|
7086
|
+
# @type AuditStatus: String
|
7087
|
+
# @param LogExpireDay: 日志保留时长。
|
7088
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7089
|
+
# @type LogExpireDay: Integer
|
7090
|
+
# @param HighLogExpireDay: 高频存储时长。
|
7091
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7092
|
+
# @type HighLogExpireDay: Integer
|
7093
|
+
# @param LowLogExpireDay: 低频存储时长。
|
7094
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7095
|
+
# @type LowLogExpireDay: Integer
|
7096
|
+
# @param BillingAmount: 日志存储量。
|
7097
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7098
|
+
# @type BillingAmount: Float
|
7099
|
+
# @param HighRealStorage: 高频存储量。
|
7100
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7101
|
+
# @type HighRealStorage: Float
|
7102
|
+
# @param LowRealStorage: 低频存储量。
|
7103
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7104
|
+
# @type LowRealStorage: Float
|
7105
|
+
# @param AuditAll: 是否为全审计。true-表示全审计。
|
7106
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7107
|
+
# @type AuditAll: Boolean
|
7108
|
+
# @param CreateAt: 审计开通时间。
|
7109
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7110
|
+
# @type CreateAt: String
|
7111
|
+
# @param InstanceInfo: 实例相关信息。
|
7112
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7113
|
+
# @type InstanceInfo: :class:`Tencentcloud::Cynosdb.v20190107.models.AuditInstanceInfo`
|
7114
|
+
# @param RealStorage: 总存储量。
|
7115
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7116
|
+
# @type RealStorage: Float
|
7117
|
+
# @param RuleTemplateIds: 实例所应用的规则模板。
|
7118
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7119
|
+
# @type RuleTemplateIds: Array
|
7120
|
+
|
7121
|
+
attr_accessor :InstanceId, :AuditStatus, :LogExpireDay, :HighLogExpireDay, :LowLogExpireDay, :BillingAmount, :HighRealStorage, :LowRealStorage, :AuditAll, :CreateAt, :InstanceInfo, :RealStorage, :RuleTemplateIds
|
7122
|
+
|
7123
|
+
def initialize(instanceid=nil, auditstatus=nil, logexpireday=nil, highlogexpireday=nil, lowlogexpireday=nil, billingamount=nil, highrealstorage=nil, lowrealstorage=nil, auditall=nil, createat=nil, instanceinfo=nil, realstorage=nil, ruletemplateids=nil)
|
7124
|
+
@InstanceId = instanceid
|
7125
|
+
@AuditStatus = auditstatus
|
7126
|
+
@LogExpireDay = logexpireday
|
7127
|
+
@HighLogExpireDay = highlogexpireday
|
7128
|
+
@LowLogExpireDay = lowlogexpireday
|
7129
|
+
@BillingAmount = billingamount
|
7130
|
+
@HighRealStorage = highrealstorage
|
7131
|
+
@LowRealStorage = lowrealstorage
|
7132
|
+
@AuditAll = auditall
|
7133
|
+
@CreateAt = createat
|
7134
|
+
@InstanceInfo = instanceinfo
|
7135
|
+
@RealStorage = realstorage
|
7136
|
+
@RuleTemplateIds = ruletemplateids
|
7137
|
+
end
|
7138
|
+
|
7139
|
+
def deserialize(params)
|
7140
|
+
@InstanceId = params['InstanceId']
|
7141
|
+
@AuditStatus = params['AuditStatus']
|
7142
|
+
@LogExpireDay = params['LogExpireDay']
|
7143
|
+
@HighLogExpireDay = params['HighLogExpireDay']
|
7144
|
+
@LowLogExpireDay = params['LowLogExpireDay']
|
7145
|
+
@BillingAmount = params['BillingAmount']
|
7146
|
+
@HighRealStorage = params['HighRealStorage']
|
7147
|
+
@LowRealStorage = params['LowRealStorage']
|
7148
|
+
@AuditAll = params['AuditAll']
|
7149
|
+
@CreateAt = params['CreateAt']
|
7150
|
+
unless params['InstanceInfo'].nil?
|
7151
|
+
@InstanceInfo = AuditInstanceInfo.new
|
7152
|
+
@InstanceInfo.deserialize(params['InstanceInfo'])
|
7153
|
+
end
|
7154
|
+
@RealStorage = params['RealStorage']
|
7155
|
+
@RuleTemplateIds = params['RuleTemplateIds']
|
7156
|
+
end
|
7157
|
+
end
|
7158
|
+
|
6957
7159
|
# 实例初始化配置信息
|
6958
7160
|
class InstanceInitInfo < TencentCloud::Common::AbstractModel
|
6959
7161
|
# @param Cpu: 实例cpu
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cynosdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.756
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,8 +33,8 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/v20190107/client.rb
|
37
36
|
- lib/v20190107/models.rb
|
37
|
+
- lib/v20190107/client.rb
|
38
38
|
- lib/tencentcloud-sdk-cynosdb.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|