tencentcloud-sdk-waf 3.0.528 → 3.0.529
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/v20180125/client.rb +72 -0
- data/lib/v20180125/models.rb +280 -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: e924c36ca487e63bee8721f52cbc3eb371156a4d
|
4
|
+
data.tar.gz: b17e35af0c6704655f141f4d4ef03ff55b8a89a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f50fd3957f51e8264c019a2622b9f6db7cc62dabdb8cd0bcd99ff43dab23990683dd4a820950860fc0ad73f53ec890a13a10297c6f5072b4a10a1ce31e821c2
|
7
|
+
data.tar.gz: 9e878d91d2da14d113386e33b4de66d84a2152156b765e2dc423bdf9d697a50071e0104987abc9086947608f42da3910f0863fd3264cd7983b551f2e7a5d3f54
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.529
|
data/lib/v20180125/client.rb
CHANGED
@@ -390,6 +390,30 @@ module TencentCloud
|
|
390
390
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
391
391
|
end
|
392
392
|
|
393
|
+
# 获取防护配置中的精准白名单策略列表
|
394
|
+
|
395
|
+
# @param request: Request instance for DescribeCustomWhiteRule.
|
396
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeCustomWhiteRuleRequest`
|
397
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeCustomWhiteRuleResponse`
|
398
|
+
def DescribeCustomWhiteRule(request)
|
399
|
+
body = send_request('DescribeCustomWhiteRule', request.serialize)
|
400
|
+
response = JSON.parse(body)
|
401
|
+
if response['Response'].key?('Error') == false
|
402
|
+
model = DescribeCustomWhiteRuleResponse.new
|
403
|
+
model.deserialize(response['Response'])
|
404
|
+
model
|
405
|
+
else
|
406
|
+
code = response['Response']['Error']['Code']
|
407
|
+
message = response['Response']['Error']['Message']
|
408
|
+
reqid = response['Response']['RequestId']
|
409
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
410
|
+
end
|
411
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
412
|
+
raise e
|
413
|
+
rescue StandardError => e
|
414
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
415
|
+
end
|
416
|
+
|
393
417
|
# 查询单个saas域名详情
|
394
418
|
|
395
419
|
# @param request: Request instance for DescribeDomainDetailsSaas.
|
@@ -558,6 +582,54 @@ module TencentCloud
|
|
558
582
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
559
583
|
end
|
560
584
|
|
585
|
+
# 获取防护状态以及生效的实例id
|
586
|
+
|
587
|
+
# @param request: Request instance for DescribePolicyStatus.
|
588
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribePolicyStatusRequest`
|
589
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribePolicyStatusResponse`
|
590
|
+
def DescribePolicyStatus(request)
|
591
|
+
body = send_request('DescribePolicyStatus', request.serialize)
|
592
|
+
response = JSON.parse(body)
|
593
|
+
if response['Response'].key?('Error') == false
|
594
|
+
model = DescribePolicyStatusResponse.new
|
595
|
+
model.deserialize(response['Response'])
|
596
|
+
model
|
597
|
+
else
|
598
|
+
code = response['Response']['Error']['Code']
|
599
|
+
message = response['Response']['Error']['Message']
|
600
|
+
reqid = response['Response']['RequestId']
|
601
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
602
|
+
end
|
603
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
604
|
+
raise e
|
605
|
+
rescue StandardError => e
|
606
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
607
|
+
end
|
608
|
+
|
609
|
+
# 获取各个模块具体的规格限制
|
610
|
+
|
611
|
+
# @param request: Request instance for DescribeRuleLimit.
|
612
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeRuleLimitRequest`
|
613
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeRuleLimitResponse`
|
614
|
+
def DescribeRuleLimit(request)
|
615
|
+
body = send_request('DescribeRuleLimit', request.serialize)
|
616
|
+
response = JSON.parse(body)
|
617
|
+
if response['Response'].key?('Error') == false
|
618
|
+
model = DescribeRuleLimitResponse.new
|
619
|
+
model.deserialize(response['Response'])
|
620
|
+
model
|
621
|
+
else
|
622
|
+
code = response['Response']['Error']['Code']
|
623
|
+
message = response['Response']['Error']['Message']
|
624
|
+
reqid = response['Response']['RequestId']
|
625
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
626
|
+
end
|
627
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
628
|
+
raise e
|
629
|
+
rescue StandardError => e
|
630
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
631
|
+
end
|
632
|
+
|
561
633
|
# 在CDC场景下,负载均衡型WAF的添加、编辑域名配置的时候,需要展示CDC负载均衡型WAF(cdc-clb-waf)支持的地域列表,通过DescribeUserCdcClbWafRegions既可以获得当前对客户已经开放的地域列表
|
562
634
|
|
563
635
|
# @param request: Request instance for DescribeUserCdcClbWafRegions.
|
data/lib/v20180125/models.rb
CHANGED
@@ -1392,6 +1392,139 @@ module TencentCloud
|
|
1392
1392
|
end
|
1393
1393
|
end
|
1394
1394
|
|
1395
|
+
# DescribeCustomRules接口回包中的复杂类型
|
1396
|
+
class DescribeCustomRulesRspRuleListItem < TencentCloud::Common::AbstractModel
|
1397
|
+
# @param ActionType: 动作类型
|
1398
|
+
# @type ActionType: String
|
1399
|
+
# @param Bypass: 跳过的策略
|
1400
|
+
# @type Bypass: String
|
1401
|
+
# @param CreateTime: 创建时间
|
1402
|
+
# @type CreateTime: String
|
1403
|
+
# @param ExpireTime: 过期时间
|
1404
|
+
# @type ExpireTime: String
|
1405
|
+
# @param Name: 策略名称
|
1406
|
+
# @type Name: String
|
1407
|
+
# @param Redirect: 重定向地址
|
1408
|
+
# @type Redirect: String
|
1409
|
+
# @param RuleId: 策略ID
|
1410
|
+
# @type RuleId: String
|
1411
|
+
# @param SortId: 优先级
|
1412
|
+
# @type SortId: String
|
1413
|
+
# @param Status: 状态
|
1414
|
+
# @type Status: String
|
1415
|
+
# @param Strategies: 策略详情
|
1416
|
+
# @type Strategies: Array
|
1417
|
+
|
1418
|
+
attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies
|
1419
|
+
|
1420
|
+
def initialize(actiontype=nil, bypass=nil, createtime=nil, expiretime=nil, name=nil, redirect=nil, ruleid=nil, sortid=nil, status=nil, strategies=nil)
|
1421
|
+
@ActionType = actiontype
|
1422
|
+
@Bypass = bypass
|
1423
|
+
@CreateTime = createtime
|
1424
|
+
@ExpireTime = expiretime
|
1425
|
+
@Name = name
|
1426
|
+
@Redirect = redirect
|
1427
|
+
@RuleId = ruleid
|
1428
|
+
@SortId = sortid
|
1429
|
+
@Status = status
|
1430
|
+
@Strategies = strategies
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
def deserialize(params)
|
1434
|
+
@ActionType = params['ActionType']
|
1435
|
+
@Bypass = params['Bypass']
|
1436
|
+
@CreateTime = params['CreateTime']
|
1437
|
+
@ExpireTime = params['ExpireTime']
|
1438
|
+
@Name = params['Name']
|
1439
|
+
@Redirect = params['Redirect']
|
1440
|
+
@RuleId = params['RuleId']
|
1441
|
+
@SortId = params['SortId']
|
1442
|
+
@Status = params['Status']
|
1443
|
+
unless params['Strategies'].nil?
|
1444
|
+
@Strategies = []
|
1445
|
+
params['Strategies'].each do |i|
|
1446
|
+
strategy_tmp = Strategy.new
|
1447
|
+
strategy_tmp.deserialize(i)
|
1448
|
+
@Strategies << strategy_tmp
|
1449
|
+
end
|
1450
|
+
end
|
1451
|
+
end
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
# DescribeCustomWhiteRule请求参数结构体
|
1455
|
+
class DescribeCustomWhiteRuleRequest < TencentCloud::Common::AbstractModel
|
1456
|
+
# @param Domain: 域名
|
1457
|
+
# @type Domain: String
|
1458
|
+
# @param Offset: 偏移
|
1459
|
+
# @type Offset: Integer
|
1460
|
+
# @param Limit: 容量
|
1461
|
+
# @type Limit: Integer
|
1462
|
+
# @param Filters: 过滤数组,name可以是如下的值: RuleID,RuleName,Match
|
1463
|
+
# @type Filters: Array
|
1464
|
+
# @param Order: asc或者desc
|
1465
|
+
# @type Order: String
|
1466
|
+
# @param By: exp_ts或者mod_ts
|
1467
|
+
# @type By: String
|
1468
|
+
|
1469
|
+
attr_accessor :Domain, :Offset, :Limit, :Filters, :Order, :By
|
1470
|
+
|
1471
|
+
def initialize(domain=nil, offset=nil, limit=nil, filters=nil, order=nil, by=nil)
|
1472
|
+
@Domain = domain
|
1473
|
+
@Offset = offset
|
1474
|
+
@Limit = limit
|
1475
|
+
@Filters = filters
|
1476
|
+
@Order = order
|
1477
|
+
@By = by
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
def deserialize(params)
|
1481
|
+
@Domain = params['Domain']
|
1482
|
+
@Offset = params['Offset']
|
1483
|
+
@Limit = params['Limit']
|
1484
|
+
unless params['Filters'].nil?
|
1485
|
+
@Filters = []
|
1486
|
+
params['Filters'].each do |i|
|
1487
|
+
filtersitemnew_tmp = FiltersItemNew.new
|
1488
|
+
filtersitemnew_tmp.deserialize(i)
|
1489
|
+
@Filters << filtersitemnew_tmp
|
1490
|
+
end
|
1491
|
+
end
|
1492
|
+
@Order = params['Order']
|
1493
|
+
@By = params['By']
|
1494
|
+
end
|
1495
|
+
end
|
1496
|
+
|
1497
|
+
# DescribeCustomWhiteRule返回参数结构体
|
1498
|
+
class DescribeCustomWhiteRuleResponse < TencentCloud::Common::AbstractModel
|
1499
|
+
# @param RuleList: 规则详情
|
1500
|
+
# @type RuleList: Array
|
1501
|
+
# @param TotalCount: 规则条数
|
1502
|
+
# @type TotalCount: String
|
1503
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1504
|
+
# @type RequestId: String
|
1505
|
+
|
1506
|
+
attr_accessor :RuleList, :TotalCount, :RequestId
|
1507
|
+
|
1508
|
+
def initialize(rulelist=nil, totalcount=nil, requestid=nil)
|
1509
|
+
@RuleList = rulelist
|
1510
|
+
@TotalCount = totalcount
|
1511
|
+
@RequestId = requestid
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
def deserialize(params)
|
1515
|
+
unless params['RuleList'].nil?
|
1516
|
+
@RuleList = []
|
1517
|
+
params['RuleList'].each do |i|
|
1518
|
+
describecustomrulesrsprulelistitem_tmp = DescribeCustomRulesRspRuleListItem.new
|
1519
|
+
describecustomrulesrsprulelistitem_tmp.deserialize(i)
|
1520
|
+
@RuleList << describecustomrulesrsprulelistitem_tmp
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
@TotalCount = params['TotalCount']
|
1524
|
+
@RequestId = params['RequestId']
|
1525
|
+
end
|
1526
|
+
end
|
1527
|
+
|
1395
1528
|
# DescribeDomainDetailsSaas请求参数结构体
|
1396
1529
|
class DescribeDomainDetailsSaasRequest < TencentCloud::Common::AbstractModel
|
1397
1530
|
# @param Domain: 域名
|
@@ -1850,6 +1983,89 @@ module TencentCloud
|
|
1850
1983
|
end
|
1851
1984
|
end
|
1852
1985
|
|
1986
|
+
# DescribePolicyStatus请求参数结构体
|
1987
|
+
class DescribePolicyStatusRequest < TencentCloud::Common::AbstractModel
|
1988
|
+
# @param Domain: 域名
|
1989
|
+
# @type Domain: String
|
1990
|
+
# @param Edition: clb-waf或者saas-waf
|
1991
|
+
# @type Edition: String
|
1992
|
+
|
1993
|
+
attr_accessor :Domain, :Edition
|
1994
|
+
|
1995
|
+
def initialize(domain=nil, edition=nil)
|
1996
|
+
@Domain = domain
|
1997
|
+
@Edition = edition
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
def deserialize(params)
|
2001
|
+
@Domain = params['Domain']
|
2002
|
+
@Edition = params['Edition']
|
2003
|
+
end
|
2004
|
+
end
|
2005
|
+
|
2006
|
+
# DescribePolicyStatus返回参数结构体
|
2007
|
+
class DescribePolicyStatusResponse < TencentCloud::Common::AbstractModel
|
2008
|
+
# @param InstanceId: 实例ID
|
2009
|
+
# @type InstanceId: String
|
2010
|
+
# @param Status: 防护状态
|
2011
|
+
# @type Status: Integer
|
2012
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2013
|
+
# @type RequestId: String
|
2014
|
+
|
2015
|
+
attr_accessor :InstanceId, :Status, :RequestId
|
2016
|
+
|
2017
|
+
def initialize(instanceid=nil, status=nil, requestid=nil)
|
2018
|
+
@InstanceId = instanceid
|
2019
|
+
@Status = status
|
2020
|
+
@RequestId = requestid
|
2021
|
+
end
|
2022
|
+
|
2023
|
+
def deserialize(params)
|
2024
|
+
@InstanceId = params['InstanceId']
|
2025
|
+
@Status = params['Status']
|
2026
|
+
@RequestId = params['RequestId']
|
2027
|
+
end
|
2028
|
+
end
|
2029
|
+
|
2030
|
+
# DescribeRuleLimit请求参数结构体
|
2031
|
+
class DescribeRuleLimitRequest < TencentCloud::Common::AbstractModel
|
2032
|
+
# @param Domain: 域名
|
2033
|
+
# @type Domain: String
|
2034
|
+
|
2035
|
+
attr_accessor :Domain
|
2036
|
+
|
2037
|
+
def initialize(domain=nil)
|
2038
|
+
@Domain = domain
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
def deserialize(params)
|
2042
|
+
@Domain = params['Domain']
|
2043
|
+
end
|
2044
|
+
end
|
2045
|
+
|
2046
|
+
# DescribeRuleLimit返回参数结构体
|
2047
|
+
class DescribeRuleLimitResponse < TencentCloud::Common::AbstractModel
|
2048
|
+
# @param Res: waf模块的规格
|
2049
|
+
# @type Res: :class:`Tencentcloud::Waf.v20180125.models.WafRuleLimit`
|
2050
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2051
|
+
# @type RequestId: String
|
2052
|
+
|
2053
|
+
attr_accessor :Res, :RequestId
|
2054
|
+
|
2055
|
+
def initialize(res=nil, requestid=nil)
|
2056
|
+
@Res = res
|
2057
|
+
@RequestId = requestid
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
def deserialize(params)
|
2061
|
+
unless params['Res'].nil?
|
2062
|
+
@Res = WafRuleLimit.new
|
2063
|
+
@Res.deserialize(params['Res'])
|
2064
|
+
end
|
2065
|
+
@RequestId = params['RequestId']
|
2066
|
+
end
|
2067
|
+
end
|
2068
|
+
|
1853
2069
|
# DescribeUserCdcClbWafRegions请求参数结构体
|
1854
2070
|
class DescribeUserCdcClbWafRegionsRequest < TencentCloud::Common::AbstractModel
|
1855
2071
|
|
@@ -3690,6 +3906,70 @@ module TencentCloud
|
|
3690
3906
|
end
|
3691
3907
|
end
|
3692
3908
|
|
3909
|
+
# waf模块的规格
|
3910
|
+
class WafRuleLimit < TencentCloud::Common::AbstractModel
|
3911
|
+
# @param CC: 自定义CC的规格
|
3912
|
+
# @type CC: Integer
|
3913
|
+
# @param CustomRule: 自定义策略的规格
|
3914
|
+
# @type CustomRule: Integer
|
3915
|
+
# @param IPControl: 黑白名单的规格
|
3916
|
+
# @type IPControl: Integer
|
3917
|
+
# @param AntiLeak: 信息防泄漏的规格
|
3918
|
+
# @type AntiLeak: Integer
|
3919
|
+
# @param AntiTamper: 防篡改的规格
|
3920
|
+
# @type AntiTamper: Integer
|
3921
|
+
# @param AutoCC: 紧急CC的规格
|
3922
|
+
# @type AutoCC: Integer
|
3923
|
+
# @param AreaBan: 地域封禁的规格
|
3924
|
+
# @type AreaBan: Integer
|
3925
|
+
# @param CCSession: 自定义CC中配置session
|
3926
|
+
# @type CCSession: Integer
|
3927
|
+
# @param AI: AI的规格
|
3928
|
+
# @type AI: Integer
|
3929
|
+
# @param CustomWhite: 精准白名单的规格
|
3930
|
+
# @type CustomWhite: Integer
|
3931
|
+
# @param ApiSecurity: api安全的规格
|
3932
|
+
# @type ApiSecurity: Integer
|
3933
|
+
# @param ClientMsg: 客户端流量标记的规格
|
3934
|
+
# @type ClientMsg: Integer
|
3935
|
+
# @param TrafficMarking: 流量标记的规格
|
3936
|
+
# @type TrafficMarking: Integer
|
3937
|
+
|
3938
|
+
attr_accessor :CC, :CustomRule, :IPControl, :AntiLeak, :AntiTamper, :AutoCC, :AreaBan, :CCSession, :AI, :CustomWhite, :ApiSecurity, :ClientMsg, :TrafficMarking
|
3939
|
+
|
3940
|
+
def initialize(cc=nil, customrule=nil, ipcontrol=nil, antileak=nil, antitamper=nil, autocc=nil, areaban=nil, ccsession=nil, ai=nil, customwhite=nil, apisecurity=nil, clientmsg=nil, trafficmarking=nil)
|
3941
|
+
@CC = cc
|
3942
|
+
@CustomRule = customrule
|
3943
|
+
@IPControl = ipcontrol
|
3944
|
+
@AntiLeak = antileak
|
3945
|
+
@AntiTamper = antitamper
|
3946
|
+
@AutoCC = autocc
|
3947
|
+
@AreaBan = areaban
|
3948
|
+
@CCSession = ccsession
|
3949
|
+
@AI = ai
|
3950
|
+
@CustomWhite = customwhite
|
3951
|
+
@ApiSecurity = apisecurity
|
3952
|
+
@ClientMsg = clientmsg
|
3953
|
+
@TrafficMarking = trafficmarking
|
3954
|
+
end
|
3955
|
+
|
3956
|
+
def deserialize(params)
|
3957
|
+
@CC = params['CC']
|
3958
|
+
@CustomRule = params['CustomRule']
|
3959
|
+
@IPControl = params['IPControl']
|
3960
|
+
@AntiLeak = params['AntiLeak']
|
3961
|
+
@AntiTamper = params['AntiTamper']
|
3962
|
+
@AutoCC = params['AutoCC']
|
3963
|
+
@AreaBan = params['AreaBan']
|
3964
|
+
@CCSession = params['CCSession']
|
3965
|
+
@AI = params['AI']
|
3966
|
+
@CustomWhite = params['CustomWhite']
|
3967
|
+
@ApiSecurity = params['ApiSecurity']
|
3968
|
+
@ClientMsg = params['ClientMsg']
|
3969
|
+
@TrafficMarking = params['TrafficMarking']
|
3970
|
+
end
|
3971
|
+
end
|
3972
|
+
|
3693
3973
|
# Waf 威胁情报封禁模块配置详情
|
3694
3974
|
class WafThreatenIntelligenceDetails < TencentCloud::Common::AbstractModel
|
3695
3975
|
# @param DefenseStatus: 封禁模组启用状态
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-waf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.529
|
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-03-
|
11
|
+
date: 2023-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|