tencentcloud-sdk-antiddos 3.0.751 → 3.0.753

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b96d8438fc67b6ed122e522864de2bf6769d03a4
4
- data.tar.gz: 4052f62d8d20f103133382b4b48b9dd710185e3e
3
+ metadata.gz: a5682e1686d1ec87fa1ded9693fbe481a2ac5c50
4
+ data.tar.gz: 73d83ece3efa3ae1cb3f689137c52e3883f9af2a
5
5
  SHA512:
6
- metadata.gz: eb9dd8b0240c24668324a9829b5cb7b2f0193717c3afb9d315838b994b8c387e2fae7a810f890386ce8f4892d774ccd3ce68ad4cfdcd9f268fc6a3a87ad1fe4f
7
- data.tar.gz: 72c36877957e9816ead8588892b456c81992c3fc2acb0d109213745a26ef2ab5c176a371fdf3daf66279184a41f429b31ca4ae17a1612b84abfbf0bb4c1c2890
6
+ metadata.gz: 6836206e83e63649d448d5b41f273c7ab7ebb68274cb6911e04cf6ef56731342818d8b467812b0209c53016b799e24867104a9360d1f4c32be8cfb7827417889
7
+ data.tar.gz: ccf03128ee5675fe30617da4f399212897d35a2fa52aafd8ccf10a4e6de043ed26e491d867733ca6d53ee46961abf115ad9beffceae51244a85bde5a7e0aad9e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.751
1
+ 3.0.753
@@ -917,6 +917,30 @@ module TencentCloud
917
917
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
918
  end
919
919
 
920
+ # 高防IP获取7层规则
921
+
922
+ # @param request: Request instance for DescribeBGPIPL7Rules.
923
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeBGPIPL7RulesRequest`
924
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeBGPIPL7RulesResponse`
925
+ def DescribeBGPIPL7Rules(request)
926
+ body = send_request('DescribeBGPIPL7Rules', request.serialize)
927
+ response = JSON.parse(body)
928
+ if response['Response'].key?('Error') == false
929
+ model = DescribeBGPIPL7RulesResponse.new
930
+ model.deserialize(response['Response'])
931
+ model
932
+ else
933
+ code = response['Response']['Error']['Code']
934
+ message = response['Response']['Error']['Message']
935
+ reqid = response['Response']['RequestId']
936
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
937
+ end
938
+ rescue TencentCloud::Common::TencentCloudSDKException => e
939
+ raise e
940
+ rescue StandardError => e
941
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
942
+ end
943
+
920
944
  # 获取基础防护攻击状态
921
945
 
922
946
  # @param request: Request instance for DescribeBasicDeviceStatus.
@@ -463,6 +463,135 @@ module TencentCloud
463
463
  end
464
464
  end
465
465
 
466
+ # L7规则
467
+ class BGPIPL7RuleEntry < TencentCloud::Common::AbstractModel
468
+ # @param Protocol: 转发协议,取值[http, https]
469
+ # @type Protocol: String
470
+ # @param Domain: 转发域名
471
+ # @type Domain: String
472
+ # @param LbType: 负载均衡方式,取值[1(加权轮询)]
473
+ # @type LbType: Integer
474
+ # @param KeepEnable: 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]
475
+ # @type KeepEnable: Integer
476
+ # @param KeepTime: 会话保持时间,单位秒
477
+ # @type KeepTime: Integer
478
+ # @param SourceType: 回源方式,取值[1(域名回源),2(IP回源)]
479
+ # @type SourceType: Integer
480
+ # @param SourceList: 回源列表
481
+ # @type SourceList: Array
482
+ # @param Region: 区域码
483
+ # @type Region: Integer
484
+ # @param Id: 资源Id
485
+ # @type Id: String
486
+ # @param Ip: 资源Ip
487
+ # @type Ip: String
488
+ # @param RuleId: 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
489
+ # @type RuleId: String
490
+ # @param RuleName: 规则描述
491
+ # @type RuleName: String
492
+ # @param CertType: 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
493
+ # @type CertType: Integer
494
+ # @param SSLId: 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
495
+ # @type SSLId: String
496
+ # @param Cert: 当证书来源为自有证书时,此字段必须填写证书内容;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
497
+ # @type Cert: String
498
+ # @param PrivateKey: 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
499
+ # @type PrivateKey: String
500
+ # @param Status: 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
501
+ # @type Status: Integer
502
+ # @param CCStatus: cc防护状态,取值[0(关闭), 1(开启)]
503
+ # @type CCStatus: Integer
504
+ # @param CCEnable: HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
505
+ # @type CCEnable: Integer
506
+ # @param CCThreshold: HTTPS协议的CC防护阈值(已废弃)
507
+ # @type CCThreshold: Integer
508
+ # @param CCLevel: HTTPS协议的CC防护等级
509
+ # @type CCLevel: String
510
+ # @param ModifyTime: 修改时间
511
+ # @type ModifyTime: String
512
+ # @param HttpsToHttpEnable: 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
513
+ # @type HttpsToHttpEnable: Integer
514
+ # @param VirtualPort: 接入端口值
515
+ # 注意:此字段可能返回 null,表示取不到有效值。
516
+ # @type VirtualPort: Integer
517
+ # @param RewriteHttps: http强制跳转https,1表示打开,0表示关闭
518
+ # @type RewriteHttps: Integer
519
+ # @param ErrCode: 规则配置失败时的详细错误原因(仅当Status=2时有效),1001证书不存在,1002证书获取失败,1003证书上传失败,1004证书已过期
520
+ # @type ErrCode: Integer
521
+ # @param Version: 版本
522
+ # 注意:此字段可能返回 null,表示取不到有效值。
523
+ # @type Version: Integer
524
+
525
+ 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, :Version
526
+
527
+ 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, version=nil)
528
+ @Protocol = protocol
529
+ @Domain = domain
530
+ @LbType = lbtype
531
+ @KeepEnable = keepenable
532
+ @KeepTime = keeptime
533
+ @SourceType = sourcetype
534
+ @SourceList = sourcelist
535
+ @Region = region
536
+ @Id = id
537
+ @Ip = ip
538
+ @RuleId = ruleid
539
+ @RuleName = rulename
540
+ @CertType = certtype
541
+ @SSLId = sslid
542
+ @Cert = cert
543
+ @PrivateKey = privatekey
544
+ @Status = status
545
+ @CCStatus = ccstatus
546
+ @CCEnable = ccenable
547
+ @CCThreshold = ccthreshold
548
+ @CCLevel = cclevel
549
+ @ModifyTime = modifytime
550
+ @HttpsToHttpEnable = httpstohttpenable
551
+ @VirtualPort = virtualport
552
+ @RewriteHttps = rewritehttps
553
+ @ErrCode = errcode
554
+ @Version = version
555
+ end
556
+
557
+ def deserialize(params)
558
+ @Protocol = params['Protocol']
559
+ @Domain = params['Domain']
560
+ @LbType = params['LbType']
561
+ @KeepEnable = params['KeepEnable']
562
+ @KeepTime = params['KeepTime']
563
+ @SourceType = params['SourceType']
564
+ unless params['SourceList'].nil?
565
+ @SourceList = []
566
+ params['SourceList'].each do |i|
567
+ l4rulesource_tmp = L4RuleSource.new
568
+ l4rulesource_tmp.deserialize(i)
569
+ @SourceList << l4rulesource_tmp
570
+ end
571
+ end
572
+ @Region = params['Region']
573
+ @Id = params['Id']
574
+ @Ip = params['Ip']
575
+ @RuleId = params['RuleId']
576
+ @RuleName = params['RuleName']
577
+ @CertType = params['CertType']
578
+ @SSLId = params['SSLId']
579
+ @Cert = params['Cert']
580
+ @PrivateKey = params['PrivateKey']
581
+ @Status = params['Status']
582
+ @CCStatus = params['CCStatus']
583
+ @CCEnable = params['CCEnable']
584
+ @CCThreshold = params['CCThreshold']
585
+ @CCLevel = params['CCLevel']
586
+ @ModifyTime = params['ModifyTime']
587
+ @HttpsToHttpEnable = params['HttpsToHttpEnable']
588
+ @VirtualPort = params['VirtualPort']
589
+ @RewriteHttps = params['RewriteHttps']
590
+ @ErrCode = params['ErrCode']
591
+ @Version = params['Version']
592
+ end
593
+ end
594
+
466
595
  # 高防包资产实例信息
467
596
  class BGPInstance < TencentCloud::Common::AbstractModel
468
597
  # @param InstanceDetail: 资产实例的详细信息
@@ -2985,6 +3114,96 @@ module TencentCloud
2985
3114
  end
2986
3115
  end
2987
3116
 
3117
+ # DescribeBGPIPL7Rules请求参数结构体
3118
+ class DescribeBGPIPL7RulesRequest < TencentCloud::Common::AbstractModel
3119
+ # @param Business: DDoS防护子产品代号(bgpip表示高防IP)
3120
+ # @type Business: String
3121
+ # @param StatusList: 状态搜索,选填,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
3122
+ # @type StatusList: Array
3123
+ # @param Domain: 域名搜索,选填,当需要搜索域名请填写
3124
+ # @type Domain: String
3125
+ # @param Ip: IP搜索,选填,当需要搜索IP请填写
3126
+ # @type Ip: String
3127
+ # @param Limit: 一页条数,默认值100,最大值100,超过100最大返回100条
3128
+ # @type Limit: Integer
3129
+ # @param Offset: 规则偏移量,取值为(页码-1)*一页条数
3130
+ # @type Offset: Integer
3131
+ # @param ProtocolList: 转发协议搜索,选填,取值[http, https, http/https]
3132
+ # @type ProtocolList: Array
3133
+ # @param Cname: 高防IP实例的Cname
3134
+ # @type Cname: String
3135
+ # @param Export: 默认为false,当为true时,将不对各个规则做策略检查,直接导出所有规则
3136
+ # @type Export: Boolean
3137
+
3138
+ attr_accessor :Business, :StatusList, :Domain, :Ip, :Limit, :Offset, :ProtocolList, :Cname, :Export
3139
+
3140
+ def initialize(business=nil, statuslist=nil, domain=nil, ip=nil, limit=nil, offset=nil, protocollist=nil, cname=nil, export=nil)
3141
+ @Business = business
3142
+ @StatusList = statuslist
3143
+ @Domain = domain
3144
+ @Ip = ip
3145
+ @Limit = limit
3146
+ @Offset = offset
3147
+ @ProtocolList = protocollist
3148
+ @Cname = cname
3149
+ @Export = export
3150
+ end
3151
+
3152
+ def deserialize(params)
3153
+ @Business = params['Business']
3154
+ @StatusList = params['StatusList']
3155
+ @Domain = params['Domain']
3156
+ @Ip = params['Ip']
3157
+ @Limit = params['Limit']
3158
+ @Offset = params['Offset']
3159
+ @ProtocolList = params['ProtocolList']
3160
+ @Cname = params['Cname']
3161
+ @Export = params['Export']
3162
+ end
3163
+ end
3164
+
3165
+ # DescribeBGPIPL7Rules返回参数结构体
3166
+ class DescribeBGPIPL7RulesResponse < TencentCloud::Common::AbstractModel
3167
+ # @param Rules: 转发规则列表
3168
+ # @type Rules: Array
3169
+ # @param Healths: 健康检查配置列表
3170
+ # @type Healths: Array
3171
+ # @param Total: 总规则数
3172
+ # @type Total: Integer
3173
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3174
+ # @type RequestId: String
3175
+
3176
+ attr_accessor :Rules, :Healths, :Total, :RequestId
3177
+
3178
+ def initialize(rules=nil, healths=nil, total=nil, requestid=nil)
3179
+ @Rules = rules
3180
+ @Healths = healths
3181
+ @Total = total
3182
+ @RequestId = requestid
3183
+ end
3184
+
3185
+ def deserialize(params)
3186
+ unless params['Rules'].nil?
3187
+ @Rules = []
3188
+ params['Rules'].each do |i|
3189
+ bgpipl7ruleentry_tmp = BGPIPL7RuleEntry.new
3190
+ bgpipl7ruleentry_tmp.deserialize(i)
3191
+ @Rules << bgpipl7ruleentry_tmp
3192
+ end
3193
+ end
3194
+ unless params['Healths'].nil?
3195
+ @Healths = []
3196
+ params['Healths'].each do |i|
3197
+ l7rulehealth_tmp = L7RuleHealth.new
3198
+ l7rulehealth_tmp.deserialize(i)
3199
+ @Healths << l7rulehealth_tmp
3200
+ end
3201
+ end
3202
+ @Total = params['Total']
3203
+ @RequestId = params['RequestId']
3204
+ end
3205
+ end
3206
+
2988
3207
  # DescribeBasicDeviceStatus请求参数结构体
2989
3208
  class DescribeBasicDeviceStatusRequest < TencentCloud::Common::AbstractModel
2990
3209
  # @param IpList: IP 资源列表
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: 3.0.751
4
+ version: 3.0.753
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common