tencentcloud-sdk-antiddos 1.0.350 → 1.0.353

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: 6eb34db20c52ff88d1820a141862c1621ef11f23
4
- data.tar.gz: 58aac7c9b5bdebf773f9add18b7a7d23b19b9ecc
3
+ metadata.gz: d4fbaacaa1d6869fb5890d606d07f7a54ee8c0fd
4
+ data.tar.gz: 1686ba60ba2b70a4a767fe66e7ab2544eb934311
5
5
  SHA512:
6
- metadata.gz: 9c7d0c3defbf1a2005e3796ca0b7750b741c680d584dd2d8a5098d56420a8c644ea04f6f8afe93ceecc3549bae80dc33a85db7e3fcf7cb634eedebdad64330b3
7
- data.tar.gz: d40dcaa93f526ded6fd558096f7e9ee88574cc117e290351b0a0bb40b01936c1871b3cc2d3ae86c46517ab8da63c600333420933e9e32af70960cf6393523af6
6
+ metadata.gz: beed55c4513e10f9e8b13e1e21bbe3e5c9ff9bd0c10f32653194578dbd0bfd2f71397596cb46633fb4b4f8cb9db6219fcbe2d2c8b064dd464e4b6e39dc9bbf7d
7
+ data.tar.gz: 84ef347c32346ab7da8e71f7a0b5b66541effe9ea659b55ef10c8747064777a8654a6bd31ce6835283cd14f2b4654fc7714ca7ad6b71cf22d30dbcee0e00ab49
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.350
1
+ 1.0.353
@@ -413,6 +413,30 @@ module TencentCloud
413
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
414
  end
415
415
 
416
+ # 添加7层转发规则
417
+
418
+ # @param request: Request instance for CreateNewL7Rules.
419
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::CreateNewL7RulesRequest`
420
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::CreateNewL7RulesResponse`
421
+ def CreateNewL7Rules(request)
422
+ body = send_request('CreateNewL7Rules', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = CreateNewL7RulesResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
416
440
  # 添加DDoS防护的特征过滤规则
417
441
 
418
442
  # @param request: Request instance for CreatePacketFilterConfig.
@@ -1637,6 +1661,30 @@ module TencentCloud
1637
1661
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1638
1662
  end
1639
1663
 
1664
+ # 高防IP获取7层规则
1665
+
1666
+ # @param request: Request instance for DescribeNewL7Rules.
1667
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeNewL7RulesRequest`
1668
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeNewL7RulesResponse`
1669
+ def DescribeNewL7Rules(request)
1670
+ body = send_request('DescribeNewL7Rules', request.serialize)
1671
+ response = JSON.parse(body)
1672
+ if response['Response'].key?('Error') == false
1673
+ model = DescribeNewL7RulesResponse.new
1674
+ model.deserialize(response['Response'])
1675
+ model
1676
+ else
1677
+ code = response['Response']['Error']['Code']
1678
+ message = response['Response']['Error']['Message']
1679
+ reqid = response['Response']['RequestId']
1680
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1681
+ end
1682
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1683
+ raise e
1684
+ rescue StandardError => e
1685
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
+ end
1687
+
1640
1688
  # 拉取防护概览攻击趋势
1641
1689
 
1642
1690
  # @param request: Request instance for DescribeOverviewAttackTrend.
@@ -1877,6 +1877,64 @@ module TencentCloud
1877
1877
  end
1878
1878
  end
1879
1879
 
1880
+ # CreateNewL7Rules请求参数结构体
1881
+ class CreateNewL7RulesRequest < TencentCloud::Common::AbstractModel
1882
+ # @param Rules: 规则列表
1883
+ # @type Rules: Array
1884
+ # @param Business: 大禹子产品代号(bgpip表示高防IP)
1885
+ # @type Business: String
1886
+ # @param IdList: 资源ID列表
1887
+ # @type IdList: Array
1888
+ # @param VipList: 资源IP列表
1889
+ # @type VipList: Array
1890
+
1891
+ attr_accessor :Rules, :Business, :IdList, :VipList
1892
+
1893
+ def initialize(rules=nil, business=nil, idlist=nil, viplist=nil)
1894
+ @Rules = rules
1895
+ @Business = business
1896
+ @IdList = idlist
1897
+ @VipList = viplist
1898
+ end
1899
+
1900
+ def deserialize(params)
1901
+ unless params['Rules'].nil?
1902
+ @Rules = []
1903
+ params['Rules'].each do |i|
1904
+ l7ruleentry_tmp = L7RuleEntry.new
1905
+ l7ruleentry_tmp.deserialize(i)
1906
+ @Rules << l7ruleentry_tmp
1907
+ end
1908
+ end
1909
+ @Business = params['Business']
1910
+ @IdList = params['IdList']
1911
+ @VipList = params['VipList']
1912
+ end
1913
+ end
1914
+
1915
+ # CreateNewL7Rules返回参数结构体
1916
+ class CreateNewL7RulesResponse < TencentCloud::Common::AbstractModel
1917
+ # @param Success: 成功码
1918
+ # @type Success: :class:`Tencentcloud::Antiddos.v20200309.models.SuccessCode`
1919
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1920
+ # @type RequestId: String
1921
+
1922
+ attr_accessor :Success, :RequestId
1923
+
1924
+ def initialize(success=nil, requestid=nil)
1925
+ @Success = success
1926
+ @RequestId = requestid
1927
+ end
1928
+
1929
+ def deserialize(params)
1930
+ unless params['Success'].nil?
1931
+ @Success = SuccessCode.new
1932
+ @Success.deserialize(params['Success'])
1933
+ end
1934
+ @RequestId = params['RequestId']
1935
+ end
1936
+ end
1937
+
1880
1938
  # CreatePacketFilterConfig请求参数结构体
1881
1939
  class CreatePacketFilterConfigRequest < TencentCloud::Common::AbstractModel
1882
1940
  # @param InstanceId: 资源实例ID
@@ -4841,6 +4899,92 @@ module TencentCloud
4841
4899
  end
4842
4900
  end
4843
4901
 
4902
+ # DescribeNewL7Rules请求参数结构体
4903
+ class DescribeNewL7RulesRequest < TencentCloud::Common::AbstractModel
4904
+ # @param Business: 大禹子产品代号(bgpip表示高防IP)
4905
+ # @type Business: String
4906
+ # @param StatusList: 状态搜索,选填,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
4907
+ # @type StatusList: Array
4908
+ # @param Domain: 域名搜索,选填,当需要搜索域名请填写
4909
+ # @type Domain: String
4910
+ # @param Ip: IP搜索,选填,当需要搜索IP请填写
4911
+ # @type Ip: String
4912
+ # @param Limit: 一页条数,填0表示不分页
4913
+ # @type Limit: Integer
4914
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
4915
+ # @type Offset: Integer
4916
+ # @param ProtocolList: 转发协议搜索,选填,取值[http, https, http/https]
4917
+ # @type ProtocolList: Array
4918
+ # @param Cname: 高防IP实例的Cname
4919
+ # @type Cname: String
4920
+
4921
+ attr_accessor :Business, :StatusList, :Domain, :Ip, :Limit, :Offset, :ProtocolList, :Cname
4922
+
4923
+ def initialize(business=nil, statuslist=nil, domain=nil, ip=nil, limit=nil, offset=nil, protocollist=nil, cname=nil)
4924
+ @Business = business
4925
+ @StatusList = statuslist
4926
+ @Domain = domain
4927
+ @Ip = ip
4928
+ @Limit = limit
4929
+ @Offset = offset
4930
+ @ProtocolList = protocollist
4931
+ @Cname = cname
4932
+ end
4933
+
4934
+ def deserialize(params)
4935
+ @Business = params['Business']
4936
+ @StatusList = params['StatusList']
4937
+ @Domain = params['Domain']
4938
+ @Ip = params['Ip']
4939
+ @Limit = params['Limit']
4940
+ @Offset = params['Offset']
4941
+ @ProtocolList = params['ProtocolList']
4942
+ @Cname = params['Cname']
4943
+ end
4944
+ end
4945
+
4946
+ # DescribeNewL7Rules返回参数结构体
4947
+ class DescribeNewL7RulesResponse < TencentCloud::Common::AbstractModel
4948
+ # @param Rules: 转发规则列表
4949
+ # @type Rules: Array
4950
+ # @param Healths: 健康检查配置列表
4951
+ # @type Healths: Array
4952
+ # @param Total: 总规则数
4953
+ # @type Total: Integer
4954
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4955
+ # @type RequestId: String
4956
+
4957
+ attr_accessor :Rules, :Healths, :Total, :RequestId
4958
+
4959
+ def initialize(rules=nil, healths=nil, total=nil, requestid=nil)
4960
+ @Rules = rules
4961
+ @Healths = healths
4962
+ @Total = total
4963
+ @RequestId = requestid
4964
+ end
4965
+
4966
+ def deserialize(params)
4967
+ unless params['Rules'].nil?
4968
+ @Rules = []
4969
+ params['Rules'].each do |i|
4970
+ newl7ruleentry_tmp = NewL7RuleEntry.new
4971
+ newl7ruleentry_tmp.deserialize(i)
4972
+ @Rules << newl7ruleentry_tmp
4973
+ end
4974
+ end
4975
+ unless params['Healths'].nil?
4976
+ @Healths = []
4977
+ params['Healths'].each do |i|
4978
+ l7rulehealth_tmp = L7RuleHealth.new
4979
+ l7rulehealth_tmp.deserialize(i)
4980
+ @Healths << l7rulehealth_tmp
4981
+ end
4982
+ end
4983
+ @Total = params['Total']
4984
+ @RequestId = params['RequestId']
4985
+ end
4986
+ end
4987
+
4844
4988
  # DescribeOverviewAttackTrend请求参数结构体
4845
4989
  class DescribeOverviewAttackTrendRequest < TencentCloud::Common::AbstractModel
4846
4990
  # @param Type: 攻击类型,取值ddos, cc
@@ -5640,6 +5784,54 @@ module TencentCloud
5640
5784
  end
5641
5785
  end
5642
5786
 
5787
+ # L7规则健康检查参数
5788
+ class L7RuleHealth < TencentCloud::Common::AbstractModel
5789
+ # @param Status: 配置状态,0: 正常,1:配置中,2:配置失败
5790
+ # @type Status: Integer
5791
+ # @param Enable: =1表示开启;=0表示关闭
5792
+ # @type Enable: Integer
5793
+ # @param RuleId: 规则ID
5794
+ # @type RuleId: String
5795
+ # @param Url: 检查目录的URL,默认为/
5796
+ # @type Url: String
5797
+ # @param Interval: 检测间隔时间,单位秒
5798
+ # @type Interval: Integer
5799
+ # @param AliveNum: 健康阈值,单位次
5800
+ # @type AliveNum: Integer
5801
+ # @param KickNum: 不健康阈值,单位次
5802
+ # @type KickNum: Integer
5803
+ # @param Method: HTTP请求方式,取值[HEAD,GET]
5804
+ # @type Method: String
5805
+ # @param StatusCode: 健康检查判定正常状态码,1xx =1, 2xx=2, 3xx=4, 4xx=8,5xx=16,多个状态码值加和
5806
+ # @type StatusCode: Integer
5807
+
5808
+ attr_accessor :Status, :Enable, :RuleId, :Url, :Interval, :AliveNum, :KickNum, :Method, :StatusCode
5809
+
5810
+ def initialize(status=nil, enable=nil, ruleid=nil, url=nil, interval=nil, alivenum=nil, kicknum=nil, method=nil, statuscode=nil)
5811
+ @Status = status
5812
+ @Enable = enable
5813
+ @RuleId = ruleid
5814
+ @Url = url
5815
+ @Interval = interval
5816
+ @AliveNum = alivenum
5817
+ @KickNum = kicknum
5818
+ @Method = method
5819
+ @StatusCode = statuscode
5820
+ end
5821
+
5822
+ def deserialize(params)
5823
+ @Status = params['Status']
5824
+ @Enable = params['Enable']
5825
+ @RuleId = params['RuleId']
5826
+ @Url = params['Url']
5827
+ @Interval = params['Interval']
5828
+ @AliveNum = params['AliveNum']
5829
+ @KickNum = params['KickNum']
5830
+ @Method = params['Method']
5831
+ @StatusCode = params['StatusCode']
5832
+ end
5833
+ end
5834
+
5643
5835
  # 4层转发规则
5644
5836
  class Layer4Rule < TencentCloud::Common::AbstractModel
5645
5837
  # @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.350
4
+ version: 1.0.353
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-06 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common