tencentcloud-sdk-cynosdb 3.0.428 → 3.0.429

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1163bb6bdd58140f7065bf74e3069fd332d95635
4
- data.tar.gz: 20b883a34eb77c97f2f28caf8daac82851643686
3
+ metadata.gz: 0d8b885660b9cfc262a5b199be637f5eb9567825
4
+ data.tar.gz: e898c5cc1abe517deef752928d6305a03a409559
5
5
  SHA512:
6
- metadata.gz: b72f1cdcb6e0d1bd62b5dabae487c58bab2c5ea455d423a659fea82b897eff8b64530cfef569c4d91c7838f1a961ca9ab0bce96094746352b88ce5e1a6e53ec8
7
- data.tar.gz: 9a959a1ca7119084c9f6170cb7c056fcec6fe70757d69c351fc4cd3a51d09c2185a4be1a96d80aa687c9b0c2b72e4a5f7c4e2e39e1b58682cb95c0794263e9d4
6
+ metadata.gz: 8bc5e61f244f9328c88fe730f8f66842d223f08ca82bcfffb018a2ce9e25199ea32399ba1f958d0e1b44c6c97e17d7486d58354605b98987e91f91c194d3a18d
7
+ data.tar.gz: 7d58612e06f7b36849d5647ab52ca1586074d954bc7dc0aa764d746b336c3ea7742b5a1fa2161d00cca7a23ba2246067c1b1421e5cceb757c837f13a99c3cd38
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.428
1
+ 3.0.429
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 本接口(CreateAuditLogFile)用于创建云数据库实例的审计日志文件。
153
+
154
+ # @param request: Request instance for CreateAuditLogFile.
155
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateAuditLogFileRequest`
156
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateAuditLogFileResponse`
157
+ def CreateAuditLogFile(request)
158
+ body = send_request('CreateAuditLogFile', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = CreateAuditLogFileResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 为集群创建手动备份
153
177
 
154
178
  # @param request: Request instance for CreateBackup.
@@ -197,6 +221,30 @@ module TencentCloud
197
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
222
  end
199
223
 
224
+ # 本接口(DeleteAuditLogFile)用于删除云数据库实例的审计日志文件。
225
+
226
+ # @param request: Request instance for DeleteAuditLogFile.
227
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DeleteAuditLogFileRequest`
228
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DeleteAuditLogFileResponse`
229
+ def DeleteAuditLogFile(request)
230
+ body = send_request('DeleteAuditLogFile', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DeleteAuditLogFileResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
200
248
  # 账号所有权限
201
249
 
202
250
  # @param request: Request instance for DescribeAccountAllGrantPrivileges.
@@ -245,6 +293,54 @@ module TencentCloud
245
293
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
294
  end
247
295
 
296
+ # 本接口(DescribeAuditLogFiles)用于查询云数据库实例的审计日志文件。
297
+
298
+ # @param request: Request instance for DescribeAuditLogFiles.
299
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditLogFilesRequest`
300
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditLogFilesResponse`
301
+ def DescribeAuditLogFiles(request)
302
+ body = send_request('DescribeAuditLogFiles', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DescribeAuditLogFilesResponse.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
+
320
+ # 本接口(DescribeAuditLogs)用于查询数据库审计日志。
321
+
322
+ # @param request: Request instance for DescribeAuditLogs.
323
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditLogsRequest`
324
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditLogsResponse`
325
+ def DescribeAuditLogs(request)
326
+ body = send_request('DescribeAuditLogs', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeAuditLogsResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
248
344
  # 获取指定集群的备份配置信息,包括全量备份时间段,备份文件保留时间
249
345
 
250
346
  # @param request: Request instance for DescribeBackupConfig.
@@ -310,6 +310,172 @@ module TencentCloud
310
310
  end
311
311
  end
312
312
 
313
+ # 审计日志详细信息
314
+ class AuditLog < TencentCloud::Common::AbstractModel
315
+ # @param AffectRows: 影响行数。
316
+ # @type AffectRows: Integer
317
+ # @param ErrCode: 错误码。
318
+ # @type ErrCode: Integer
319
+ # @param SqlType: SQL类型。
320
+ # @type SqlType: String
321
+ # @param TableName: 表名称。
322
+ # @type TableName: String
323
+ # @param InstanceName: 实例名称。
324
+ # @type InstanceName: String
325
+ # @param PolicyName: 审计策略名称。
326
+ # @type PolicyName: String
327
+ # @param DBName: 数据库名称。
328
+ # @type DBName: String
329
+ # @param Sql: SQL语句。
330
+ # @type Sql: String
331
+ # @param Host: 客户端地址。
332
+ # @type Host: String
333
+ # @param User: 用户名。
334
+ # @type User: String
335
+ # @param ExecTime: 执行时间。
336
+ # @type ExecTime: Integer
337
+ # @param Timestamp: 时间戳。
338
+ # @type Timestamp: String
339
+ # @param SentRows: 发送行数。
340
+ # @type SentRows: Integer
341
+ # @param ThreadId: 执行线程ID。
342
+ # @type ThreadId: Integer
343
+
344
+ attr_accessor :AffectRows, :ErrCode, :SqlType, :TableName, :InstanceName, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId
345
+
346
+ def initialize(affectrows=nil, errcode=nil, sqltype=nil, tablename=nil, instancename=nil, policyname=nil, dbname=nil, sql=nil, host=nil, user=nil, exectime=nil, timestamp=nil, sentrows=nil, threadid=nil)
347
+ @AffectRows = affectrows
348
+ @ErrCode = errcode
349
+ @SqlType = sqltype
350
+ @TableName = tablename
351
+ @InstanceName = instancename
352
+ @PolicyName = policyname
353
+ @DBName = dbname
354
+ @Sql = sql
355
+ @Host = host
356
+ @User = user
357
+ @ExecTime = exectime
358
+ @Timestamp = timestamp
359
+ @SentRows = sentrows
360
+ @ThreadId = threadid
361
+ end
362
+
363
+ def deserialize(params)
364
+ @AffectRows = params['AffectRows']
365
+ @ErrCode = params['ErrCode']
366
+ @SqlType = params['SqlType']
367
+ @TableName = params['TableName']
368
+ @InstanceName = params['InstanceName']
369
+ @PolicyName = params['PolicyName']
370
+ @DBName = params['DBName']
371
+ @Sql = params['Sql']
372
+ @Host = params['Host']
373
+ @User = params['User']
374
+ @ExecTime = params['ExecTime']
375
+ @Timestamp = params['Timestamp']
376
+ @SentRows = params['SentRows']
377
+ @ThreadId = params['ThreadId']
378
+ end
379
+ end
380
+
381
+ # 审计日志文件
382
+ class AuditLogFile < TencentCloud::Common::AbstractModel
383
+ # @param FileName: 审计日志文件名称
384
+ # @type FileName: String
385
+ # @param CreateTime: 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。
386
+ # @type CreateTime: String
387
+ # @param Status: 文件状态值。可能返回的值为:
388
+ # "creating" - 生成中;
389
+ # "failed" - 创建失败;
390
+ # "success" - 已生成;
391
+ # @type Status: String
392
+ # @param FileSize: 文件大小,单位为 KB。
393
+ # 注意:此字段可能返回 null,表示取不到有效值。
394
+ # @type FileSize: Integer
395
+ # @param DownloadUrl: 审计日志下载地址。
396
+ # 注意:此字段可能返回 null,表示取不到有效值。
397
+ # @type DownloadUrl: String
398
+ # @param ErrMsg: 错误信息。
399
+ # 注意:此字段可能返回 null,表示取不到有效值。
400
+ # @type ErrMsg: String
401
+
402
+ attr_accessor :FileName, :CreateTime, :Status, :FileSize, :DownloadUrl, :ErrMsg
403
+
404
+ def initialize(filename=nil, createtime=nil, status=nil, filesize=nil, downloadurl=nil, errmsg=nil)
405
+ @FileName = filename
406
+ @CreateTime = createtime
407
+ @Status = status
408
+ @FileSize = filesize
409
+ @DownloadUrl = downloadurl
410
+ @ErrMsg = errmsg
411
+ end
412
+
413
+ def deserialize(params)
414
+ @FileName = params['FileName']
415
+ @CreateTime = params['CreateTime']
416
+ @Status = params['Status']
417
+ @FileSize = params['FileSize']
418
+ @DownloadUrl = params['DownloadUrl']
419
+ @ErrMsg = params['ErrMsg']
420
+ end
421
+ end
422
+
423
+ # 审计日志过滤条件。查询审计日志时,用户过滤返回的审计日志。
424
+ class AuditLogFilter < TencentCloud::Common::AbstractModel
425
+ # @param Host: 客户端地址。
426
+ # @type Host: Array
427
+ # @param User: 用户名。
428
+ # @type User: Array
429
+ # @param DBName: 数据库名称。
430
+ # @type DBName: Array
431
+ # @param TableName: 表名称。
432
+ # @type TableName: Array
433
+ # @param PolicyName: 审计策略名称。
434
+ # @type PolicyName: Array
435
+ # @param Sql: SQL 语句。支持模糊匹配。
436
+ # @type Sql: String
437
+ # @param SqlType: SQL 类型。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
438
+ # @type SqlType: String
439
+ # @param ExecTime: 执行时间。单位为:ms。表示筛选执行时间大于该值的审计日志。
440
+ # @type ExecTime: Integer
441
+ # @param AffectRows: 影响行数。表示筛选影响行数大于该值的审计日志。
442
+ # @type AffectRows: Integer
443
+ # @param SqlTypes: SQL 类型。支持多个类型同时查询。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
444
+ # @type SqlTypes: Array
445
+ # @param Sqls: SQL 语句。支持传递多个sql语句。
446
+ # @type Sqls: Array
447
+
448
+ attr_accessor :Host, :User, :DBName, :TableName, :PolicyName, :Sql, :SqlType, :ExecTime, :AffectRows, :SqlTypes, :Sqls
449
+
450
+ def initialize(host=nil, user=nil, dbname=nil, tablename=nil, policyname=nil, sql=nil, sqltype=nil, exectime=nil, affectrows=nil, sqltypes=nil, sqls=nil)
451
+ @Host = host
452
+ @User = user
453
+ @DBName = dbname
454
+ @TableName = tablename
455
+ @PolicyName = policyname
456
+ @Sql = sql
457
+ @SqlType = sqltype
458
+ @ExecTime = exectime
459
+ @AffectRows = affectrows
460
+ @SqlTypes = sqltypes
461
+ @Sqls = sqls
462
+ end
463
+
464
+ def deserialize(params)
465
+ @Host = params['Host']
466
+ @User = params['User']
467
+ @DBName = params['DBName']
468
+ @TableName = params['TableName']
469
+ @PolicyName = params['PolicyName']
470
+ @Sql = params['Sql']
471
+ @SqlType = params['SqlType']
472
+ @ExecTime = params['ExecTime']
473
+ @AffectRows = params['AffectRows']
474
+ @SqlTypes = params['SqlTypes']
475
+ @Sqls = params['Sqls']
476
+ end
477
+ end
478
+
313
479
  # 备份文件信息
314
480
  class BackupFileInfo < TencentCloud::Common::AbstractModel
315
481
  # @param SnapshotId: 快照文件ID,已废弃,请使用BackupId
@@ -552,6 +718,68 @@ module TencentCloud
552
718
  end
553
719
  end
554
720
 
721
+ # CreateAuditLogFile请求参数结构体
722
+ class CreateAuditLogFileRequest < TencentCloud::Common::AbstractModel
723
+ # @param InstanceId: 实例ID
724
+ # @type InstanceId: String
725
+ # @param StartTime: 开始时间,格式为:"2017-07-12 10:29:20"。
726
+ # @type StartTime: String
727
+ # @param EndTime: 结束时间,格式为:"2017-07-12 10:29:20"。
728
+ # @type EndTime: String
729
+ # @param Order: 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
730
+ # @type Order: String
731
+ # @param OrderBy: 排序字段。支持值包括:
732
+ # "timestamp" - 时间戳;
733
+ # "affectRows" - 影响行数;
734
+ # "execTime" - 执行时间。
735
+ # @type OrderBy: String
736
+ # @param Filter: 过滤条件。可按设置的过滤条件过滤日志。
737
+ # @type Filter: :class:`Tencentcloud::Cynosdb.v20190107.models.AuditLogFilter`
738
+
739
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter
740
+
741
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil)
742
+ @InstanceId = instanceid
743
+ @StartTime = starttime
744
+ @EndTime = endtime
745
+ @Order = order
746
+ @OrderBy = orderby
747
+ @Filter = filter
748
+ end
749
+
750
+ def deserialize(params)
751
+ @InstanceId = params['InstanceId']
752
+ @StartTime = params['StartTime']
753
+ @EndTime = params['EndTime']
754
+ @Order = params['Order']
755
+ @OrderBy = params['OrderBy']
756
+ unless params['Filter'].nil?
757
+ @Filter = AuditLogFilter.new
758
+ @Filter.deserialize(params['Filter'])
759
+ end
760
+ end
761
+ end
762
+
763
+ # CreateAuditLogFile返回参数结构体
764
+ class CreateAuditLogFileResponse < TencentCloud::Common::AbstractModel
765
+ # @param FileName: 审计日志文件名称。
766
+ # @type FileName: String
767
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
768
+ # @type RequestId: String
769
+
770
+ attr_accessor :FileName, :RequestId
771
+
772
+ def initialize(filename=nil, requestid=nil)
773
+ @FileName = filename
774
+ @RequestId = requestid
775
+ end
776
+
777
+ def deserialize(params)
778
+ @FileName = params['FileName']
779
+ @RequestId = params['RequestId']
780
+ end
781
+ end
782
+
555
783
  # CreateBackup请求参数结构体
556
784
  class CreateBackupRequest < TencentCloud::Common::AbstractModel
557
785
  # @param ClusterId: 集群ID
@@ -1646,6 +1874,42 @@ module TencentCloud
1646
1874
  end
1647
1875
  end
1648
1876
 
1877
+ # DeleteAuditLogFile请求参数结构体
1878
+ class DeleteAuditLogFileRequest < TencentCloud::Common::AbstractModel
1879
+ # @param InstanceId: 实例ID
1880
+ # @type InstanceId: String
1881
+ # @param FileName: 审计日志文件名称。
1882
+ # @type FileName: String
1883
+
1884
+ attr_accessor :InstanceId, :FileName
1885
+
1886
+ def initialize(instanceid=nil, filename=nil)
1887
+ @InstanceId = instanceid
1888
+ @FileName = filename
1889
+ end
1890
+
1891
+ def deserialize(params)
1892
+ @InstanceId = params['InstanceId']
1893
+ @FileName = params['FileName']
1894
+ end
1895
+ end
1896
+
1897
+ # DeleteAuditLogFile返回参数结构体
1898
+ class DeleteAuditLogFileResponse < TencentCloud::Common::AbstractModel
1899
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1900
+ # @type RequestId: String
1901
+
1902
+ attr_accessor :RequestId
1903
+
1904
+ def initialize(requestid=nil)
1905
+ @RequestId = requestid
1906
+ end
1907
+
1908
+ def deserialize(params)
1909
+ @RequestId = params['RequestId']
1910
+ end
1911
+ end
1912
+
1649
1913
  # DescribeAccountAllGrantPrivileges请求参数结构体
1650
1914
  class DescribeAccountAllGrantPrivilegesRequest < TencentCloud::Common::AbstractModel
1651
1915
  # @param ClusterId: 集群id
@@ -1771,6 +2035,147 @@ module TencentCloud
1771
2035
  end
1772
2036
  end
1773
2037
 
2038
+ # DescribeAuditLogFiles请求参数结构体
2039
+ class DescribeAuditLogFilesRequest < TencentCloud::Common::AbstractModel
2040
+ # @param InstanceId: 实例ID
2041
+ # @type InstanceId: String
2042
+ # @param Limit: 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
2043
+ # @type Limit: Integer
2044
+ # @param Offset: 分页偏移量。
2045
+ # @type Offset: Integer
2046
+ # @param FileName: 审计日志文件名。
2047
+ # @type FileName: String
2048
+
2049
+ attr_accessor :InstanceId, :Limit, :Offset, :FileName
2050
+
2051
+ def initialize(instanceid=nil, limit=nil, offset=nil, filename=nil)
2052
+ @InstanceId = instanceid
2053
+ @Limit = limit
2054
+ @Offset = offset
2055
+ @FileName = filename
2056
+ end
2057
+
2058
+ def deserialize(params)
2059
+ @InstanceId = params['InstanceId']
2060
+ @Limit = params['Limit']
2061
+ @Offset = params['Offset']
2062
+ @FileName = params['FileName']
2063
+ end
2064
+ end
2065
+
2066
+ # DescribeAuditLogFiles返回参数结构体
2067
+ class DescribeAuditLogFilesResponse < TencentCloud::Common::AbstractModel
2068
+ # @param TotalCount: 符合条件的审计日志文件个数。
2069
+ # @type TotalCount: Integer
2070
+ # @param Items: 审计日志文件详情。
2071
+ # @type Items: Array
2072
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2073
+ # @type RequestId: String
2074
+
2075
+ attr_accessor :TotalCount, :Items, :RequestId
2076
+
2077
+ def initialize(totalcount=nil, items=nil, requestid=nil)
2078
+ @TotalCount = totalcount
2079
+ @Items = items
2080
+ @RequestId = requestid
2081
+ end
2082
+
2083
+ def deserialize(params)
2084
+ @TotalCount = params['TotalCount']
2085
+ unless params['Items'].nil?
2086
+ @Items = []
2087
+ params['Items'].each do |i|
2088
+ auditlogfile_tmp = AuditLogFile.new
2089
+ auditlogfile_tmp.deserialize(i)
2090
+ @Items << auditlogfile_tmp
2091
+ end
2092
+ end
2093
+ @RequestId = params['RequestId']
2094
+ end
2095
+ end
2096
+
2097
+ # DescribeAuditLogs请求参数结构体
2098
+ class DescribeAuditLogsRequest < TencentCloud::Common::AbstractModel
2099
+ # @param InstanceId: 实例ID
2100
+ # @type InstanceId: String
2101
+ # @param StartTime: 开始时间,格式为:"2017-07-12 10:29:20"。
2102
+ # @type StartTime: String
2103
+ # @param EndTime: 结束时间,格式为:"2017-07-12 10:29:20"。
2104
+ # @type EndTime: String
2105
+ # @param Order: 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
2106
+ # @type Order: String
2107
+ # @param OrderBy: 排序字段。支持值包括:
2108
+ # "timestamp" - 时间戳;
2109
+ # "affectRows" - 影响行数;
2110
+ # "execTime" - 执行时间。
2111
+ # @type OrderBy: String
2112
+ # @param Filter: 过滤条件。可按设置的过滤条件过滤日志。
2113
+ # @type Filter: :class:`Tencentcloud::Cynosdb.v20190107.models.AuditLogFilter`
2114
+ # @param Limit: 分页参数,单次返回的数据条数。默认值为100,最大值为100。
2115
+ # @type Limit: Integer
2116
+ # @param Offset: 分页偏移量。
2117
+ # @type Offset: Integer
2118
+
2119
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter, :Limit, :Offset
2120
+
2121
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil, limit=nil, offset=nil)
2122
+ @InstanceId = instanceid
2123
+ @StartTime = starttime
2124
+ @EndTime = endtime
2125
+ @Order = order
2126
+ @OrderBy = orderby
2127
+ @Filter = filter
2128
+ @Limit = limit
2129
+ @Offset = offset
2130
+ end
2131
+
2132
+ def deserialize(params)
2133
+ @InstanceId = params['InstanceId']
2134
+ @StartTime = params['StartTime']
2135
+ @EndTime = params['EndTime']
2136
+ @Order = params['Order']
2137
+ @OrderBy = params['OrderBy']
2138
+ unless params['Filter'].nil?
2139
+ @Filter = AuditLogFilter.new
2140
+ @Filter.deserialize(params['Filter'])
2141
+ end
2142
+ @Limit = params['Limit']
2143
+ @Offset = params['Offset']
2144
+ end
2145
+ end
2146
+
2147
+ # DescribeAuditLogs返回参数结构体
2148
+ class DescribeAuditLogsResponse < TencentCloud::Common::AbstractModel
2149
+ # @param TotalCount: 符合条件的审计日志条数。
2150
+ # @type TotalCount: Integer
2151
+ # @param Items: 审计日志详情。
2152
+ # 注意:此字段可能返回 null,表示取不到有效值。
2153
+ # @type Items: Array
2154
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2155
+ # @type RequestId: String
2156
+
2157
+ attr_accessor :TotalCount, :Items, :RequestId
2158
+
2159
+ def initialize(totalcount=nil, items=nil, requestid=nil)
2160
+ @TotalCount = totalcount
2161
+ @Items = items
2162
+ @RequestId = requestid
2163
+ end
2164
+
2165
+ def deserialize(params)
2166
+ @TotalCount = params['TotalCount']
2167
+ unless params['Items'].nil?
2168
+ @Items = []
2169
+ params['Items'].each do |i|
2170
+ auditlog_tmp = AuditLog.new
2171
+ auditlog_tmp.deserialize(i)
2172
+ @Items << auditlog_tmp
2173
+ end
2174
+ end
2175
+ @RequestId = params['RequestId']
2176
+ end
2177
+ end
2178
+
1774
2179
  # DescribeBackupConfig请求参数结构体
1775
2180
  class DescribeBackupConfigRequest < TencentCloud::Common::AbstractModel
1776
2181
  # @param ClusterId: 集群ID
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.428
4
+ version: 3.0.429
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2022-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common