tencentcloud-sdk-acp 1.0.332 → 1.0.335

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: 89d0edc88645d26ae92b055fc3d85e993c9ca662
4
- data.tar.gz: 2cdb11a2b56913bacfa787640f7058d122d914b6
3
+ metadata.gz: 480b5afab53ab7b69dac636be7ea15b3cfe0099b
4
+ data.tar.gz: a04b61e0f052f7204842d6b1bfe5564b0016e4b2
5
5
  SHA512:
6
- metadata.gz: 097e69bc6d192691241de928f225ec246ff861e078022152f98312d6b3fd860b2dfaaac9bd505c588e28fd2288dbe991c9626dcdca366ec77bce901cbc80d0d4
7
- data.tar.gz: bcdfa870d2394f7f6b9eb0c89295e53f8415fb1112b1897d133bfccd9c2cfe71e718e0eb1ad7ba3c35562e5622b1aeaca3ab805ae275bf95ec86384f3f42115a
6
+ metadata.gz: 2494b0b01f1b06bae23e85910d4934d3d38b36793b98e50761315c1670a3ce4acb59b82a69bee5dcfd4026e7d9b74b33255486475945e3e41f22b07bd7fb23ed
7
+ data.tar.gz: 98b4186d5006cafb06fd92d26ef40063c8fcf1be654b284688d98ccf8cf4765bb6596bc87576cb00480f70221009e89002c7ece1876fe86b930d6253b7d7383f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.332
1
+ 1.0.335
@@ -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.332
4
+ version: 1.0.335
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-14 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common