tencentcloud-sdk-waf 3.0.553 → 3.0.554
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 +1 -1
- data/lib/v20180125/models.rb +117 -13
- 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: 9ae600bb170dcc87338a54422c70223add581d4b
|
4
|
+
data.tar.gz: fc604a6155272e7d5cf8f9202ca8670321d1b199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fcdaf58c0294f92c475f066e964ef866b2ab16ab8019ff1a959ce568c36d633b847a25d35ab032da5ab98b709cf2fc3f3ebf7307d167be2e1dd1e4c5c90993f
|
7
|
+
data.tar.gz: ffa602e84635689f47458d5c34e358a719b5cdc1e9caa2a8b039cef573efa2c6c5919b52c7fb1c3c63e3a701f506c5593ab3f718128cb23beaaa6f4ea65c2025
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.554
|
data/lib/v20180125/client.rb
CHANGED
@@ -870,7 +870,7 @@ module TencentCloud
|
|
870
870
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
871
|
end
|
872
872
|
|
873
|
-
#
|
873
|
+
# 本接口用于修改访问日志保存期限及大字段是否存储
|
874
874
|
|
875
875
|
# @param request: Request instance for ModifyAccessPeriod.
|
876
876
|
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAccessPeriodRequest`
|
data/lib/v20180125/models.rb
CHANGED
@@ -478,7 +478,7 @@ module TencentCloud
|
|
478
478
|
# @type HttpsRewrite: Integer
|
479
479
|
# @param Ports: 服务有多端口需要设置此字段
|
480
480
|
# @type Ports: Array
|
481
|
-
# @param Edition:
|
481
|
+
# @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF,cdn-waf表示CDN上的Web防护能力
|
482
482
|
# @type Edition: String
|
483
483
|
# @param IsKeepAlive: 是否开启长连接,仅IP回源时可以用填次参数,域名回源时这个参数无效
|
484
484
|
# @type IsKeepAlive: String
|
@@ -500,10 +500,16 @@ module TencentCloud
|
|
500
500
|
# @type ProxyReadTimeout: Integer
|
501
501
|
# @param ProxySendTimeout: 300s
|
502
502
|
# @type ProxySendTimeout: Integer
|
503
|
+
# @param SniType: 0:关闭SNI;1:开启SNI,SNI=源请求host;2:开启SNI,SNI=修改为源站host;3:开启SNI,自定义host,SNI=SniHost;
|
504
|
+
# @type SniType: Integer
|
505
|
+
# @param SniHost: SniType=3时,需要填此参数,表示自定义的host;
|
506
|
+
# @type SniHost: String
|
507
|
+
# @param IpHeaders: is_cdn=3时,需要填此参数,表示自定义header
|
508
|
+
# @type IpHeaders: Array
|
503
509
|
|
504
|
-
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :UpstreamDomain, :SrcList, :IsHttp2, :HttpsRewrite, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout
|
510
|
+
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :UpstreamDomain, :SrcList, :IsHttp2, :HttpsRewrite, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders
|
505
511
|
|
506
|
-
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, httpsrewrite=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil)
|
512
|
+
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, httpsrewrite=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil)
|
507
513
|
@Domain = domain
|
508
514
|
@CertType = certtype
|
509
515
|
@IsCdn = iscdn
|
@@ -534,6 +540,9 @@ module TencentCloud
|
|
534
540
|
@CipherTemplate = ciphertemplate
|
535
541
|
@ProxyReadTimeout = proxyreadtimeout
|
536
542
|
@ProxySendTimeout = proxysendtimeout
|
543
|
+
@SniType = snitype
|
544
|
+
@SniHost = snihost
|
545
|
+
@IpHeaders = ipheaders
|
537
546
|
end
|
538
547
|
|
539
548
|
def deserialize(params)
|
@@ -574,6 +583,9 @@ module TencentCloud
|
|
574
583
|
@CipherTemplate = params['CipherTemplate']
|
575
584
|
@ProxyReadTimeout = params['ProxyReadTimeout']
|
576
585
|
@ProxySendTimeout = params['ProxySendTimeout']
|
586
|
+
@SniType = params['SniType']
|
587
|
+
@SniHost = params['SniHost']
|
588
|
+
@IpHeaders = params['IpHeaders']
|
577
589
|
end
|
578
590
|
end
|
579
591
|
|
@@ -2063,13 +2075,20 @@ module TencentCloud
|
|
2063
2075
|
# @type Edition: String
|
2064
2076
|
# @param InstanceID: WAF实例ID,不传则不过滤
|
2065
2077
|
# @type InstanceID: String
|
2066
|
-
# @param MetricName:
|
2078
|
+
# @param MetricName: 十三个值可选:
|
2067
2079
|
# access-峰值qps趋势图
|
2068
2080
|
# botAccess- bot峰值qps趋势图
|
2069
2081
|
# down-下行峰值带宽趋势图
|
2070
2082
|
# up-上行峰值带宽趋势图
|
2071
2083
|
# attack-Web攻击总数趋势图
|
2072
2084
|
# cc-CC攻击总数趋势图
|
2085
|
+
# StatusServerError-WAF返回给客户端状态码次数趋势图
|
2086
|
+
# StatusClientError-WAF返回给客户端状态码次数趋势图
|
2087
|
+
# StatusRedirect-WAF返回给客户端状态码次数趋势图
|
2088
|
+
# StatusOk-WAF返回给客户端状态码次数趋势图
|
2089
|
+
# UpstreamServerError-源站返回给WAF状态码次数趋势图
|
2090
|
+
# UpstreamClientError-源站返回给WAF状态码次数趋势图
|
2091
|
+
# UpstreamRedirect-源站返回给WAF状态码次数趋势图
|
2073
2092
|
# @type MetricName: String
|
2074
2093
|
|
2075
2094
|
attr_accessor :FromTime, :ToTime, :Domain, :Edition, :InstanceID, :MetricName
|
@@ -2727,10 +2746,22 @@ module TencentCloud
|
|
2727
2746
|
# @param ProxySendTimeout: 300s
|
2728
2747
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2729
2748
|
# @type ProxySendTimeout: Integer
|
2749
|
+
# @param SniType: 0:关闭SNI;1:开启SNI,SNI=源请求host;2:开启SNI,SNI=修改为源站host;3:开启SNI,自定义host,SNI=SniHost;
|
2750
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2751
|
+
# @type SniType: Integer
|
2752
|
+
# @param SniHost: SniType=3时,需要填此参数,表示自定义的host;
|
2753
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2754
|
+
# @type SniHost: String
|
2755
|
+
# @param Weights: 无
|
2756
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2757
|
+
# @type Weights: Array
|
2758
|
+
# @param IpHeaders: IsCdn=3时,表示自定义header
|
2759
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2760
|
+
# @type IpHeaders: Array
|
2730
2761
|
|
2731
|
-
attr_accessor :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
|
2762
|
+
attr_accessor :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
|
2732
2763
|
|
2733
|
-
def initialize(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)
|
2764
|
+
def initialize(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)
|
2734
2765
|
@HttpsRewrite = httpsrewrite
|
2735
2766
|
@HttpsUpstreamPort = httpsupstreamport
|
2736
2767
|
@IsCdn = iscdn
|
@@ -2756,6 +2787,10 @@ module TencentCloud
|
|
2756
2787
|
@CipherTemplate = ciphertemplate
|
2757
2788
|
@ProxyReadTimeout = proxyreadtimeout
|
2758
2789
|
@ProxySendTimeout = proxysendtimeout
|
2790
|
+
@SniType = snitype
|
2791
|
+
@SniHost = snihost
|
2792
|
+
@Weights = weights
|
2793
|
+
@IpHeaders = ipheaders
|
2759
2794
|
end
|
2760
2795
|
|
2761
2796
|
def deserialize(params)
|
@@ -2791,6 +2826,10 @@ module TencentCloud
|
|
2791
2826
|
@CipherTemplate = params['CipherTemplate']
|
2792
2827
|
@ProxyReadTimeout = params['ProxyReadTimeout']
|
2793
2828
|
@ProxySendTimeout = params['ProxySendTimeout']
|
2829
|
+
@SniType = params['SniType']
|
2830
|
+
@SniHost = params['SniHost']
|
2831
|
+
@Weights = params['Weights']
|
2832
|
+
@IpHeaders = params['IpHeaders']
|
2794
2833
|
end
|
2795
2834
|
end
|
2796
2835
|
|
@@ -3062,10 +3101,16 @@ module TencentCloud
|
|
3062
3101
|
# @param AlbType: 应用型负载均衡类型: clb或者apisix,默认clb
|
3063
3102
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3064
3103
|
# @type AlbType: String
|
3104
|
+
# @param IpHeaders: IsCdn=3时,需要填此参数,表示自定义header
|
3105
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3106
|
+
# @type IpHeaders: Array
|
3107
|
+
# @param EngineType: 规则引擎类型, 1: menshen, 2:tiga
|
3108
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3109
|
+
# @type EngineType: Integer
|
3065
3110
|
|
3066
|
-
attr_accessor :Domain, :DomainId, :MainDomain, :Mode, :Status, :State, :Engine, :IsCdn, :LoadBalancerSet, :Region, :Edition, :FlowMode, :ClsStatus, :Level, :CdcClusters, :AlbType
|
3111
|
+
attr_accessor :Domain, :DomainId, :MainDomain, :Mode, :Status, :State, :Engine, :IsCdn, :LoadBalancerSet, :Region, :Edition, :FlowMode, :ClsStatus, :Level, :CdcClusters, :AlbType, :IpHeaders, :EngineType
|
3067
3112
|
|
3068
|
-
def initialize(domain=nil, domainid=nil, maindomain=nil, mode=nil, status=nil, state=nil, engine=nil, iscdn=nil, loadbalancerset=nil, region=nil, edition=nil, flowmode=nil, clsstatus=nil, level=nil, cdcclusters=nil, albtype=nil)
|
3113
|
+
def initialize(domain=nil, domainid=nil, maindomain=nil, mode=nil, status=nil, state=nil, engine=nil, iscdn=nil, loadbalancerset=nil, region=nil, edition=nil, flowmode=nil, clsstatus=nil, level=nil, cdcclusters=nil, albtype=nil, ipheaders=nil, enginetype=nil)
|
3069
3114
|
@Domain = domain
|
3070
3115
|
@DomainId = domainid
|
3071
3116
|
@MainDomain = maindomain
|
@@ -3082,6 +3127,8 @@ module TencentCloud
|
|
3082
3127
|
@Level = level
|
3083
3128
|
@CdcClusters = cdcclusters
|
3084
3129
|
@AlbType = albtype
|
3130
|
+
@IpHeaders = ipheaders
|
3131
|
+
@EngineType = enginetype
|
3085
3132
|
end
|
3086
3133
|
|
3087
3134
|
def deserialize(params)
|
@@ -3108,6 +3155,8 @@ module TencentCloud
|
|
3108
3155
|
@Level = params['Level']
|
3109
3156
|
@CdcClusters = params['CdcClusters']
|
3110
3157
|
@AlbType = params['AlbType']
|
3158
|
+
@IpHeaders = params['IpHeaders']
|
3159
|
+
@EngineType = params['EngineType']
|
3111
3160
|
end
|
3112
3161
|
end
|
3113
3162
|
|
@@ -3826,12 +3875,32 @@ module TencentCloud
|
|
3826
3875
|
# @param Cc: CC攻击次数
|
3827
3876
|
# @type Cc: Integer
|
3828
3877
|
# @param BotAccess: Bot qps
|
3829
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3830
3878
|
# @type BotAccess: Integer
|
3879
|
+
# @param StatusServerError: WAF返回给客户端状态码次数
|
3880
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3881
|
+
# @type StatusServerError: Integer
|
3882
|
+
# @param StatusClientError: WAF返回给客户端状态码次数
|
3883
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3884
|
+
# @type StatusClientError: Integer
|
3885
|
+
# @param StatusRedirect: WAF返回给客户端状态码次数
|
3886
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3887
|
+
# @type StatusRedirect: Integer
|
3888
|
+
# @param StatusOk: WAF返回给客户端状态码次数
|
3889
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3890
|
+
# @type StatusOk: Integer
|
3891
|
+
# @param UpstreamServerError: 源站返回给WAF状态码次数
|
3892
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3893
|
+
# @type UpstreamServerError: Integer
|
3894
|
+
# @param UpstreamClientError: 源站返回给WAF状态码次数
|
3895
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3896
|
+
# @type UpstreamClientError: Integer
|
3897
|
+
# @param UpstreamRedirect: 源站返回给WAF状态码次数
|
3898
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3899
|
+
# @type UpstreamRedirect: Integer
|
3831
3900
|
|
3832
|
-
attr_accessor :Time, :Access, :Up, :Down, :Attack, :Cc, :BotAccess
|
3901
|
+
attr_accessor :Time, :Access, :Up, :Down, :Attack, :Cc, :BotAccess, :StatusServerError, :StatusClientError, :StatusRedirect, :StatusOk, :UpstreamServerError, :UpstreamClientError, :UpstreamRedirect
|
3833
3902
|
|
3834
|
-
def initialize(time=nil, access=nil, up=nil, down=nil, attack=nil, cc=nil, botaccess=nil)
|
3903
|
+
def initialize(time=nil, access=nil, up=nil, down=nil, attack=nil, cc=nil, botaccess=nil, statusservererror=nil, statusclienterror=nil, statusredirect=nil, statusok=nil, upstreamservererror=nil, upstreamclienterror=nil, upstreamredirect=nil)
|
3835
3904
|
@Time = time
|
3836
3905
|
@Access = access
|
3837
3906
|
@Up = up
|
@@ -3839,6 +3908,13 @@ module TencentCloud
|
|
3839
3908
|
@Attack = attack
|
3840
3909
|
@Cc = cc
|
3841
3910
|
@BotAccess = botaccess
|
3911
|
+
@StatusServerError = statusservererror
|
3912
|
+
@StatusClientError = statusclienterror
|
3913
|
+
@StatusRedirect = statusredirect
|
3914
|
+
@StatusOk = statusok
|
3915
|
+
@UpstreamServerError = upstreamservererror
|
3916
|
+
@UpstreamClientError = upstreamclienterror
|
3917
|
+
@UpstreamRedirect = upstreamredirect
|
3842
3918
|
end
|
3843
3919
|
|
3844
3920
|
def deserialize(params)
|
@@ -3849,17 +3925,45 @@ module TencentCloud
|
|
3849
3925
|
@Attack = params['Attack']
|
3850
3926
|
@Cc = params['Cc']
|
3851
3927
|
@BotAccess = params['BotAccess']
|
3928
|
+
@StatusServerError = params['StatusServerError']
|
3929
|
+
@StatusClientError = params['StatusClientError']
|
3930
|
+
@StatusRedirect = params['StatusRedirect']
|
3931
|
+
@StatusOk = params['StatusOk']
|
3932
|
+
@UpstreamServerError = params['UpstreamServerError']
|
3933
|
+
@UpstreamClientError = params['UpstreamClientError']
|
3934
|
+
@UpstreamRedirect = params['UpstreamRedirect']
|
3852
3935
|
end
|
3853
3936
|
end
|
3854
3937
|
|
3855
|
-
#
|
3938
|
+
# 服务端口配置
|
3856
3939
|
class PortInfo < TencentCloud::Common::AbstractModel
|
3940
|
+
# @param NginxServerId: Nginx的服务器id
|
3941
|
+
# @type NginxServerId: Integer
|
3942
|
+
# @param Port: 监听端口配置
|
3943
|
+
# @type Port: String
|
3944
|
+
# @param Protocol: 与端口对应的协议
|
3945
|
+
# @type Protocol: String
|
3946
|
+
# @param UpstreamPort: 回源端口
|
3947
|
+
# @type UpstreamPort: String
|
3948
|
+
# @param UpstreamProtocol: 回源协议
|
3949
|
+
# @type UpstreamProtocol: String
|
3857
3950
|
|
3951
|
+
attr_accessor :NginxServerId, :Port, :Protocol, :UpstreamPort, :UpstreamProtocol
|
3858
3952
|
|
3859
|
-
def initialize()
|
3953
|
+
def initialize(nginxserverid=nil, port=nil, protocol=nil, upstreamport=nil, upstreamprotocol=nil)
|
3954
|
+
@NginxServerId = nginxserverid
|
3955
|
+
@Port = port
|
3956
|
+
@Protocol = protocol
|
3957
|
+
@UpstreamPort = upstreamport
|
3958
|
+
@UpstreamProtocol = upstreamprotocol
|
3860
3959
|
end
|
3861
3960
|
|
3862
3961
|
def deserialize(params)
|
3962
|
+
@NginxServerId = params['NginxServerId']
|
3963
|
+
@Port = params['Port']
|
3964
|
+
@Protocol = params['Protocol']
|
3965
|
+
@UpstreamPort = params['UpstreamPort']
|
3966
|
+
@UpstreamProtocol = params['UpstreamProtocol']
|
3863
3967
|
end
|
3864
3968
|
end
|
3865
3969
|
|
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.554
|
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-04-
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|