tencentcloud-sdk-cfw 3.0.572 → 3.0.574
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/v20190904/client.rb +24 -0
- data/lib/v20190904/models.rb +79 -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: d424f8de064159586c8af3aff6d71157885b0312
|
4
|
+
data.tar.gz: 5e597522c95ec90176ab42207a352a8f16e45481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1291b57708040d39d5f88cfa014419411d7c569cc5a61de19ef8bcb0096780c9295d6b30abf970375facde63c42aa3c3224442831c0d5a4a61421fc45e3fdbd0
|
7
|
+
data.tar.gz: 95b312ac5e95269392cfedfa65f7cc098083a2506f9c6af57cddbcf3dc26e1c0b97d13df2fa3d8081b1b1623715cf2889c40f22c2584be534d172aeae33177d3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.574
|
data/lib/v20190904/client.rb
CHANGED
@@ -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.
|
data/lib/v20190904/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.574
|
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-
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|