tencentcloud-sdk-csip 3.0.874 → 3.0.875
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/v20221121/client.rb +24 -0
- data/lib/v20221121/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: 9fcde4a5de193c5542e19e24702cf47353627e95
|
4
|
+
data.tar.gz: 364c53e791ddd43167d4b9c8a0114550c1de7c87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc841967c0ddb86d05c89f5cd77309a09ff846c15295a4b78093d42095cdadce8563259008b5a88f33a78059a96d61ff471ae8b1d8b23e9844632daec785dc9d
|
7
|
+
data.tar.gz: 1ff31c8309d387d300a086c454b07c64c52b15c84c34acec722ebbca18af92394b0515e5d2dd146eccd9b21198ff181d767f442e2c6240cfdfda0e911852d64b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.875
|
data/lib/v20221121/client.rb
CHANGED
@@ -197,6 +197,30 @@ module TencentCloud
|
|
197
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
198
|
end
|
199
199
|
|
200
|
+
# 云防资产中心统计数据
|
201
|
+
|
202
|
+
# @param request: Request instance for DescribeCFWAssetStatistics.
|
203
|
+
# @type request: :class:`Tencentcloud::csip::V20221121::DescribeCFWAssetStatisticsRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::csip::V20221121::DescribeCFWAssetStatisticsResponse`
|
205
|
+
def DescribeCFWAssetStatistics(request)
|
206
|
+
body = send_request('DescribeCFWAssetStatistics', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DescribeCFWAssetStatisticsResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
200
224
|
# cvm详情
|
201
225
|
|
202
226
|
# @param request: Request instance for DescribeCVMAssetInfo.
|
data/lib/v20221121/models.rb
CHANGED
@@ -2885,6 +2885,77 @@ module TencentCloud
|
|
2885
2885
|
end
|
2886
2886
|
end
|
2887
2887
|
|
2888
|
+
# DescribeCFWAssetStatistics请求参数结构体
|
2889
|
+
class DescribeCFWAssetStatisticsRequest < TencentCloud::Common::AbstractModel
|
2890
|
+
|
2891
|
+
|
2892
|
+
def initialize()
|
2893
|
+
end
|
2894
|
+
|
2895
|
+
def deserialize(params)
|
2896
|
+
end
|
2897
|
+
end
|
2898
|
+
|
2899
|
+
# DescribeCFWAssetStatistics返回参数结构体
|
2900
|
+
class DescribeCFWAssetStatisticsResponse < TencentCloud::Common::AbstractModel
|
2901
|
+
# @param NetworkTotal: 网络资产总数
|
2902
|
+
# @type NetworkTotal: Integer
|
2903
|
+
# @param ClbTotal: 资产clb数量
|
2904
|
+
# @type ClbTotal: Integer
|
2905
|
+
# @param NatTotal: nat数量
|
2906
|
+
# @type NatTotal: Integer
|
2907
|
+
# @param PublicAssetTotal: 公网ip数量
|
2908
|
+
# @type PublicAssetTotal: Integer
|
2909
|
+
# @param CVMAssetTotal: 主机数量
|
2910
|
+
# @type CVMAssetTotal: Integer
|
2911
|
+
# @param CFGTotal: 配置风险
|
2912
|
+
# @type CFGTotal: Integer
|
2913
|
+
# @param PortTotal: 端口风险
|
2914
|
+
# @type PortTotal: Integer
|
2915
|
+
# @param WebsiteTotal: 内容风险
|
2916
|
+
# @type WebsiteTotal: Integer
|
2917
|
+
# @param ServerTotal: 风险服务暴露
|
2918
|
+
# @type ServerTotal: Integer
|
2919
|
+
# @param WeakPasswordTotal: 弱口令风险
|
2920
|
+
# @type WeakPasswordTotal: Integer
|
2921
|
+
# @param VULTotal: 漏洞风险
|
2922
|
+
# @type VULTotal: Integer
|
2923
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2924
|
+
# @type RequestId: String
|
2925
|
+
|
2926
|
+
attr_accessor :NetworkTotal, :ClbTotal, :NatTotal, :PublicAssetTotal, :CVMAssetTotal, :CFGTotal, :PortTotal, :WebsiteTotal, :ServerTotal, :WeakPasswordTotal, :VULTotal, :RequestId
|
2927
|
+
|
2928
|
+
def initialize(networktotal=nil, clbtotal=nil, nattotal=nil, publicassettotal=nil, cvmassettotal=nil, cfgtotal=nil, porttotal=nil, websitetotal=nil, servertotal=nil, weakpasswordtotal=nil, vultotal=nil, requestid=nil)
|
2929
|
+
@NetworkTotal = networktotal
|
2930
|
+
@ClbTotal = clbtotal
|
2931
|
+
@NatTotal = nattotal
|
2932
|
+
@PublicAssetTotal = publicassettotal
|
2933
|
+
@CVMAssetTotal = cvmassettotal
|
2934
|
+
@CFGTotal = cfgtotal
|
2935
|
+
@PortTotal = porttotal
|
2936
|
+
@WebsiteTotal = websitetotal
|
2937
|
+
@ServerTotal = servertotal
|
2938
|
+
@WeakPasswordTotal = weakpasswordtotal
|
2939
|
+
@VULTotal = vultotal
|
2940
|
+
@RequestId = requestid
|
2941
|
+
end
|
2942
|
+
|
2943
|
+
def deserialize(params)
|
2944
|
+
@NetworkTotal = params['NetworkTotal']
|
2945
|
+
@ClbTotal = params['ClbTotal']
|
2946
|
+
@NatTotal = params['NatTotal']
|
2947
|
+
@PublicAssetTotal = params['PublicAssetTotal']
|
2948
|
+
@CVMAssetTotal = params['CVMAssetTotal']
|
2949
|
+
@CFGTotal = params['CFGTotal']
|
2950
|
+
@PortTotal = params['PortTotal']
|
2951
|
+
@WebsiteTotal = params['WebsiteTotal']
|
2952
|
+
@ServerTotal = params['ServerTotal']
|
2953
|
+
@WeakPasswordTotal = params['WeakPasswordTotal']
|
2954
|
+
@VULTotal = params['VULTotal']
|
2955
|
+
@RequestId = params['RequestId']
|
2956
|
+
end
|
2957
|
+
end
|
2958
|
+
|
2888
2959
|
# DescribeCVMAssetInfo请求参数结构体
|
2889
2960
|
class DescribeCVMAssetInfoRequest < TencentCloud::Common::AbstractModel
|
2890
2961
|
# @param AssetId: -
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-csip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.875
|
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-07-
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|