tencentcloud-sdk-ssa 3.0.486 → 3.0.487
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: 740a89a0e708bcc4abbe41a6f316f1a310e4a99c
|
4
|
+
data.tar.gz: ab6d5669c205dca7ba55572209d0ed33ddef544b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66bbf13f122706ec37599ece7e8ca331d57313d6e287142f344fcc274622f6c0788fad87ac2ed7c92251e602b99cbbd86a3893c9cb7cd1d5a3e44c019f579c6d
|
7
|
+
data.tar.gz: 537b3101cc5bd98e6c666331f8e19a812e52266689535f80647f3b8b15b9350d9e916bc56e6ef1f598ff03a1152974b3e8e7c99c3a046a521a151636cb308bd6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.487
|
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.487
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|