tencentcloud-sdk-ssa 1.0.297 → 1.0.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180608/client.rb +24 -0
- data/lib/v20180608/models.rb +166 -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: 58527d501d0bf0017bce69f21d41a943d65b42c9
|
4
|
+
data.tar.gz: 39651726cb5f42f3fd0275527daed15c129ce976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 443c284312f02a40b1ab7ac693a6c6a1fe3bf18c5e206b39b7449ec3e40dfebe1a28429b2b07c41279d89fb93f2b6dea9c92bd29115c1964e5accf3d6567448a
|
7
|
+
data.tar.gz: 6007219903966de8be3ed740a61e665fa24027ead865d0f26aac02d5038f300b4e186fec5dd915fa860d6fda01054e2433f57e964c9a663aacb42f99009aee7f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.298
|
data/lib/v20180608/client.rb
CHANGED
@@ -413,6 +413,30 @@ module TencentCloud
|
|
413
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
414
|
end
|
415
415
|
|
416
|
+
# 云安全配置检查项结果列表
|
417
|
+
|
418
|
+
# @param request: Request instance for DescribeSocCheckResultList.
|
419
|
+
# @type request: :class:`Tencentcloud::ssa::V20180608::DescribeSocCheckResultListRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::ssa::V20180608::DescribeSocCheckResultListResponse`
|
421
|
+
def DescribeSocCheckResultList(request)
|
422
|
+
body = send_request('DescribeSocCheckResultList', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = DescribeSocCheckResultListResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
416
440
|
# 合规详情项
|
417
441
|
|
418
442
|
# @param request: Request instance for DescribeSocCspmCompliance.
|
data/lib/v20180608/models.rb
CHANGED
@@ -2418,6 +2418,120 @@ module TencentCloud
|
|
2418
2418
|
end
|
2419
2419
|
end
|
2420
2420
|
|
2421
|
+
# DescribeSocCheckResultList请求参数结构体
|
2422
|
+
class DescribeSocCheckResultListRequest < TencentCloud::Common::AbstractModel
|
2423
|
+
# @param Filter: 查询参数,可支持的查询参数:
|
2424
|
+
# Name,Type,AssetType,Result,PloyName,PloyId
|
2425
|
+
# @type Filter: Array
|
2426
|
+
# @param Sorter: 排序参数,可支持的排序参数:CheckStatus,RiskCount
|
2427
|
+
# @type Sorter: Array
|
2428
|
+
# @param PageSize: 当前页码数据,默认值为10
|
2429
|
+
# @type PageSize: Integer
|
2430
|
+
# @param PageIndex: 当前页面索引,默认值为0
|
2431
|
+
# @type PageIndex: Integer
|
2432
|
+
# @param AssetId: 资产id
|
2433
|
+
# @type AssetId: String
|
2434
|
+
|
2435
|
+
attr_accessor :Filter, :Sorter, :PageSize, :PageIndex, :AssetId
|
2436
|
+
|
2437
|
+
def initialize(filter=nil, sorter=nil, pagesize=nil, pageindex=nil, assetid=nil)
|
2438
|
+
@Filter = filter
|
2439
|
+
@Sorter = sorter
|
2440
|
+
@PageSize = pagesize
|
2441
|
+
@PageIndex = pageindex
|
2442
|
+
@AssetId = assetid
|
2443
|
+
end
|
2444
|
+
|
2445
|
+
def deserialize(params)
|
2446
|
+
unless params['Filter'].nil?
|
2447
|
+
@Filter = []
|
2448
|
+
params['Filter'].each do |i|
|
2449
|
+
queryfilter_tmp = QueryFilter.new
|
2450
|
+
queryfilter_tmp.deserialize(i)
|
2451
|
+
@Filter << queryfilter_tmp
|
2452
|
+
end
|
2453
|
+
end
|
2454
|
+
unless params['Sorter'].nil?
|
2455
|
+
@Sorter = []
|
2456
|
+
params['Sorter'].each do |i|
|
2457
|
+
querysort_tmp = QuerySort.new
|
2458
|
+
querysort_tmp.deserialize(i)
|
2459
|
+
@Sorter << querysort_tmp
|
2460
|
+
end
|
2461
|
+
end
|
2462
|
+
@PageSize = params['PageSize']
|
2463
|
+
@PageIndex = params['PageIndex']
|
2464
|
+
@AssetId = params['AssetId']
|
2465
|
+
end
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
# DescribeSocCheckResultList返回参数结构体
|
2469
|
+
class DescribeSocCheckResultListResponse < TencentCloud::Common::AbstractModel
|
2470
|
+
# @param Data: 无
|
2471
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2472
|
+
# @type Data: :class:`Tencentcloud::Ssa.v20180608.models.DescribeSocCheckResultListRspRsp`
|
2473
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2474
|
+
# @type RequestId: String
|
2475
|
+
|
2476
|
+
attr_accessor :Data, :RequestId
|
2477
|
+
|
2478
|
+
def initialize(data=nil, requestid=nil)
|
2479
|
+
@Data = data
|
2480
|
+
@RequestId = requestid
|
2481
|
+
end
|
2482
|
+
|
2483
|
+
def deserialize(params)
|
2484
|
+
unless params['Data'].nil?
|
2485
|
+
@Data = DescribeSocCheckResultListRspRsp.new
|
2486
|
+
@Data.deserialize(params['Data'])
|
2487
|
+
end
|
2488
|
+
@RequestId = params['RequestId']
|
2489
|
+
end
|
2490
|
+
end
|
2491
|
+
|
2492
|
+
# 检查项结果详情列表
|
2493
|
+
class DescribeSocCheckResultListRspRsp < TencentCloud::Common::AbstractModel
|
2494
|
+
# @param List: 具体检查项详情
|
2495
|
+
# @type List: Array
|
2496
|
+
# @param Total: 检查结果总数
|
2497
|
+
# @type Total: Integer
|
2498
|
+
# @param LowTotal: 低危个数
|
2499
|
+
# @type LowTotal: Integer
|
2500
|
+
# @param MiddleTotal: 中危个数
|
2501
|
+
# @type MiddleTotal: Integer
|
2502
|
+
# @param HighTotal: 高危个数
|
2503
|
+
# @type HighTotal: Integer
|
2504
|
+
# @param NormalTotal: 正常个数
|
2505
|
+
# @type NormalTotal: Integer
|
2506
|
+
|
2507
|
+
attr_accessor :List, :Total, :LowTotal, :MiddleTotal, :HighTotal, :NormalTotal
|
2508
|
+
|
2509
|
+
def initialize(list=nil, total=nil, lowtotal=nil, middletotal=nil, hightotal=nil, normaltotal=nil)
|
2510
|
+
@List = list
|
2511
|
+
@Total = total
|
2512
|
+
@LowTotal = lowtotal
|
2513
|
+
@MiddleTotal = middletotal
|
2514
|
+
@HighTotal = hightotal
|
2515
|
+
@NormalTotal = normaltotal
|
2516
|
+
end
|
2517
|
+
|
2518
|
+
def deserialize(params)
|
2519
|
+
unless params['List'].nil?
|
2520
|
+
@List = []
|
2521
|
+
params['List'].each do |i|
|
2522
|
+
soccheckresult_tmp = SocCheckResult.new
|
2523
|
+
soccheckresult_tmp.deserialize(i)
|
2524
|
+
@List << soccheckresult_tmp
|
2525
|
+
end
|
2526
|
+
end
|
2527
|
+
@Total = params['Total']
|
2528
|
+
@LowTotal = params['LowTotal']
|
2529
|
+
@MiddleTotal = params['MiddleTotal']
|
2530
|
+
@HighTotal = params['HighTotal']
|
2531
|
+
@NormalTotal = params['NormalTotal']
|
2532
|
+
end
|
2533
|
+
end
|
2534
|
+
|
2421
2535
|
# DescribeSocCspmCompliance请求参数结构体
|
2422
2536
|
class DescribeSocCspmComplianceRequest < TencentCloud::Common::AbstractModel
|
2423
2537
|
|
@@ -3140,6 +3254,58 @@ module TencentCloud
|
|
3140
3254
|
end
|
3141
3255
|
end
|
3142
3256
|
|
3257
|
+
# 云安全配置检测结果
|
3258
|
+
class SocCheckResult < TencentCloud::Common::AbstractModel
|
3259
|
+
# @param CheckId: 检查项的uuid
|
3260
|
+
# @type CheckId: String
|
3261
|
+
# @param Name: 配置要求
|
3262
|
+
# @type Name: String
|
3263
|
+
# @param Type: 检查项的类型
|
3264
|
+
# @type Type: String
|
3265
|
+
# @param AssetType: 检查对象
|
3266
|
+
# @type AssetType: String
|
3267
|
+
# @param PloyName: 策略名
|
3268
|
+
# @type PloyName: String
|
3269
|
+
# @param PloyId: 策略id
|
3270
|
+
# @type PloyId: Integer
|
3271
|
+
# @param Result: 正常,低危,中危,高危
|
3272
|
+
# @type Result: String
|
3273
|
+
# @param FailAssetNum: 不符合数
|
3274
|
+
# @type FailAssetNum: Integer
|
3275
|
+
# @param TotalAssetNum: 总数
|
3276
|
+
# @type TotalAssetNum: Integer
|
3277
|
+
# @param DealUrl: 处置建议url链接
|
3278
|
+
# @type DealUrl: String
|
3279
|
+
|
3280
|
+
attr_accessor :CheckId, :Name, :Type, :AssetType, :PloyName, :PloyId, :Result, :FailAssetNum, :TotalAssetNum, :DealUrl
|
3281
|
+
|
3282
|
+
def initialize(checkid=nil, name=nil, type=nil, assettype=nil, ployname=nil, ployid=nil, result=nil, failassetnum=nil, totalassetnum=nil, dealurl=nil)
|
3283
|
+
@CheckId = checkid
|
3284
|
+
@Name = name
|
3285
|
+
@Type = type
|
3286
|
+
@AssetType = assettype
|
3287
|
+
@PloyName = ployname
|
3288
|
+
@PloyId = ployid
|
3289
|
+
@Result = result
|
3290
|
+
@FailAssetNum = failassetnum
|
3291
|
+
@TotalAssetNum = totalassetnum
|
3292
|
+
@DealUrl = dealurl
|
3293
|
+
end
|
3294
|
+
|
3295
|
+
def deserialize(params)
|
3296
|
+
@CheckId = params['CheckId']
|
3297
|
+
@Name = params['Name']
|
3298
|
+
@Type = params['Type']
|
3299
|
+
@AssetType = params['AssetType']
|
3300
|
+
@PloyName = params['PloyName']
|
3301
|
+
@PloyId = params['PloyId']
|
3302
|
+
@Result = params['Result']
|
3303
|
+
@FailAssetNum = params['FailAssetNum']
|
3304
|
+
@TotalAssetNum = params['TotalAssetNum']
|
3305
|
+
@DealUrl = params['DealUrl']
|
3306
|
+
end
|
3307
|
+
end
|
3308
|
+
|
3143
3309
|
# 返回结构
|
3144
3310
|
class SocComplianceInfoResp < TencentCloud::Common::AbstractModel
|
3145
3311
|
# @param Items: 合格项
|
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: 1.0.
|
4
|
+
version: 1.0.298
|
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-04-
|
11
|
+
date: 2022-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|