tencentcloud-sdk-antiddos 1.0.297 → 1.0.300
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200309/models.rb +75 -67
- 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: 6b40e497b80d8ef0dedd95ba92dc46b043f907d2
|
4
|
+
data.tar.gz: f600ce471e45b32d3e4f5d8090e2f43765a96864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a13a03dce2246737ae9049f6c1a7545ef223622415221e2f7152d9a615d8af0372ed1256c87b726dbcf83b67a199b77eb05a32b1586a2a98f35df03affc10df
|
7
|
+
data.tar.gz: 237c99932a3dd754dff4eee2ff0f56f3f8dc9db4cffcd526bdab559ae781747d0bace3e4ae9b378f5ad1b1e3df6291fe876cb3293e875258d3c28f654519990a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.300
|
data/lib/v20200309/models.rb
CHANGED
@@ -5980,88 +5980,98 @@ module TencentCloud
|
|
5980
5980
|
|
5981
5981
|
# L7规则
|
5982
5982
|
class NewL7RuleEntry < TencentCloud::Common::AbstractModel
|
5983
|
-
# @param
|
5984
|
-
# @type
|
5983
|
+
# @param Protocol: 转发协议,取值[http, https]
|
5984
|
+
# @type Protocol: String
|
5985
|
+
# @param Domain: 转发域名
|
5986
|
+
# @type Domain: String
|
5985
5987
|
# @param LbType: 负载均衡方式,取值[1(加权轮询)]
|
5986
5988
|
# @type LbType: Integer
|
5987
|
-
# @param SourceList: 回源列表
|
5988
|
-
# @type SourceList: Array
|
5989
5989
|
# @param KeepEnable: 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]
|
5990
5990
|
# @type KeepEnable: Integer
|
5991
|
-
# @param
|
5992
|
-
# @type
|
5993
|
-
# @param Protocol: 转发协议,取值[http, https]
|
5994
|
-
# @type Protocol: String
|
5991
|
+
# @param KeepTime: 会话保持时间,单位秒
|
5992
|
+
# @type KeepTime: Integer
|
5995
5993
|
# @param SourceType: 回源方式,取值[1(域名回源),2(IP回源)]
|
5996
5994
|
# @type SourceType: Integer
|
5997
|
-
# @param
|
5998
|
-
# @type
|
5999
|
-
# @param Status: 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
|
6000
|
-
# @type Status: Integer
|
6001
|
-
# @param CCLevel: HTTPS协议的CC防护等级
|
6002
|
-
# @type CCLevel: String
|
6003
|
-
# @param CCEnable: HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
|
6004
|
-
# @type CCEnable: Integer
|
6005
|
-
# @param CCThreshold: HTTPS协议的CC防护阈值
|
6006
|
-
# @type CCThreshold: Integer
|
5995
|
+
# @param SourceList: 回源列表
|
5996
|
+
# @type SourceList: Array
|
6007
5997
|
# @param Region: 区域码
|
6008
5998
|
# @type Region: Integer
|
5999
|
+
# @param Id: 资源Id
|
6000
|
+
# @type Id: String
|
6001
|
+
# @param Ip: 资源Ip
|
6002
|
+
# @type Ip: String
|
6003
|
+
# @param RuleId: 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
|
6004
|
+
# @type RuleId: String
|
6009
6005
|
# @param RuleName: 规则描述
|
6010
6006
|
# @type RuleName: String
|
6007
|
+
# @param CertType: 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
|
6008
|
+
# @type CertType: Integer
|
6009
|
+
# @param SSLId: 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
|
6010
|
+
# @type SSLId: String
|
6011
6011
|
# @param Cert: 当证书来源为自有证书时,此字段必须填写证书内容;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
|
6012
6012
|
# @type Cert: String
|
6013
|
-
# @param ModifyTime: 修改时间
|
6014
|
-
# @type ModifyTime: String
|
6015
|
-
# @param RuleId: 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
|
6016
|
-
# @type RuleId: String
|
6017
|
-
# @param Ip: 资源Ip
|
6018
|
-
# @type Ip: String
|
6019
6013
|
# @param PrivateKey: 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
|
6020
6014
|
# @type PrivateKey: String
|
6021
|
-
# @param
|
6022
|
-
# @type
|
6015
|
+
# @param Status: 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
|
6016
|
+
# @type Status: Integer
|
6017
|
+
# @param CCStatus: cc防护状态,取值[0(关闭), 1(开启)]
|
6018
|
+
# @type CCStatus: Integer
|
6019
|
+
# @param CCEnable: HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
|
6020
|
+
# @type CCEnable: Integer
|
6021
|
+
# @param CCThreshold: HTTPS协议的CC防护阈值
|
6022
|
+
# @type CCThreshold: Integer
|
6023
|
+
# @param CCLevel: HTTPS协议的CC防护等级
|
6024
|
+
# @type CCLevel: String
|
6025
|
+
# @param ModifyTime: 修改时间
|
6026
|
+
# @type ModifyTime: String
|
6027
|
+
# @param HttpsToHttpEnable: 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
|
6028
|
+
# @type HttpsToHttpEnable: Integer
|
6023
6029
|
# @param VirtualPort: 接入端口值
|
6024
6030
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6025
6031
|
# @type VirtualPort: Integer
|
6026
|
-
# @param
|
6027
|
-
# @type
|
6028
|
-
# @param
|
6029
|
-
# @type
|
6030
|
-
# @param Id: 资源Id
|
6031
|
-
# @type Id: String
|
6032
|
+
# @param RewriteHttps: http强制跳转https,1表示打开,0表示关闭
|
6033
|
+
# @type RewriteHttps: Integer
|
6034
|
+
# @param ErrCode: 规则配置失败时的详细错误原因(仅当Status=2时有效),1001证书不存在,1002证书获取失败,1003证书上传失败,1004证书已过期
|
6035
|
+
# @type ErrCode: Integer
|
6032
6036
|
|
6033
|
-
attr_accessor :
|
6037
|
+
attr_accessor :Protocol, :Domain, :LbType, :KeepEnable, :KeepTime, :SourceType, :SourceList, :Region, :Id, :Ip, :RuleId, :RuleName, :CertType, :SSLId, :Cert, :PrivateKey, :Status, :CCStatus, :CCEnable, :CCThreshold, :CCLevel, :ModifyTime, :HttpsToHttpEnable, :VirtualPort, :RewriteHttps, :ErrCode
|
6034
6038
|
|
6035
|
-
def initialize(
|
6036
|
-
@
|
6039
|
+
def initialize(protocol=nil, domain=nil, lbtype=nil, keepenable=nil, keeptime=nil, sourcetype=nil, sourcelist=nil, region=nil, id=nil, ip=nil, ruleid=nil, rulename=nil, certtype=nil, sslid=nil, cert=nil, privatekey=nil, status=nil, ccstatus=nil, ccenable=nil, ccthreshold=nil, cclevel=nil, modifytime=nil, httpstohttpenable=nil, virtualport=nil, rewritehttps=nil, errcode=nil)
|
6040
|
+
@Protocol = protocol
|
6041
|
+
@Domain = domain
|
6037
6042
|
@LbType = lbtype
|
6038
|
-
@SourceList = sourcelist
|
6039
6043
|
@KeepEnable = keepenable
|
6040
|
-
@
|
6041
|
-
@Protocol = protocol
|
6044
|
+
@KeepTime = keeptime
|
6042
6045
|
@SourceType = sourcetype
|
6043
|
-
@
|
6044
|
-
@Status = status
|
6045
|
-
@CCLevel = cclevel
|
6046
|
-
@CCEnable = ccenable
|
6047
|
-
@CCThreshold = ccthreshold
|
6046
|
+
@SourceList = sourcelist
|
6048
6047
|
@Region = region
|
6048
|
+
@Id = id
|
6049
|
+
@Ip = ip
|
6050
|
+
@RuleId = ruleid
|
6049
6051
|
@RuleName = rulename
|
6052
|
+
@CertType = certtype
|
6053
|
+
@SSLId = sslid
|
6050
6054
|
@Cert = cert
|
6051
|
-
@ModifyTime = modifytime
|
6052
|
-
@RuleId = ruleid
|
6053
|
-
@Ip = ip
|
6054
6055
|
@PrivateKey = privatekey
|
6055
|
-
@
|
6056
|
-
@VirtualPort = virtualport
|
6056
|
+
@Status = status
|
6057
6057
|
@CCStatus = ccstatus
|
6058
|
-
@
|
6059
|
-
@
|
6058
|
+
@CCEnable = ccenable
|
6059
|
+
@CCThreshold = ccthreshold
|
6060
|
+
@CCLevel = cclevel
|
6061
|
+
@ModifyTime = modifytime
|
6062
|
+
@HttpsToHttpEnable = httpstohttpenable
|
6063
|
+
@VirtualPort = virtualport
|
6064
|
+
@RewriteHttps = rewritehttps
|
6065
|
+
@ErrCode = errcode
|
6060
6066
|
end
|
6061
6067
|
|
6062
6068
|
def deserialize(params)
|
6063
|
-
@
|
6069
|
+
@Protocol = params['Protocol']
|
6070
|
+
@Domain = params['Domain']
|
6064
6071
|
@LbType = params['LbType']
|
6072
|
+
@KeepEnable = params['KeepEnable']
|
6073
|
+
@KeepTime = params['KeepTime']
|
6074
|
+
@SourceType = params['SourceType']
|
6065
6075
|
unless params['SourceList'].nil?
|
6066
6076
|
@SourceList = []
|
6067
6077
|
params['SourceList'].each do |i|
|
@@ -6070,27 +6080,25 @@ module TencentCloud
|
|
6070
6080
|
@SourceList << l4rulesource_tmp
|
6071
6081
|
end
|
6072
6082
|
end
|
6073
|
-
@KeepEnable = params['KeepEnable']
|
6074
|
-
@Domain = params['Domain']
|
6075
|
-
@Protocol = params['Protocol']
|
6076
|
-
@SourceType = params['SourceType']
|
6077
|
-
@HttpsToHttpEnable = params['HttpsToHttpEnable']
|
6078
|
-
@Status = params['Status']
|
6079
|
-
@CCLevel = params['CCLevel']
|
6080
|
-
@CCEnable = params['CCEnable']
|
6081
|
-
@CCThreshold = params['CCThreshold']
|
6082
6083
|
@Region = params['Region']
|
6084
|
+
@Id = params['Id']
|
6085
|
+
@Ip = params['Ip']
|
6086
|
+
@RuleId = params['RuleId']
|
6083
6087
|
@RuleName = params['RuleName']
|
6088
|
+
@CertType = params['CertType']
|
6089
|
+
@SSLId = params['SSLId']
|
6084
6090
|
@Cert = params['Cert']
|
6085
|
-
@ModifyTime = params['ModifyTime']
|
6086
|
-
@RuleId = params['RuleId']
|
6087
|
-
@Ip = params['Ip']
|
6088
6091
|
@PrivateKey = params['PrivateKey']
|
6089
|
-
@
|
6090
|
-
@VirtualPort = params['VirtualPort']
|
6092
|
+
@Status = params['Status']
|
6091
6093
|
@CCStatus = params['CCStatus']
|
6092
|
-
@
|
6093
|
-
@
|
6094
|
+
@CCEnable = params['CCEnable']
|
6095
|
+
@CCThreshold = params['CCThreshold']
|
6096
|
+
@CCLevel = params['CCLevel']
|
6097
|
+
@ModifyTime = params['ModifyTime']
|
6098
|
+
@HttpsToHttpEnable = params['HttpsToHttpEnable']
|
6099
|
+
@VirtualPort = params['VirtualPort']
|
6100
|
+
@RewriteHttps = params['RewriteHttps']
|
6101
|
+
@ErrCode = params['ErrCode']
|
6094
6102
|
end
|
6095
6103
|
end
|
6096
6104
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-antiddos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.300
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|