tencentcloud-sdk-antiddos 1.0.207 → 1.0.211
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/client.rb +24 -0
- data/lib/v20200309/models.rb +166 -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: d4ac942b54753b0ced0b1d3ae80097963661971b
|
4
|
+
data.tar.gz: e2b14f934f49d6802d20e28030b83fb11355e533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f11b4a84926f0fae56eba760568b8a4c8e958ea25b7bd41b7e640602fb34785f6401bcbce5cdb974d044791f277b4ef2bfbc2f8c67a73ee7a1ee8bd409c88ca7
|
7
|
+
data.tar.gz: da0752bfa7fc3bbd540fbf3ad5ae77fa4abe08f7767cd2385113b7fc495c800663d8f1010bd3bedf041ec6a2a9864b31f5ee1632e4e54249237f8dee536e3133
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.211
|
data/lib/v20200309/client.rb
CHANGED
@@ -1133,6 +1133,30 @@ module TencentCloud
|
|
1133
1133
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
1134
|
end
|
1135
1135
|
|
1136
|
+
# 修改7层转发规则
|
1137
|
+
|
1138
|
+
# @param request: Request instance for ModifyNewDomainRules.
|
1139
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyNewDomainRulesRequest`
|
1140
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyNewDomainRulesResponse`
|
1141
|
+
def ModifyNewDomainRules(request)
|
1142
|
+
body = send_request('ModifyNewDomainRules', request.serialize)
|
1143
|
+
response = JSON.parse(body)
|
1144
|
+
if response['Response'].key?('Error') == false
|
1145
|
+
model = ModifyNewDomainRulesResponse.new
|
1146
|
+
model.deserialize(response['Response'])
|
1147
|
+
model
|
1148
|
+
else
|
1149
|
+
code = response['Response']['Error']['Code']
|
1150
|
+
message = response['Response']['Error']['Message']
|
1151
|
+
reqid = response['Response']['RequestId']
|
1152
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1153
|
+
end
|
1154
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1155
|
+
raise e
|
1156
|
+
rescue StandardError => e
|
1157
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1158
|
+
end
|
1159
|
+
|
1136
1160
|
# 修改DDoS防护的特征过滤规则
|
1137
1161
|
|
1138
1162
|
# @param request: Request instance for ModifyPacketFilterConfig.
|
data/lib/v20200309/models.rb
CHANGED
@@ -3509,6 +3509,56 @@ module TencentCloud
|
|
3509
3509
|
end
|
3510
3510
|
end
|
3511
3511
|
|
3512
|
+
# ModifyNewDomainRules请求参数结构体
|
3513
|
+
class ModifyNewDomainRulesRequest < TencentCloud::Common::AbstractModel
|
3514
|
+
# @param Business: 大禹子产品代号(bgpip表示高防IP)
|
3515
|
+
# @type Business: String
|
3516
|
+
# @param Id: 资源ID
|
3517
|
+
# @type Id: String
|
3518
|
+
# @param Rule: 域名转发规则
|
3519
|
+
# @type Rule: :class:`Tencentcloud::Antiddos.v20200309.models.NewL7RuleEntry`
|
3520
|
+
|
3521
|
+
attr_accessor :Business, :Id, :Rule
|
3522
|
+
|
3523
|
+
def initialize(business=nil, id=nil, rule=nil)
|
3524
|
+
@Business = business
|
3525
|
+
@Id = id
|
3526
|
+
@Rule = rule
|
3527
|
+
end
|
3528
|
+
|
3529
|
+
def deserialize(params)
|
3530
|
+
@Business = params['Business']
|
3531
|
+
@Id = params['Id']
|
3532
|
+
unless params['Rule'].nil?
|
3533
|
+
@Rule = NewL7RuleEntry.new
|
3534
|
+
@Rule.deserialize(params['Rule'])
|
3535
|
+
end
|
3536
|
+
end
|
3537
|
+
end
|
3538
|
+
|
3539
|
+
# ModifyNewDomainRules返回参数结构体
|
3540
|
+
class ModifyNewDomainRulesResponse < TencentCloud::Common::AbstractModel
|
3541
|
+
# @param Success: 成功码
|
3542
|
+
# @type Success: :class:`Tencentcloud::Antiddos.v20200309.models.SuccessCode`
|
3543
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3544
|
+
# @type RequestId: String
|
3545
|
+
|
3546
|
+
attr_accessor :Success, :RequestId
|
3547
|
+
|
3548
|
+
def initialize(success=nil, requestid=nil)
|
3549
|
+
@Success = success
|
3550
|
+
@RequestId = requestid
|
3551
|
+
end
|
3552
|
+
|
3553
|
+
def deserialize(params)
|
3554
|
+
unless params['Success'].nil?
|
3555
|
+
@Success = SuccessCode.new
|
3556
|
+
@Success.deserialize(params['Success'])
|
3557
|
+
end
|
3558
|
+
@RequestId = params['RequestId']
|
3559
|
+
end
|
3560
|
+
end
|
3561
|
+
|
3512
3562
|
# ModifyPacketFilterConfig请求参数结构体
|
3513
3563
|
class ModifyPacketFilterConfigRequest < TencentCloud::Common::AbstractModel
|
3514
3564
|
# @param InstanceId: 资源实例ID
|
@@ -3548,6 +3598,122 @@ module TencentCloud
|
|
3548
3598
|
end
|
3549
3599
|
end
|
3550
3600
|
|
3601
|
+
# L7规则
|
3602
|
+
class NewL7RuleEntry < TencentCloud::Common::AbstractModel
|
3603
|
+
# @param KeepTime: 会话保持时间,单位秒
|
3604
|
+
# @type KeepTime: Integer
|
3605
|
+
# @param LbType: 负载均衡方式,取值[1(加权轮询)]
|
3606
|
+
# @type LbType: Integer
|
3607
|
+
# @param SourceList: 回源列表
|
3608
|
+
# @type SourceList: Array
|
3609
|
+
# @param KeepEnable: 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]
|
3610
|
+
# @type KeepEnable: Integer
|
3611
|
+
# @param Domain: 转发域名
|
3612
|
+
# @type Domain: String
|
3613
|
+
# @param Protocol: 转发协议,取值[http, https]
|
3614
|
+
# @type Protocol: String
|
3615
|
+
# @param SourceType: 回源方式,取值[1(域名回源),2(IP回源)]
|
3616
|
+
# @type SourceType: Integer
|
3617
|
+
# @param HttpsToHttpEnable: 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
|
3618
|
+
# @type HttpsToHttpEnable: Integer
|
3619
|
+
# @param Status: 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
|
3620
|
+
# @type Status: Integer
|
3621
|
+
# @param CCLevel: HTTPS协议的CC防护等级
|
3622
|
+
# @type CCLevel: String
|
3623
|
+
# @param CCEnable: HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
|
3624
|
+
# @type CCEnable: Integer
|
3625
|
+
# @param CCThreshold: HTTPS协议的CC防护阈值
|
3626
|
+
# @type CCThreshold: Integer
|
3627
|
+
# @param Region: 区域码
|
3628
|
+
# @type Region: Integer
|
3629
|
+
# @param RuleName: 规则描述
|
3630
|
+
# @type RuleName: String
|
3631
|
+
# @param Cert: 当证书来源为自有证书时,此字段必须填写证书内容;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
|
3632
|
+
# @type Cert: String
|
3633
|
+
# @param ModifyTime: 修改时间
|
3634
|
+
# @type ModifyTime: String
|
3635
|
+
# @param RuleId: 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
|
3636
|
+
# @type RuleId: String
|
3637
|
+
# @param Ip: 资源Ip
|
3638
|
+
# @type Ip: String
|
3639
|
+
# @param PrivateKey: 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
|
3640
|
+
# @type PrivateKey: String
|
3641
|
+
# @param CertType: 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
|
3642
|
+
# @type CertType: Integer
|
3643
|
+
# @param VirtualPort: 接入端口值
|
3644
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3645
|
+
# @type VirtualPort: Integer
|
3646
|
+
# @param CCStatus: cc防护状态,取值[0(关闭), 1(开启)]
|
3647
|
+
# @type CCStatus: Integer
|
3648
|
+
# @param SSLId: 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
|
3649
|
+
# @type SSLId: String
|
3650
|
+
# @param Id: 资源Id
|
3651
|
+
# @type Id: String
|
3652
|
+
|
3653
|
+
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
|
3654
|
+
|
3655
|
+
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)
|
3656
|
+
@KeepTime = keeptime
|
3657
|
+
@LbType = lbtype
|
3658
|
+
@SourceList = sourcelist
|
3659
|
+
@KeepEnable = keepenable
|
3660
|
+
@Domain = domain
|
3661
|
+
@Protocol = protocol
|
3662
|
+
@SourceType = sourcetype
|
3663
|
+
@HttpsToHttpEnable = httpstohttpenable
|
3664
|
+
@Status = status
|
3665
|
+
@CCLevel = cclevel
|
3666
|
+
@CCEnable = ccenable
|
3667
|
+
@CCThreshold = ccthreshold
|
3668
|
+
@Region = region
|
3669
|
+
@RuleName = rulename
|
3670
|
+
@Cert = cert
|
3671
|
+
@ModifyTime = modifytime
|
3672
|
+
@RuleId = ruleid
|
3673
|
+
@Ip = ip
|
3674
|
+
@PrivateKey = privatekey
|
3675
|
+
@CertType = certtype
|
3676
|
+
@VirtualPort = virtualport
|
3677
|
+
@CCStatus = ccstatus
|
3678
|
+
@SSLId = sslid
|
3679
|
+
@Id = id
|
3680
|
+
end
|
3681
|
+
|
3682
|
+
def deserialize(params)
|
3683
|
+
@KeepTime = params['KeepTime']
|
3684
|
+
@LbType = params['LbType']
|
3685
|
+
unless params['SourceList'].nil?
|
3686
|
+
@SourceList = []
|
3687
|
+
params['SourceList'].each do |i|
|
3688
|
+
l4rulesource_tmp = L4RuleSource.new
|
3689
|
+
l4rulesource_tmp.deserialize(i)
|
3690
|
+
@SourceList << l4rulesource_tmp
|
3691
|
+
end
|
3692
|
+
end
|
3693
|
+
@KeepEnable = params['KeepEnable']
|
3694
|
+
@Domain = params['Domain']
|
3695
|
+
@Protocol = params['Protocol']
|
3696
|
+
@SourceType = params['SourceType']
|
3697
|
+
@HttpsToHttpEnable = params['HttpsToHttpEnable']
|
3698
|
+
@Status = params['Status']
|
3699
|
+
@CCLevel = params['CCLevel']
|
3700
|
+
@CCEnable = params['CCEnable']
|
3701
|
+
@CCThreshold = params['CCThreshold']
|
3702
|
+
@Region = params['Region']
|
3703
|
+
@RuleName = params['RuleName']
|
3704
|
+
@Cert = params['Cert']
|
3705
|
+
@ModifyTime = params['ModifyTime']
|
3706
|
+
@RuleId = params['RuleId']
|
3707
|
+
@Ip = params['Ip']
|
3708
|
+
@PrivateKey = params['PrivateKey']
|
3709
|
+
@CertType = params['CertType']
|
3710
|
+
@VirtualPort = params['VirtualPort']
|
3711
|
+
@CCStatus = params['CCStatus']
|
3712
|
+
@SSLId = params['SSLId']
|
3713
|
+
@Id = params['Id']
|
3714
|
+
end
|
3715
|
+
end
|
3716
|
+
|
3551
3717
|
# 套餐包信息
|
3552
3718
|
class PackInfo < TencentCloud::Common::AbstractModel
|
3553
3719
|
# @param PackType: 套餐包的类型,取值[
|
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.211
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|