tencentcloud-sdk-antiddos 1.0.207 → 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: 2ccd1c9186a6abe441a416713225a5cadd06f81c
4
- data.tar.gz: 833ff247faf2ec02e5d4523b8d24ff18635c7f52
3
+ metadata.gz: 625b29e5c9bb07ea4073bf7a45f2bdcfbc19fd29
4
+ data.tar.gz: 44694bfa93afd34c5cdbef980f012d23000ad9f0
5
5
  SHA512:
6
- metadata.gz: bf588af1ce8fffdf5f7de4967ba7b6c3c50f1a0157f79112960a5bae4e6ebeadb2eb349c6c046fa151c9638b3e880272b2678ad5d40536e2bce6a81db52c8846
7
- data.tar.gz: 06c53e3e0f9a1279d981e2653d5cd7d830bab1f280be0ef5e6e70fd9f695a4d064ef87ba9ee5c3872ada07dd82a0eaec34c5f84a273dd7b136409bbe73cda94f
6
+ metadata.gz: b59bf557eca513d8970d1f3197935554dfc6f55a2e889fec7752b6d46d775c7f266a24426bb72ec0e7e45ce2046a46ad7f23b1f70dff152b466600aaa1d7a34c
7
+ data.tar.gz: d1cdf44290118e5520652fc50f49a875e8c4134c1d1abd4f698f049def5d3ccb80aeeaaf4271f2e53a0f3183c802d6a9f69c8501c1d27fcd30fc0aee93f26ad2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.207
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.
@@ -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.207
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-22 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