tencentcloud-sdk-cfw 3.0.572 → 3.0.573

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: 58980e190a9926907a3834c8d56630fe096ffe2e
4
- data.tar.gz: 4e461c3839503287c83ed812cc2b10bb1c7afb63
3
+ metadata.gz: d5694791571411b22776fa59035b0da14acc7b22
4
+ data.tar.gz: 521a037d944f88fdd8d48d97763a3f09fcabfbd2
5
5
  SHA512:
6
- metadata.gz: ef4e53e121028c5168bd9e29949f66e16fb45c23e5ccf3becdb7620bdb91a0c09d4b1f7fd6be9484f31181b5ed057f5e2aee0c16aa108a868f53a45ca4faebd1
7
- data.tar.gz: 4f97b881882d4492e5ae76af37bdf9f5c15da3669209f50a9441596c21557ea4e98fe81443685079c2601db4b1b35f2275b7e8c75ce7ad8c7e5e56070176a1e9
6
+ metadata.gz: 7be875344ce4f38312e407af7bcd09f3427fa2cfc9dfe9d947e676faae677509157db1db360ad8ac8ed877c013d4fdc4f4930079fbecfce2ca3fc0d28c4b7ec3
7
+ data.tar.gz: ba6663c55ad5e1900cd7ee1582f43e570f8877e4b9532d6f66a7deb2bcd9f77d0f829ccf1bcf58d2c6644b856e46e20839b548bf3c46934fb5959ccb58e8e40c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.572
1
+ 3.0.573
@@ -629,6 +629,30 @@ module TencentCloud
629
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
630
  end
631
631
 
632
+ # 日志审计日志查询
633
+
634
+ # @param request: Request instance for DescribeLogs.
635
+ # @type request: :class:`Tencentcloud::cfw::V20190904::DescribeLogsRequest`
636
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeLogsResponse`
637
+ def DescribeLogs(request)
638
+ body = send_request('DescribeLogs', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeLogsResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
632
656
  # 查询NAT访问控制列表
633
657
 
634
658
  # @param request: Request instance for DescribeNatAcRule.
@@ -2170,6 +2170,85 @@ module TencentCloud
2170
2170
  end
2171
2171
  end
2172
2172
 
2173
+ # DescribeLogs请求参数结构体
2174
+ class DescribeLogsRequest < TencentCloud::Common::AbstractModel
2175
+ # @param Index: 日志类型标识
2176
+ # 流量日志:互联网边界防火墙netflow_border,NAT边界防火墙netflow_nat,VPC间防火墙vpcnetflow,内网流量日志netflow_fl
2177
+ # 入侵防御日志rule_threatinfo
2178
+ # 访问控制日志:互联网边界规则rule_acl,NAT边界规则rule_acl,内网间规则rule_vpcacl,企业安全组rule_sg
2179
+ # 操作日志:防火墙开关-开关操作operate_switch,防火墙开关-实例配置operate_instance,资产中心操作operate_assetgroup,访问控制操作operate_acl,零信任防护操作operate_identity,入侵防御操作-入侵防御operate_ids,入侵防御操作-安全基线operate_baseline,常用工具操作operate_tool,网络蜜罐操作operate_honeypot,日志投递操作operate_logdelivery,通用设置操作operate_logstorage,登录日志operate_login
2180
+ # @type Index: String
2181
+ # @param Limit: 每页条数,最大支持2000
2182
+ # @type Limit: Integer
2183
+ # @param Offset: 偏移值,最大支持60000
2184
+ # @type Offset: Integer
2185
+ # @param StartTime: 筛选开始时间
2186
+ # @type StartTime: String
2187
+ # @param EndTime: 筛选结束时间
2188
+ # @type EndTime: String
2189
+ # @param Filters: 过滤条件组合,各数组元素间为AND关系,查询字段名Name参考文档https://cloud.tencent.com/document/product/1132/87894,数值类型字段不支持模糊匹配
2190
+ # @type Filters: Array
2191
+
2192
+ attr_accessor :Index, :Limit, :Offset, :StartTime, :EndTime, :Filters
2193
+
2194
+ def initialize(index=nil, limit=nil, offset=nil, starttime=nil, endtime=nil, filters=nil)
2195
+ @Index = index
2196
+ @Limit = limit
2197
+ @Offset = offset
2198
+ @StartTime = starttime
2199
+ @EndTime = endtime
2200
+ @Filters = filters
2201
+ end
2202
+
2203
+ def deserialize(params)
2204
+ @Index = params['Index']
2205
+ @Limit = params['Limit']
2206
+ @Offset = params['Offset']
2207
+ @StartTime = params['StartTime']
2208
+ @EndTime = params['EndTime']
2209
+ unless params['Filters'].nil?
2210
+ @Filters = []
2211
+ params['Filters'].each do |i|
2212
+ commonfilter_tmp = CommonFilter.new
2213
+ commonfilter_tmp.deserialize(i)
2214
+ @Filters << commonfilter_tmp
2215
+ end
2216
+ end
2217
+ end
2218
+ end
2219
+
2220
+ # DescribeLogs返回参数结构体
2221
+ class DescribeLogsResponse < TencentCloud::Common::AbstractModel
2222
+ # @param Data: 日志列表
2223
+ # @type Data: String
2224
+ # @param Total: 总条数
2225
+ # @type Total: Integer
2226
+ # @param ReturnCode: 返回状态码 0 成功 非0不成功
2227
+ # @type ReturnCode: Integer
2228
+ # @param ReturnMsg: 返回信息 success 成功 其他 不成功
2229
+ # @type ReturnMsg: String
2230
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2231
+ # @type RequestId: String
2232
+
2233
+ attr_accessor :Data, :Total, :ReturnCode, :ReturnMsg, :RequestId
2234
+
2235
+ def initialize(data=nil, total=nil, returncode=nil, returnmsg=nil, requestid=nil)
2236
+ @Data = data
2237
+ @Total = total
2238
+ @ReturnCode = returncode
2239
+ @ReturnMsg = returnmsg
2240
+ @RequestId = requestid
2241
+ end
2242
+
2243
+ def deserialize(params)
2244
+ @Data = params['Data']
2245
+ @Total = params['Total']
2246
+ @ReturnCode = params['ReturnCode']
2247
+ @ReturnMsg = params['ReturnMsg']
2248
+ @RequestId = params['RequestId']
2249
+ end
2250
+ end
2251
+
2173
2252
  # DescribeNatAcRule请求参数结构体
2174
2253
  class DescribeNatAcRuleRequest < TencentCloud::Common::AbstractModel
2175
2254
  # @param Limit: 每页条数
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cfw
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.572
4
+ version: 3.0.573
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-05-18 00:00:00.000000000 Z
11
+ date: 2023-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common