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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190904/client.rb +24 -0
- data/lib/v20190904/models.rb +71 -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: 5e18e621efce5066c93287d629150aac0e54e14a
|
4
|
+
data.tar.gz: a1fa2e2d54b9cff5afb1e6e09b3eff6bf1af8883
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a73fbfa3e3283993b8692bd1cedde9873440a03c0dee92dde7e972ccdeec1a2b6fb77a611ebe11a1f051bbfe2a33ba519522cb8026164f214ce93f52f041360
|
7
|
+
data.tar.gz: c89decf95777c0ca101b73c8e5fd5201dac4ac0682bef03c2a1c2bead86ed367db81261166e572245d626cfe81d27037ee0ebd7bf4d41a39beb2704deadc2202
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.277
|
data/lib/v20190904/client.rb
CHANGED
@@ -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.
|
data/lib/v20190904/models.rb
CHANGED
@@ -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.
|
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-
|
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
|