tencentcloud-sdk-waf 3.0.785 → 3.0.786
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 +4 -4
- data/lib/v20180125/models.rb +107 -52
- 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: e3bc951e4ac142dfb4bee715d5ccd12b184f1b16
|
|
4
|
+
data.tar.gz: d563d55281c038cf30c9b8cf029b40733cac4ed4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1abcebdec7d2ddaff3943a18f8efc902b87094a0a80955fb3142dcd6b580acc45a5014171c870ef2947be0c96d663501117e63bca7016e8fb7442bd04738e5dc
|
|
7
|
+
data.tar.gz: 45950111be3db7a945367a22fbe90e8b3cb9fbd911687c5265a5ae9205edba0391394141c6aeaecdad5b6b3e08f8a4a08ee85d2e753390a3783028aff47b0bd7
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.786
|
data/lib/v20180125/client.rb
CHANGED
|
@@ -899,7 +899,7 @@ module TencentCloud
|
|
|
899
899
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
900
900
|
end
|
|
901
901
|
|
|
902
|
-
# Waf
|
|
902
|
+
# Waf 批量防护IP黑白名单查询
|
|
903
903
|
|
|
904
904
|
# @param request: Request instance for DescribeBatchIpAccessControl.
|
|
905
905
|
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeBatchIpAccessControlRequest`
|
|
@@ -923,7 +923,7 @@ module TencentCloud
|
|
|
923
923
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
924
924
|
end
|
|
925
925
|
|
|
926
|
-
#
|
|
926
|
+
# 获取SAAS型接入的紧急CC防护状态
|
|
927
927
|
|
|
928
928
|
# @param request: Request instance for DescribeCCAutoStatus.
|
|
929
929
|
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeCCAutoStatusRequest`
|
|
@@ -2796,7 +2796,7 @@ module TencentCloud
|
|
|
2796
2796
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2797
2797
|
end
|
|
2798
2798
|
|
|
2799
|
-
#
|
|
2799
|
+
# 获取基础安全防护(WAF开关)状态
|
|
2800
2800
|
|
|
2801
2801
|
# @param request: Request instance for ModifyProtectionStatus.
|
|
2802
2802
|
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyProtectionStatusRequest`
|
|
@@ -3132,7 +3132,7 @@ module TencentCloud
|
|
|
3132
3132
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3133
3133
|
end
|
|
3134
3134
|
|
|
3135
|
-
#
|
|
3135
|
+
# 编辑SAAS型接入的紧急CC防护状态
|
|
3136
3136
|
|
|
3137
3137
|
# @param request: Request instance for UpsertCCAutoStatus.
|
|
3138
3138
|
# @type request: :class:`Tencentcloud::waf::V20180125::UpsertCCAutoStatusRequest`
|
data/lib/v20180125/models.rb
CHANGED
|
@@ -734,6 +734,19 @@ module TencentCloud
|
|
|
734
734
|
# 1:IP hash
|
|
735
735
|
# 2:加权轮询
|
|
736
736
|
# @type LoadBalance: String
|
|
737
|
+
# @param Ports: 服务端口列表配置。
|
|
738
|
+
# NginxServerId:新增域名时填'0'
|
|
739
|
+
# Port:监听端口号
|
|
740
|
+
# Protocol:端口协议
|
|
741
|
+
# UpstreamPort:与Port相同
|
|
742
|
+
# UpstreamProtocol:与Protocol相同
|
|
743
|
+
# @type Ports: Array
|
|
744
|
+
# @param IsKeepAlive: 必填项,是否开启长连接。
|
|
745
|
+
# 0: 短连接
|
|
746
|
+
# 1: 长连接
|
|
747
|
+
# @type IsKeepAlive: String
|
|
748
|
+
# @param InstanceID: 必填项,域名所属实例id
|
|
749
|
+
# @type InstanceID: String
|
|
737
750
|
# @param Cert: CertType为1时,需要填充此参数,表示自有证书的证书链
|
|
738
751
|
# @type Cert: String
|
|
739
752
|
# @param PrivateKey: CertType为1时,需要填充此参数,表示自有证书的私钥
|
|
@@ -766,24 +779,11 @@ module TencentCloud
|
|
|
766
779
|
# 0:关闭
|
|
767
780
|
# 1:开启
|
|
768
781
|
# @type IsHttp2: Integer
|
|
769
|
-
# @param Ports: 服务端口列表配置。
|
|
770
|
-
# NginxServerId:新增域名时填'0'
|
|
771
|
-
# Port:监听端口号
|
|
772
|
-
# Protocol:端口协议
|
|
773
|
-
# UpstreamPort:与Port相同
|
|
774
|
-
# UpstreamProtocol:与Protocol相同
|
|
775
|
-
# @type Ports: Array
|
|
776
782
|
# @param Edition: 待废弃,可不填。WAF实例类型。
|
|
777
783
|
# sparta-waf:SAAS型WAF
|
|
778
784
|
# clb-waf:负载均衡型WAF
|
|
779
785
|
# cdn-waf:CDN上的Web防护能力
|
|
780
786
|
# @type Edition: String
|
|
781
|
-
# @param IsKeepAlive: 必填项,是否开启长连接。
|
|
782
|
-
# 0: 短连接
|
|
783
|
-
# 1: 长连接
|
|
784
|
-
# @type IsKeepAlive: String
|
|
785
|
-
# @param InstanceID: 必填项,域名所属实例id
|
|
786
|
-
# @type InstanceID: String
|
|
787
787
|
# @param Anycast: 待废弃,目前填0即可。anycast IP类型开关: 0 普通IP 1 Anycast IP
|
|
788
788
|
# @type Anycast: Integer
|
|
789
789
|
# @param Weights: 回源IP列表各IP的权重,和SrcList一一对应。当且仅当UpstreamType为0,并且SrcList有多个IP,并且LoadBalance为2时需要填写,否则填 []
|
|
@@ -822,16 +822,21 @@ module TencentCloud
|
|
|
822
822
|
# @type Note: String
|
|
823
823
|
# @param UpstreamHost: 自定义回源Host。默认为空字符串,表示使用防护域名作为回源Host。
|
|
824
824
|
# @type UpstreamHost: String
|
|
825
|
+
# @param ProxyBuffer: 是否开启缓存 0-关闭 1-开启
|
|
826
|
+
# @type ProxyBuffer: Integer
|
|
825
827
|
|
|
826
|
-
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :
|
|
828
|
+
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
|
|
827
829
|
|
|
828
|
-
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=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,
|
|
830
|
+
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)
|
|
829
831
|
@Domain = domain
|
|
830
832
|
@CertType = certtype
|
|
831
833
|
@IsCdn = iscdn
|
|
832
834
|
@UpstreamType = upstreamtype
|
|
833
835
|
@IsWebsocket = iswebsocket
|
|
834
836
|
@LoadBalance = loadbalance
|
|
837
|
+
@Ports = ports
|
|
838
|
+
@IsKeepAlive = iskeepalive
|
|
839
|
+
@InstanceID = instanceid
|
|
835
840
|
@Cert = cert
|
|
836
841
|
@PrivateKey = privatekey
|
|
837
842
|
@SSLId = sslid
|
|
@@ -845,10 +850,7 @@ module TencentCloud
|
|
|
845
850
|
@UpstreamDomain = upstreamdomain
|
|
846
851
|
@SrcList = srclist
|
|
847
852
|
@IsHttp2 = ishttp2
|
|
848
|
-
@Ports = ports
|
|
849
853
|
@Edition = edition
|
|
850
|
-
@IsKeepAlive = iskeepalive
|
|
851
|
-
@InstanceID = instanceid
|
|
852
854
|
@Anycast = anycast
|
|
853
855
|
@Weights = weights
|
|
854
856
|
@ActiveCheck = activecheck
|
|
@@ -862,6 +864,7 @@ module TencentCloud
|
|
|
862
864
|
@XFFReset = xffreset
|
|
863
865
|
@Note = note
|
|
864
866
|
@UpstreamHost = upstreamhost
|
|
867
|
+
@ProxyBuffer = proxybuffer
|
|
865
868
|
end
|
|
866
869
|
|
|
867
870
|
def deserialize(params)
|
|
@@ -871,6 +874,16 @@ module TencentCloud
|
|
|
871
874
|
@UpstreamType = params['UpstreamType']
|
|
872
875
|
@IsWebsocket = params['IsWebsocket']
|
|
873
876
|
@LoadBalance = params['LoadBalance']
|
|
877
|
+
unless params['Ports'].nil?
|
|
878
|
+
@Ports = []
|
|
879
|
+
params['Ports'].each do |i|
|
|
880
|
+
portitem_tmp = PortItem.new
|
|
881
|
+
portitem_tmp.deserialize(i)
|
|
882
|
+
@Ports << portitem_tmp
|
|
883
|
+
end
|
|
884
|
+
end
|
|
885
|
+
@IsKeepAlive = params['IsKeepAlive']
|
|
886
|
+
@InstanceID = params['InstanceID']
|
|
874
887
|
@Cert = params['Cert']
|
|
875
888
|
@PrivateKey = params['PrivateKey']
|
|
876
889
|
@SSLId = params['SSLId']
|
|
@@ -884,17 +897,7 @@ module TencentCloud
|
|
|
884
897
|
@UpstreamDomain = params['UpstreamDomain']
|
|
885
898
|
@SrcList = params['SrcList']
|
|
886
899
|
@IsHttp2 = params['IsHttp2']
|
|
887
|
-
unless params['Ports'].nil?
|
|
888
|
-
@Ports = []
|
|
889
|
-
params['Ports'].each do |i|
|
|
890
|
-
portitem_tmp = PortItem.new
|
|
891
|
-
portitem_tmp.deserialize(i)
|
|
892
|
-
@Ports << portitem_tmp
|
|
893
|
-
end
|
|
894
|
-
end
|
|
895
900
|
@Edition = params['Edition']
|
|
896
|
-
@IsKeepAlive = params['IsKeepAlive']
|
|
897
|
-
@InstanceID = params['InstanceID']
|
|
898
901
|
@Anycast = params['Anycast']
|
|
899
902
|
@Weights = params['Weights']
|
|
900
903
|
@ActiveCheck = params['ActiveCheck']
|
|
@@ -908,6 +911,7 @@ module TencentCloud
|
|
|
908
911
|
@XFFReset = params['XFFReset']
|
|
909
912
|
@Note = params['Note']
|
|
910
913
|
@UpstreamHost = params['UpstreamHost']
|
|
914
|
+
@ProxyBuffer = params['ProxyBuffer']
|
|
911
915
|
end
|
|
912
916
|
end
|
|
913
917
|
|
|
@@ -1080,7 +1084,7 @@ module TencentCloud
|
|
|
1080
1084
|
end
|
|
1081
1085
|
end
|
|
1082
1086
|
|
|
1083
|
-
#
|
|
1087
|
+
# 批量多域名黑白名单列表Ip
|
|
1084
1088
|
class BatchIpAccessControlItem < TencentCloud::Common::AbstractModel
|
|
1085
1089
|
# @param Id: mongo表自增Id
|
|
1086
1090
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -1099,10 +1103,16 @@ module TencentCloud
|
|
|
1099
1103
|
# @type ValidTs: Integer
|
|
1100
1104
|
# @param Hosts: 域名列表
|
|
1101
1105
|
# @type Hosts: Array
|
|
1106
|
+
# @param RuleId: 55101145
|
|
1107
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1108
|
+
# @type RuleId: Integer
|
|
1109
|
+
# @param IpList: IP列表
|
|
1110
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1111
|
+
# @type IpList: Array
|
|
1102
1112
|
|
|
1103
|
-
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts
|
|
1113
|
+
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts, :RuleId, :IpList
|
|
1104
1114
|
|
|
1105
|
-
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil)
|
|
1115
|
+
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil, ruleid=nil, iplist=nil)
|
|
1106
1116
|
@Id = id
|
|
1107
1117
|
@ActionType = actiontype
|
|
1108
1118
|
@Ip = ip
|
|
@@ -1111,6 +1121,8 @@ module TencentCloud
|
|
|
1111
1121
|
@TsVersion = tsversion
|
|
1112
1122
|
@ValidTs = validts
|
|
1113
1123
|
@Hosts = hosts
|
|
1124
|
+
@RuleId = ruleid
|
|
1125
|
+
@IpList = iplist
|
|
1114
1126
|
end
|
|
1115
1127
|
|
|
1116
1128
|
def deserialize(params)
|
|
@@ -1122,6 +1134,8 @@ module TencentCloud
|
|
|
1122
1134
|
@TsVersion = params['TsVersion']
|
|
1123
1135
|
@ValidTs = params['ValidTs']
|
|
1124
1136
|
@Hosts = params['Hosts']
|
|
1137
|
+
@RuleId = params['RuleId']
|
|
1138
|
+
@IpList = params['IpList']
|
|
1125
1139
|
end
|
|
1126
1140
|
end
|
|
1127
1141
|
|
|
@@ -3347,12 +3361,15 @@ module TencentCloud
|
|
|
3347
3361
|
# @param LeakCount: 信息泄露总数
|
|
3348
3362
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3349
3363
|
# @type LeakCount: Integer
|
|
3364
|
+
# @param ApiRiskEventCircleCount: API风险事件周环比
|
|
3365
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3366
|
+
# @type ApiRiskEventCircleCount: Integer
|
|
3350
3367
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3351
3368
|
# @type RequestId: String
|
|
3352
3369
|
|
|
3353
|
-
attr_accessor :AccessCount, :AttackCount, :ACLCount, :CCCount, :BotCount, :ApiAssetsCount, :ApiRiskEventCount, :IPBlackCount, :TamperCount, :LeakCount, :RequestId
|
|
3370
|
+
attr_accessor :AccessCount, :AttackCount, :ACLCount, :CCCount, :BotCount, :ApiAssetsCount, :ApiRiskEventCount, :IPBlackCount, :TamperCount, :LeakCount, :ApiRiskEventCircleCount, :RequestId
|
|
3354
3371
|
|
|
3355
|
-
def initialize(accesscount=nil, attackcount=nil, aclcount=nil, cccount=nil, botcount=nil, apiassetscount=nil, apiriskeventcount=nil, ipblackcount=nil, tampercount=nil, leakcount=nil, requestid=nil)
|
|
3372
|
+
def initialize(accesscount=nil, attackcount=nil, aclcount=nil, cccount=nil, botcount=nil, apiassetscount=nil, apiriskeventcount=nil, ipblackcount=nil, tampercount=nil, leakcount=nil, apiriskeventcirclecount=nil, requestid=nil)
|
|
3356
3373
|
@AccessCount = accesscount
|
|
3357
3374
|
@AttackCount = attackcount
|
|
3358
3375
|
@ACLCount = aclcount
|
|
@@ -3363,6 +3380,7 @@ module TencentCloud
|
|
|
3363
3380
|
@IPBlackCount = ipblackcount
|
|
3364
3381
|
@TamperCount = tampercount
|
|
3365
3382
|
@LeakCount = leakcount
|
|
3383
|
+
@ApiRiskEventCircleCount = apiriskeventcirclecount
|
|
3366
3384
|
@RequestId = requestid
|
|
3367
3385
|
end
|
|
3368
3386
|
|
|
@@ -3377,6 +3395,7 @@ module TencentCloud
|
|
|
3377
3395
|
@IPBlackCount = params['IPBlackCount']
|
|
3378
3396
|
@TamperCount = params['TamperCount']
|
|
3379
3397
|
@LeakCount = params['LeakCount']
|
|
3398
|
+
@ApiRiskEventCircleCount = params['ApiRiskEventCircleCount']
|
|
3380
3399
|
@RequestId = params['RequestId']
|
|
3381
3400
|
end
|
|
3382
3401
|
end
|
|
@@ -3679,7 +3698,7 @@ module TencentCloud
|
|
|
3679
3698
|
|
|
3680
3699
|
# DescribeCCAutoStatus返回参数结构体
|
|
3681
3700
|
class DescribeCCAutoStatusResponse < TencentCloud::Common::AbstractModel
|
|
3682
|
-
# @param AutoCCSwitch:
|
|
3701
|
+
# @param AutoCCSwitch: 配置状态,0表示关闭,1表示开启
|
|
3683
3702
|
# @type AutoCCSwitch: Integer
|
|
3684
3703
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3685
3704
|
# @type RequestId: String
|
|
@@ -4949,7 +4968,7 @@ module TencentCloud
|
|
|
4949
4968
|
# @type Source: String
|
|
4950
4969
|
# @param Sort: 排序参数
|
|
4951
4970
|
# @type Sort: String
|
|
4952
|
-
# @param Ip:
|
|
4971
|
+
# @param Ip: IP
|
|
4953
4972
|
# @type Ip: String
|
|
4954
4973
|
# @param ValidStatus: 生效状态
|
|
4955
4974
|
# @type ValidStatus: Integer
|
|
@@ -4957,15 +4976,17 @@ module TencentCloud
|
|
|
4957
4976
|
# @type ValidTimeStampMin: String
|
|
4958
4977
|
# @param ValidTimeStampMax: 最大有效时间的时间戳
|
|
4959
4978
|
# @type ValidTimeStampMax: String
|
|
4979
|
+
# @param RuleId: 规则ID
|
|
4980
|
+
# @type RuleId: Integer
|
|
4960
4981
|
|
|
4961
|
-
attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax
|
|
4982
|
+
attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId
|
|
4962
4983
|
extend Gem::Deprecate
|
|
4963
4984
|
deprecate :VtsMin, :none, 2024, 3
|
|
4964
4985
|
deprecate :VtsMin=, :none, 2024, 3
|
|
4965
4986
|
deprecate :VtsMax, :none, 2024, 3
|
|
4966
4987
|
deprecate :VtsMax=, :none, 2024, 3
|
|
4967
4988
|
|
|
4968
|
-
def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil)
|
|
4989
|
+
def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil, ruleid=nil)
|
|
4969
4990
|
@Domain = domain
|
|
4970
4991
|
@Count = count
|
|
4971
4992
|
@ActionType = actiontype
|
|
@@ -4981,6 +5002,7 @@ module TencentCloud
|
|
|
4981
5002
|
@ValidStatus = validstatus
|
|
4982
5003
|
@ValidTimeStampMin = validtimestampmin
|
|
4983
5004
|
@ValidTimeStampMax = validtimestampmax
|
|
5005
|
+
@RuleId = ruleid
|
|
4984
5006
|
end
|
|
4985
5007
|
|
|
4986
5008
|
def deserialize(params)
|
|
@@ -4999,6 +5021,7 @@ module TencentCloud
|
|
|
4999
5021
|
@ValidStatus = params['ValidStatus']
|
|
5000
5022
|
@ValidTimeStampMin = params['ValidTimeStampMin']
|
|
5001
5023
|
@ValidTimeStampMax = params['ValidTimeStampMax']
|
|
5024
|
+
@RuleId = params['RuleId']
|
|
5002
5025
|
end
|
|
5003
5026
|
end
|
|
5004
5027
|
|
|
@@ -5007,13 +5030,17 @@ module TencentCloud
|
|
|
5007
5030
|
# @param Data: 输出
|
|
5008
5031
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5009
5032
|
# @type Data: :class:`Tencentcloud::Waf.v20180125.models.IpAccessControlData`
|
|
5033
|
+
# @param UsedTotal: 已经使用的IP黑白名单的IP总数
|
|
5034
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5035
|
+
# @type UsedTotal: Integer
|
|
5010
5036
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5011
5037
|
# @type RequestId: String
|
|
5012
5038
|
|
|
5013
|
-
attr_accessor :Data, :RequestId
|
|
5039
|
+
attr_accessor :Data, :UsedTotal, :RequestId
|
|
5014
5040
|
|
|
5015
|
-
def initialize(data=nil, requestid=nil)
|
|
5041
|
+
def initialize(data=nil, usedtotal=nil, requestid=nil)
|
|
5016
5042
|
@Data = data
|
|
5043
|
+
@UsedTotal = usedtotal
|
|
5017
5044
|
@RequestId = requestid
|
|
5018
5045
|
end
|
|
5019
5046
|
|
|
@@ -5022,6 +5049,7 @@ module TencentCloud
|
|
|
5022
5049
|
@Data = IpAccessControlData.new
|
|
5023
5050
|
@Data.deserialize(params['Data'])
|
|
5024
5051
|
end
|
|
5052
|
+
@UsedTotal = params['UsedTotal']
|
|
5025
5053
|
@RequestId = params['RequestId']
|
|
5026
5054
|
end
|
|
5027
5055
|
end
|
|
@@ -6306,7 +6334,7 @@ module TencentCloud
|
|
|
6306
6334
|
# "日本": "jp"
|
|
6307
6335
|
# "弗吉尼亚": "use"
|
|
6308
6336
|
# "北京": "bj"
|
|
6309
|
-
# "
|
|
6337
|
+
# "中国香港": "hk"
|
|
6310
6338
|
# "杭州": "hzec"
|
|
6311
6339
|
# "北京金融": "bjjr"
|
|
6312
6340
|
# "上海金融": "shjr"
|
|
@@ -6428,10 +6456,13 @@ module TencentCloud
|
|
|
6428
6456
|
# @param SgID: 安全组ID
|
|
6429
6457
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6430
6458
|
# @type SgID: String
|
|
6459
|
+
# @param AccessStatus: clbwaf接入状态
|
|
6460
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6461
|
+
# @type AccessStatus: Integer
|
|
6431
6462
|
|
|
6432
|
-
attr_accessor :Domain, :DomainId, :InstanceId, :Cname, :Edition, :Region, :InstanceName, :ClsStatus, :FlowMode, :Status, :Mode, :Engine, :CCList, :RsList, :Ports, :LoadBalancerSet, :AppId, :State, :CreateTime, :Ipv6Status, :BotStatus, :Level, :PostCLSStatus, :PostCKafkaStatus, :CdcClusters, :ApiStatus, :AlbType, :SgState, :SgDetail, :CloudType, :Note, :SrcList, :UpstreamDomainList, :SgID
|
|
6463
|
+
attr_accessor :Domain, :DomainId, :InstanceId, :Cname, :Edition, :Region, :InstanceName, :ClsStatus, :FlowMode, :Status, :Mode, :Engine, :CCList, :RsList, :Ports, :LoadBalancerSet, :AppId, :State, :CreateTime, :Ipv6Status, :BotStatus, :Level, :PostCLSStatus, :PostCKafkaStatus, :CdcClusters, :ApiStatus, :AlbType, :SgState, :SgDetail, :CloudType, :Note, :SrcList, :UpstreamDomainList, :SgID, :AccessStatus
|
|
6433
6464
|
|
|
6434
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, cname=nil, edition=nil, region=nil, instancename=nil, clsstatus=nil, flowmode=nil, status=nil, mode=nil, engine=nil, cclist=nil, rslist=nil, ports=nil, loadbalancerset=nil, appid=nil, state=nil, createtime=nil, ipv6status=nil, botstatus=nil, level=nil, postclsstatus=nil, postckafkastatus=nil, cdcclusters=nil, apistatus=nil, albtype=nil, sgstate=nil, sgdetail=nil, cloudtype=nil, note=nil, srclist=nil, upstreamdomainlist=nil, sgid=nil)
|
|
6465
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, cname=nil, edition=nil, region=nil, instancename=nil, clsstatus=nil, flowmode=nil, status=nil, mode=nil, engine=nil, cclist=nil, rslist=nil, ports=nil, loadbalancerset=nil, appid=nil, state=nil, createtime=nil, ipv6status=nil, botstatus=nil, level=nil, postclsstatus=nil, postckafkastatus=nil, cdcclusters=nil, apistatus=nil, albtype=nil, sgstate=nil, sgdetail=nil, cloudtype=nil, note=nil, srclist=nil, upstreamdomainlist=nil, sgid=nil, accessstatus=nil)
|
|
6435
6466
|
@Domain = domain
|
|
6436
6467
|
@DomainId = domainid
|
|
6437
6468
|
@InstanceId = instanceid
|
|
@@ -6466,6 +6497,7 @@ module TencentCloud
|
|
|
6466
6497
|
@SrcList = srclist
|
|
6467
6498
|
@UpstreamDomainList = upstreamdomainlist
|
|
6468
6499
|
@SgID = sgid
|
|
6500
|
+
@AccessStatus = accessstatus
|
|
6469
6501
|
end
|
|
6470
6502
|
|
|
6471
6503
|
def deserialize(params)
|
|
@@ -6517,6 +6549,7 @@ module TencentCloud
|
|
|
6517
6549
|
@SrcList = params['SrcList']
|
|
6518
6550
|
@UpstreamDomainList = params['UpstreamDomainList']
|
|
6519
6551
|
@SgID = params['SgID']
|
|
6552
|
+
@AccessStatus = params['AccessStatus']
|
|
6520
6553
|
end
|
|
6521
6554
|
end
|
|
6522
6555
|
|
|
@@ -6725,10 +6758,13 @@ module TencentCloud
|
|
|
6725
6758
|
# @param Level: 防护规则
|
|
6726
6759
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6727
6760
|
# @type Level: String
|
|
6761
|
+
# @param ProxyBuffer: 是否开启缓存 0-关闭 1-开启
|
|
6762
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6763
|
+
# @type ProxyBuffer: Integer
|
|
6728
6764
|
|
|
6729
|
-
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
|
|
6765
|
+
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
|
|
6730
6766
|
|
|
6731
|
-
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)
|
|
6767
|
+
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)
|
|
6732
6768
|
@Domain = domain
|
|
6733
6769
|
@DomainId = domainid
|
|
6734
6770
|
@InstanceId = instanceid
|
|
@@ -6770,6 +6806,7 @@ module TencentCloud
|
|
|
6770
6806
|
@Note = note
|
|
6771
6807
|
@UpstreamHost = upstreamhost
|
|
6772
6808
|
@Level = level
|
|
6809
|
+
@ProxyBuffer = proxybuffer
|
|
6773
6810
|
end
|
|
6774
6811
|
|
|
6775
6812
|
def deserialize(params)
|
|
@@ -6821,6 +6858,7 @@ module TencentCloud
|
|
|
6821
6858
|
@Note = params['Note']
|
|
6822
6859
|
@UpstreamHost = params['UpstreamHost']
|
|
6823
6860
|
@Level = params['Level']
|
|
6861
|
+
@ProxyBuffer = params['ProxyBuffer']
|
|
6824
6862
|
end
|
|
6825
6863
|
end
|
|
6826
6864
|
|
|
@@ -8168,10 +8206,16 @@ module TencentCloud
|
|
|
8168
8206
|
# @param ValidStatus: 生效状态
|
|
8169
8207
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
8170
8208
|
# @type ValidStatus: Integer
|
|
8209
|
+
# @param RuleId: 55000001
|
|
8210
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
8211
|
+
# @type RuleId: Integer
|
|
8212
|
+
# @param IpList: IP列表
|
|
8213
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
8214
|
+
# @type IpList: Array
|
|
8171
8215
|
|
|
8172
|
-
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :ValidStatus
|
|
8216
|
+
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :ValidStatus, :RuleId, :IpList
|
|
8173
8217
|
|
|
8174
|
-
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, validstatus=nil)
|
|
8218
|
+
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, validstatus=nil, ruleid=nil, iplist=nil)
|
|
8175
8219
|
@Id = id
|
|
8176
8220
|
@ActionType = actiontype
|
|
8177
8221
|
@Ip = ip
|
|
@@ -8180,6 +8224,8 @@ module TencentCloud
|
|
|
8180
8224
|
@TsVersion = tsversion
|
|
8181
8225
|
@ValidTs = validts
|
|
8182
8226
|
@ValidStatus = validstatus
|
|
8227
|
+
@RuleId = ruleid
|
|
8228
|
+
@IpList = iplist
|
|
8183
8229
|
end
|
|
8184
8230
|
|
|
8185
8231
|
def deserialize(params)
|
|
@@ -8191,6 +8237,8 @@ module TencentCloud
|
|
|
8191
8237
|
@TsVersion = params['TsVersion']
|
|
8192
8238
|
@ValidTs = params['ValidTs']
|
|
8193
8239
|
@ValidStatus = params['ValidStatus']
|
|
8240
|
+
@RuleId = params['RuleId']
|
|
8241
|
+
@IpList = params['IpList']
|
|
8194
8242
|
end
|
|
8195
8243
|
end
|
|
8196
8244
|
|
|
@@ -8582,6 +8630,9 @@ module TencentCloud
|
|
|
8582
8630
|
# @type TopicId: String
|
|
8583
8631
|
|
|
8584
8632
|
attr_accessor :Period, :TopicId
|
|
8633
|
+
extend Gem::Deprecate
|
|
8634
|
+
deprecate :TopicId, :none, 2024, 3
|
|
8635
|
+
deprecate :TopicId=, :none, 2024, 3
|
|
8585
8636
|
|
|
8586
8637
|
def initialize(period=nil, topicid=nil)
|
|
8587
8638
|
@Period = period
|
|
@@ -10078,6 +10129,8 @@ module TencentCloud
|
|
|
10078
10129
|
# @type Domain: String
|
|
10079
10130
|
# @param DomainId: 必填项。域名唯一ID
|
|
10080
10131
|
# @type DomainId: String
|
|
10132
|
+
# @param InstanceID: 必填项。域名所属实例id
|
|
10133
|
+
# @type InstanceID: String
|
|
10081
10134
|
# @param CertType: 必填项。证书类型。
|
|
10082
10135
|
# 0:仅配置HTTP监听端口,没有证书
|
|
10083
10136
|
# 1:证书来源为自有证书
|
|
@@ -10136,8 +10189,6 @@ module TencentCloud
|
|
|
10136
10189
|
# 0: 短连接
|
|
10137
10190
|
# 1: 长连接
|
|
10138
10191
|
# @type IsKeepAlive: String
|
|
10139
|
-
# @param InstanceID: 必填项。域名所属实例id
|
|
10140
|
-
# @type InstanceID: String
|
|
10141
10192
|
# @param Anycast: 必填项,待废弃。目前填0即可。anycast IP类型开关: 0 普通IP 1 Anycast IP
|
|
10142
10193
|
# @type Anycast: Integer
|
|
10143
10194
|
# @param Weights: 回源IP列表各IP的权重,和SrcList一一对应。当且仅当UpstreamType为0,并且SrcList有多个IP,并且LoadBalance为2时需要填写,否则填 []
|
|
@@ -10178,12 +10229,15 @@ module TencentCloud
|
|
|
10178
10229
|
# @type Note: String
|
|
10179
10230
|
# @param UpstreamHost: 自定义回源Host。默认为空字符串,表示使用防护域名作为回源Host。
|
|
10180
10231
|
# @type UpstreamHost: String
|
|
10232
|
+
# @param ProxyBuffer: 是否开启缓存 0-关闭 1-开启
|
|
10233
|
+
# @type ProxyBuffer: Integer
|
|
10181
10234
|
|
|
10182
|
-
attr_accessor :Domain, :DomainId, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :
|
|
10235
|
+
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
|
|
10183
10236
|
|
|
10184
|
-
def initialize(domain=nil, domainid=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,
|
|
10237
|
+
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)
|
|
10185
10238
|
@Domain = domain
|
|
10186
10239
|
@DomainId = domainid
|
|
10240
|
+
@InstanceID = instanceid
|
|
10187
10241
|
@CertType = certtype
|
|
10188
10242
|
@Cert = cert
|
|
10189
10243
|
@PrivateKey = privatekey
|
|
@@ -10202,7 +10256,6 @@ module TencentCloud
|
|
|
10202
10256
|
@Edition = edition
|
|
10203
10257
|
@Ports = ports
|
|
10204
10258
|
@IsKeepAlive = iskeepalive
|
|
10205
|
-
@InstanceID = instanceid
|
|
10206
10259
|
@Anycast = anycast
|
|
10207
10260
|
@Weights = weights
|
|
10208
10261
|
@ActiveCheck = activecheck
|
|
@@ -10217,11 +10270,13 @@ module TencentCloud
|
|
|
10217
10270
|
@XFFReset = xffreset
|
|
10218
10271
|
@Note = note
|
|
10219
10272
|
@UpstreamHost = upstreamhost
|
|
10273
|
+
@ProxyBuffer = proxybuffer
|
|
10220
10274
|
end
|
|
10221
10275
|
|
|
10222
10276
|
def deserialize(params)
|
|
10223
10277
|
@Domain = params['Domain']
|
|
10224
10278
|
@DomainId = params['DomainId']
|
|
10279
|
+
@InstanceID = params['InstanceID']
|
|
10225
10280
|
@CertType = params['CertType']
|
|
10226
10281
|
@Cert = params['Cert']
|
|
10227
10282
|
@PrivateKey = params['PrivateKey']
|
|
@@ -10247,7 +10302,6 @@ module TencentCloud
|
|
|
10247
10302
|
end
|
|
10248
10303
|
end
|
|
10249
10304
|
@IsKeepAlive = params['IsKeepAlive']
|
|
10250
|
-
@InstanceID = params['InstanceID']
|
|
10251
10305
|
@Anycast = params['Anycast']
|
|
10252
10306
|
@Weights = params['Weights']
|
|
10253
10307
|
@ActiveCheck = params['ActiveCheck']
|
|
@@ -10262,6 +10316,7 @@ module TencentCloud
|
|
|
10262
10316
|
@XFFReset = params['XFFReset']
|
|
10263
10317
|
@Note = params['Note']
|
|
10264
10318
|
@UpstreamHost = params['UpstreamHost']
|
|
10319
|
+
@ProxyBuffer = params['ProxyBuffer']
|
|
10265
10320
|
end
|
|
10266
10321
|
end
|
|
10267
10322
|
|
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.786
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-03-
|
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|