tencentcloud-sdk-cfw 3.0.716 → 3.0.718
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 +72 -0
- data/lib/v20190904/models.rb +191 -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: 274332dbb0ff4133b48231f1c6d35cf237299eaf
|
4
|
+
data.tar.gz: e5b33da134211c17c1ac0c647b2a520914ce0794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be0cb76031e0999193acce5a092606531088f0fd7e1e9727377e504be5df41f6e5955cc6aba970fda59b1aab2f5719dbdd9952a9e39a153dd255f8118fa5a80
|
7
|
+
data.tar.gz: 534de709280bf5217cfc1967a21e9c3bcbfe2b231a517a20f22a6d7761a5b4fc283f0c9f4e71471b65885b4d8d3e0913bf2148f1dc6818fc790cba94761dc1a5
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.718
|
data/lib/v20190904/client.rb
CHANGED
@@ -341,6 +341,30 @@ module TencentCloud
|
|
341
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
342
|
end
|
343
343
|
|
344
|
+
# 创建入侵防御规则白名单接口
|
345
|
+
|
346
|
+
# @param request: Request instance for CreateIdsWhiteRule.
|
347
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::CreateIdsWhiteRuleRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::CreateIdsWhiteRuleResponse`
|
349
|
+
def CreateIdsWhiteRule(request)
|
350
|
+
body = send_request('CreateIdsWhiteRule', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = CreateIdsWhiteRuleResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
344
368
|
# 创建NAT防火墙实例(Region参数必填)
|
345
369
|
|
346
370
|
# @param request: Request instance for CreateNatFwInstance.
|
@@ -533,6 +557,30 @@ module TencentCloud
|
|
533
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
558
|
end
|
535
559
|
|
560
|
+
# 删除入侵防御规则白名单接口
|
561
|
+
|
562
|
+
# @param request: Request instance for DeleteIdsWhiteRule.
|
563
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DeleteIdsWhiteRuleRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DeleteIdsWhiteRuleResponse`
|
565
|
+
def DeleteIdsWhiteRule(request)
|
566
|
+
body = send_request('DeleteIdsWhiteRule', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = DeleteIdsWhiteRuleResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
536
584
|
# 销毁防火墙实例
|
537
585
|
|
538
586
|
# @param request: Request instance for DeleteNatFwInstance.
|
@@ -1061,6 +1109,30 @@ module TencentCloud
|
|
1061
1109
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
1110
|
end
|
1063
1111
|
|
1112
|
+
# 查询入侵防御规则白名单接口
|
1113
|
+
|
1114
|
+
# @param request: Request instance for DescribeIdsWhiteRule.
|
1115
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeIdsWhiteRuleRequest`
|
1116
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeIdsWhiteRuleResponse`
|
1117
|
+
def DescribeIdsWhiteRule(request)
|
1118
|
+
body = send_request('DescribeIdsWhiteRule', request.serialize)
|
1119
|
+
response = JSON.parse(body)
|
1120
|
+
if response['Response'].key?('Error') == false
|
1121
|
+
model = DescribeIdsWhiteRuleResponse.new
|
1122
|
+
model.deserialize(response['Response'])
|
1123
|
+
model
|
1124
|
+
else
|
1125
|
+
code = response['Response']['Error']['Code']
|
1126
|
+
message = response['Response']['Error']['Message']
|
1127
|
+
reqid = response['Response']['RequestId']
|
1128
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1129
|
+
end
|
1130
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1131
|
+
raise e
|
1132
|
+
rescue StandardError => e
|
1133
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
|
+
end
|
1135
|
+
|
1064
1136
|
# 日志审计日志查询
|
1065
1137
|
|
1066
1138
|
# @param request: Request instance for DescribeLogs.
|
data/lib/v20190904/models.rb
CHANGED
@@ -1206,6 +1206,79 @@ module TencentCloud
|
|
1206
1206
|
end
|
1207
1207
|
end
|
1208
1208
|
|
1209
|
+
# CreateIdsWhiteRule请求参数结构体
|
1210
|
+
class CreateIdsWhiteRuleRequest < TencentCloud::Common::AbstractModel
|
1211
|
+
# @param IdsRuleId: 入侵防御规则ID
|
1212
|
+
# @type IdsRuleId: String
|
1213
|
+
# @param WhiteRuleType: 白名单类型:
|
1214
|
+
# src 针对源放通
|
1215
|
+
# dst 针对目的放通
|
1216
|
+
# srcdst 针对源和目的放通
|
1217
|
+
# @type WhiteRuleType: String
|
1218
|
+
# @param FwType: 白名单生效防火墙范围:
|
1219
|
+
# 1 边界防火墙
|
1220
|
+
# 2 nat防火墙
|
1221
|
+
# 4 vpc防火墙
|
1222
|
+
# 7 = 1+2+4 所有防火墙
|
1223
|
+
# @type FwType: Integer
|
1224
|
+
# @param SrcIp: 源IP
|
1225
|
+
# @type SrcIp: String
|
1226
|
+
# @param DstIp: 目的IP
|
1227
|
+
# @type DstIp: String
|
1228
|
+
|
1229
|
+
attr_accessor :IdsRuleId, :WhiteRuleType, :FwType, :SrcIp, :DstIp
|
1230
|
+
|
1231
|
+
def initialize(idsruleid=nil, whiteruletype=nil, fwtype=nil, srcip=nil, dstip=nil)
|
1232
|
+
@IdsRuleId = idsruleid
|
1233
|
+
@WhiteRuleType = whiteruletype
|
1234
|
+
@FwType = fwtype
|
1235
|
+
@SrcIp = srcip
|
1236
|
+
@DstIp = dstip
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
def deserialize(params)
|
1240
|
+
@IdsRuleId = params['IdsRuleId']
|
1241
|
+
@WhiteRuleType = params['WhiteRuleType']
|
1242
|
+
@FwType = params['FwType']
|
1243
|
+
@SrcIp = params['SrcIp']
|
1244
|
+
@DstIp = params['DstIp']
|
1245
|
+
end
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
# CreateIdsWhiteRule返回参数结构体
|
1249
|
+
class CreateIdsWhiteRuleResponse < TencentCloud::Common::AbstractModel
|
1250
|
+
# @param ReturnCode: 返回状态码:
|
1251
|
+
# 0 成功
|
1252
|
+
# 非0 失败
|
1253
|
+
# @type ReturnCode: Integer
|
1254
|
+
# @param ReturnMsg: 返回信息:
|
1255
|
+
# success 成功
|
1256
|
+
# 其他
|
1257
|
+
# @type ReturnMsg: String
|
1258
|
+
# @param Status: 返回状态码:
|
1259
|
+
# 0 处置成功
|
1260
|
+
# -1 通用错误,不用处理
|
1261
|
+
# @type Status: Integer
|
1262
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1263
|
+
# @type RequestId: String
|
1264
|
+
|
1265
|
+
attr_accessor :ReturnCode, :ReturnMsg, :Status, :RequestId
|
1266
|
+
|
1267
|
+
def initialize(returncode=nil, returnmsg=nil, status=nil, requestid=nil)
|
1268
|
+
@ReturnCode = returncode
|
1269
|
+
@ReturnMsg = returnmsg
|
1270
|
+
@Status = status
|
1271
|
+
@RequestId = requestid
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
def deserialize(params)
|
1275
|
+
@ReturnCode = params['ReturnCode']
|
1276
|
+
@ReturnMsg = params['ReturnMsg']
|
1277
|
+
@Status = params['Status']
|
1278
|
+
@RequestId = params['RequestId']
|
1279
|
+
end
|
1280
|
+
end
|
1281
|
+
|
1209
1282
|
# CreateNatFwInstance请求参数结构体
|
1210
1283
|
class CreateNatFwInstanceRequest < TencentCloud::Common::AbstractModel
|
1211
1284
|
# @param Name: 防火墙实例名称
|
@@ -1875,6 +1948,57 @@ module TencentCloud
|
|
1875
1948
|
end
|
1876
1949
|
end
|
1877
1950
|
|
1951
|
+
# DeleteIdsWhiteRule请求参数结构体
|
1952
|
+
class DeleteIdsWhiteRuleRequest < TencentCloud::Common::AbstractModel
|
1953
|
+
# @param Id: 入侵防御白名单id
|
1954
|
+
# 参考DescribeIdsWhiteRule接口返回的Id字段
|
1955
|
+
# @type Id: Integer
|
1956
|
+
|
1957
|
+
attr_accessor :Id
|
1958
|
+
|
1959
|
+
def initialize(id=nil)
|
1960
|
+
@Id = id
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
def deserialize(params)
|
1964
|
+
@Id = params['Id']
|
1965
|
+
end
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
# DeleteIdsWhiteRule返回参数结构体
|
1969
|
+
class DeleteIdsWhiteRuleResponse < TencentCloud::Common::AbstractModel
|
1970
|
+
# @param ReturnCode: 返回状态码:
|
1971
|
+
# 0 成功
|
1972
|
+
# 非0 失败
|
1973
|
+
# @type ReturnCode: Integer
|
1974
|
+
# @param ReturnMsg: 返回信息:
|
1975
|
+
# success 成功
|
1976
|
+
# 其他
|
1977
|
+
# @type ReturnMsg: String
|
1978
|
+
# @param Status: 返回状态码:
|
1979
|
+
# 0 处置成功
|
1980
|
+
# -1 通用错误,不用处理
|
1981
|
+
# @type Status: Integer
|
1982
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1983
|
+
# @type RequestId: String
|
1984
|
+
|
1985
|
+
attr_accessor :ReturnCode, :ReturnMsg, :Status, :RequestId
|
1986
|
+
|
1987
|
+
def initialize(returncode=nil, returnmsg=nil, status=nil, requestid=nil)
|
1988
|
+
@ReturnCode = returncode
|
1989
|
+
@ReturnMsg = returnmsg
|
1990
|
+
@Status = status
|
1991
|
+
@RequestId = requestid
|
1992
|
+
end
|
1993
|
+
|
1994
|
+
def deserialize(params)
|
1995
|
+
@ReturnCode = params['ReturnCode']
|
1996
|
+
@ReturnMsg = params['ReturnMsg']
|
1997
|
+
@Status = params['Status']
|
1998
|
+
@RequestId = params['RequestId']
|
1999
|
+
end
|
2000
|
+
end
|
2001
|
+
|
1878
2002
|
# DeleteNatFwInstance请求参数结构体
|
1879
2003
|
class DeleteNatFwInstanceRequest < TencentCloud::Common::AbstractModel
|
1880
2004
|
# @param CfwInstance: 防火墙实例id
|
@@ -3364,6 +3488,73 @@ module TencentCloud
|
|
3364
3488
|
end
|
3365
3489
|
end
|
3366
3490
|
|
3491
|
+
# DescribeIdsWhiteRule请求参数结构体
|
3492
|
+
class DescribeIdsWhiteRuleRequest < TencentCloud::Common::AbstractModel
|
3493
|
+
# @param Limit: 每页条数
|
3494
|
+
# @type Limit: Integer
|
3495
|
+
# @param Offset: 偏移值
|
3496
|
+
# @type Offset: Integer
|
3497
|
+
# @param Filters: 过滤条件组合
|
3498
|
+
# @type Filters: Array
|
3499
|
+
# @param Order: desc:降序;asc:升序。根据By字段的值进行排序,这里传参的话则By也必须有值
|
3500
|
+
# @type Order: String
|
3501
|
+
# @param By: 排序所用到的字段
|
3502
|
+
# @type By: String
|
3503
|
+
|
3504
|
+
attr_accessor :Limit, :Offset, :Filters, :Order, :By
|
3505
|
+
|
3506
|
+
def initialize(limit=nil, offset=nil, filters=nil, order=nil, by=nil)
|
3507
|
+
@Limit = limit
|
3508
|
+
@Offset = offset
|
3509
|
+
@Filters = filters
|
3510
|
+
@Order = order
|
3511
|
+
@By = by
|
3512
|
+
end
|
3513
|
+
|
3514
|
+
def deserialize(params)
|
3515
|
+
@Limit = params['Limit']
|
3516
|
+
@Offset = params['Offset']
|
3517
|
+
unless params['Filters'].nil?
|
3518
|
+
@Filters = []
|
3519
|
+
params['Filters'].each do |i|
|
3520
|
+
commonfilter_tmp = CommonFilter.new
|
3521
|
+
commonfilter_tmp.deserialize(i)
|
3522
|
+
@Filters << commonfilter_tmp
|
3523
|
+
end
|
3524
|
+
end
|
3525
|
+
@Order = params['Order']
|
3526
|
+
@By = params['By']
|
3527
|
+
end
|
3528
|
+
end
|
3529
|
+
|
3530
|
+
# DescribeIdsWhiteRule返回参数结构体
|
3531
|
+
class DescribeIdsWhiteRuleResponse < TencentCloud::Common::AbstractModel
|
3532
|
+
# @param Total: 总条数
|
3533
|
+
# @type Total: Integer
|
3534
|
+
# @param ReturnCode: 返回状态码 0 成功 非0不成功
|
3535
|
+
# @type ReturnCode: Integer
|
3536
|
+
# @param ReturnMsg: 返回信息 success 成功 其他 不成功
|
3537
|
+
# @type ReturnMsg: String
|
3538
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3539
|
+
# @type RequestId: String
|
3540
|
+
|
3541
|
+
attr_accessor :Total, :ReturnCode, :ReturnMsg, :RequestId
|
3542
|
+
|
3543
|
+
def initialize(total=nil, returncode=nil, returnmsg=nil, requestid=nil)
|
3544
|
+
@Total = total
|
3545
|
+
@ReturnCode = returncode
|
3546
|
+
@ReturnMsg = returnmsg
|
3547
|
+
@RequestId = requestid
|
3548
|
+
end
|
3549
|
+
|
3550
|
+
def deserialize(params)
|
3551
|
+
@Total = params['Total']
|
3552
|
+
@ReturnCode = params['ReturnCode']
|
3553
|
+
@ReturnMsg = params['ReturnMsg']
|
3554
|
+
@RequestId = params['RequestId']
|
3555
|
+
end
|
3556
|
+
end
|
3557
|
+
|
3367
3558
|
# DescribeLogs请求参数结构体
|
3368
3559
|
class DescribeLogsRequest < TencentCloud::Common::AbstractModel
|
3369
3560
|
# @param Index: 日志类型标识
|
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.718
|
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-
|
11
|
+
date: 2023-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|