tencentcloud-sdk-ssa 3.0.486 → 3.0.488
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/v20180608/client.rb +24 -0
- data/lib/v20180608/models.rb +84 -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: d866eb6cd5082b4250c844c515eb1b7716da0807
|
4
|
+
data.tar.gz: 216923349a1af5ee263230e2cec899284e884cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1faff32d2c1229df16ff76574cec6109b73943088f0d0f1cd20668c76299366f62fcf6a8b35d9fae2819ff11976e2a06ec7f01c4d67d18100260779215fc4525
|
7
|
+
data.tar.gz: 5dc1a6595696360ce107de51e985c09fd4e2c03502943d4a40bbc8afc605cf768d58bf1a25c2bce4b8138be638b21148d5008b8916e18fa863d444edfded96e7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.488
|
data/lib/v20180608/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 资产条件查询
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeAssetDetailList.
|
59
|
+
# @type request: :class:`Tencentcloud::ssa::V20180608::DescribeAssetDetailListRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::ssa::V20180608::DescribeAssetDetailListResponse`
|
61
|
+
def DescribeAssetDetailList(request)
|
62
|
+
body = send_request('DescribeAssetDetailList', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeAssetDetailListResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 资产安全资产列表
|
57
81
|
|
58
82
|
# @param request: Request instance for DescribeAssetList.
|
data/lib/v20180608/models.rb
CHANGED
@@ -1470,6 +1470,90 @@ module TencentCloud
|
|
1470
1470
|
end
|
1471
1471
|
end
|
1472
1472
|
|
1473
|
+
# DescribeAssetDetailList请求参数结构体
|
1474
|
+
class DescribeAssetDetailListRequest < TencentCloud::Common::AbstractModel
|
1475
|
+
# @param Filter: 查询条件,可支持的查询字段:AssetUniqid,AssetName,AssetIpAll,AssetVpcid,Tag
|
1476
|
+
# @type Filter: Array
|
1477
|
+
# @param Sorter: 排序条件,可支持的排序字段:
|
1478
|
+
# AssetCspmRiskNum,AssetVulNum,AssetEventNum,SsaAssetDiscoverTime
|
1479
|
+
# @type Sorter: Array
|
1480
|
+
# @param RiskTags: 风险标签
|
1481
|
+
# @type RiskTags: Array
|
1482
|
+
# @param Tags: 标签
|
1483
|
+
# @type Tags: Array
|
1484
|
+
# @param PageIndex: 页
|
1485
|
+
# @type PageIndex: Integer
|
1486
|
+
# @param PageSize: 页大小
|
1487
|
+
# @type PageSize: Integer
|
1488
|
+
|
1489
|
+
attr_accessor :Filter, :Sorter, :RiskTags, :Tags, :PageIndex, :PageSize
|
1490
|
+
|
1491
|
+
def initialize(filter=nil, sorter=nil, risktags=nil, tags=nil, pageindex=nil, pagesize=nil)
|
1492
|
+
@Filter = filter
|
1493
|
+
@Sorter = sorter
|
1494
|
+
@RiskTags = risktags
|
1495
|
+
@Tags = tags
|
1496
|
+
@PageIndex = pageindex
|
1497
|
+
@PageSize = pagesize
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
def deserialize(params)
|
1501
|
+
unless params['Filter'].nil?
|
1502
|
+
@Filter = []
|
1503
|
+
params['Filter'].each do |i|
|
1504
|
+
assetqueryfilter_tmp = AssetQueryFilter.new
|
1505
|
+
assetqueryfilter_tmp.deserialize(i)
|
1506
|
+
@Filter << assetqueryfilter_tmp
|
1507
|
+
end
|
1508
|
+
end
|
1509
|
+
unless params['Sorter'].nil?
|
1510
|
+
@Sorter = []
|
1511
|
+
params['Sorter'].each do |i|
|
1512
|
+
querysort_tmp = QuerySort.new
|
1513
|
+
querysort_tmp.deserialize(i)
|
1514
|
+
@Sorter << querysort_tmp
|
1515
|
+
end
|
1516
|
+
end
|
1517
|
+
@RiskTags = params['RiskTags']
|
1518
|
+
@Tags = params['Tags']
|
1519
|
+
@PageIndex = params['PageIndex']
|
1520
|
+
@PageSize = params['PageSize']
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# DescribeAssetDetailList返回参数结构体
|
1525
|
+
class DescribeAssetDetailListResponse < TencentCloud::Common::AbstractModel
|
1526
|
+
# @param Data: 业务数据
|
1527
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1528
|
+
# @type Data: Array
|
1529
|
+
# @param Total: 总数
|
1530
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1531
|
+
# @type Total: Integer
|
1532
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1533
|
+
# @type RequestId: String
|
1534
|
+
|
1535
|
+
attr_accessor :Data, :Total, :RequestId
|
1536
|
+
|
1537
|
+
def initialize(data=nil, total=nil, requestid=nil)
|
1538
|
+
@Data = data
|
1539
|
+
@Total = total
|
1540
|
+
@RequestId = requestid
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
def deserialize(params)
|
1544
|
+
unless params['Data'].nil?
|
1545
|
+
@Data = []
|
1546
|
+
params['Data'].each do |i|
|
1547
|
+
assetdetail_tmp = AssetDetail.new
|
1548
|
+
assetdetail_tmp.deserialize(i)
|
1549
|
+
@Data << assetdetail_tmp
|
1550
|
+
end
|
1551
|
+
end
|
1552
|
+
@Total = params['Total']
|
1553
|
+
@RequestId = params['RequestId']
|
1554
|
+
end
|
1555
|
+
end
|
1556
|
+
|
1473
1557
|
# DescribeAssetDetail请求参数结构体
|
1474
1558
|
class DescribeAssetDetailRequest < TencentCloud::Common::AbstractModel
|
1475
1559
|
# @param Params: 查询过滤参数
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ssa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.488
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|