tencentcloud-sdk-antiddos 1.0.204 → 1.0.208

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd8ba0a5604e483b5d8693369ad7bba83557ce73
4
- data.tar.gz: 0846007017db26795acc8cd87d71674a15acb8d7
3
+ metadata.gz: 625b29e5c9bb07ea4073bf7a45f2bdcfbc19fd29
4
+ data.tar.gz: 44694bfa93afd34c5cdbef980f012d23000ad9f0
5
5
  SHA512:
6
- metadata.gz: 4b658dacc88057fba1979b5ef30a4656f3ca6c8225a4cd3495dec1e7cbfcfa863bf9a5609d1a66897f9dec3799e0df627ce6f58ba65ed53a726ea5a86045bcc6
7
- data.tar.gz: 08aec75b10f657f3d8e64351813e7e392a3e8b650a9eb0426e2a06983a59f861c848e67c5158e80b2a417538b2509a3b881d94c4600cc88ceb15f6e10ac6b4e5
6
+ metadata.gz: b59bf557eca513d8970d1f3197935554dfc6f55a2e889fec7752b6d46d775c7f266a24426bb72ec0e7e45ce2046a46ad7f23b1f70dff152b466600aaa1d7a34c
7
+ data.tar.gz: d1cdf44290118e5520652fc50f49a875e8c4134c1d1abd4f698f049def5d3ccb80aeeaaf4271f2e53a0f3183c802d6a9f69c8501c1d27fcd30fc0aee93f26ad2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.204
1
+ 1.0.208
@@ -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.
@@ -160,10 +160,12 @@ module TencentCloud
160
160
  # @param Domain: 建议客户接入的域名,客户可使用域名接入。
161
161
  # 注意:此字段可能返回 null,表示取不到有效值。
162
162
  # @type Domain: String
163
+ # @param DamDDoSStatus: 是否开启安全加速,是为1,否为0。
164
+ # @type DamDDoSStatus: Integer
163
165
 
164
- attr_accessor :InstanceDetail, :SpecificationLimit, :Usage, :Region, :Status, :ExpiredTime, :CreatedTime, :Name, :PackInfo, :StaticPackRelation, :ZoneId, :Tgw, :EipAddressStatus, :EipFlag, :EipAddressPackRelation, :EipAddressInfo, :Domain
166
+ attr_accessor :InstanceDetail, :SpecificationLimit, :Usage, :Region, :Status, :ExpiredTime, :CreatedTime, :Name, :PackInfo, :StaticPackRelation, :ZoneId, :Tgw, :EipAddressStatus, :EipFlag, :EipAddressPackRelation, :EipAddressInfo, :Domain, :DamDDoSStatus
165
167
 
166
- def initialize(instancedetail=nil, specificationlimit=nil, usage=nil, region=nil, status=nil, expiredtime=nil, createdtime=nil, name=nil, packinfo=nil, staticpackrelation=nil, zoneid=nil, tgw=nil, eipaddressstatus=nil, eipflag=nil, eipaddresspackrelation=nil, eipaddressinfo=nil, domain=nil)
168
+ def initialize(instancedetail=nil, specificationlimit=nil, usage=nil, region=nil, status=nil, expiredtime=nil, createdtime=nil, name=nil, packinfo=nil, staticpackrelation=nil, zoneid=nil, tgw=nil, eipaddressstatus=nil, eipflag=nil, eipaddresspackrelation=nil, eipaddressinfo=nil, domain=nil, damddosstatus=nil)
167
169
  @InstanceDetail = instancedetail
168
170
  @SpecificationLimit = specificationlimit
169
171
  @Usage = usage
@@ -181,6 +183,7 @@ module TencentCloud
181
183
  @EipAddressPackRelation = eipaddresspackrelation
182
184
  @EipAddressInfo = eipaddressinfo
183
185
  @Domain = domain
186
+ @DamDDoSStatus = damddosstatus
184
187
  end
185
188
 
186
189
  def deserialize(params)
@@ -225,6 +228,7 @@ module TencentCloud
225
228
  @EipAddressInfo.deserialize(params['EipAddressInfo'])
226
229
  end
227
230
  @Domain = params['Domain']
231
+ @DamDDoSStatus = params['DamDDoSStatus']
228
232
  end
229
233
  end
230
234
 
@@ -1999,10 +2003,12 @@ module TencentCloud
1999
2003
  # @type FilterEipType: Integer
2000
2004
  # @param FilterEipEipAddressStatus: 高防弹性公网IP实例的绑定状态搜索条件,取值范围 [BINDING、 BIND、UNBINDING、UNBIND]。该搜索条件只在FilterEipType=1时才有效。
2001
2005
  # @type FilterEipEipAddressStatus: Array
2006
+ # @param FilterDamDDoSStatus: 是否只获取安全加速实例。填写时,只能填写1或者0。当填写1时,表示返回安全加速实例。当填写0时,表示返回非安全加速实例。
2007
+ # @type FilterDamDDoSStatus: Integer
2002
2008
 
2003
- attr_accessor :Offset, :Limit, :FilterIp, :FilterInstanceId, :FilterLine, :FilterRegion, :FilterName, :FilterEipType, :FilterEipEipAddressStatus
2009
+ attr_accessor :Offset, :Limit, :FilterIp, :FilterInstanceId, :FilterLine, :FilterRegion, :FilterName, :FilterEipType, :FilterEipEipAddressStatus, :FilterDamDDoSStatus
2004
2010
 
2005
- def initialize(offset=nil, limit=nil, filterip=nil, filterinstanceid=nil, filterline=nil, filterregion=nil, filtername=nil, filtereiptype=nil, filtereipeipaddressstatus=nil)
2011
+ def initialize(offset=nil, limit=nil, filterip=nil, filterinstanceid=nil, filterline=nil, filterregion=nil, filtername=nil, filtereiptype=nil, filtereipeipaddressstatus=nil, filterdamddosstatus=nil)
2006
2012
  @Offset = offset
2007
2013
  @Limit = limit
2008
2014
  @FilterIp = filterip
@@ -2012,6 +2018,7 @@ module TencentCloud
2012
2018
  @FilterName = filtername
2013
2019
  @FilterEipType = filtereiptype
2014
2020
  @FilterEipEipAddressStatus = filtereipeipaddressstatus
2021
+ @FilterDamDDoSStatus = filterdamddosstatus
2015
2022
  end
2016
2023
 
2017
2024
  def deserialize(params)
@@ -2024,6 +2031,7 @@ module TencentCloud
2024
2031
  @FilterName = params['FilterName']
2025
2032
  @FilterEipType = params['FilterEipType']
2026
2033
  @FilterEipEipAddressStatus = params['FilterEipEipAddressStatus']
2034
+ @FilterDamDDoSStatus = params['FilterDamDDoSStatus']
2027
2035
  end
2028
2036
  end
2029
2037
 
@@ -3501,6 +3509,56 @@ module TencentCloud
3501
3509
  end
3502
3510
  end
3503
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
+
3504
3562
  # ModifyPacketFilterConfig请求参数结构体
3505
3563
  class ModifyPacketFilterConfigRequest < TencentCloud::Common::AbstractModel
3506
3564
  # @param InstanceId: 资源实例ID
@@ -3540,6 +3598,122 @@ module TencentCloud
3540
3598
  end
3541
3599
  end
3542
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
+
3543
3717
  # 套餐包信息
3544
3718
  class PackInfo < TencentCloud::Common::AbstractModel
3545
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.204
4
+ version: 1.0.208
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-17 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common