tencentcloud-sdk-dbbrain 3.0.556 → 3.0.557
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210527/client.rb +72 -0
- data/lib/v20210527/models.rb +258 -0
- 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: 6e295b4c67e1b2baab174fd51b670e05ff176dbd
|
4
|
+
data.tar.gz: 715f7591e8e9d7c689afc9fc1927126f37ee504f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26674ea4ec74ab4dd02c07211c9d75f450e455392be3e592ae1de80b271283a34542302b5ad193b9bbee497ad3adb0a1c2a797ab40d8c01c00ef33f32a765b42
|
7
|
+
data.tar.gz: 1a509cdd88c8b8f230740176f037d3ed242fbabe3a80ec4bcd3f38b5e5862843b111415788d5abfa81234e9c5c37d6bf6b1e965593a1cf3f74876e47f9065f82
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.557
|
data/lib/v20210527/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 用于创建云数据库实例的审计日志文件,最多下载600w审计日志。
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateAuditLogFile.
|
83
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::CreateAuditLogFileRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::CreateAuditLogFileResponse`
|
85
|
+
def CreateAuditLogFile(request)
|
86
|
+
body = send_request('CreateAuditLogFile', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateAuditLogFileResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
# 创建健康报告,并可以选择是否发送邮件。
|
81
105
|
|
82
106
|
# @param request: Request instance for CreateDBDiagReportTask.
|
@@ -269,6 +293,30 @@ module TencentCloud
|
|
269
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
294
|
end
|
271
295
|
|
296
|
+
# 用于删除云数据库实例的审计日志文件。
|
297
|
+
|
298
|
+
# @param request: Request instance for DeleteAuditLogFile.
|
299
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DeleteAuditLogFileRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DeleteAuditLogFileResponse`
|
301
|
+
def DeleteAuditLogFile(request)
|
302
|
+
body = send_request('DeleteAuditLogFile', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DeleteAuditLogFileResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
272
320
|
# 根据任务id删除健康报告生成任务
|
273
321
|
|
274
322
|
# @param request: Request instance for DeleteDBDiagReportTasks.
|
@@ -389,6 +437,30 @@ module TencentCloud
|
|
389
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
438
|
end
|
391
439
|
|
440
|
+
# 用于创建云数据库实例的审计日志文件
|
441
|
+
|
442
|
+
# @param request: Request instance for DescribeAuditLogFiles.
|
443
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeAuditLogFilesRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeAuditLogFilesResponse`
|
445
|
+
def DescribeAuditLogFiles(request)
|
446
|
+
body = send_request('DescribeAuditLogFiles', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DescribeAuditLogFilesResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
392
464
|
# 获取实例异常诊断事件的详情信息。
|
393
465
|
|
394
466
|
# @param request: Request instance for DescribeDBDiagEvent.
|
data/lib/v20210527/models.rb
CHANGED
@@ -61,6 +61,96 @@ module TencentCloud
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
# 审计日志文件
|
65
|
+
class AuditLogFile < TencentCloud::Common::AbstractModel
|
66
|
+
# @param AsyncRequestId: 审计日志文件生成异步任务ID。
|
67
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
68
|
+
# @type AsyncRequestId: Integer
|
69
|
+
# @param FileName: 审计日志文件名称。
|
70
|
+
# @type FileName: String
|
71
|
+
# @param CreateTime: 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。
|
72
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
73
|
+
# @type CreateTime: String
|
74
|
+
# @param Status: 文件状态值。可能返回的值为:
|
75
|
+
# "creating" - 生成中;
|
76
|
+
# "failed" - 创建失败;
|
77
|
+
# "success" - 已生成;
|
78
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
79
|
+
# @type Status: String
|
80
|
+
# @param FileSize: 文件大小,单位为 KB。
|
81
|
+
# @type FileSize: Float
|
82
|
+
# @param DownloadUrl: 审计日志下载地址。
|
83
|
+
# @type DownloadUrl: String
|
84
|
+
# @param ErrMsg: 错误信息。
|
85
|
+
# @type ErrMsg: String
|
86
|
+
# @param Progress: 文件生成进度。
|
87
|
+
# @type Progress: Float
|
88
|
+
# @param FinishTime: 文件生成成功时间。
|
89
|
+
# @type FinishTime: String
|
90
|
+
|
91
|
+
attr_accessor :AsyncRequestId, :FileName, :CreateTime, :Status, :FileSize, :DownloadUrl, :ErrMsg, :Progress, :FinishTime
|
92
|
+
|
93
|
+
def initialize(asyncrequestid=nil, filename=nil, createtime=nil, status=nil, filesize=nil, downloadurl=nil, errmsg=nil, progress=nil, finishtime=nil)
|
94
|
+
@AsyncRequestId = asyncrequestid
|
95
|
+
@FileName = filename
|
96
|
+
@CreateTime = createtime
|
97
|
+
@Status = status
|
98
|
+
@FileSize = filesize
|
99
|
+
@DownloadUrl = downloadurl
|
100
|
+
@ErrMsg = errmsg
|
101
|
+
@Progress = progress
|
102
|
+
@FinishTime = finishtime
|
103
|
+
end
|
104
|
+
|
105
|
+
def deserialize(params)
|
106
|
+
@AsyncRequestId = params['AsyncRequestId']
|
107
|
+
@FileName = params['FileName']
|
108
|
+
@CreateTime = params['CreateTime']
|
109
|
+
@Status = params['Status']
|
110
|
+
@FileSize = params['FileSize']
|
111
|
+
@DownloadUrl = params['DownloadUrl']
|
112
|
+
@ErrMsg = params['ErrMsg']
|
113
|
+
@Progress = params['Progress']
|
114
|
+
@FinishTime = params['FinishTime']
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# 过滤条件。可按设置的过滤条件过滤日志。
|
119
|
+
class AuditLogFilter < TencentCloud::Common::AbstractModel
|
120
|
+
# @param Host: 客户端地址。
|
121
|
+
# @type Host: Array
|
122
|
+
# @param DBName: 数据库名称。
|
123
|
+
# @type DBName: Array
|
124
|
+
# @param User: 用户名。
|
125
|
+
# @type User: Array
|
126
|
+
# @param SentRows: 返回行数。表示筛选返回行数大于该值的审计日志。
|
127
|
+
# @type SentRows: Integer
|
128
|
+
# @param AffectRows: 影响行数。表示筛选影响行数大于该值的审计日志。
|
129
|
+
# @type AffectRows: Integer
|
130
|
+
# @param ExecTime: 执行时间。单位为:µs。表示筛选执行时间大于该值的审计日志。
|
131
|
+
# @type ExecTime: Integer
|
132
|
+
|
133
|
+
attr_accessor :Host, :DBName, :User, :SentRows, :AffectRows, :ExecTime
|
134
|
+
|
135
|
+
def initialize(host=nil, dbname=nil, user=nil, sentrows=nil, affectrows=nil, exectime=nil)
|
136
|
+
@Host = host
|
137
|
+
@DBName = dbname
|
138
|
+
@User = user
|
139
|
+
@SentRows = sentrows
|
140
|
+
@AffectRows = affectrows
|
141
|
+
@ExecTime = exectime
|
142
|
+
end
|
143
|
+
|
144
|
+
def deserialize(params)
|
145
|
+
@Host = params['Host']
|
146
|
+
@DBName = params['DBName']
|
147
|
+
@User = params['User']
|
148
|
+
@SentRows = params['SentRows']
|
149
|
+
@AffectRows = params['AffectRows']
|
150
|
+
@ExecTime = params['ExecTime']
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
64
154
|
# CancelKillTask请求参数结构体
|
65
155
|
class CancelKillTaskRequest < TencentCloud::Common::AbstractModel
|
66
156
|
# @param InstanceId: 实例ID。
|
@@ -125,6 +215,65 @@ module TencentCloud
|
|
125
215
|
end
|
126
216
|
end
|
127
217
|
|
218
|
+
# CreateAuditLogFile请求参数结构体
|
219
|
+
class CreateAuditLogFileRequest < TencentCloud::Common::AbstractModel
|
220
|
+
# @param Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB。
|
221
|
+
# @type Product: String
|
222
|
+
# @param NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"
|
223
|
+
# @type NodeRequestType: String
|
224
|
+
# @param InstanceId: 实例 ID 。
|
225
|
+
# @type InstanceId: String
|
226
|
+
# @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
|
227
|
+
# @type StartTime: String
|
228
|
+
# @param EndTime: 截止时间,如“2019-09-11 10:13:14”。
|
229
|
+
# @type EndTime: String
|
230
|
+
# @param Filter: 过滤条件。可按设置的过滤条件过滤日志。
|
231
|
+
# @type Filter: :class:`Tencentcloud::Dbbrain.v20210527.models.AuditLogFilter`
|
232
|
+
|
233
|
+
attr_accessor :Product, :NodeRequestType, :InstanceId, :StartTime, :EndTime, :Filter
|
234
|
+
|
235
|
+
def initialize(product=nil, noderequesttype=nil, instanceid=nil, starttime=nil, endtime=nil, filter=nil)
|
236
|
+
@Product = product
|
237
|
+
@NodeRequestType = noderequesttype
|
238
|
+
@InstanceId = instanceid
|
239
|
+
@StartTime = starttime
|
240
|
+
@EndTime = endtime
|
241
|
+
@Filter = filter
|
242
|
+
end
|
243
|
+
|
244
|
+
def deserialize(params)
|
245
|
+
@Product = params['Product']
|
246
|
+
@NodeRequestType = params['NodeRequestType']
|
247
|
+
@InstanceId = params['InstanceId']
|
248
|
+
@StartTime = params['StartTime']
|
249
|
+
@EndTime = params['EndTime']
|
250
|
+
unless params['Filter'].nil?
|
251
|
+
@Filter = AuditLogFilter.new
|
252
|
+
@Filter.deserialize(params['Filter'])
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# CreateAuditLogFile返回参数结构体
|
258
|
+
class CreateAuditLogFileResponse < TencentCloud::Common::AbstractModel
|
259
|
+
# @param AsyncRequestId: 审计日志文件下载的任务ID
|
260
|
+
# @type AsyncRequestId: Integer
|
261
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
262
|
+
# @type RequestId: String
|
263
|
+
|
264
|
+
attr_accessor :AsyncRequestId, :RequestId
|
265
|
+
|
266
|
+
def initialize(asyncrequestid=nil, requestid=nil)
|
267
|
+
@AsyncRequestId = asyncrequestid
|
268
|
+
@RequestId = requestid
|
269
|
+
end
|
270
|
+
|
271
|
+
def deserialize(params)
|
272
|
+
@AsyncRequestId = params['AsyncRequestId']
|
273
|
+
@RequestId = params['RequestId']
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
128
277
|
# CreateDBDiagReportTask请求参数结构体
|
129
278
|
class CreateDBDiagReportTaskRequest < TencentCloud::Common::AbstractModel
|
130
279
|
# @param InstanceId: 实例ID。
|
@@ -560,6 +709,50 @@ module TencentCloud
|
|
560
709
|
end
|
561
710
|
end
|
562
711
|
|
712
|
+
# DeleteAuditLogFile请求参数结构体
|
713
|
+
class DeleteAuditLogFileRequest < TencentCloud::Common::AbstractModel
|
714
|
+
# @param Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB。
|
715
|
+
# @type Product: String
|
716
|
+
# @param NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"
|
717
|
+
# @type NodeRequestType: String
|
718
|
+
# @param InstanceId: 实例 ID 。
|
719
|
+
# @type InstanceId: String
|
720
|
+
# @param AsyncRequestId: 审计日志文件生成异步任务ID。
|
721
|
+
# @type AsyncRequestId: Integer
|
722
|
+
|
723
|
+
attr_accessor :Product, :NodeRequestType, :InstanceId, :AsyncRequestId
|
724
|
+
|
725
|
+
def initialize(product=nil, noderequesttype=nil, instanceid=nil, asyncrequestid=nil)
|
726
|
+
@Product = product
|
727
|
+
@NodeRequestType = noderequesttype
|
728
|
+
@InstanceId = instanceid
|
729
|
+
@AsyncRequestId = asyncrequestid
|
730
|
+
end
|
731
|
+
|
732
|
+
def deserialize(params)
|
733
|
+
@Product = params['Product']
|
734
|
+
@NodeRequestType = params['NodeRequestType']
|
735
|
+
@InstanceId = params['InstanceId']
|
736
|
+
@AsyncRequestId = params['AsyncRequestId']
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
# DeleteAuditLogFile返回参数结构体
|
741
|
+
class DeleteAuditLogFileResponse < TencentCloud::Common::AbstractModel
|
742
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
743
|
+
# @type RequestId: String
|
744
|
+
|
745
|
+
attr_accessor :RequestId
|
746
|
+
|
747
|
+
def initialize(requestid=nil)
|
748
|
+
@RequestId = requestid
|
749
|
+
end
|
750
|
+
|
751
|
+
def deserialize(params)
|
752
|
+
@RequestId = params['RequestId']
|
753
|
+
end
|
754
|
+
end
|
755
|
+
|
563
756
|
# DeleteDBDiagReportTasks请求参数结构体
|
564
757
|
class DeleteDBDiagReportTasksRequest < TencentCloud::Common::AbstractModel
|
565
758
|
# @param AsyncRequestIds: 需要删除的任务id列表
|
@@ -789,6 +982,71 @@ module TencentCloud
|
|
789
982
|
end
|
790
983
|
end
|
791
984
|
|
985
|
+
# DescribeAuditLogFiles请求参数结构体
|
986
|
+
class DescribeAuditLogFilesRequest < TencentCloud::Common::AbstractModel
|
987
|
+
# @param Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB。
|
988
|
+
# @type Product: String
|
989
|
+
# @param NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"
|
990
|
+
# @type NodeRequestType: String
|
991
|
+
# @param InstanceId: 实例 ID 。
|
992
|
+
# @type InstanceId: String
|
993
|
+
# @param Offset: 偏移量,默认为0。
|
994
|
+
# @type Offset: Integer
|
995
|
+
# @param Limit: 查询数目,默认为20,最大为100。
|
996
|
+
# @type Limit: Integer
|
997
|
+
|
998
|
+
attr_accessor :Product, :NodeRequestType, :InstanceId, :Offset, :Limit
|
999
|
+
|
1000
|
+
def initialize(product=nil, noderequesttype=nil, instanceid=nil, offset=nil, limit=nil)
|
1001
|
+
@Product = product
|
1002
|
+
@NodeRequestType = noderequesttype
|
1003
|
+
@InstanceId = instanceid
|
1004
|
+
@Offset = offset
|
1005
|
+
@Limit = limit
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
def deserialize(params)
|
1009
|
+
@Product = params['Product']
|
1010
|
+
@NodeRequestType = params['NodeRequestType']
|
1011
|
+
@InstanceId = params['InstanceId']
|
1012
|
+
@Offset = params['Offset']
|
1013
|
+
@Limit = params['Limit']
|
1014
|
+
end
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# DescribeAuditLogFiles返回参数结构体
|
1018
|
+
class DescribeAuditLogFilesResponse < TencentCloud::Common::AbstractModel
|
1019
|
+
# @param TotalCount: 符合条件的审计日志文件个数。
|
1020
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1021
|
+
# @type TotalCount: Integer
|
1022
|
+
# @param Items: 审计日志文件详情。
|
1023
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1024
|
+
# @type Items: Array
|
1025
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1026
|
+
# @type RequestId: String
|
1027
|
+
|
1028
|
+
attr_accessor :TotalCount, :Items, :RequestId
|
1029
|
+
|
1030
|
+
def initialize(totalcount=nil, items=nil, requestid=nil)
|
1031
|
+
@TotalCount = totalcount
|
1032
|
+
@Items = items
|
1033
|
+
@RequestId = requestid
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
def deserialize(params)
|
1037
|
+
@TotalCount = params['TotalCount']
|
1038
|
+
unless params['Items'].nil?
|
1039
|
+
@Items = []
|
1040
|
+
params['Items'].each do |i|
|
1041
|
+
auditlogfile_tmp = AuditLogFile.new
|
1042
|
+
auditlogfile_tmp.deserialize(i)
|
1043
|
+
@Items << auditlogfile_tmp
|
1044
|
+
end
|
1045
|
+
end
|
1046
|
+
@RequestId = params['RequestId']
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
792
1050
|
# DescribeDBDiagEvent请求参数结构体
|
793
1051
|
class DescribeDBDiagEventRequest < TencentCloud::Common::AbstractModel
|
794
1052
|
# @param InstanceId: 实例 ID 。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dbbrain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.557
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|