tencentcloud-sdk-antiddos 1.0.297 → 1.0.298

Sign up to get free protection for your applications and to get access to all the features.
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: 9bebf90618a8828f86533c5f4e61a2ede9c1a753
4
- data.tar.gz: d1804aed6e18d537617a0e74188cc4e768d127ae
3
+ metadata.gz: 5d21bbee682065ba796be12eda191e6172c2b3bd
4
+ data.tar.gz: b3a1f45541c3f3ce861235304a3421c5f92f043b
5
5
  SHA512:
6
- metadata.gz: 514d0b132f8e7adcf935d95a4a55df870255d6f4a3c977ba3881b75f87f7e731e425202ff19422a1d3aaed241306d3f6b61a801993a3868582eff52496ad21e3
7
- data.tar.gz: 2e66a9cf9f63653d843546d1163e693beb49178cac130cfab01cbb00097fb5356954f4e04d6f67497cc9ad639aabb444e50ef72ab0b5f9b3f8c9a9f407d3378e
6
+ metadata.gz: fab90cadde12c79b939ea706d8577e9acf32c40bbdb5ae53abdb8616b4671d6dda177343bbe692faf3931ae4ba07239b01d1300846362a5ade431541ec5123ab
7
+ data.tar.gz: fa76d113ce5dcba8ba2b0fd5a74a9097694aa80e5cc2ae4b4a62f122c8fdd3429ac1cf6707e4ec55b31f6e043ba9326a2be804c4e7e7a056bd13f844d8b072b3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.297
1
+ 1.0.298
@@ -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.297
4
+ version: 1.0.298
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-14 00:00:00.000000000 Z
11
+ date: 2022-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common