tencentcloud-sdk-waf 3.0.599 → 3.0.600
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 +24 -0
- data/lib/v20180125/models.rb +195 -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: 29ecbbc011d0699177cf28ab29bcf665ad997bc4
|
4
|
+
data.tar.gz: 9ec508d3e509014d38f84ea6e90c42e0987f36dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c4ae5325b7b9dc7952ffe66525b2e1fa37486ca39129eec222f5a4f56af16a666c02c46fd9f03217f52192b6f0744871f064e4b60168146b4a1bd543110f2c
|
7
|
+
data.tar.gz: 11f69aea5d97be0c19433dd1049a329d9d7bc410db610fed931d991569ef02e8592c8e5c99784383868fd0a45f2c5a9243693b75d16a1b398460f64c6f05c24c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.600
|
data/lib/v20180125/client.rb
CHANGED
@@ -1037,6 +1037,30 @@ module TencentCloud
|
|
1037
1037
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1038
1038
|
end
|
1039
1039
|
|
1040
|
+
# 修改域名配置
|
1041
|
+
|
1042
|
+
# @param request: Request instance for ModifySpartaProtection.
|
1043
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifySpartaProtectionRequest`
|
1044
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifySpartaProtectionResponse`
|
1045
|
+
def ModifySpartaProtection(request)
|
1046
|
+
body = send_request('ModifySpartaProtection', request.serialize)
|
1047
|
+
response = JSON.parse(body)
|
1048
|
+
if response['Response'].key?('Error') == false
|
1049
|
+
model = ModifySpartaProtectionResponse.new
|
1050
|
+
model.deserialize(response['Response'])
|
1051
|
+
model
|
1052
|
+
else
|
1053
|
+
code = response['Response']['Error']['Code']
|
1054
|
+
message = response['Response']['Error']['Message']
|
1055
|
+
reqid = response['Response']['RequestId']
|
1056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
+
end
|
1058
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
+
raise e
|
1060
|
+
rescue StandardError => e
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
+
end
|
1063
|
+
|
1040
1064
|
# 修改ip惩罚规则
|
1041
1065
|
|
1042
1066
|
# @param request: Request instance for ModifyWafAutoDenyRules.
|
data/lib/v20180125/models.rb
CHANGED
@@ -3953,6 +3953,169 @@ module TencentCloud
|
|
3953
3953
|
end
|
3954
3954
|
end
|
3955
3955
|
|
3956
|
+
# ModifySpartaProtection请求参数结构体
|
3957
|
+
class ModifySpartaProtectionRequest < TencentCloud::Common::AbstractModel
|
3958
|
+
# @param Domain: 域名
|
3959
|
+
# @type Domain: String
|
3960
|
+
# @param DomainId: 域名ID
|
3961
|
+
# @type DomainId: String
|
3962
|
+
# @param CertType: 证书类型,0表示没有证书,CertType=1表示自有证书,2 为托管证书
|
3963
|
+
# @type CertType: Integer
|
3964
|
+
# @param Cert: CertType=1时,需要填次参数,表示证书内容
|
3965
|
+
# @type Cert: String
|
3966
|
+
# @param PrivateKey: CertType=1时,需要填次参数,表示证书的私钥
|
3967
|
+
# @type PrivateKey: String
|
3968
|
+
# @param SSLId: CertType=2时,需要填次参数,表示证书的ID
|
3969
|
+
# @type SSLId: String
|
3970
|
+
# @param IsCdn: 表示是否开启了CDN代理
|
3971
|
+
# @type IsCdn: Integer
|
3972
|
+
# @param UpstreamScheme: HTTPS回源协议
|
3973
|
+
# @type UpstreamScheme: String
|
3974
|
+
# @param HttpsUpstreamPort: HTTPS回源端口,仅UpstreamScheme为http时需要填当前字段
|
3975
|
+
# @type HttpsUpstreamPort: String
|
3976
|
+
# @param HttpsRewrite: 表示是否强制跳转到HTTPS,1表示开启,0表示不开启
|
3977
|
+
# @type HttpsRewrite: Integer
|
3978
|
+
# @param UpstreamType: 回源类型,0表示通过IP回源,1 表示通过域名回源
|
3979
|
+
# @type UpstreamType: Integer
|
3980
|
+
# @param UpstreamDomain: UpstreamType=1时,填次字段表示回源域名
|
3981
|
+
# @type UpstreamDomain: String
|
3982
|
+
# @param SrcList: UpstreamType=0时,填次字段表示回源ip
|
3983
|
+
# @type SrcList: Array
|
3984
|
+
# @param IsHttp2: 是否开启HTTP2,1表示开启,0表示不开启http2。开启HTTP2需要HTTPS支持
|
3985
|
+
# @type IsHttp2: Integer
|
3986
|
+
# @param IsWebsocket: 是否开启WebSocket, 1:开启WebSocket,0:不开启WebSocket
|
3987
|
+
# @type IsWebsocket: Integer
|
3988
|
+
# @param LoadBalance: 负载均衡策略,0表示轮徇,1表示IP hash
|
3989
|
+
# @type LoadBalance: Integer
|
3990
|
+
# @param IsGray: 是否灰度
|
3991
|
+
# @type IsGray: Integer
|
3992
|
+
# @param Edition: WAF版本
|
3993
|
+
# @type Edition: String
|
3994
|
+
# @param Ports: 端口信息
|
3995
|
+
# @type Ports: Array
|
3996
|
+
# @param IsKeepAlive: 长短连接标志,仅IP回源时有效
|
3997
|
+
# @type IsKeepAlive: String
|
3998
|
+
# @param InstanceID: 实例id
|
3999
|
+
# @type InstanceID: String
|
4000
|
+
# @param Anycast: 是否为Anycast ip类型:1 Anycast 0 普通ip
|
4001
|
+
# @type Anycast: Integer
|
4002
|
+
# @param Weights: src的权重
|
4003
|
+
# @type Weights: Array
|
4004
|
+
# @param ActiveCheck: 是否开启源站的主动健康检测,1表示开启,0表示不开启
|
4005
|
+
# @type ActiveCheck: Integer
|
4006
|
+
# @param TLSVersion: TLS版本信息
|
4007
|
+
# @type TLSVersion: Integer
|
4008
|
+
# @param Ciphers: 加密套件信息
|
4009
|
+
# @type Ciphers: Array
|
4010
|
+
# @param CipherTemplate: 0:不支持选择:默认模版 1:通用型模版 2:安全型模版 3:自定义模版
|
4011
|
+
# @type CipherTemplate: Integer
|
4012
|
+
# @param ProxyReadTimeout: 300s
|
4013
|
+
# @type ProxyReadTimeout: Integer
|
4014
|
+
# @param ProxySendTimeout: 300s
|
4015
|
+
# @type ProxySendTimeout: Integer
|
4016
|
+
# @param SniType: 0:关闭SNI;1:开启SNI,SNI=源请求host;2:开启SNI,SNI=修改为源站host;3:开启SNI,自定义host,SNI=SniHost;
|
4017
|
+
# @type SniType: Integer
|
4018
|
+
# @param SniHost: SniType=3时,需要填此参数,表示自定义的host;
|
4019
|
+
# @type SniHost: String
|
4020
|
+
# @param IpHeaders: IsCdn=3时,需要填此参数,表示自定义header
|
4021
|
+
# @type IpHeaders: Array
|
4022
|
+
|
4023
|
+
attr_accessor :Domain, :DomainId, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :InstanceID, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders
|
4024
|
+
|
4025
|
+
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, instanceid=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil)
|
4026
|
+
@Domain = domain
|
4027
|
+
@DomainId = domainid
|
4028
|
+
@CertType = certtype
|
4029
|
+
@Cert = cert
|
4030
|
+
@PrivateKey = privatekey
|
4031
|
+
@SSLId = sslid
|
4032
|
+
@IsCdn = iscdn
|
4033
|
+
@UpstreamScheme = upstreamscheme
|
4034
|
+
@HttpsUpstreamPort = httpsupstreamport
|
4035
|
+
@HttpsRewrite = httpsrewrite
|
4036
|
+
@UpstreamType = upstreamtype
|
4037
|
+
@UpstreamDomain = upstreamdomain
|
4038
|
+
@SrcList = srclist
|
4039
|
+
@IsHttp2 = ishttp2
|
4040
|
+
@IsWebsocket = iswebsocket
|
4041
|
+
@LoadBalance = loadbalance
|
4042
|
+
@IsGray = isgray
|
4043
|
+
@Edition = edition
|
4044
|
+
@Ports = ports
|
4045
|
+
@IsKeepAlive = iskeepalive
|
4046
|
+
@InstanceID = instanceid
|
4047
|
+
@Anycast = anycast
|
4048
|
+
@Weights = weights
|
4049
|
+
@ActiveCheck = activecheck
|
4050
|
+
@TLSVersion = tlsversion
|
4051
|
+
@Ciphers = ciphers
|
4052
|
+
@CipherTemplate = ciphertemplate
|
4053
|
+
@ProxyReadTimeout = proxyreadtimeout
|
4054
|
+
@ProxySendTimeout = proxysendtimeout
|
4055
|
+
@SniType = snitype
|
4056
|
+
@SniHost = snihost
|
4057
|
+
@IpHeaders = ipheaders
|
4058
|
+
end
|
4059
|
+
|
4060
|
+
def deserialize(params)
|
4061
|
+
@Domain = params['Domain']
|
4062
|
+
@DomainId = params['DomainId']
|
4063
|
+
@CertType = params['CertType']
|
4064
|
+
@Cert = params['Cert']
|
4065
|
+
@PrivateKey = params['PrivateKey']
|
4066
|
+
@SSLId = params['SSLId']
|
4067
|
+
@IsCdn = params['IsCdn']
|
4068
|
+
@UpstreamScheme = params['UpstreamScheme']
|
4069
|
+
@HttpsUpstreamPort = params['HttpsUpstreamPort']
|
4070
|
+
@HttpsRewrite = params['HttpsRewrite']
|
4071
|
+
@UpstreamType = params['UpstreamType']
|
4072
|
+
@UpstreamDomain = params['UpstreamDomain']
|
4073
|
+
@SrcList = params['SrcList']
|
4074
|
+
@IsHttp2 = params['IsHttp2']
|
4075
|
+
@IsWebsocket = params['IsWebsocket']
|
4076
|
+
@LoadBalance = params['LoadBalance']
|
4077
|
+
@IsGray = params['IsGray']
|
4078
|
+
@Edition = params['Edition']
|
4079
|
+
unless params['Ports'].nil?
|
4080
|
+
@Ports = []
|
4081
|
+
params['Ports'].each do |i|
|
4082
|
+
spartaprotectionport_tmp = SpartaProtectionPort.new
|
4083
|
+
spartaprotectionport_tmp.deserialize(i)
|
4084
|
+
@Ports << spartaprotectionport_tmp
|
4085
|
+
end
|
4086
|
+
end
|
4087
|
+
@IsKeepAlive = params['IsKeepAlive']
|
4088
|
+
@InstanceID = params['InstanceID']
|
4089
|
+
@Anycast = params['Anycast']
|
4090
|
+
@Weights = params['Weights']
|
4091
|
+
@ActiveCheck = params['ActiveCheck']
|
4092
|
+
@TLSVersion = params['TLSVersion']
|
4093
|
+
@Ciphers = params['Ciphers']
|
4094
|
+
@CipherTemplate = params['CipherTemplate']
|
4095
|
+
@ProxyReadTimeout = params['ProxyReadTimeout']
|
4096
|
+
@ProxySendTimeout = params['ProxySendTimeout']
|
4097
|
+
@SniType = params['SniType']
|
4098
|
+
@SniHost = params['SniHost']
|
4099
|
+
@IpHeaders = params['IpHeaders']
|
4100
|
+
end
|
4101
|
+
end
|
4102
|
+
|
4103
|
+
# ModifySpartaProtection返回参数结构体
|
4104
|
+
class ModifySpartaProtectionResponse < TencentCloud::Common::AbstractModel
|
4105
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4106
|
+
# @type RequestId: String
|
4107
|
+
|
4108
|
+
attr_accessor :RequestId
|
4109
|
+
|
4110
|
+
def initialize(requestid=nil)
|
4111
|
+
@RequestId = requestid
|
4112
|
+
end
|
4113
|
+
|
4114
|
+
def deserialize(params)
|
4115
|
+
@RequestId = params['RequestId']
|
4116
|
+
end
|
4117
|
+
end
|
4118
|
+
|
3956
4119
|
# ModifyWafAutoDenyRules请求参数结构体
|
3957
4120
|
class ModifyWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
|
3958
4121
|
# @param Domain: 域名
|
@@ -4575,6 +4738,38 @@ module TencentCloud
|
|
4575
4738
|
end
|
4576
4739
|
end
|
4577
4740
|
|
4741
|
+
# waf斯巴达-编辑防护域名中的端口结构
|
4742
|
+
class SpartaProtectionPort < TencentCloud::Common::AbstractModel
|
4743
|
+
# @param NginxServerId: nginx Id
|
4744
|
+
# @type NginxServerId: Integer
|
4745
|
+
# @param Port: 端口
|
4746
|
+
# @type Port: String
|
4747
|
+
# @param Protocol: 协议
|
4748
|
+
# @type Protocol: String
|
4749
|
+
# @param UpstreamPort: 后端端口
|
4750
|
+
# @type UpstreamPort: String
|
4751
|
+
# @param UpstreamProtocol: 后端协议
|
4752
|
+
# @type UpstreamProtocol: String
|
4753
|
+
|
4754
|
+
attr_accessor :NginxServerId, :Port, :Protocol, :UpstreamPort, :UpstreamProtocol
|
4755
|
+
|
4756
|
+
def initialize(nginxserverid=nil, port=nil, protocol=nil, upstreamport=nil, upstreamprotocol=nil)
|
4757
|
+
@NginxServerId = nginxserverid
|
4758
|
+
@Port = port
|
4759
|
+
@Protocol = protocol
|
4760
|
+
@UpstreamPort = upstreamport
|
4761
|
+
@UpstreamProtocol = upstreamprotocol
|
4762
|
+
end
|
4763
|
+
|
4764
|
+
def deserialize(params)
|
4765
|
+
@NginxServerId = params['NginxServerId']
|
4766
|
+
@Port = params['Port']
|
4767
|
+
@Protocol = params['Protocol']
|
4768
|
+
@UpstreamPort = params['UpstreamPort']
|
4769
|
+
@UpstreamProtocol = params['UpstreamProtocol']
|
4770
|
+
end
|
4771
|
+
end
|
4772
|
+
|
4578
4773
|
# 自定义规则的匹配条件结构体
|
4579
4774
|
class Strategy < TencentCloud::Common::AbstractModel
|
4580
4775
|
# @param Field: 匹配字段
|
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.600
|
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-06-
|
11
|
+
date: 2023-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|