tencentcloud-sdk-config 3.0.949 → 3.0.951

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: de26d6d6be81d4d19c79d833fcb614be239d490d
4
- data.tar.gz: a8fec0d0d400b5db39345a20a459655e2541869d
3
+ metadata.gz: af7646887033dbd4f7641f64f307d24bbbcb4705
4
+ data.tar.gz: e305dca086e63c2de6806e04bce846713da5907d
5
5
  SHA512:
6
- metadata.gz: e0359c0256b8795d15bb0f8fe08184f904b2017601a433c2239dccd43f6bf31bcbf4155b27ed5c524c52caaa5ebbe1851033540580299b939142866f19e3a7fc
7
- data.tar.gz: fe96dc17b6d42368a9704e5b389e65751fead5afc86c197685a3bb0d4c536ddfe0cff50668e98baf12160ff8a0b5910f32e48ab30fd2f8fcecd13a44c2bd9556
6
+ metadata.gz: 22d110533d9bb326b2641ead42bb66411b31669da6aaf7d49556e5d83e1033c70bcb633c96c9997fd69cc385975ee0111869a0545e3f30e48b1fca48e5c7f025
7
+ data.tar.gz: 13378d87afe8caee56810a1336fd3fa04bbf90291af9acf0a83a66ad42e72f6e17cf327319ce80b00dcead1eac38a1af0b7fd9e05cf11163b58a8488e1e116d8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.949
1
+ 3.0.951
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 资源详情
33
+
34
+ # @param request: Request instance for DescribeDiscoveredResource.
35
+ # @type request: :class:`Tencentcloud::config::V20220802::DescribeDiscoveredResourceRequest`
36
+ # @rtype: :class:`Tencentcloud::config::V20220802::DescribeDiscoveredResourceResponse`
37
+ def DescribeDiscoveredResource(request)
38
+ body = send_request('DescribeDiscoveredResource', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeDiscoveredResourceResponse.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 ListAggregateConfigRules.
@@ -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 ListDiscoveredResources.
107
+ # @type request: :class:`Tencentcloud::config::V20220802::ListDiscoveredResourcesRequest`
108
+ # @rtype: :class:`Tencentcloud::config::V20220802::ListDiscoveredResourcesResponse`
109
+ def ListDiscoveredResources(request)
110
+ body = send_request('ListDiscoveredResources', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = ListDiscoveredResourcesResponse.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 PutEvaluations.
@@ -245,6 +245,98 @@ module TencentCloud
245
245
  end
246
246
  end
247
247
 
248
+ # DescribeDiscoveredResource请求参数结构体
249
+ class DescribeDiscoveredResourceRequest < TencentCloud::Common::AbstractModel
250
+ # @param ResourceId: 资源ID
251
+ # @type ResourceId: String
252
+ # @param ResourceType: 资源类型
253
+ # @type ResourceType: String
254
+ # @param ResourceRegion: 资源地域
255
+ # @type ResourceRegion: String
256
+
257
+ attr_accessor :ResourceId, :ResourceType, :ResourceRegion
258
+
259
+ def initialize(resourceid=nil, resourcetype=nil, resourceregion=nil)
260
+ @ResourceId = resourceid
261
+ @ResourceType = resourcetype
262
+ @ResourceRegion = resourceregion
263
+ end
264
+
265
+ def deserialize(params)
266
+ @ResourceId = params['ResourceId']
267
+ @ResourceType = params['ResourceType']
268
+ @ResourceRegion = params['ResourceRegion']
269
+ end
270
+ end
271
+
272
+ # DescribeDiscoveredResource返回参数结构体
273
+ class DescribeDiscoveredResourceResponse < TencentCloud::Common::AbstractModel
274
+ # @param ResourceId: 资源Id
275
+ # 注意:此字段可能返回 null,表示取不到有效值。
276
+ # @type ResourceId: String
277
+ # @param ResourceType: 资源类型
278
+ # 注意:此字段可能返回 null,表示取不到有效值。
279
+ # @type ResourceType: String
280
+ # @param ResourceName: 资源名
281
+ # 注意:此字段可能返回 null,表示取不到有效值。
282
+ # @type ResourceName: String
283
+ # @param ResourceRegion: 资源地域
284
+ # 注意:此字段可能返回 null,表示取不到有效值。
285
+ # @type ResourceRegion: String
286
+ # @param ResourceZone: 资源可用区
287
+ # 注意:此字段可能返回 null,表示取不到有效值。
288
+ # @type ResourceZone: String
289
+ # @param Configuration: 资源配置
290
+ # 注意:此字段可能返回 null,表示取不到有效值。
291
+ # @type Configuration: String
292
+ # @param ResourceCreateTime: 资源创建时间
293
+ # 注意:此字段可能返回 null,表示取不到有效值。
294
+ # @type ResourceCreateTime: String
295
+ # @param Tags: 资源标签
296
+ # 注意:此字段可能返回 null,表示取不到有效值。
297
+ # @type Tags: Array
298
+ # @param UpdateTime: 资源更新时间
299
+ # 注意:此字段可能返回 null,表示取不到有效值。
300
+ # @type UpdateTime: String
301
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
302
+ # @type RequestId: String
303
+
304
+ attr_accessor :ResourceId, :ResourceType, :ResourceName, :ResourceRegion, :ResourceZone, :Configuration, :ResourceCreateTime, :Tags, :UpdateTime, :RequestId
305
+
306
+ def initialize(resourceid=nil, resourcetype=nil, resourcename=nil, resourceregion=nil, resourcezone=nil, configuration=nil, resourcecreatetime=nil, tags=nil, updatetime=nil, requestid=nil)
307
+ @ResourceId = resourceid
308
+ @ResourceType = resourcetype
309
+ @ResourceName = resourcename
310
+ @ResourceRegion = resourceregion
311
+ @ResourceZone = resourcezone
312
+ @Configuration = configuration
313
+ @ResourceCreateTime = resourcecreatetime
314
+ @Tags = tags
315
+ @UpdateTime = updatetime
316
+ @RequestId = requestid
317
+ end
318
+
319
+ def deserialize(params)
320
+ @ResourceId = params['ResourceId']
321
+ @ResourceType = params['ResourceType']
322
+ @ResourceName = params['ResourceName']
323
+ @ResourceRegion = params['ResourceRegion']
324
+ @ResourceZone = params['ResourceZone']
325
+ @Configuration = params['Configuration']
326
+ @ResourceCreateTime = params['ResourceCreateTime']
327
+ unless params['Tags'].nil?
328
+ @Tags = []
329
+ params['Tags'].each do |i|
330
+ tag_tmp = Tag.new
331
+ tag_tmp.deserialize(i)
332
+ @Tags << tag_tmp
333
+ end
334
+ end
335
+ @UpdateTime = params['UpdateTime']
336
+ @RequestId = params['RequestId']
337
+ end
338
+ end
339
+
248
340
  # 自定义规则评估结果
249
341
  class Evaluation < TencentCloud::Common::AbstractModel
250
342
  # @param ComplianceResourceId: 已评估资源ID。长度为0~256个字符
@@ -285,6 +377,26 @@ module TencentCloud
285
377
  end
286
378
  end
287
379
 
380
+ # 资源列表筛选
381
+ class Filter < TencentCloud::Common::AbstractModel
382
+ # @param Name: 查询字段名称 资源名称:resourceName 资源ID:resourceId 资源类型:resourceType 资源地域:resourceRegion 删除状态:resourceDelete 0未删除,1已删除 resourceRegionAndZone地域/可用区
383
+ # @type Name: String
384
+ # @param Values: 查询字段值
385
+ # @type Values: Array
386
+
387
+ attr_accessor :Name, :Values
388
+
389
+ def initialize(name=nil, values=nil)
390
+ @Name = name
391
+ @Values = values
392
+ end
393
+
394
+ def deserialize(params)
395
+ @Name = params['Name']
396
+ @Values = params['Values']
397
+ end
398
+ end
399
+
288
400
  # 参数值
289
401
  class InputParameter < TencentCloud::Common::AbstractModel
290
402
  # @param ParameterKey: 参数名
@@ -503,6 +615,84 @@ module TencentCloud
503
615
  end
504
616
  end
505
617
 
618
+ # ListDiscoveredResources请求参数结构体
619
+ class ListDiscoveredResourcesRequest < TencentCloud::Common::AbstractModel
620
+ # @param MaxResults: 每页显示数量
621
+ # @type MaxResults: Integer
622
+ # @param Filters: resourceName:资源名 resourceId :资源ID
623
+ # @type Filters: Array
624
+ # @param Tags: 标签
625
+ # @type Tags: Array
626
+ # @param NextToken: 下一页token
627
+ # @type NextToken: String
628
+ # @param OrderType: 排序方式 asc、desc
629
+ # @type OrderType: String
630
+
631
+ attr_accessor :MaxResults, :Filters, :Tags, :NextToken, :OrderType
632
+
633
+ def initialize(maxresults=nil, filters=nil, tags=nil, nexttoken=nil, ordertype=nil)
634
+ @MaxResults = maxresults
635
+ @Filters = filters
636
+ @Tags = tags
637
+ @NextToken = nexttoken
638
+ @OrderType = ordertype
639
+ end
640
+
641
+ def deserialize(params)
642
+ @MaxResults = params['MaxResults']
643
+ unless params['Filters'].nil?
644
+ @Filters = []
645
+ params['Filters'].each do |i|
646
+ filter_tmp = Filter.new
647
+ filter_tmp.deserialize(i)
648
+ @Filters << filter_tmp
649
+ end
650
+ end
651
+ unless params['Tags'].nil?
652
+ @Tags = []
653
+ params['Tags'].each do |i|
654
+ tag_tmp = Tag.new
655
+ tag_tmp.deserialize(i)
656
+ @Tags << tag_tmp
657
+ end
658
+ end
659
+ @NextToken = params['NextToken']
660
+ @OrderType = params['OrderType']
661
+ end
662
+ end
663
+
664
+ # ListDiscoveredResources返回参数结构体
665
+ class ListDiscoveredResourcesResponse < TencentCloud::Common::AbstractModel
666
+ # @param Items: 详情
667
+ # @type Items: Array
668
+ # @param NextToken: 下一页
669
+ # 注意:此字段可能返回 null,表示取不到有效值。
670
+ # @type NextToken: String
671
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
672
+ # @type RequestId: String
673
+
674
+ attr_accessor :Items, :NextToken, :RequestId
675
+
676
+ def initialize(items=nil, nexttoken=nil, requestid=nil)
677
+ @Items = items
678
+ @NextToken = nexttoken
679
+ @RequestId = requestid
680
+ end
681
+
682
+ def deserialize(params)
683
+ unless params['Items'].nil?
684
+ @Items = []
685
+ params['Items'].each do |i|
686
+ resourcelistinfo_tmp = ResourceListInfo.new
687
+ resourcelistinfo_tmp.deserialize(i)
688
+ @Items << resourcelistinfo_tmp
689
+ end
690
+ end
691
+ @NextToken = params['NextToken']
692
+ @RequestId = params['RequestId']
693
+ end
694
+ end
695
+
506
696
  # PutEvaluations请求参数结构体
507
697
  class PutEvaluationsRequest < TencentCloud::Common::AbstractModel
508
698
  # @param ResultToken: 回调令牌。从自定义规则所选的scf云函数Context中取参数ResultToken值
@@ -546,6 +736,72 @@ module TencentCloud
546
736
  end
547
737
  end
548
738
 
739
+ # 资源列列表信息
740
+ class ResourceListInfo < TencentCloud::Common::AbstractModel
741
+ # @param ResourceType: 资源类型
742
+ # @type ResourceType: String
743
+ # @param ResourceName: 资源名称
744
+ # @type ResourceName: String
745
+ # @param ResourceId: 资源ID
746
+ # @type ResourceId: String
747
+ # @param ResourceRegion: 地域
748
+ # 注意:此字段可能返回 null,表示取不到有效值。
749
+ # @type ResourceRegion: String
750
+ # @param ResourceStatus: 资源状态
751
+ # 注意:此字段可能返回 null,表示取不到有效值。
752
+ # @type ResourceStatus: String
753
+ # @param ResourceDelete: 1 :已删除 2:未删除
754
+ # 注意:此字段可能返回 null,表示取不到有效值。
755
+ # @type ResourceDelete: Integer
756
+ # @param ResourceCreateTime: 资源创建时间
757
+ # 注意:此字段可能返回 null,表示取不到有效值。
758
+ # @type ResourceCreateTime: String
759
+ # @param Tags: 标签信息
760
+ # 注意:此字段可能返回 null,表示取不到有效值。
761
+ # @type Tags: Array
762
+ # @param ResourceZone: 可用区
763
+ # 注意:此字段可能返回 null,表示取不到有效值。
764
+ # @type ResourceZone: String
765
+ # @param ComplianceResult: 合规状态
766
+ # 注意:此字段可能返回 null,表示取不到有效值。
767
+ # @type ComplianceResult: String
768
+
769
+ attr_accessor :ResourceType, :ResourceName, :ResourceId, :ResourceRegion, :ResourceStatus, :ResourceDelete, :ResourceCreateTime, :Tags, :ResourceZone, :ComplianceResult
770
+
771
+ def initialize(resourcetype=nil, resourcename=nil, resourceid=nil, resourceregion=nil, resourcestatus=nil, resourcedelete=nil, resourcecreatetime=nil, tags=nil, resourcezone=nil, complianceresult=nil)
772
+ @ResourceType = resourcetype
773
+ @ResourceName = resourcename
774
+ @ResourceId = resourceid
775
+ @ResourceRegion = resourceregion
776
+ @ResourceStatus = resourcestatus
777
+ @ResourceDelete = resourcedelete
778
+ @ResourceCreateTime = resourcecreatetime
779
+ @Tags = tags
780
+ @ResourceZone = resourcezone
781
+ @ComplianceResult = complianceresult
782
+ end
783
+
784
+ def deserialize(params)
785
+ @ResourceType = params['ResourceType']
786
+ @ResourceName = params['ResourceName']
787
+ @ResourceId = params['ResourceId']
788
+ @ResourceRegion = params['ResourceRegion']
789
+ @ResourceStatus = params['ResourceStatus']
790
+ @ResourceDelete = params['ResourceDelete']
791
+ @ResourceCreateTime = params['ResourceCreateTime']
792
+ unless params['Tags'].nil?
793
+ @Tags = []
794
+ params['Tags'].each do |i|
795
+ tag_tmp = Tag.new
796
+ tag_tmp.deserialize(i)
797
+ @Tags << tag_tmp
798
+ end
799
+ end
800
+ @ResourceZone = params['ResourceZone']
801
+ @ComplianceResult = params['ComplianceResult']
802
+ end
803
+ end
804
+
549
805
  # 管理端规则条件
550
806
  class SourceConditionForManage < TencentCloud::Common::AbstractModel
551
807
  # @param EmptyAs: 条件为空,合规:COMPLIANT,不合规:NON_COMPLIANT,无法应用:NOT_APPLICABLE
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.949
4
+ version: 3.0.951
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-26 00:00:00.000000000 Z
11
+ date: 2024-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common