tencentcloud-sdk-config 3.0.978 → 3.0.979

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: 574d1dcdbc25f8df6c3acb8ddff119c58a5c54e7
4
- data.tar.gz: 7a4d9abb2686884bb3b318f3bbd8851a64e0ff68
3
+ metadata.gz: f2db8124adf6ecc02fdd9d616099e76d766fcb4e
4
+ data.tar.gz: c4045c599cfa40cb43090c07fcee40f5cffe4639
5
5
  SHA512:
6
- metadata.gz: 515aa8e08837178e8fe17f337f7baa1bda67714cbeb1068ba772c70e6740dbac58b9c79e80f7602e9e3c43547e88d1100abec047819da6e1452cd8982579ebe6
7
- data.tar.gz: 8a716cb940052a5b97bbba7334df0b2387de51063ef2b33701ec199e05ad45a6b644b0e3702d8198585ba561b1b390034f0b042e649f92a7dd293ee5c9c6034c
6
+ metadata.gz: 731e7f6d798b0cd456ffdd6510508be2a14c235833ebe2edc908b124d74ab0875da7c594f4c18ea82d17de0278f456990b4d8bbf414af99e9edf5619a4030e98
7
+ data.tar.gz: ab252b3c5e21427396ba062d8e8a2f10e24d0551dedbe0b267ae3fa9eaf67f9d6232a50a677f37240da66c39603727f442789268eda3a3d397b9b7914aab3977
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.978
1
+ 3.0.979
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 账号组资源详情
33
+
34
+ # @param request: Request instance for DescribeAggregateDiscoveredResource.
35
+ # @type request: :class:`Tencentcloud::config::V20220802::DescribeAggregateDiscoveredResourceRequest`
36
+ # @rtype: :class:`Tencentcloud::config::V20220802::DescribeAggregateDiscoveredResourceResponse`
37
+ def DescribeAggregateDiscoveredResource(request)
38
+ body = send_request('DescribeAggregateDiscoveredResource', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeAggregateDiscoveredResourceResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 资源详情
33
57
 
34
58
  # @param request: Request instance for DescribeDiscoveredResource.
@@ -77,6 +101,30 @@ module TencentCloud
77
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
102
  end
79
103
 
104
+ # 账号组获取资源列表
105
+
106
+ # @param request: Request instance for ListAggregateDiscoveredResources.
107
+ # @type request: :class:`Tencentcloud::config::V20220802::ListAggregateDiscoveredResourcesRequest`
108
+ # @rtype: :class:`Tencentcloud::config::V20220802::ListAggregateDiscoveredResourcesResponse`
109
+ def ListAggregateDiscoveredResources(request)
110
+ body = send_request('ListAggregateDiscoveredResources', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = ListAggregateDiscoveredResourcesResponse.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
+
80
128
  # 获取规则列表
81
129
 
82
130
  # @param request: Request instance for ListConfigRules.
@@ -17,6 +17,81 @@
17
17
  module TencentCloud
18
18
  module Config
19
19
  module V20220802
20
+ # 资源列列表信息
21
+ class AggregateResourceInfo < TencentCloud::Common::AbstractModel
22
+ # @param ResourceType: 资源类型
23
+ # @type ResourceType: String
24
+ # @param ResourceName: 资源名称
25
+ # @type ResourceName: String
26
+ # @param ResourceId: 资源ID
27
+ # @type ResourceId: String
28
+ # @param ResourceRegion: 地域
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type ResourceRegion: String
31
+ # @param ResourceStatus: 资源状态
32
+ # 注意:此字段可能返回 null,表示取不到有效值。
33
+ # @type ResourceStatus: String
34
+ # @param ResourceDelete: 是否删除 1:已删除 0:未删除
35
+ # 注意:此字段可能返回 null,表示取不到有效值。
36
+ # @type ResourceDelete: Integer
37
+ # @param ResourceCreateTime: 资源创建时间
38
+ # 注意:此字段可能返回 null,表示取不到有效值。
39
+ # @type ResourceCreateTime: String
40
+ # @param Tags: 标签信息
41
+ # 注意:此字段可能返回 null,表示取不到有效值。
42
+ # @type Tags: Array
43
+ # @param ResourceZone: 可用区
44
+ # 注意:此字段可能返回 null,表示取不到有效值。
45
+ # @type ResourceZone: String
46
+ # @param ComplianceResult: 合规状态
47
+ # 注意:此字段可能返回 null,表示取不到有效值。
48
+ # @type ComplianceResult: String
49
+ # @param ResourceOwnerId: 资源所属用户ID
50
+ # @type ResourceOwnerId: Integer
51
+ # @param ResourceOwnerName: 用户昵称
52
+ # 注意:此字段可能返回 null,表示取不到有效值。
53
+ # @type ResourceOwnerName: String
54
+
55
+ attr_accessor :ResourceType, :ResourceName, :ResourceId, :ResourceRegion, :ResourceStatus, :ResourceDelete, :ResourceCreateTime, :Tags, :ResourceZone, :ComplianceResult, :ResourceOwnerId, :ResourceOwnerName
56
+
57
+ def initialize(resourcetype=nil, resourcename=nil, resourceid=nil, resourceregion=nil, resourcestatus=nil, resourcedelete=nil, resourcecreatetime=nil, tags=nil, resourcezone=nil, complianceresult=nil, resourceownerid=nil, resourceownername=nil)
58
+ @ResourceType = resourcetype
59
+ @ResourceName = resourcename
60
+ @ResourceId = resourceid
61
+ @ResourceRegion = resourceregion
62
+ @ResourceStatus = resourcestatus
63
+ @ResourceDelete = resourcedelete
64
+ @ResourceCreateTime = resourcecreatetime
65
+ @Tags = tags
66
+ @ResourceZone = resourcezone
67
+ @ComplianceResult = complianceresult
68
+ @ResourceOwnerId = resourceownerid
69
+ @ResourceOwnerName = resourceownername
70
+ end
71
+
72
+ def deserialize(params)
73
+ @ResourceType = params['ResourceType']
74
+ @ResourceName = params['ResourceName']
75
+ @ResourceId = params['ResourceId']
76
+ @ResourceRegion = params['ResourceRegion']
77
+ @ResourceStatus = params['ResourceStatus']
78
+ @ResourceDelete = params['ResourceDelete']
79
+ @ResourceCreateTime = params['ResourceCreateTime']
80
+ unless params['Tags'].nil?
81
+ @Tags = []
82
+ params['Tags'].each do |i|
83
+ tag_tmp = Tag.new
84
+ tag_tmp.deserialize(i)
85
+ @Tags << tag_tmp
86
+ end
87
+ end
88
+ @ResourceZone = params['ResourceZone']
89
+ @ComplianceResult = params['ComplianceResult']
90
+ @ResourceOwnerId = params['ResourceOwnerId']
91
+ @ResourceOwnerName = params['ResourceOwnerName']
92
+ end
93
+ end
94
+
20
95
  # 合规详情
21
96
  class Annotation < TencentCloud::Common::AbstractModel
22
97
  # @param Configuration: 资源当前实际配置。长度为0~256位字符,即资源不合规配置
@@ -245,6 +320,106 @@ module TencentCloud
245
320
  end
246
321
  end
247
322
 
323
+ # DescribeAggregateDiscoveredResource请求参数结构体
324
+ class DescribeAggregateDiscoveredResourceRequest < TencentCloud::Common::AbstractModel
325
+ # @param ResourceId: 资源ID
326
+ # @type ResourceId: String
327
+ # @param ResourceType: 资源类型
328
+ # @type ResourceType: String
329
+ # @param ResourceRegion: 资源地域
330
+ # @type ResourceRegion: String
331
+ # @param AccountGroupId: 账号组ID
332
+ # @type AccountGroupId: String
333
+ # @param ResourceOwnerId: 资源所属用户ID
334
+ # @type ResourceOwnerId: Integer
335
+
336
+ attr_accessor :ResourceId, :ResourceType, :ResourceRegion, :AccountGroupId, :ResourceOwnerId
337
+
338
+ def initialize(resourceid=nil, resourcetype=nil, resourceregion=nil, accountgroupid=nil, resourceownerid=nil)
339
+ @ResourceId = resourceid
340
+ @ResourceType = resourcetype
341
+ @ResourceRegion = resourceregion
342
+ @AccountGroupId = accountgroupid
343
+ @ResourceOwnerId = resourceownerid
344
+ end
345
+
346
+ def deserialize(params)
347
+ @ResourceId = params['ResourceId']
348
+ @ResourceType = params['ResourceType']
349
+ @ResourceRegion = params['ResourceRegion']
350
+ @AccountGroupId = params['AccountGroupId']
351
+ @ResourceOwnerId = params['ResourceOwnerId']
352
+ end
353
+ end
354
+
355
+ # DescribeAggregateDiscoveredResource返回参数结构体
356
+ class DescribeAggregateDiscoveredResourceResponse < TencentCloud::Common::AbstractModel
357
+ # @param ResourceId: 资源Id
358
+ # 注意:此字段可能返回 null,表示取不到有效值。
359
+ # @type ResourceId: String
360
+ # @param ResourceType: 资源类型
361
+ # 注意:此字段可能返回 null,表示取不到有效值。
362
+ # @type ResourceType: String
363
+ # @param ResourceName: 资源名
364
+ # 注意:此字段可能返回 null,表示取不到有效值。
365
+ # @type ResourceName: String
366
+ # @param ResourceRegion: 资源地域
367
+ # 注意:此字段可能返回 null,表示取不到有效值。
368
+ # @type ResourceRegion: String
369
+ # @param ResourceZone: 资源可用区
370
+ # 注意:此字段可能返回 null,表示取不到有效值。
371
+ # @type ResourceZone: String
372
+ # @param Configuration: 资源配置
373
+ # 注意:此字段可能返回 null,表示取不到有效值。
374
+ # @type Configuration: String
375
+ # @param ResourceCreateTime: 资源创建时间
376
+ # 注意:此字段可能返回 null,表示取不到有效值。
377
+ # @type ResourceCreateTime: String
378
+ # @param Tags: 资源标签
379
+ # 注意:此字段可能返回 null,表示取不到有效值。
380
+ # @type Tags: Array
381
+ # @param UpdateTime: 资源更新时间
382
+ # 注意:此字段可能返回 null,表示取不到有效值。
383
+ # @type UpdateTime: String
384
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
385
+ # @type RequestId: String
386
+
387
+ attr_accessor :ResourceId, :ResourceType, :ResourceName, :ResourceRegion, :ResourceZone, :Configuration, :ResourceCreateTime, :Tags, :UpdateTime, :RequestId
388
+
389
+ def initialize(resourceid=nil, resourcetype=nil, resourcename=nil, resourceregion=nil, resourcezone=nil, configuration=nil, resourcecreatetime=nil, tags=nil, updatetime=nil, requestid=nil)
390
+ @ResourceId = resourceid
391
+ @ResourceType = resourcetype
392
+ @ResourceName = resourcename
393
+ @ResourceRegion = resourceregion
394
+ @ResourceZone = resourcezone
395
+ @Configuration = configuration
396
+ @ResourceCreateTime = resourcecreatetime
397
+ @Tags = tags
398
+ @UpdateTime = updatetime
399
+ @RequestId = requestid
400
+ end
401
+
402
+ def deserialize(params)
403
+ @ResourceId = params['ResourceId']
404
+ @ResourceType = params['ResourceType']
405
+ @ResourceName = params['ResourceName']
406
+ @ResourceRegion = params['ResourceRegion']
407
+ @ResourceZone = params['ResourceZone']
408
+ @Configuration = params['Configuration']
409
+ @ResourceCreateTime = params['ResourceCreateTime']
410
+ unless params['Tags'].nil?
411
+ @Tags = []
412
+ params['Tags'].each do |i|
413
+ tag_tmp = Tag.new
414
+ tag_tmp.deserialize(i)
415
+ @Tags << tag_tmp
416
+ end
417
+ end
418
+ @UpdateTime = params['UpdateTime']
419
+ @RequestId = params['RequestId']
420
+ end
421
+ end
422
+
248
423
  # DescribeDiscoveredResource请求参数结构体
249
424
  class DescribeDiscoveredResourceRequest < TencentCloud::Common::AbstractModel
250
425
  # @param ResourceId: 资源ID
@@ -541,6 +716,88 @@ module TencentCloud
541
716
  end
542
717
  end
543
718
 
719
+ # ListAggregateDiscoveredResources请求参数结构体
720
+ class ListAggregateDiscoveredResourcesRequest < TencentCloud::Common::AbstractModel
721
+ # @param MaxResults: 每页显示数量
722
+ # @type MaxResults: Integer
723
+ # @param AccountGroupId: 账号组ID
724
+ # @type AccountGroupId: String
725
+ # @param Filters: resourceName:资源名 resourceId :资源ID
726
+ # @type Filters: Array
727
+ # @param Tags: 标签
728
+ # @type Tags: Array
729
+ # @param NextToken: 下一页token
730
+ # @type NextToken: String
731
+ # @param OrderType: 排序方式 asc、desc
732
+ # @type OrderType: String
733
+
734
+ attr_accessor :MaxResults, :AccountGroupId, :Filters, :Tags, :NextToken, :OrderType
735
+
736
+ def initialize(maxresults=nil, accountgroupid=nil, filters=nil, tags=nil, nexttoken=nil, ordertype=nil)
737
+ @MaxResults = maxresults
738
+ @AccountGroupId = accountgroupid
739
+ @Filters = filters
740
+ @Tags = tags
741
+ @NextToken = nexttoken
742
+ @OrderType = ordertype
743
+ end
744
+
745
+ def deserialize(params)
746
+ @MaxResults = params['MaxResults']
747
+ @AccountGroupId = params['AccountGroupId']
748
+ unless params['Filters'].nil?
749
+ @Filters = []
750
+ params['Filters'].each do |i|
751
+ filter_tmp = Filter.new
752
+ filter_tmp.deserialize(i)
753
+ @Filters << filter_tmp
754
+ end
755
+ end
756
+ unless params['Tags'].nil?
757
+ @Tags = []
758
+ params['Tags'].each do |i|
759
+ tag_tmp = Tag.new
760
+ tag_tmp.deserialize(i)
761
+ @Tags << tag_tmp
762
+ end
763
+ end
764
+ @NextToken = params['NextToken']
765
+ @OrderType = params['OrderType']
766
+ end
767
+ end
768
+
769
+ # ListAggregateDiscoveredResources返回参数结构体
770
+ class ListAggregateDiscoveredResourcesResponse < TencentCloud::Common::AbstractModel
771
+ # @param Items: 详情
772
+ # @type Items: Array
773
+ # @param NextToken: 下一页
774
+ # 注意:此字段可能返回 null,表示取不到有效值。
775
+ # @type NextToken: String
776
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
777
+ # @type RequestId: String
778
+
779
+ attr_accessor :Items, :NextToken, :RequestId
780
+
781
+ def initialize(items=nil, nexttoken=nil, requestid=nil)
782
+ @Items = items
783
+ @NextToken = nexttoken
784
+ @RequestId = requestid
785
+ end
786
+
787
+ def deserialize(params)
788
+ unless params['Items'].nil?
789
+ @Items = []
790
+ params['Items'].each do |i|
791
+ aggregateresourceinfo_tmp = AggregateResourceInfo.new
792
+ aggregateresourceinfo_tmp.deserialize(i)
793
+ @Items << aggregateresourceinfo_tmp
794
+ end
795
+ end
796
+ @NextToken = params['NextToken']
797
+ @RequestId = params['RequestId']
798
+ end
799
+ end
800
+
544
801
  # ListConfigRules请求参数结构体
545
802
  class ListConfigRulesRequest < TencentCloud::Common::AbstractModel
546
803
  # @param Limit: 每页数量。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.978
4
+ version: 3.0.979
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-08 00:00:00.000000000 Z
11
+ date: 2025-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common