tencentcloud-sdk-acp 1.0.331 → 1.0.334

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd2be91c2eeff94f7220b84f3ab0e16e5a329521
4
- data.tar.gz: 1c61b348a0a35b1efca500c1818df96f3825baed
3
+ metadata.gz: 9b06b4f5020a4568192bd0452cce0c0d0851e740
4
+ data.tar.gz: 5e4e8d4f7216819d196da07e4a796b1981e2fefd
5
5
  SHA512:
6
- metadata.gz: 7dd515bb443f1eded296c543cb660889aeb1c8feae4abc0cfdf337806d2aab82de5902613f68e336348ab6ef2a495ed442c2d6f7aa1919e61529abb78d6076ff
7
- data.tar.gz: b171724215e41778e4994f202ef7388508507999ca3ea3aa7828ec975f48a5188bcfdbe47a7c926ff44e498b97c4ac69aad501d1cce6a67b858b637b4a951ce5
6
+ metadata.gz: c786dae6a5bc1feb47ebae59bb96d00d85ad2b27955425fd9b4dbf6dc485e76dc5beeb44e774c19db3e5ca95669efed300bd56174e92d979b99ed611e37c7abf
7
+ data.tar.gz: ba4a9ca7219322640249dae6dd8b1d2d03ef1d91f5e09da58257aa25b475bc13a7ec01ce67119952f29babbc0a956789a542bf13b4e7b017a7e265085e73b4e3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.331
1
+ 1.0.334
@@ -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.
@@ -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: 流程编号
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-acp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.331
4
+ version: 1.0.334
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-06-13 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common