tencentcloud-sdk-antiddos 1.0.296 → 1.0.299

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20200309/models.rb +75 -67
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6c30d375481a7acf2791c8a39b2a67a3e173272
4
- data.tar.gz: 6474034f523fad67d27261d70173040698643e01
3
+ metadata.gz: 9fa75a9a99f403e972e7185f8cb696e627d18e1d
4
+ data.tar.gz: ffbab95664286fe24c65f07e7ae81040eac38114
5
5
  SHA512:
6
- metadata.gz: e7f7908d31259e263c51c841548c0c827c2492de44fa218d9283f0da4ad7f6fe7e5ad219b83deca625cf578ddf9122b2f7ac90969c20b9d4cdeecdd933de922e
7
- data.tar.gz: d24f2eb5f7340ff52aa0ea15fb3e23080d5138110120ee8f51d7fff1e414303299a8cf0ec50fcb392e90926a9198b005f0798500103f59fc0908715039577bfe
6
+ metadata.gz: f32aca1015e9844529f8846a821ea1f87de3c18fd85355d596d8e6de708a6bb6ff67898762aa316551229a698d1aeb091ab657337af796743efd7cb969af346e
7
+ data.tar.gz: 0346277552e7ddd2e849f1c5d9251f48a9e6ebb968c528a75c328b9b2dcd61c4e8d498e9419181456c35771f36d067387a718803d9f1ee976efc1757f2d02f7c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.296
1
+ 1.0.299
@@ -5980,88 +5980,98 @@ module TencentCloud
5980
5980
 
5981
5981
  # L7规则
5982
5982
  class NewL7RuleEntry < TencentCloud::Common::AbstractModel
5983
- # @param KeepTime: 会话保持时间,单位秒
5984
- # @type KeepTime: Integer
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 Domain: 转发域名
5992
- # @type Domain: String
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 HttpsToHttpEnable: 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
5998
- # @type HttpsToHttpEnable: Integer
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 CertType: 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
6022
- # @type CertType: Integer
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 CCStatus: cc防护状态,取值[0(关闭), 1(开启)]
6027
- # @type CCStatus: Integer
6028
- # @param SSLId: 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
6029
- # @type SSLId: String
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 :KeepTime, :LbType, :SourceList, :KeepEnable, :Domain, :Protocol, :SourceType, :HttpsToHttpEnable, :Status, :CCLevel, :CCEnable, :CCThreshold, :Region, :RuleName, :Cert, :ModifyTime, :RuleId, :Ip, :PrivateKey, :CertType, :VirtualPort, :CCStatus, :SSLId, :Id
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(keeptime=nil, lbtype=nil, sourcelist=nil, keepenable=nil, domain=nil, protocol=nil, sourcetype=nil, httpstohttpenable=nil, status=nil, cclevel=nil, ccenable=nil, ccthreshold=nil, region=nil, rulename=nil, cert=nil, modifytime=nil, ruleid=nil, ip=nil, privatekey=nil, certtype=nil, virtualport=nil, ccstatus=nil, sslid=nil, id=nil)
6036
- @KeepTime = keeptime
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
- @Domain = domain
6041
- @Protocol = protocol
6044
+ @KeepTime = keeptime
6042
6045
  @SourceType = sourcetype
6043
- @HttpsToHttpEnable = httpstohttpenable
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
- @CertType = certtype
6056
- @VirtualPort = virtualport
6056
+ @Status = status
6057
6057
  @CCStatus = ccstatus
6058
- @SSLId = sslid
6059
- @Id = id
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
- @KeepTime = params['KeepTime']
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
- @CertType = params['CertType']
6090
- @VirtualPort = params['VirtualPort']
6092
+ @Status = params['Status']
6091
6093
  @CCStatus = params['CCStatus']
6092
- @SSLId = params['SSLId']
6093
- @Id = params['Id']
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.296
4
+ version: 1.0.299
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-13 00:00:00.000000000 Z
11
+ date: 2022-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common