tencentcloud-sdk-acp 1.0.332 → 1.0.333
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/v20220105/client.rb +24 -0
- data/lib/v20220105/models.rb +67 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24fad16902716ad171baeba16274bfae8a4c45d2
|
4
|
+
data.tar.gz: 53e405174d92b0d9073428b7edf6a83e3ed71dfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ca2fa8e47eb95414304e7b09a67475e958365b0ad6da20e6e7babc772bb2daf4d016a391a75f3a5b0a7e448b5cd9ae469ccd7ec15a05a9b4d6846414ca338a7
|
7
|
+
data.tar.gz: ef3c562b683cd2b800caaaf5984f3e787346cd5ac4e0cfdd7a91b86fa3096b7c92f37955212e5612731a12683f41a006f9216142289a3b776f84487c2d821a6b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.333
|
data/lib/v20220105/client.rb
CHANGED
@@ -101,6 +101,30 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
+
# 查询应用合规平台用户资源的使用情况
|
105
|
+
|
106
|
+
# @param request: Request instance for DescribeResourceUsageInfo.
|
107
|
+
# @type request: :class:`Tencentcloud::acp::V20220105::DescribeResourceUsageInfoRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::acp::V20220105::DescribeResourceUsageInfoResponse`
|
109
|
+
def DescribeResourceUsageInfo(request)
|
110
|
+
body = send_request('DescribeResourceUsageInfo', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DescribeResourceUsageInfoResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
104
128
|
# 获取App隐私合规诊断任务列表
|
105
129
|
|
106
130
|
# @param request: Request instance for DescribeScanTaskList.
|
data/lib/v20220105/models.rb
CHANGED
@@ -375,6 +375,49 @@ module TencentCloud
|
|
375
375
|
end
|
376
376
|
end
|
377
377
|
|
378
|
+
# DescribeResourceUsageInfo请求参数结构体
|
379
|
+
class DescribeResourceUsageInfoRequest < TencentCloud::Common::AbstractModel
|
380
|
+
# @param PriceName: 资源计费项名称
|
381
|
+
# @type PriceName: String
|
382
|
+
|
383
|
+
attr_accessor :PriceName
|
384
|
+
|
385
|
+
def initialize(pricename=nil)
|
386
|
+
@PriceName = pricename
|
387
|
+
end
|
388
|
+
|
389
|
+
def deserialize(params)
|
390
|
+
@PriceName = params['PriceName']
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
394
|
+
# DescribeResourceUsageInfo返回参数结构体
|
395
|
+
class DescribeResourceUsageInfoResponse < TencentCloud::Common::AbstractModel
|
396
|
+
# @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义,暂时未定
|
397
|
+
# @type Result: Integer
|
398
|
+
# @param Data: 资源使用信息
|
399
|
+
# @type Data: :class:`Tencentcloud::Acp.v20220105.models.ResourceUsageInfoData`
|
400
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
401
|
+
# @type RequestId: String
|
402
|
+
|
403
|
+
attr_accessor :Result, :Data, :RequestId
|
404
|
+
|
405
|
+
def initialize(result=nil, data=nil, requestid=nil)
|
406
|
+
@Result = result
|
407
|
+
@Data = data
|
408
|
+
@RequestId = requestid
|
409
|
+
end
|
410
|
+
|
411
|
+
def deserialize(params)
|
412
|
+
@Result = params['Result']
|
413
|
+
unless params['Data'].nil?
|
414
|
+
@Data = ResourceUsageInfoData.new
|
415
|
+
@Data.deserialize(params['Data'])
|
416
|
+
end
|
417
|
+
@RequestId = params['RequestId']
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
378
421
|
# DescribeScanTaskList请求参数结构体
|
379
422
|
class DescribeScanTaskListRequest < TencentCloud::Common::AbstractModel
|
380
423
|
# @param Source: 任务来源, -1:所有, 0:默认值(私域), 1:灵犀, 2:灵鲲;
|
@@ -590,6 +633,30 @@ module TencentCloud
|
|
590
633
|
end
|
591
634
|
end
|
592
635
|
|
636
|
+
# 资源使用情况信息
|
637
|
+
class ResourceUsageInfoData < TencentCloud::Common::AbstractModel
|
638
|
+
# @param ResourceName: 资源计费项名称
|
639
|
+
# @type ResourceName: String
|
640
|
+
# @param Total: 资源总数
|
641
|
+
# @type Total: Integer
|
642
|
+
# @param UnusedCount: 未使用资源数
|
643
|
+
# @type UnusedCount: Integer
|
644
|
+
|
645
|
+
attr_accessor :ResourceName, :Total, :UnusedCount
|
646
|
+
|
647
|
+
def initialize(resourcename=nil, total=nil, unusedcount=nil)
|
648
|
+
@ResourceName = resourcename
|
649
|
+
@Total = total
|
650
|
+
@UnusedCount = unusedcount
|
651
|
+
end
|
652
|
+
|
653
|
+
def deserialize(params)
|
654
|
+
@ResourceName = params['ResourceName']
|
655
|
+
@Total = params['Total']
|
656
|
+
@UnusedCount = params['UnusedCount']
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
593
660
|
# 任务流步骤详情
|
594
661
|
class TaskFlowStepsInfo < TencentCloud::Common::AbstractModel
|
595
662
|
# @param FlowNo: 流程编号
|