tencentcloud-sdk-cfw 1.0.276 → 1.0.277

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: 64dd149ec1239852fcf3b5048a7a7efa371dd072
4
- data.tar.gz: 9d0e3380809d8965980c9ea76da4d333e6847bba
3
+ metadata.gz: 5e18e621efce5066c93287d629150aac0e54e14a
4
+ data.tar.gz: a1fa2e2d54b9cff5afb1e6e09b3eff6bf1af8883
5
5
  SHA512:
6
- metadata.gz: eafb144b1b20520aa1d17e7689197c1627b37937ed35b46e940b72b1396e72f79a6447daaf04fba2ff3f2a456961503fca9fcba147a80d59f1cbaa42ec21c474
7
- data.tar.gz: a5c845860cb71661fc228b76502756f4828e1fd71e052fea4f520f5cb82229400917711601e00cda801cd99a7a513a0f29ca59fcae037114266d23a6e6a2a8b1
6
+ metadata.gz: 6a73fbfa3e3283993b8692bd1cedde9873440a03c0dee92dde7e972ccdeec1a2b6fb77a611ebe11a1f051bbfe2a33ba519522cb8026164f214ce93f52f041360
7
+ data.tar.gz: c89decf95777c0ca101b73c8e5fd5201dac4ac0682bef03c2a1c2bead86ed367db81261166e572245d626cfe81d27037ee0ebd7bf4d41a39beb2704deadc2202
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.276
1
+ 1.0.277
@@ -605,6 +605,30 @@ module TencentCloud
605
605
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
606
  end
607
607
 
608
+ # ip防护状态查询
609
+
610
+ # @param request: Request instance for DescribeIPStatusList.
611
+ # @type request: :class:`Tencentcloud::cfw::V20190904::DescribeIPStatusListRequest`
612
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeIPStatusListResponse`
613
+ def DescribeIPStatusList(request)
614
+ body = send_request('DescribeIPStatusList', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DescribeIPStatusListResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
608
632
  # 获取当前用户接入nat防火墙的所有子网数及natfw实例个数
609
633
 
610
634
  # @param request: Request instance for DescribeNatFwInfoCount.
@@ -1700,6 +1700,57 @@ module TencentCloud
1700
1700
  end
1701
1701
  end
1702
1702
 
1703
+ # DescribeIPStatusList请求参数结构体
1704
+ class DescribeIPStatusListRequest < TencentCloud::Common::AbstractModel
1705
+ # @param IPList: 资产Id
1706
+ # @type IPList: Array
1707
+
1708
+ attr_accessor :IPList
1709
+
1710
+ def initialize(iplist=nil)
1711
+ @IPList = iplist
1712
+ end
1713
+
1714
+ def deserialize(params)
1715
+ @IPList = params['IPList']
1716
+ end
1717
+ end
1718
+
1719
+ # DescribeIPStatusList返回参数结构体
1720
+ class DescribeIPStatusListResponse < TencentCloud::Common::AbstractModel
1721
+ # @param StatusList: ip状态信息
1722
+ # @type StatusList: Array
1723
+ # @param ReturnCode: 状态码
1724
+ # @type ReturnCode: Integer
1725
+ # @param ReturnMsg: 状态信息
1726
+ # @type ReturnMsg: String
1727
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1728
+ # @type RequestId: String
1729
+
1730
+ attr_accessor :StatusList, :ReturnCode, :ReturnMsg, :RequestId
1731
+
1732
+ def initialize(statuslist=nil, returncode=nil, returnmsg=nil, requestid=nil)
1733
+ @StatusList = statuslist
1734
+ @ReturnCode = returncode
1735
+ @ReturnMsg = returnmsg
1736
+ @RequestId = requestid
1737
+ end
1738
+
1739
+ def deserialize(params)
1740
+ unless params['StatusList'].nil?
1741
+ @StatusList = []
1742
+ params['StatusList'].each do |i|
1743
+ ipdefendstatus_tmp = IPDefendStatus.new
1744
+ ipdefendstatus_tmp.deserialize(i)
1745
+ @StatusList << ipdefendstatus_tmp
1746
+ end
1747
+ end
1748
+ @ReturnCode = params['ReturnCode']
1749
+ @ReturnMsg = params['ReturnMsg']
1750
+ @RequestId = params['RequestId']
1751
+ end
1752
+ end
1753
+
1703
1754
  # DescribeNatFwInfoCount请求参数结构体
1704
1755
  class DescribeNatFwInfoCountRequest < TencentCloud::Common::AbstractModel
1705
1756
 
@@ -2795,6 +2846,26 @@ module TencentCloud
2795
2846
  end
2796
2847
  end
2797
2848
 
2849
+ # ip防护状态
2850
+ class IPDefendStatus < TencentCloud::Common::AbstractModel
2851
+ # @param IP: ip地址
2852
+ # @type IP: String
2853
+ # @param Status: 防护状态 1:防护打开; -1:地址错误; 其他:未防护
2854
+ # @type Status: Integer
2855
+
2856
+ attr_accessor :IP, :Status
2857
+
2858
+ def initialize(ip=nil, status=nil)
2859
+ @IP = ip
2860
+ @Status = status
2861
+ end
2862
+
2863
+ def deserialize(params)
2864
+ @IP = params['IP']
2865
+ @Status = params['Status']
2866
+ end
2867
+ end
2868
+
2798
2869
  # // InstanceInfo 实例详情结果
2799
2870
  # type InstanceInfo struct {
2800
2871
  # AppID string `json:"AppId" gorm:"column:appid"`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cfw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.276
4
+ version: 1.0.277
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-03-15 00:00:00.000000000 Z
11
+ date: 2022-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common