tencentcloud-sdk-antiddos 1.0.351 → 1.0.352
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200309/client.rb +24 -0
- data/lib/v20200309/models.rb +134 -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: b7ee9b1fa3edebbc304574d107ccc0e84dce515d
|
4
|
+
data.tar.gz: 4ad1e3b8d4a2852b5c263022b6f5cfdb3849565d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30eaa8fcf3d0ba89a34ae23d023f284f7a003d4fd2ccd7e318c72f425bc5436fa19e32c98d929178eb3d7c1ba98104191d626b00cbdd3b543d15aca7b49ee320
|
7
|
+
data.tar.gz: 7b86916b832bedb7ae4500ea9b2d48bc4614937ad8444de33246bdb1a84289e203ecf10cbf3555efc14857b82e21f5506ba7cf8b64b6ff28240392446243fc82
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.352
|
data/lib/v20200309/client.rb
CHANGED
@@ -1637,6 +1637,30 @@ module TencentCloud
|
|
1637
1637
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
1638
|
end
|
1639
1639
|
|
1640
|
+
# 高防IP获取7层规则
|
1641
|
+
|
1642
|
+
# @param request: Request instance for DescribeNewL7Rules.
|
1643
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeNewL7RulesRequest`
|
1644
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeNewL7RulesResponse`
|
1645
|
+
def DescribeNewL7Rules(request)
|
1646
|
+
body = send_request('DescribeNewL7Rules', request.serialize)
|
1647
|
+
response = JSON.parse(body)
|
1648
|
+
if response['Response'].key?('Error') == false
|
1649
|
+
model = DescribeNewL7RulesResponse.new
|
1650
|
+
model.deserialize(response['Response'])
|
1651
|
+
model
|
1652
|
+
else
|
1653
|
+
code = response['Response']['Error']['Code']
|
1654
|
+
message = response['Response']['Error']['Message']
|
1655
|
+
reqid = response['Response']['RequestId']
|
1656
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1657
|
+
end
|
1658
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1659
|
+
raise e
|
1660
|
+
rescue StandardError => e
|
1661
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
|
+
end
|
1663
|
+
|
1640
1664
|
# 拉取防护概览攻击趋势
|
1641
1665
|
|
1642
1666
|
# @param request: Request instance for DescribeOverviewAttackTrend.
|
data/lib/v20200309/models.rb
CHANGED
@@ -4841,6 +4841,92 @@ module TencentCloud
|
|
4841
4841
|
end
|
4842
4842
|
end
|
4843
4843
|
|
4844
|
+
# DescribeNewL7Rules请求参数结构体
|
4845
|
+
class DescribeNewL7RulesRequest < TencentCloud::Common::AbstractModel
|
4846
|
+
# @param Business: 大禹子产品代号(bgpip表示高防IP)
|
4847
|
+
# @type Business: String
|
4848
|
+
# @param StatusList: 状态搜索,选填,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
|
4849
|
+
# @type StatusList: Array
|
4850
|
+
# @param Domain: 域名搜索,选填,当需要搜索域名请填写
|
4851
|
+
# @type Domain: String
|
4852
|
+
# @param Ip: IP搜索,选填,当需要搜索IP请填写
|
4853
|
+
# @type Ip: String
|
4854
|
+
# @param Limit: 一页条数,填0表示不分页
|
4855
|
+
# @type Limit: Integer
|
4856
|
+
# @param Offset: 页起始偏移,取值为(页码-1)*一页条数
|
4857
|
+
# @type Offset: Integer
|
4858
|
+
# @param ProtocolList: 转发协议搜索,选填,取值[http, https, http/https]
|
4859
|
+
# @type ProtocolList: Array
|
4860
|
+
# @param Cname: 高防IP实例的Cname
|
4861
|
+
# @type Cname: String
|
4862
|
+
|
4863
|
+
attr_accessor :Business, :StatusList, :Domain, :Ip, :Limit, :Offset, :ProtocolList, :Cname
|
4864
|
+
|
4865
|
+
def initialize(business=nil, statuslist=nil, domain=nil, ip=nil, limit=nil, offset=nil, protocollist=nil, cname=nil)
|
4866
|
+
@Business = business
|
4867
|
+
@StatusList = statuslist
|
4868
|
+
@Domain = domain
|
4869
|
+
@Ip = ip
|
4870
|
+
@Limit = limit
|
4871
|
+
@Offset = offset
|
4872
|
+
@ProtocolList = protocollist
|
4873
|
+
@Cname = cname
|
4874
|
+
end
|
4875
|
+
|
4876
|
+
def deserialize(params)
|
4877
|
+
@Business = params['Business']
|
4878
|
+
@StatusList = params['StatusList']
|
4879
|
+
@Domain = params['Domain']
|
4880
|
+
@Ip = params['Ip']
|
4881
|
+
@Limit = params['Limit']
|
4882
|
+
@Offset = params['Offset']
|
4883
|
+
@ProtocolList = params['ProtocolList']
|
4884
|
+
@Cname = params['Cname']
|
4885
|
+
end
|
4886
|
+
end
|
4887
|
+
|
4888
|
+
# DescribeNewL7Rules返回参数结构体
|
4889
|
+
class DescribeNewL7RulesResponse < TencentCloud::Common::AbstractModel
|
4890
|
+
# @param Rules: 转发规则列表
|
4891
|
+
# @type Rules: Array
|
4892
|
+
# @param Healths: 健康检查配置列表
|
4893
|
+
# @type Healths: Array
|
4894
|
+
# @param Total: 总规则数
|
4895
|
+
# @type Total: Integer
|
4896
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4897
|
+
# @type RequestId: String
|
4898
|
+
|
4899
|
+
attr_accessor :Rules, :Healths, :Total, :RequestId
|
4900
|
+
|
4901
|
+
def initialize(rules=nil, healths=nil, total=nil, requestid=nil)
|
4902
|
+
@Rules = rules
|
4903
|
+
@Healths = healths
|
4904
|
+
@Total = total
|
4905
|
+
@RequestId = requestid
|
4906
|
+
end
|
4907
|
+
|
4908
|
+
def deserialize(params)
|
4909
|
+
unless params['Rules'].nil?
|
4910
|
+
@Rules = []
|
4911
|
+
params['Rules'].each do |i|
|
4912
|
+
newl7ruleentry_tmp = NewL7RuleEntry.new
|
4913
|
+
newl7ruleentry_tmp.deserialize(i)
|
4914
|
+
@Rules << newl7ruleentry_tmp
|
4915
|
+
end
|
4916
|
+
end
|
4917
|
+
unless params['Healths'].nil?
|
4918
|
+
@Healths = []
|
4919
|
+
params['Healths'].each do |i|
|
4920
|
+
l7rulehealth_tmp = L7RuleHealth.new
|
4921
|
+
l7rulehealth_tmp.deserialize(i)
|
4922
|
+
@Healths << l7rulehealth_tmp
|
4923
|
+
end
|
4924
|
+
end
|
4925
|
+
@Total = params['Total']
|
4926
|
+
@RequestId = params['RequestId']
|
4927
|
+
end
|
4928
|
+
end
|
4929
|
+
|
4844
4930
|
# DescribeOverviewAttackTrend请求参数结构体
|
4845
4931
|
class DescribeOverviewAttackTrendRequest < TencentCloud::Common::AbstractModel
|
4846
4932
|
# @param Type: 攻击类型,取值ddos, cc
|
@@ -5640,6 +5726,54 @@ module TencentCloud
|
|
5640
5726
|
end
|
5641
5727
|
end
|
5642
5728
|
|
5729
|
+
# L7规则健康检查参数
|
5730
|
+
class L7RuleHealth < TencentCloud::Common::AbstractModel
|
5731
|
+
# @param Status: 配置状态,0: 正常,1:配置中,2:配置失败
|
5732
|
+
# @type Status: Integer
|
5733
|
+
# @param Enable: =1表示开启;=0表示关闭
|
5734
|
+
# @type Enable: Integer
|
5735
|
+
# @param RuleId: 规则ID
|
5736
|
+
# @type RuleId: String
|
5737
|
+
# @param Url: 检查目录的URL,默认为/
|
5738
|
+
# @type Url: String
|
5739
|
+
# @param Interval: 检测间隔时间,单位秒
|
5740
|
+
# @type Interval: Integer
|
5741
|
+
# @param AliveNum: 健康阈值,单位次
|
5742
|
+
# @type AliveNum: Integer
|
5743
|
+
# @param KickNum: 不健康阈值,单位次
|
5744
|
+
# @type KickNum: Integer
|
5745
|
+
# @param Method: HTTP请求方式,取值[HEAD,GET]
|
5746
|
+
# @type Method: String
|
5747
|
+
# @param StatusCode: 健康检查判定正常状态码,1xx =1, 2xx=2, 3xx=4, 4xx=8,5xx=16,多个状态码值加和
|
5748
|
+
# @type StatusCode: Integer
|
5749
|
+
|
5750
|
+
attr_accessor :Status, :Enable, :RuleId, :Url, :Interval, :AliveNum, :KickNum, :Method, :StatusCode
|
5751
|
+
|
5752
|
+
def initialize(status=nil, enable=nil, ruleid=nil, url=nil, interval=nil, alivenum=nil, kicknum=nil, method=nil, statuscode=nil)
|
5753
|
+
@Status = status
|
5754
|
+
@Enable = enable
|
5755
|
+
@RuleId = ruleid
|
5756
|
+
@Url = url
|
5757
|
+
@Interval = interval
|
5758
|
+
@AliveNum = alivenum
|
5759
|
+
@KickNum = kicknum
|
5760
|
+
@Method = method
|
5761
|
+
@StatusCode = statuscode
|
5762
|
+
end
|
5763
|
+
|
5764
|
+
def deserialize(params)
|
5765
|
+
@Status = params['Status']
|
5766
|
+
@Enable = params['Enable']
|
5767
|
+
@RuleId = params['RuleId']
|
5768
|
+
@Url = params['Url']
|
5769
|
+
@Interval = params['Interval']
|
5770
|
+
@AliveNum = params['AliveNum']
|
5771
|
+
@KickNum = params['KickNum']
|
5772
|
+
@Method = params['Method']
|
5773
|
+
@StatusCode = params['StatusCode']
|
5774
|
+
end
|
5775
|
+
end
|
5776
|
+
|
5643
5777
|
# 4层转发规则
|
5644
5778
|
class Layer4Rule < TencentCloud::Common::AbstractModel
|
5645
5779
|
# @param BackendPort: 源站端口,取值1~65535
|
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.352
|
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-07-
|
11
|
+
date: 2022-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|