tencentcloud-sdk-config 3.0.709

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ccb2e36d647995b203c7f18e17ec923177339a99
4
+ data.tar.gz: 5e745dfaccb15273ee30bc8e948032e40d88395d
5
+ SHA512:
6
+ metadata.gz: a3829cb68d5c5a0d7d30537f403ee68c5cd90a82cd54f0d22d2457b8b459c3ac873c3df1a87bcda58e9b46d38fccd3e6b285e47bf6cba6155aad1fffbf229569
7
+ data.tar.gz: 3848073e9509e790184f2f6647e0ac4dec5e4889c9d6d0e5d74185dfe69939c9e2ce6827b03774ed376415dd99bd4d8be29bd967b8d83bc6f96b4978c1be2ed0
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.709
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220802/client'
6
+ require_relative 'v20220802/models'
7
+
8
+ module TencentCloud
9
+ module Config
10
+ end
11
+ end
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Config
21
+ module V20220802
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-08-02'
26
+ api_endpoint = 'config.tencentcloudapi.com'
27
+ sdk_version = 'CONFIG_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 账号组获取规则列表
33
+
34
+ # @param request: Request instance for ListAggregateConfigRules.
35
+ # @type request: :class:`Tencentcloud::config::V20220802::ListAggregateConfigRulesRequest`
36
+ # @rtype: :class:`Tencentcloud::config::V20220802::ListAggregateConfigRulesResponse`
37
+ def ListAggregateConfigRules(request)
38
+ body = send_request('ListAggregateConfigRules', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = ListAggregateConfigRulesResponse.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
+
56
+ # 获取规则列表
57
+
58
+ # @param request: Request instance for ListConfigRules.
59
+ # @type request: :class:`Tencentcloud::config::V20220802::ListConfigRulesRequest`
60
+ # @rtype: :class:`Tencentcloud::config::V20220802::ListConfigRulesResponse`
61
+ def ListConfigRules(request)
62
+ body = send_request('ListConfigRules', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = ListConfigRulesResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,549 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Config
19
+ module V20220802
20
+ # 合规详情
21
+ class Annotation < TencentCloud::Common::AbstractModel
22
+ # @param Configuration: 资源当前实际配置。长度为0~256位字符,即资源不合规配置
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Configuration: String
25
+ # @param DesiredValue: 资源期望配置。长度为0~256位字符,即资源合规配置
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type DesiredValue: String
28
+ # @param Operator: 资源当前配置和期望配置之间的比较运算符。长度为0~16位字符,自定义规则上报评估结果此字段可能为空
29
+ # @type Operator: String
30
+ # @param Property: 当前配置在资源属性结构体中的JSON路径。长度为0~256位字符,自定义规则上报评估结果此字段可能为空
31
+ # @type Property: String
32
+
33
+ attr_accessor :Configuration, :DesiredValue, :Operator, :Property
34
+
35
+ def initialize(configuration=nil, desiredvalue=nil, operator=nil, property=nil)
36
+ @Configuration = configuration
37
+ @DesiredValue = desiredvalue
38
+ @Operator = operator
39
+ @Property = property
40
+ end
41
+
42
+ def deserialize(params)
43
+ @Configuration = params['Configuration']
44
+ @DesiredValue = params['DesiredValue']
45
+ @Operator = params['Operator']
46
+ @Property = params['Property']
47
+ end
48
+ end
49
+
50
+ # 规则详情
51
+ class ConfigRule < TencentCloud::Common::AbstractModel
52
+ # @param Identifier: 规则标识
53
+ # 注意:此字段可能返回 null,表示取不到有效值。
54
+ # @type Identifier: String
55
+ # @param RuleName: 规则名
56
+ # 注意:此字段可能返回 null,表示取不到有效值。
57
+ # @type RuleName: String
58
+ # @param InputParameter: 规则参数
59
+ # 注意:此字段可能返回 null,表示取不到有效值。
60
+ # @type InputParameter: Array
61
+ # @param SourceCondition: 规则触发条件
62
+ # 注意:此字段可能返回 null,表示取不到有效值。
63
+ # @type SourceCondition: Array
64
+ # @param ResourceType: 规则支持的资源类型,规则仅对指定资源类型的资源生效。
65
+ # 注意:此字段可能返回 null,表示取不到有效值。
66
+ # @type ResourceType: Array
67
+ # @param Labels: 规则所属标签
68
+ # 注意:此字段可能返回 null,表示取不到有效值。
69
+ # @type Labels: Array
70
+ # @param RiskLevel: 规则风险等级
71
+ # 1:低风险
72
+ # 2:中风险
73
+ # 3:高风险
74
+ # 注意:此字段可能返回 null,表示取不到有效值。
75
+ # @type RiskLevel: Integer
76
+ # @param ServiceFunction: 规则对应的函数
77
+ # 注意:此字段可能返回 null,表示取不到有效值。
78
+ # @type ServiceFunction: String
79
+ # @param CreateTime: 创建时间
80
+ # 格式:YYYY-MM-DD h:i:s
81
+ # 注意:此字段可能返回 null,表示取不到有效值。
82
+ # @type CreateTime: String
83
+ # @param Description: 规则描述
84
+ # 注意:此字段可能返回 null,表示取不到有效值。
85
+ # @type Description: String
86
+ # @param Status: ACTIVE:启用
87
+ # NO_ACTIVE:停止
88
+ # 注意:此字段可能返回 null,表示取不到有效值。
89
+ # @type Status: String
90
+ # @param ComplianceResult: 合规: 'COMPLIANT'
91
+ # 不合规: 'NON_COMPLIANT'
92
+ # 无法应用规则: 'NOT_APPLICABLE'
93
+ # 注意:此字段可能返回 null,表示取不到有效值。
94
+ # @type ComplianceResult: String
95
+ # @param Annotation: ["",""]
96
+ # 注意:此字段可能返回 null,表示取不到有效值。
97
+ # @type Annotation: :class:`Tencentcloud::Config.v20220802.models.Annotation`
98
+ # @param ConfigRuleInvokedTime: 规则评估时间
99
+ # 格式:YYYY-MM-DD h:i:s
100
+
101
+ # 注意:此字段可能返回 null,表示取不到有效值。
102
+ # @type ConfigRuleInvokedTime: String
103
+ # @param ConfigRuleId: 规则ID
104
+ # 注意:此字段可能返回 null,表示取不到有效值。
105
+ # @type ConfigRuleId: String
106
+ # @param IdentifierType: CUSTOMIZE:自定义规则、
107
+ # SYSTEM:托管规则
108
+ # 注意:此字段可能返回 null,表示取不到有效值。
109
+ # @type IdentifierType: String
110
+ # @param CompliancePackId: 合规包ID
111
+ # 注意:此字段可能返回 null,表示取不到有效值。
112
+ # @type CompliancePackId: String
113
+ # @param TriggerType: 触发类型
114
+ # ScheduledNotification:周期触发、
115
+ # ConfigurationItemChangeNotification:变更触发
116
+ # 注意:此字段可能返回 null,表示取不到有效值。
117
+ # @type TriggerType: Array
118
+ # @param ManageInputParameter: 参数详情
119
+ # 注意:此字段可能返回 null,表示取不到有效值。
120
+ # @type ManageInputParameter: Array
121
+ # @param CompliancePackName: 规则名称
122
+ # 注意:此字段可能返回 null,表示取不到有效值。
123
+ # @type CompliancePackName: String
124
+ # @param RegionsScope: 关联地域
125
+ # 注意:此字段可能返回 null,表示取不到有效值。
126
+ # @type RegionsScope: Array
127
+ # @param TagsScope: 关联标签
128
+ # 注意:此字段可能返回 null,表示取不到有效值。
129
+ # @type TagsScope: Array
130
+ # @param ExcludeResourceIdsScope: 规则对指定资源ID无效,即不对该资源执行评估。
131
+ # 注意:此字段可能返回 null,表示取不到有效值。
132
+ # @type ExcludeResourceIdsScope: Array
133
+ # @param AccountGroupId: 账号组ID
134
+ # 注意:此字段可能返回 null,表示取不到有效值。
135
+ # @type AccountGroupId: String
136
+ # @param AccountGroupName: 账号组名称
137
+ # 注意:此字段可能返回 null,表示取不到有效值。
138
+ # @type AccountGroupName: String
139
+ # @param RuleOwnerId: 规则所属用户ID
140
+ # 注意:此字段可能返回 null,表示取不到有效值。
141
+ # @type RuleOwnerId: Integer
142
+ # @param ManageTriggerType: 预设规则支持的触发方式
143
+ # ScheduledNotification:周期触发
144
+ # ConfigurationItemChangeNotification:变更触发
145
+ # @type ManageTriggerType: Array
146
+
147
+ attr_accessor :Identifier, :RuleName, :InputParameter, :SourceCondition, :ResourceType, :Labels, :RiskLevel, :ServiceFunction, :CreateTime, :Description, :Status, :ComplianceResult, :Annotation, :ConfigRuleInvokedTime, :ConfigRuleId, :IdentifierType, :CompliancePackId, :TriggerType, :ManageInputParameter, :CompliancePackName, :RegionsScope, :TagsScope, :ExcludeResourceIdsScope, :AccountGroupId, :AccountGroupName, :RuleOwnerId, :ManageTriggerType
148
+
149
+ def initialize(identifier=nil, rulename=nil, inputparameter=nil, sourcecondition=nil, resourcetype=nil, labels=nil, risklevel=nil, servicefunction=nil, createtime=nil, description=nil, status=nil, complianceresult=nil, annotation=nil, configruleinvokedtime=nil, configruleid=nil, identifiertype=nil, compliancepackid=nil, triggertype=nil, manageinputparameter=nil, compliancepackname=nil, regionsscope=nil, tagsscope=nil, excluderesourceidsscope=nil, accountgroupid=nil, accountgroupname=nil, ruleownerid=nil, managetriggertype=nil)
150
+ @Identifier = identifier
151
+ @RuleName = rulename
152
+ @InputParameter = inputparameter
153
+ @SourceCondition = sourcecondition
154
+ @ResourceType = resourcetype
155
+ @Labels = labels
156
+ @RiskLevel = risklevel
157
+ @ServiceFunction = servicefunction
158
+ @CreateTime = createtime
159
+ @Description = description
160
+ @Status = status
161
+ @ComplianceResult = complianceresult
162
+ @Annotation = annotation
163
+ @ConfigRuleInvokedTime = configruleinvokedtime
164
+ @ConfigRuleId = configruleid
165
+ @IdentifierType = identifiertype
166
+ @CompliancePackId = compliancepackid
167
+ @TriggerType = triggertype
168
+ @ManageInputParameter = manageinputparameter
169
+ @CompliancePackName = compliancepackname
170
+ @RegionsScope = regionsscope
171
+ @TagsScope = tagsscope
172
+ @ExcludeResourceIdsScope = excluderesourceidsscope
173
+ @AccountGroupId = accountgroupid
174
+ @AccountGroupName = accountgroupname
175
+ @RuleOwnerId = ruleownerid
176
+ @ManageTriggerType = managetriggertype
177
+ end
178
+
179
+ def deserialize(params)
180
+ @Identifier = params['Identifier']
181
+ @RuleName = params['RuleName']
182
+ unless params['InputParameter'].nil?
183
+ @InputParameter = []
184
+ params['InputParameter'].each do |i|
185
+ inputparameter_tmp = InputParameter.new
186
+ inputparameter_tmp.deserialize(i)
187
+ @InputParameter << inputparameter_tmp
188
+ end
189
+ end
190
+ unless params['SourceCondition'].nil?
191
+ @SourceCondition = []
192
+ params['SourceCondition'].each do |i|
193
+ sourceconditionformanage_tmp = SourceConditionForManage.new
194
+ sourceconditionformanage_tmp.deserialize(i)
195
+ @SourceCondition << sourceconditionformanage_tmp
196
+ end
197
+ end
198
+ @ResourceType = params['ResourceType']
199
+ @Labels = params['Labels']
200
+ @RiskLevel = params['RiskLevel']
201
+ @ServiceFunction = params['ServiceFunction']
202
+ @CreateTime = params['CreateTime']
203
+ @Description = params['Description']
204
+ @Status = params['Status']
205
+ @ComplianceResult = params['ComplianceResult']
206
+ unless params['Annotation'].nil?
207
+ @Annotation = Annotation.new
208
+ @Annotation.deserialize(params['Annotation'])
209
+ end
210
+ @ConfigRuleInvokedTime = params['ConfigRuleInvokedTime']
211
+ @ConfigRuleId = params['ConfigRuleId']
212
+ @IdentifierType = params['IdentifierType']
213
+ @CompliancePackId = params['CompliancePackId']
214
+ unless params['TriggerType'].nil?
215
+ @TriggerType = []
216
+ params['TriggerType'].each do |i|
217
+ triggertype_tmp = TriggerType.new
218
+ triggertype_tmp.deserialize(i)
219
+ @TriggerType << triggertype_tmp
220
+ end
221
+ end
222
+ unless params['ManageInputParameter'].nil?
223
+ @ManageInputParameter = []
224
+ params['ManageInputParameter'].each do |i|
225
+ inputparameterformanage_tmp = InputParameterForManage.new
226
+ inputparameterformanage_tmp.deserialize(i)
227
+ @ManageInputParameter << inputparameterformanage_tmp
228
+ end
229
+ end
230
+ @CompliancePackName = params['CompliancePackName']
231
+ @RegionsScope = params['RegionsScope']
232
+ unless params['TagsScope'].nil?
233
+ @TagsScope = []
234
+ params['TagsScope'].each do |i|
235
+ tag_tmp = Tag.new
236
+ tag_tmp.deserialize(i)
237
+ @TagsScope << tag_tmp
238
+ end
239
+ end
240
+ @ExcludeResourceIdsScope = params['ExcludeResourceIdsScope']
241
+ @AccountGroupId = params['AccountGroupId']
242
+ @AccountGroupName = params['AccountGroupName']
243
+ @RuleOwnerId = params['RuleOwnerId']
244
+ @ManageTriggerType = params['ManageTriggerType']
245
+ end
246
+ end
247
+
248
+ # 参数值
249
+ class InputParameter < TencentCloud::Common::AbstractModel
250
+ # @param ParameterKey: 参数名
251
+ # @type ParameterKey: String
252
+ # @param Type: 参数类型。必填类型:Require,可选类型:Optional。
253
+ # @type Type: String
254
+ # @param Value: 参数值
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type Value: String
257
+
258
+ attr_accessor :ParameterKey, :Type, :Value
259
+
260
+ def initialize(parameterkey=nil, type=nil, value=nil)
261
+ @ParameterKey = parameterkey
262
+ @Type = type
263
+ @Value = value
264
+ end
265
+
266
+ def deserialize(params)
267
+ @ParameterKey = params['ParameterKey']
268
+ @Type = params['Type']
269
+ @Value = params['Value']
270
+ end
271
+ end
272
+
273
+ # 规则入参
274
+ class InputParameterForManage < TencentCloud::Common::AbstractModel
275
+ # @param ValueType: 值类型。数值:Integer, 字符串:String
276
+ # 注意:此字段可能返回 null,表示取不到有效值。
277
+ # @type ValueType: String
278
+ # @param ParameterKey: 参数Key
279
+ # 注意:此字段可能返回 null,表示取不到有效值。
280
+ # @type ParameterKey: String
281
+ # @param Type: 参数类型。必填类型:Require,可选类型:Optional。
282
+ # 注意:此字段可能返回 null,表示取不到有效值。
283
+ # @type Type: String
284
+ # @param DefaultValue: 默认值
285
+ # 注意:此字段可能返回 null,表示取不到有效值。
286
+ # @type DefaultValue: String
287
+ # @param Description: 描述
288
+ # 注意:此字段可能返回 null,表示取不到有效值。
289
+ # @type Description: String
290
+
291
+ attr_accessor :ValueType, :ParameterKey, :Type, :DefaultValue, :Description
292
+
293
+ def initialize(valuetype=nil, parameterkey=nil, type=nil, defaultvalue=nil, description=nil)
294
+ @ValueType = valuetype
295
+ @ParameterKey = parameterkey
296
+ @Type = type
297
+ @DefaultValue = defaultvalue
298
+ @Description = description
299
+ end
300
+
301
+ def deserialize(params)
302
+ @ValueType = params['ValueType']
303
+ @ParameterKey = params['ParameterKey']
304
+ @Type = params['Type']
305
+ @DefaultValue = params['DefaultValue']
306
+ @Description = params['Description']
307
+ end
308
+ end
309
+
310
+ # ListAggregateConfigRules请求参数结构体
311
+ class ListAggregateConfigRulesRequest < TencentCloud::Common::AbstractModel
312
+ # @param Limit: 每页限制
313
+ # @type Limit: Integer
314
+ # @param Offset: 偏移量
315
+ # @type Offset: Integer
316
+ # @param AccountGroupId: 账号组ID
317
+ # @type AccountGroupId: String
318
+ # @param OrderType: 排序类型, 倒序:desc,顺序:asc
319
+ # @type OrderType: String
320
+ # @param RiskLevel: 风险等级
321
+ # 1:高风险。
322
+ # 2:中风险。
323
+ # 3:低风险。
324
+ # @type RiskLevel: Array
325
+ # @param State: 规则状态
326
+ # @type State: String
327
+ # @param ComplianceResult: 评估结果
328
+ # @type ComplianceResult: Array
329
+ # @param RuleName: 规则名
330
+ # @type RuleName: String
331
+ # @param RuleOwnerId: 规则所属账号ID
332
+ # @type RuleOwnerId: Integer
333
+
334
+ attr_accessor :Limit, :Offset, :AccountGroupId, :OrderType, :RiskLevel, :State, :ComplianceResult, :RuleName, :RuleOwnerId
335
+
336
+ def initialize(limit=nil, offset=nil, accountgroupid=nil, ordertype=nil, risklevel=nil, state=nil, complianceresult=nil, rulename=nil, ruleownerid=nil)
337
+ @Limit = limit
338
+ @Offset = offset
339
+ @AccountGroupId = accountgroupid
340
+ @OrderType = ordertype
341
+ @RiskLevel = risklevel
342
+ @State = state
343
+ @ComplianceResult = complianceresult
344
+ @RuleName = rulename
345
+ @RuleOwnerId = ruleownerid
346
+ end
347
+
348
+ def deserialize(params)
349
+ @Limit = params['Limit']
350
+ @Offset = params['Offset']
351
+ @AccountGroupId = params['AccountGroupId']
352
+ @OrderType = params['OrderType']
353
+ @RiskLevel = params['RiskLevel']
354
+ @State = params['State']
355
+ @ComplianceResult = params['ComplianceResult']
356
+ @RuleName = params['RuleName']
357
+ @RuleOwnerId = params['RuleOwnerId']
358
+ end
359
+ end
360
+
361
+ # ListAggregateConfigRules返回参数结构体
362
+ class ListAggregateConfigRulesResponse < TencentCloud::Common::AbstractModel
363
+ # @param Total: 总数
364
+ # @type Total: Integer
365
+ # @param Items: 详情
366
+ # @type Items: Array
367
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
368
+ # @type RequestId: String
369
+
370
+ attr_accessor :Total, :Items, :RequestId
371
+
372
+ def initialize(total=nil, items=nil, requestid=nil)
373
+ @Total = total
374
+ @Items = items
375
+ @RequestId = requestid
376
+ end
377
+
378
+ def deserialize(params)
379
+ @Total = params['Total']
380
+ unless params['Items'].nil?
381
+ @Items = []
382
+ params['Items'].each do |i|
383
+ configrule_tmp = ConfigRule.new
384
+ configrule_tmp.deserialize(i)
385
+ @Items << configrule_tmp
386
+ end
387
+ end
388
+ @RequestId = params['RequestId']
389
+ end
390
+ end
391
+
392
+ # ListConfigRules请求参数结构体
393
+ class ListConfigRulesRequest < TencentCloud::Common::AbstractModel
394
+ # @param Limit: 每页限制
395
+ # @type Limit: Integer
396
+ # @param Offset: 偏移量
397
+ # @type Offset: Integer
398
+ # @param OrderType: 排序类型, 倒序:desc,顺序:asc
399
+ # @type OrderType: String
400
+ # @param RiskLevel: 风险等级
401
+ # 1:高风险。
402
+ # 2:中风险。
403
+ # 3:低风险。
404
+ # @type RiskLevel: Array
405
+ # @param State: 规则状态
406
+ # @type State: String
407
+ # @param ComplianceResult: 评估结果
408
+ # @type ComplianceResult: Array
409
+ # @param RuleName: 规则名
410
+ # @type RuleName: String
411
+
412
+ attr_accessor :Limit, :Offset, :OrderType, :RiskLevel, :State, :ComplianceResult, :RuleName
413
+
414
+ def initialize(limit=nil, offset=nil, ordertype=nil, risklevel=nil, state=nil, complianceresult=nil, rulename=nil)
415
+ @Limit = limit
416
+ @Offset = offset
417
+ @OrderType = ordertype
418
+ @RiskLevel = risklevel
419
+ @State = state
420
+ @ComplianceResult = complianceresult
421
+ @RuleName = rulename
422
+ end
423
+
424
+ def deserialize(params)
425
+ @Limit = params['Limit']
426
+ @Offset = params['Offset']
427
+ @OrderType = params['OrderType']
428
+ @RiskLevel = params['RiskLevel']
429
+ @State = params['State']
430
+ @ComplianceResult = params['ComplianceResult']
431
+ @RuleName = params['RuleName']
432
+ end
433
+ end
434
+
435
+ # ListConfigRules返回参数结构体
436
+ class ListConfigRulesResponse < TencentCloud::Common::AbstractModel
437
+ # @param Total: 总数
438
+ # @type Total: Integer
439
+ # @param Items: 详情
440
+ # @type Items: Array
441
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
442
+ # @type RequestId: String
443
+
444
+ attr_accessor :Total, :Items, :RequestId
445
+
446
+ def initialize(total=nil, items=nil, requestid=nil)
447
+ @Total = total
448
+ @Items = items
449
+ @RequestId = requestid
450
+ end
451
+
452
+ def deserialize(params)
453
+ @Total = params['Total']
454
+ unless params['Items'].nil?
455
+ @Items = []
456
+ params['Items'].each do |i|
457
+ configrule_tmp = ConfigRule.new
458
+ configrule_tmp.deserialize(i)
459
+ @Items << configrule_tmp
460
+ end
461
+ end
462
+ @RequestId = params['RequestId']
463
+ end
464
+ end
465
+
466
+ # 管理端规则条件
467
+ class SourceConditionForManage < TencentCloud::Common::AbstractModel
468
+ # @param EmptyAs: 条件为空,合规:COMPLIANT,不合规:NON_COMPLIANT,无法应用:NOT_APPLICABLE
469
+ # 注意:此字段可能返回 null,表示取不到有效值。
470
+ # @type EmptyAs: String
471
+ # @param SelectPath: 配置路径
472
+ # 注意:此字段可能返回 null,表示取不到有效值。
473
+ # @type SelectPath: String
474
+ # @param Operator: 操作运算符
475
+ # 注意:此字段可能返回 null,表示取不到有效值。
476
+ # @type Operator: String
477
+ # @param Required: 是否必须
478
+ # 注意:此字段可能返回 null,表示取不到有效值。
479
+ # @type Required: Boolean
480
+ # @param DesiredValue: 期望值
481
+ # 注意:此字段可能返回 null,表示取不到有效值。
482
+ # @type DesiredValue: String
483
+
484
+ attr_accessor :EmptyAs, :SelectPath, :Operator, :Required, :DesiredValue
485
+
486
+ def initialize(emptyas=nil, selectpath=nil, operator=nil, required=nil, desiredvalue=nil)
487
+ @EmptyAs = emptyas
488
+ @SelectPath = selectpath
489
+ @Operator = operator
490
+ @Required = required
491
+ @DesiredValue = desiredvalue
492
+ end
493
+
494
+ def deserialize(params)
495
+ @EmptyAs = params['EmptyAs']
496
+ @SelectPath = params['SelectPath']
497
+ @Operator = params['Operator']
498
+ @Required = params['Required']
499
+ @DesiredValue = params['DesiredValue']
500
+ end
501
+ end
502
+
503
+ # 标签
504
+ class Tag < TencentCloud::Common::AbstractModel
505
+ # @param TagKey: 标签key
506
+ # 注意:此字段可能返回 null,表示取不到有效值。
507
+ # @type TagKey: String
508
+ # @param TagValue: 标签value
509
+ # 注意:此字段可能返回 null,表示取不到有效值。
510
+ # @type TagValue: String
511
+
512
+ attr_accessor :TagKey, :TagValue
513
+
514
+ def initialize(tagkey=nil, tagvalue=nil)
515
+ @TagKey = tagkey
516
+ @TagValue = tagvalue
517
+ end
518
+
519
+ def deserialize(params)
520
+ @TagKey = params['TagKey']
521
+ @TagValue = params['TagValue']
522
+ end
523
+ end
524
+
525
+ # 规则支持触发类型
526
+ class TriggerType < TencentCloud::Common::AbstractModel
527
+ # @param MessageType: 触发类型
528
+ # @type MessageType: String
529
+ # @param MaximumExecutionFrequency: 触发时间周期
530
+ # 注意:此字段可能返回 null,表示取不到有效值。
531
+ # @type MaximumExecutionFrequency: String
532
+
533
+ attr_accessor :MessageType, :MaximumExecutionFrequency
534
+
535
+ def initialize(messagetype=nil, maximumexecutionfrequency=nil)
536
+ @MessageType = messagetype
537
+ @MaximumExecutionFrequency = maximumexecutionfrequency
538
+ end
539
+
540
+ def deserialize(params)
541
+ @MessageType = params['MessageType']
542
+ @MaximumExecutionFrequency = params['MaximumExecutionFrequency']
543
+ end
544
+ end
545
+
546
+ end
547
+ end
548
+ end
549
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-config
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.709
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ CONFIG.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/tencentcloud-sdk-config.rb
37
+ - lib/v20220802/models.rb
38
+ - lib/v20220802/client.rb
39
+ - lib/VERSION
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-config
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - CONFIG
66
+ test_files: []