tencentcloud-sdk-waf 3.0.1004 → 3.0.1005
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/models.rb +152 -31
- 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: a0343c0453333dcb3b62bfe4401ebfa53b1f4586
|
4
|
+
data.tar.gz: 5644aadbb83fc3d5a87b1f60f596fdb31a7e9994
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62708db09e7512d0372c5fe19b2241a858d1018b4430d3d77efef82026757f7662823e127d012deff8ffacf082b4eeba29f49b4ed3a000ddee8fc7b4300ddb72
|
7
|
+
data.tar.gz: b3fec2c992122070715c5544d452dad5009294c4d867e9a9b4512d7fe7f25c9e25df0b955c59c2f32b76041df5bf4499a460db78908e351365437fee15b2d174
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1005
|
data/lib/v20180125/models.rb
CHANGED
@@ -590,10 +590,15 @@ module TencentCloud
|
|
590
590
|
# @type Status: Integer
|
591
591
|
# @param PageId: 拦截页面id
|
592
592
|
# @type PageId: String
|
593
|
+
# @param LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
594
|
+
# @type LogicalOp: String
|
593
595
|
|
594
|
-
attr_accessor :Name, :SortId, :Strategies, :Domain, :ActionType, :Redirect, :ExpireTime, :Edition, :Bypass, :EventId, :JobType, :JobDateTime, :Source, :Label, :Status, :PageId
|
596
|
+
attr_accessor :Name, :SortId, :Strategies, :Domain, :ActionType, :Redirect, :ExpireTime, :Edition, :Bypass, :EventId, :JobType, :JobDateTime, :Source, :Label, :Status, :PageId, :LogicalOp
|
597
|
+
extend Gem::Deprecate
|
598
|
+
deprecate :Bypass, :none, 2025, 2
|
599
|
+
deprecate :Bypass=, :none, 2025, 2
|
595
600
|
|
596
|
-
def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, expiretime=nil, edition=nil, bypass=nil, eventid=nil, jobtype=nil, jobdatetime=nil, source=nil, label=nil, status=nil, pageid=nil)
|
601
|
+
def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, expiretime=nil, edition=nil, bypass=nil, eventid=nil, jobtype=nil, jobdatetime=nil, source=nil, label=nil, status=nil, pageid=nil, logicalop=nil)
|
597
602
|
@Name = name
|
598
603
|
@SortId = sortid
|
599
604
|
@Strategies = strategies
|
@@ -610,6 +615,7 @@ module TencentCloud
|
|
610
615
|
@Label = label
|
611
616
|
@Status = status
|
612
617
|
@PageId = pageid
|
618
|
+
@LogicalOp = logicalop
|
613
619
|
end
|
614
620
|
|
615
621
|
def deserialize(params)
|
@@ -639,6 +645,7 @@ module TencentCloud
|
|
639
645
|
@Label = params['Label']
|
640
646
|
@Status = params['Status']
|
641
647
|
@PageId = params['PageId']
|
648
|
+
@LogicalOp = params['LogicalOp']
|
642
649
|
end
|
643
650
|
end
|
644
651
|
|
@@ -675,28 +682,28 @@ module TencentCloud
|
|
675
682
|
# @type Name: String
|
676
683
|
# @param SortId: 优先级
|
677
684
|
# @type SortId: String
|
678
|
-
# @param ExpireTime: 过期时间
|
679
|
-
# @type ExpireTime: String
|
680
685
|
# @param Strategies: 策略详情
|
681
686
|
# @type Strategies: Array
|
682
687
|
# @param Domain: 需要添加策略的域名
|
683
688
|
# @type Domain: String
|
684
|
-
# @param Bypass:
|
689
|
+
# @param Bypass: 放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)
|
685
690
|
# @type Bypass: String
|
691
|
+
# @param ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
|
692
|
+
# @type ExpireTime: String
|
686
693
|
# @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
687
694
|
# @type JobType: String
|
688
695
|
# @param JobDateTime: 定时任务配置
|
689
696
|
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
690
697
|
|
691
|
-
attr_accessor :Name, :SortId, :
|
698
|
+
attr_accessor :Name, :SortId, :Strategies, :Domain, :Bypass, :ExpireTime, :JobType, :JobDateTime
|
692
699
|
|
693
|
-
def initialize(name=nil, sortid=nil,
|
700
|
+
def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, bypass=nil, expiretime=nil, jobtype=nil, jobdatetime=nil)
|
694
701
|
@Name = name
|
695
702
|
@SortId = sortid
|
696
|
-
@ExpireTime = expiretime
|
697
703
|
@Strategies = strategies
|
698
704
|
@Domain = domain
|
699
705
|
@Bypass = bypass
|
706
|
+
@ExpireTime = expiretime
|
700
707
|
@JobType = jobtype
|
701
708
|
@JobDateTime = jobdatetime
|
702
709
|
end
|
@@ -704,7 +711,6 @@ module TencentCloud
|
|
704
711
|
def deserialize(params)
|
705
712
|
@Name = params['Name']
|
706
713
|
@SortId = params['SortId']
|
707
|
-
@ExpireTime = params['ExpireTime']
|
708
714
|
unless params['Strategies'].nil?
|
709
715
|
@Strategies = []
|
710
716
|
params['Strategies'].each do |i|
|
@@ -715,6 +721,7 @@ module TencentCloud
|
|
715
721
|
end
|
716
722
|
@Domain = params['Domain']
|
717
723
|
@Bypass = params['Bypass']
|
724
|
+
@ExpireTime = params['ExpireTime']
|
718
725
|
@JobType = params['JobType']
|
719
726
|
unless params['JobDateTime'].nil?
|
720
727
|
@JobDateTime = JobDateTime.new
|
@@ -934,10 +941,14 @@ module TencentCloud
|
|
934
941
|
# @type GmEncPrivateKey: String
|
935
942
|
# @param GmSSLId: GmCertType为2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
|
936
943
|
# @type GmSSLId: String
|
944
|
+
# @param UpstreamPolicy: 回源策略,支持负载均衡回源和分流回源两种方式。0:默认值,负载均衡回源;1:分流回源
|
945
|
+
# @type UpstreamPolicy: Integer
|
946
|
+
# @param UpstreamRules: 分流回源时生效,分流回源的规则。
|
947
|
+
# @type UpstreamRules: Array
|
937
948
|
|
938
|
-
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Edition, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId
|
949
|
+
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Edition, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules
|
939
950
|
|
940
|
-
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, ports=nil, iskeepalive=nil, instanceid=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, edition=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil)
|
951
|
+
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, ports=nil, iskeepalive=nil, instanceid=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, edition=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil)
|
941
952
|
@Domain = domain
|
942
953
|
@CertType = certtype
|
943
954
|
@IsCdn = iscdn
|
@@ -983,6 +994,8 @@ module TencentCloud
|
|
983
994
|
@GmEncCert = gmenccert
|
984
995
|
@GmEncPrivateKey = gmencprivatekey
|
985
996
|
@GmSSLId = gmsslid
|
997
|
+
@UpstreamPolicy = upstreampolicy
|
998
|
+
@UpstreamRules = upstreamrules
|
986
999
|
end
|
987
1000
|
|
988
1001
|
def deserialize(params)
|
@@ -1038,6 +1051,15 @@ module TencentCloud
|
|
1038
1051
|
@GmEncCert = params['GmEncCert']
|
1039
1052
|
@GmEncPrivateKey = params['GmEncPrivateKey']
|
1040
1053
|
@GmSSLId = params['GmSSLId']
|
1054
|
+
@UpstreamPolicy = params['UpstreamPolicy']
|
1055
|
+
unless params['UpstreamRules'].nil?
|
1056
|
+
@UpstreamRules = []
|
1057
|
+
params['UpstreamRules'].each do |i|
|
1058
|
+
upstreamrule_tmp = UpstreamRule.new
|
1059
|
+
upstreamrule_tmp.deserialize(i)
|
1060
|
+
@UpstreamRules << upstreamrule_tmp
|
1061
|
+
end
|
1062
|
+
end
|
1041
1063
|
end
|
1042
1064
|
end
|
1043
1065
|
|
@@ -1480,7 +1502,7 @@ module TencentCloud
|
|
1480
1502
|
# @type Ip: String
|
1481
1503
|
# @param Note: 备注
|
1482
1504
|
# @type Note: String
|
1483
|
-
# @param Source:
|
1505
|
+
# @param Source: batch为批量域名,batch-group为防护对象组
|
1484
1506
|
# @type Source: String
|
1485
1507
|
# @param TsVersion: 修改时间
|
1486
1508
|
# @type TsVersion: Integer
|
@@ -1502,10 +1524,17 @@ module TencentCloud
|
|
1502
1524
|
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
1503
1525
|
# @param ValidStatus: 生效状态
|
1504
1526
|
# @type ValidStatus: Integer
|
1527
|
+
# @param GroupIds: 防护对象组ID列表,如果绑定的是防护对象组
|
1528
|
+
# @type GroupIds: Array
|
1505
1529
|
|
1506
|
-
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts, :RuleId, :IpList, :CreateTime, :JobType, :CronType, :JobDateTime, :ValidStatus
|
1530
|
+
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts, :RuleId, :IpList, :CreateTime, :JobType, :CronType, :JobDateTime, :ValidStatus, :GroupIds
|
1531
|
+
extend Gem::Deprecate
|
1532
|
+
deprecate :Id, :none, 2025, 2
|
1533
|
+
deprecate :Id=, :none, 2025, 2
|
1534
|
+
deprecate :Ip, :none, 2025, 2
|
1535
|
+
deprecate :Ip=, :none, 2025, 2
|
1507
1536
|
|
1508
|
-
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil, ruleid=nil, iplist=nil, createtime=nil, jobtype=nil, crontype=nil, jobdatetime=nil, validstatus=nil)
|
1537
|
+
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil, ruleid=nil, iplist=nil, createtime=nil, jobtype=nil, crontype=nil, jobdatetime=nil, validstatus=nil, groupids=nil)
|
1509
1538
|
@Id = id
|
1510
1539
|
@ActionType = actiontype
|
1511
1540
|
@Ip = ip
|
@@ -1521,6 +1550,7 @@ module TencentCloud
|
|
1521
1550
|
@CronType = crontype
|
1522
1551
|
@JobDateTime = jobdatetime
|
1523
1552
|
@ValidStatus = validstatus
|
1553
|
+
@GroupIds = groupids
|
1524
1554
|
end
|
1525
1555
|
|
1526
1556
|
def deserialize(params)
|
@@ -1542,6 +1572,7 @@ module TencentCloud
|
|
1542
1572
|
@JobDateTime.deserialize(params['JobDateTime'])
|
1543
1573
|
end
|
1544
1574
|
@ValidStatus = params['ValidStatus']
|
1575
|
+
@GroupIds = params['GroupIds']
|
1545
1576
|
end
|
1546
1577
|
end
|
1547
1578
|
|
@@ -4488,7 +4519,7 @@ module TencentCloud
|
|
4488
4519
|
|
4489
4520
|
# DescribeBatchIpAccessControl请求参数结构体
|
4490
4521
|
class DescribeBatchIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
4491
|
-
# @param Filters: 筛选条件,支持 ActionType
|
4522
|
+
# @param Filters: 筛选条件,支持 ActionType(可选的值为40:白名单,42:黑名单),ValidStatus(可选的值0:全部,1:生效,2:过期),Ip,Domains(域名列表),GroupId(防护对象组ID),GroupName(防护对象组名),RuleId(规则ID),TimerType(生效方式,1:永久生效,2:定时生效,3:按周周期生效,4:按月周期生效)
|
4492
4523
|
# @type Filters: Array
|
4493
4524
|
# @param OffSet: 偏移
|
4494
4525
|
# @type OffSet: Integer
|
@@ -4957,10 +4988,12 @@ module TencentCloud
|
|
4957
4988
|
# @type PageId: String
|
4958
4989
|
# @param Domain: 域名
|
4959
4990
|
# @type Domain: String
|
4991
|
+
# @param LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
4992
|
+
# @type LogicalOp: String
|
4960
4993
|
|
4961
|
-
attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies, :EventId, :ModifyTime, :ValidStatus, :Source, :JobType, :JobDateTime, :CronType, :Label, :PageId, :Domain
|
4994
|
+
attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies, :EventId, :ModifyTime, :ValidStatus, :Source, :JobType, :JobDateTime, :CronType, :Label, :PageId, :Domain, :LogicalOp
|
4962
4995
|
|
4963
|
-
def initialize(actiontype=nil, bypass=nil, createtime=nil, expiretime=nil, name=nil, redirect=nil, ruleid=nil, sortid=nil, status=nil, strategies=nil, eventid=nil, modifytime=nil, validstatus=nil, source=nil, jobtype=nil, jobdatetime=nil, crontype=nil, label=nil, pageid=nil, domain=nil)
|
4996
|
+
def initialize(actiontype=nil, bypass=nil, createtime=nil, expiretime=nil, name=nil, redirect=nil, ruleid=nil, sortid=nil, status=nil, strategies=nil, eventid=nil, modifytime=nil, validstatus=nil, source=nil, jobtype=nil, jobdatetime=nil, crontype=nil, label=nil, pageid=nil, domain=nil, logicalop=nil)
|
4964
4997
|
@ActionType = actiontype
|
4965
4998
|
@Bypass = bypass
|
4966
4999
|
@CreateTime = createtime
|
@@ -4981,6 +5014,7 @@ module TencentCloud
|
|
4981
5014
|
@Label = label
|
4982
5015
|
@PageId = pageid
|
4983
5016
|
@Domain = domain
|
5017
|
+
@LogicalOp = logicalop
|
4984
5018
|
end
|
4985
5019
|
|
4986
5020
|
def deserialize(params)
|
@@ -5014,6 +5048,7 @@ module TencentCloud
|
|
5014
5048
|
@Label = params['Label']
|
5015
5049
|
@PageId = params['PageId']
|
5016
5050
|
@Domain = params['Domain']
|
5051
|
+
@LogicalOp = params['LogicalOp']
|
5017
5052
|
end
|
5018
5053
|
end
|
5019
5054
|
|
@@ -5882,7 +5917,7 @@ module TencentCloud
|
|
5882
5917
|
# @type Sort: String
|
5883
5918
|
# @param Ip: IP
|
5884
5919
|
# @type Ip: String
|
5885
|
-
# @param ValidStatus:
|
5920
|
+
# @param ValidStatus: 生效状态,1表示生效中,2表示过期,0表示全部
|
5886
5921
|
# @type ValidStatus: Integer
|
5887
5922
|
# @param ValidTimeStampMin: 最小有效时间的时间戳
|
5888
5923
|
# @type ValidTimeStampMin: String
|
@@ -5890,7 +5925,7 @@ module TencentCloud
|
|
5890
5925
|
# @type ValidTimeStampMax: String
|
5891
5926
|
# @param RuleId: 规则ID
|
5892
5927
|
# @type RuleId: Integer
|
5893
|
-
# @param TimerType:
|
5928
|
+
# @param TimerType: 0表示全部,1表示永久生效,2表示定时生效,3表示周粒度生效,4表示月粒度生效
|
5894
5929
|
# @type TimerType: Integer
|
5895
5930
|
|
5896
5931
|
attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId, :TimerType
|
@@ -5986,13 +6021,13 @@ module TencentCloud
|
|
5986
6021
|
# @type CtsMax: Integer
|
5987
6022
|
# @param Skip: 偏移参数
|
5988
6023
|
# @type Skip: Integer
|
5989
|
-
# @param Limit:
|
6024
|
+
# @param Limit: 限制数目,category不等于threat_intelligence时,该值需要必传
|
5990
6025
|
# @type Limit: Integer
|
5991
6026
|
# @param Name: 策略名称
|
5992
6027
|
# @type Name: String
|
5993
6028
|
# @param Sort: 排序参数
|
5994
6029
|
# @type Sort: String
|
5995
|
-
# @param Ip: IP
|
6030
|
+
# @param Ip: IP,category传threat_intelligence的时候,该值必传
|
5996
6031
|
# @type Ip: String
|
5997
6032
|
# @param ValidTimeStampMin: 有效时间最小时间戳
|
5998
6033
|
# @type ValidTimeStampMin: Integer
|
@@ -7926,10 +7961,16 @@ module TencentCloud
|
|
7926
7961
|
# @type Labels: Array
|
7927
7962
|
# @param ProbeStatus: 拨测状态。 0: 禁用拨测, 1: 启用拨测
|
7928
7963
|
# @type ProbeStatus: Integer
|
7964
|
+
# @param UpstreamPolicy: 回源策略。
|
7965
|
+
# 0:负载均衡回源
|
7966
|
+
# 1:分流回源
|
7967
|
+
# @type UpstreamPolicy: Integer
|
7968
|
+
# @param UpstreamRules: 分流回源策略
|
7969
|
+
# @type UpstreamRules: Array
|
7929
7970
|
|
7930
|
-
attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :Level, :ProxyBuffer, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :Labels, :ProbeStatus
|
7971
|
+
attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :Level, :ProxyBuffer, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :Labels, :ProbeStatus, :UpstreamPolicy, :UpstreamRules
|
7931
7972
|
|
7932
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, level=nil, proxybuffer=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, labels=nil, probestatus=nil)
|
7973
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, level=nil, proxybuffer=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, labels=nil, probestatus=nil, upstreampolicy=nil, upstreamrules=nil)
|
7933
7974
|
@Domain = domain
|
7934
7975
|
@DomainId = domainid
|
7935
7976
|
@InstanceId = instanceid
|
@@ -7981,6 +8022,8 @@ module TencentCloud
|
|
7981
8022
|
@GmSSLId = gmsslid
|
7982
8023
|
@Labels = labels
|
7983
8024
|
@ProbeStatus = probestatus
|
8025
|
+
@UpstreamPolicy = upstreampolicy
|
8026
|
+
@UpstreamRules = upstreamrules
|
7984
8027
|
end
|
7985
8028
|
|
7986
8029
|
def deserialize(params)
|
@@ -8042,6 +8085,15 @@ module TencentCloud
|
|
8042
8085
|
@GmSSLId = params['GmSSLId']
|
8043
8086
|
@Labels = params['Labels']
|
8044
8087
|
@ProbeStatus = params['ProbeStatus']
|
8088
|
+
@UpstreamPolicy = params['UpstreamPolicy']
|
8089
|
+
unless params['UpstreamRules'].nil?
|
8090
|
+
@UpstreamRules = []
|
8091
|
+
params['UpstreamRules'].each do |i|
|
8092
|
+
upstreamrule_tmp = UpstreamRule.new
|
8093
|
+
upstreamrule_tmp.deserialize(i)
|
8094
|
+
@UpstreamRules << upstreamrule_tmp
|
8095
|
+
end
|
8096
|
+
end
|
8045
8097
|
end
|
8046
8098
|
end
|
8047
8099
|
|
@@ -9530,10 +9582,13 @@ module TencentCloud
|
|
9530
9582
|
# 规则执行的时间结构体
|
9531
9583
|
class JobDateTime < TencentCloud::Common::AbstractModel
|
9532
9584
|
# @param Timed: 定时执行的时间参数
|
9585
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9533
9586
|
# @type Timed: Array
|
9534
9587
|
# @param Cron: 周期执行的时间参数
|
9588
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9535
9589
|
# @type Cron: Array
|
9536
9590
|
# @param TimeTZone: 时区
|
9591
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9537
9592
|
# @type TimeTZone: String
|
9538
9593
|
|
9539
9594
|
attr_accessor :Timed, :Cron, :TimeTZone
|
@@ -10525,10 +10580,15 @@ module TencentCloud
|
|
10525
10580
|
# @type Status: Integer
|
10526
10581
|
# @param PageId: 拦截页面id
|
10527
10582
|
# @type PageId: String
|
10583
|
+
# @param LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
10584
|
+
# @type LogicalOp: String
|
10528
10585
|
|
10529
|
-
attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId
|
10586
|
+
attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId, :LogicalOp
|
10587
|
+
extend Gem::Deprecate
|
10588
|
+
deprecate :Bypass, :none, 2025, 2
|
10589
|
+
deprecate :Bypass=, :none, 2025, 2
|
10530
10590
|
|
10531
|
-
def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, source=nil, status=nil, pageid=nil)
|
10591
|
+
def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, source=nil, status=nil, pageid=nil, logicalop=nil)
|
10532
10592
|
@Domain = domain
|
10533
10593
|
@RuleId = ruleid
|
10534
10594
|
@RuleName = rulename
|
@@ -10544,6 +10604,7 @@ module TencentCloud
|
|
10544
10604
|
@Source = source
|
10545
10605
|
@Status = status
|
10546
10606
|
@PageId = pageid
|
10607
|
+
@LogicalOp = logicalop
|
10547
10608
|
end
|
10548
10609
|
|
10549
10610
|
def deserialize(params)
|
@@ -10572,6 +10633,7 @@ module TencentCloud
|
|
10572
10633
|
@Source = params['Source']
|
10573
10634
|
@Status = params['Status']
|
10574
10635
|
@PageId = params['PageId']
|
10636
|
+
@LogicalOp = params['LogicalOp']
|
10575
10637
|
end
|
10576
10638
|
end
|
10577
10639
|
|
@@ -10672,7 +10734,7 @@ module TencentCloud
|
|
10672
10734
|
# @type Bypass: String
|
10673
10735
|
# @param SortId: 优先级,1~100的整数,数字越小,代表这条规则的执行优先级越高。
|
10674
10736
|
# @type SortId: Integer
|
10675
|
-
# @param ExpireTime:
|
10737
|
+
# @param ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
|
10676
10738
|
# @type ExpireTime: Integer
|
10677
10739
|
# @param Strategies: 匹配条件数组
|
10678
10740
|
# @type Strategies: Array
|
@@ -11757,10 +11819,14 @@ module TencentCloud
|
|
11757
11819
|
# @type GmEncPrivateKey: String
|
11758
11820
|
# @param GmSSLId: GmCertType为2时,需要填充此参数,表示腾讯云SSL平台托管的证书id
|
11759
11821
|
# @type GmSSLId: String
|
11822
|
+
# @param UpstreamPolicy: 回源策略,支持负载均衡回源和分流回源两种方式。0:默认值,负载均衡回源;1:分流回源
|
11823
|
+
# @type UpstreamPolicy: Integer
|
11824
|
+
# @param UpstreamRules: 分流回源时生效,分流回源的规则。
|
11825
|
+
# @type UpstreamRules: Array
|
11760
11826
|
|
11761
|
-
attr_accessor :Domain, :DomainId, :InstanceID, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId
|
11827
|
+
attr_accessor :Domain, :DomainId, :InstanceID, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules
|
11762
11828
|
|
11763
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil)
|
11829
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil)
|
11764
11830
|
@Domain = domain
|
11765
11831
|
@DomainId = domainid
|
11766
11832
|
@InstanceID = instanceid
|
@@ -11805,6 +11871,8 @@ module TencentCloud
|
|
11805
11871
|
@GmEncCert = gmenccert
|
11806
11872
|
@GmEncPrivateKey = gmencprivatekey
|
11807
11873
|
@GmSSLId = gmsslid
|
11874
|
+
@UpstreamPolicy = upstreampolicy
|
11875
|
+
@UpstreamRules = upstreamrules
|
11808
11876
|
end
|
11809
11877
|
|
11810
11878
|
def deserialize(params)
|
@@ -11859,6 +11927,15 @@ module TencentCloud
|
|
11859
11927
|
@GmEncCert = params['GmEncCert']
|
11860
11928
|
@GmEncPrivateKey = params['GmEncPrivateKey']
|
11861
11929
|
@GmSSLId = params['GmSSLId']
|
11930
|
+
@UpstreamPolicy = params['UpstreamPolicy']
|
11931
|
+
unless params['UpstreamRules'].nil?
|
11932
|
+
@UpstreamRules = []
|
11933
|
+
params['UpstreamRules'].each do |i|
|
11934
|
+
upstreamrule_tmp = UpstreamRule.new
|
11935
|
+
upstreamrule_tmp.deserialize(i)
|
11936
|
+
@UpstreamRules << upstreamrule_tmp
|
11937
|
+
end
|
11938
|
+
end
|
11862
11939
|
end
|
11863
11940
|
end
|
11864
11941
|
|
@@ -13061,7 +13138,8 @@ module TencentCloud
|
|
13061
13138
|
|
13062
13139
|
# 匹配字段不同,相应的匹配参数、逻辑符号、匹配内容有所不同
|
13063
13140
|
# 具体如下所示:
|
13064
|
-
# <table><thead><tr><th>匹配字段</th><th>匹配参数</th><th>逻辑符号</th><th>匹配内容</th></tr></thead><tbody><tr><td>IP(来源IP)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>多个IP以英文逗号隔开,最多20个</td></tr><tr><td>IPV6(来源IPv6)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>支持单个IPV6地址</td></tr><tr><td>Referer(Referer)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>URL(请求路径)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)<br/></td><td>请以/开头,512个字符以内</td></tr><tr><td>UserAgent(UserAgent)</td><td>不支持参数</td><td>同匹配字段<font color="Red">Referer</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>HTTP_METHOD(HTTP请求方法)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)</td><td>请输入方法名称,建议大写</td></tr><tr><td>QUERY_STRING(请求字符串)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET(GET参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_PARAMS_NAMES(GET参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST(POST参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_POST_NAMES(POST参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST_BODY(完整BODY)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入BODY内容,512个字符以内</td></tr><tr><td>COOKIE(Cookie)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>rematch(正则匹配)</td><td><font color="Red">暂不支持</font></td></tr><tr><td>GET_COOKIES_NAMES(Cookie参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>ARGS_COOKIE(Cookie参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_HEADERS_NAMES(Header参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,建议小写,512个字符以内</td></tr><tr><td>ARGS_HEADER(Header参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr></
|
13141
|
+
# <table><thead><tr><th>匹配字段</th><th>匹配参数</th><th>逻辑符号</th><th>匹配内容</th></tr></thead><tbody><tr><td>IP(来源IP)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>多个IP以英文逗号隔开,最多20个</td></tr><tr><td>IPV6(来源IPv6)</td><td>不支持参数</td><td>ipmatch(匹配)<br/>ipnmatch(不匹配)</td><td>支持单个IPV6地址</td></tr><tr><td>Referer(Referer)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>URL(请求路径)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)<br/>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)<br/></td><td>请以/开头,512个字符以内</td></tr><tr><td>UserAgent(UserAgent)</td><td>不支持参数</td><td>同匹配字段<font color="Red">Referer</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>HTTP_METHOD(HTTP请求方法)</td><td>不支持参数</td><td>eq(等于)<br/>neq(不等于)</td><td>请输入方法名称,建议大写</td></tr><tr><td>QUERY_STRING(请求字符串)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET(GET参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_PARAMS_NAMES(GET参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST(POST参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_POST_NAMES(POST参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>POST_BODY(完整BODY)</td><td>不支持参数</td><td>同匹配字段<font color="Red">请求路径</font>逻辑符号</td><td>请输入BODY内容,512个字符以内</td></tr><tr><td>COOKIE(Cookie)</td><td>不支持参数</td><td>empty(内容为空)<br/>null(不存在)<br/>rematch(正则匹配)</td><td><font color="Red">暂不支持</font></td></tr><tr><td>GET_COOKIES_NAMES(Cookie参数名)</td><td>不支持参数</td><td>同匹配字段<font color="Red">GET参数名</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>ARGS_COOKIE(Cookie参数值)</td><td>支持参数录入</td><td>同匹配字段<font color="Red">GET参数值</font>逻辑符号</td><td>请输入内容,512个字符以内</td></tr><tr><td>GET_HEADERS_NAMES(Header参数名)</td><td>不支持参数</td><td>exsit(存在参数)<br/>nexsit(不存在参数)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,建议小写,512个字符以内</td></tr><tr><td>ARGS_HEADER(Header参数值)</td><td>支持参数录入</td><td>contains(包含)<br/>ncontains(不包含)<br/>len_eq(长度等于)<br/>len_gt(长度大于)<br/>len_lt(长度小于)<br/>strprefix(前缀匹配)<br/>strsuffix(后缀匹配)<br/>rematch(正则匹配)</td><td>请输入内容,512个字符以内</td></tr><tr><td>CONTENT_LENGTH(Content-length)</td><td>支持参数录入</td><td>numgt(数值大于)<br/>numlt(数值小于)<br/>numeq(数值等于)<br/></td><td>请输入0-9999999999999之间的整数</td></tr><tr><td>IP_GEO(来源IP归属地)</td><td>支持参数录入</td><td>geo_in(属于)<br/>geo_not_in(不属于)<br/></td><td>请输入内容,10240字符以内,格式为序列化的JSON,格式为:[{"Country":"中国","Region":"广东","City":"深圳"}]</td></tr>
|
13142
|
+
# </tbody></table>
|
13065
13143
|
# @type Field: String
|
13066
13144
|
# @param CompareFunc: 逻辑符号
|
13067
13145
|
|
@@ -13079,6 +13157,11 @@ module TencentCloud
|
|
13079
13157
|
# len_lt ( 长度小于)
|
13080
13158
|
# ipmatch ( 属于)
|
13081
13159
|
# ipnmatch ( 不属于)
|
13160
|
+
# numgt ( 数值大于)
|
13161
|
+
# numlt ( 数值小于)
|
13162
|
+
# numeq ( 数值等于)
|
13163
|
+
# geo_in ( IP地理属于)
|
13164
|
+
# geo_not_in ( IP地理不属于)
|
13082
13165
|
# 各匹配字段对应的逻辑符号不同,详见上述匹配字段表格
|
13083
13166
|
# @type CompareFunc: String
|
13084
13167
|
# @param Content: 匹配内容
|
@@ -13399,7 +13482,7 @@ module TencentCloud
|
|
13399
13482
|
# @type Interval: String
|
13400
13483
|
# @param Url: 检测Url
|
13401
13484
|
# @type Url: String
|
13402
|
-
# @param MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2
|
13485
|
+
# @param MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
|
13403
13486
|
# @type MatchFunc: Integer
|
13404
13487
|
# @param ActionType: 动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
|
13405
13488
|
# @type ActionType: String
|
@@ -13407,7 +13490,7 @@ module TencentCloud
|
|
13407
13490
|
# @type Priority: Integer
|
13408
13491
|
# @param ValidTime: 动作有效时间
|
13409
13492
|
# @type ValidTime: Integer
|
13410
|
-
# @param OptionsArr:
|
13493
|
+
# @param OptionsArr: [{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
13411
13494
|
# @type OptionsArr: String
|
13412
13495
|
# @param Edition: waf版本,sparta-waf或者clb-waf
|
13413
13496
|
# @type Edition: String
|
@@ -13632,6 +13715,44 @@ module TencentCloud
|
|
13632
13715
|
end
|
13633
13716
|
end
|
13634
13717
|
|
13718
|
+
# SAASWAF规则回源时的规则数据结构
|
13719
|
+
class UpstreamRule < TencentCloud::Common::AbstractModel
|
13720
|
+
# @param KeyName: 匹配的关键字。目前支持host、uri两种
|
13721
|
+
# @type KeyName: String
|
13722
|
+
# @param Symbol: 逻辑符号。
|
13723
|
+
# equal:等于
|
13724
|
+
# not equal:不等于
|
13725
|
+
# belong:属于
|
13726
|
+
# not belong:不属于
|
13727
|
+
# @type Symbol: String
|
13728
|
+
# @param ContentList: 匹配的内容。equal和not equal时,数组只能有一个元素
|
13729
|
+
# @type ContentList: Array
|
13730
|
+
# @param AddressList: 规则匹配后生效的回源地址。
|
13731
|
+
# @type AddressList: Array
|
13732
|
+
# @param BalanceType: 回源负载均衡类型,仅多个回源地址时生效。
|
13733
|
+
# 0:轮询
|
13734
|
+
# 1:IP_HASH
|
13735
|
+
# @type BalanceType: Integer
|
13736
|
+
|
13737
|
+
attr_accessor :KeyName, :Symbol, :ContentList, :AddressList, :BalanceType
|
13738
|
+
|
13739
|
+
def initialize(keyname=nil, symbol=nil, contentlist=nil, addresslist=nil, balancetype=nil)
|
13740
|
+
@KeyName = keyname
|
13741
|
+
@Symbol = symbol
|
13742
|
+
@ContentList = contentlist
|
13743
|
+
@AddressList = addresslist
|
13744
|
+
@BalanceType = balancetype
|
13745
|
+
end
|
13746
|
+
|
13747
|
+
def deserialize(params)
|
13748
|
+
@KeyName = params['KeyName']
|
13749
|
+
@Symbol = params['Symbol']
|
13750
|
+
@ContentList = params['ContentList']
|
13751
|
+
@AddressList = params['AddressList']
|
13752
|
+
@BalanceType = params['BalanceType']
|
13753
|
+
end
|
13754
|
+
end
|
13755
|
+
|
13635
13756
|
# saas和clb信息
|
13636
13757
|
class UserDomainInfo < TencentCloud::Common::AbstractModel
|
13637
13758
|
# @param Appid: 用户id
|
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.1005
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|