tencentcloud-sdk-config 3.0.712 → 3.0.713

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: 9e3d27ddd240cb177a414edf5344aaf696aff75d
4
- data.tar.gz: 2b2faad76bf38d2ad5774051d5130c7d1611f633
3
+ metadata.gz: e57b5ad08d1ce6972ef977e2ffda53ede7779094
4
+ data.tar.gz: 32b30eac1161862718f1bba6ecbc1df03b68dd75
5
5
  SHA512:
6
- metadata.gz: fbd10078fdf4ea55050f03d4a8fdb829fd681cd2eff0613cf34f4713520abfff1d21e5a8c3cc4783fdf4a1ee354359e89130096b59c582a4e5895069e2cb0d97
7
- data.tar.gz: 7d08094f10c887a88438614fe2c6ec48facf375ce23ebaad2b4539ac59942ba45c6b2649f2bac5499ec10f5de9aaad690f90fdbb21e384c87656fc7249049086
6
+ metadata.gz: f6da0dbdd0218eb6addb1f503f8546dc6f40413b2c422ea9933d70bf79dd8153f0c148557c4c883ffdef86e51d4f7a60012b223fc7570b9e94a035333f7e6cc2
7
+ data.tar.gz: 8c0c572e519ac71a310a4a7657818b02a89afd69aeef7d946c29fac22ab381095787b353b600bcb4a5172f700248c8179bab663cd4bf77f88327642cf584b964
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.712
1
+ 3.0.713
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 上报自定义规则评估结果
81
+
82
+ # @param request: Request instance for PutEvaluations.
83
+ # @type request: :class:`Tencentcloud::config::V20220802::PutEvaluationsRequest`
84
+ # @rtype: :class:`Tencentcloud::config::V20220802::PutEvaluationsResponse`
85
+ def PutEvaluations(request)
86
+ body = send_request('PutEvaluations', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = PutEvaluationsResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
 
81
105
  end
82
106
  end
@@ -245,6 +245,46 @@ module TencentCloud
245
245
  end
246
246
  end
247
247
 
248
+ # 自定义规则评估结果
249
+ class Evaluation < TencentCloud::Common::AbstractModel
250
+ # @param ComplianceResourceId: 已评估资源ID。长度为0~256个字符
251
+ # @type ComplianceResourceId: String
252
+ # @param ComplianceResourceType: 已评估资源类型。
253
+ # 支持:
254
+ # QCS::CVM::Instance、 QCS::CBS::Disk、QCS::VPC::Vpc、QCS::VPC::Subnet、QCS::VPC::SecurityGroup、 QCS::CAM::User、QCS::CAM::Group、QCS::CAM::Policy、QCS::CAM::Role、QCS::COS::Bucket
255
+ # @type ComplianceResourceType: String
256
+ # @param ComplianceRegion: 已评估资源地域。
257
+ # 长度为0~32个字符
258
+ # @type ComplianceRegion: String
259
+ # @param ComplianceType: 合规类型。取值:
260
+ # COMPLIANT:合规、
261
+ # NON_COMPLIANT:不合规
262
+ # @type ComplianceType: String
263
+ # @param Annotation: 不合规资源的补充信息。
264
+ # @type Annotation: :class:`Tencentcloud::Config.v20220802.models.Annotation`
265
+
266
+ attr_accessor :ComplianceResourceId, :ComplianceResourceType, :ComplianceRegion, :ComplianceType, :Annotation
267
+
268
+ def initialize(complianceresourceid=nil, complianceresourcetype=nil, complianceregion=nil, compliancetype=nil, annotation=nil)
269
+ @ComplianceResourceId = complianceresourceid
270
+ @ComplianceResourceType = complianceresourcetype
271
+ @ComplianceRegion = complianceregion
272
+ @ComplianceType = compliancetype
273
+ @Annotation = annotation
274
+ end
275
+
276
+ def deserialize(params)
277
+ @ComplianceResourceId = params['ComplianceResourceId']
278
+ @ComplianceResourceType = params['ComplianceResourceType']
279
+ @ComplianceRegion = params['ComplianceRegion']
280
+ @ComplianceType = params['ComplianceType']
281
+ unless params['Annotation'].nil?
282
+ @Annotation = Annotation.new
283
+ @Annotation.deserialize(params['Annotation'])
284
+ end
285
+ end
286
+ end
287
+
248
288
  # 参数值
249
289
  class InputParameter < TencentCloud::Common::AbstractModel
250
290
  # @param ParameterKey: 参数名
@@ -463,6 +503,49 @@ module TencentCloud
463
503
  end
464
504
  end
465
505
 
506
+ # PutEvaluations请求参数结构体
507
+ class PutEvaluationsRequest < TencentCloud::Common::AbstractModel
508
+ # @param ResultToken: 回调令牌。从自定义规则所选的scf云函数Context中取参数ResultToken值
509
+ # @type ResultToken: String
510
+ # @param Evaluations: 自定义规则评估结果信息。
511
+ # @type Evaluations: Array
512
+
513
+ attr_accessor :ResultToken, :Evaluations
514
+
515
+ def initialize(resulttoken=nil, evaluations=nil)
516
+ @ResultToken = resulttoken
517
+ @Evaluations = evaluations
518
+ end
519
+
520
+ def deserialize(params)
521
+ @ResultToken = params['ResultToken']
522
+ unless params['Evaluations'].nil?
523
+ @Evaluations = []
524
+ params['Evaluations'].each do |i|
525
+ evaluation_tmp = Evaluation.new
526
+ evaluation_tmp.deserialize(i)
527
+ @Evaluations << evaluation_tmp
528
+ end
529
+ end
530
+ end
531
+ end
532
+
533
+ # PutEvaluations返回参数结构体
534
+ class PutEvaluationsResponse < TencentCloud::Common::AbstractModel
535
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
536
+ # @type RequestId: String
537
+
538
+ attr_accessor :RequestId
539
+
540
+ def initialize(requestid=nil)
541
+ @RequestId = requestid
542
+ end
543
+
544
+ def deserialize(params)
545
+ @RequestId = params['RequestId']
546
+ end
547
+ end
548
+
466
549
  # 管理端规则条件
467
550
  class SourceConditionForManage < TencentCloud::Common::AbstractModel
468
551
  # @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.712
4
+ version: 3.0.713
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-24 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common