tencentcloud-sdk-eb 1.0.237

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1903 @@
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 Eb
19
+ module V20210416
20
+ # APIGWParams描述
21
+ class APIGWParams < TencentCloud::Common::AbstractModel
22
+ # @param Protocol: HTTPS
23
+ # @type Protocol: String
24
+ # @param Method: POST
25
+ # @type Method: String
26
+
27
+ attr_accessor :Protocol, :Method
28
+
29
+ def initialize(protocol=nil, method=nil)
30
+ @Protocol = protocol
31
+ @Method = method
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Protocol = params['Protocol']
36
+ @Method = params['Method']
37
+ end
38
+ end
39
+
40
+ # CheckRule请求参数结构体
41
+ class CheckRuleRequest < TencentCloud::Common::AbstractModel
42
+
43
+
44
+ def initialize()
45
+ end
46
+
47
+ def deserialize(params)
48
+ end
49
+ end
50
+
51
+ # CheckRule返回参数结构体
52
+ class CheckRuleResponse < TencentCloud::Common::AbstractModel
53
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
54
+ # @type RequestId: String
55
+
56
+ attr_accessor :RequestId
57
+
58
+ def initialize(requestid=nil)
59
+ @RequestId = requestid
60
+ end
61
+
62
+ def deserialize(params)
63
+ @RequestId = params['RequestId']
64
+ end
65
+ end
66
+
67
+ # CheckTransformation请求参数结构体
68
+ class CheckTransformationRequest < TencentCloud::Common::AbstractModel
69
+ # @param Input: 待处理的json字符串
70
+ # @type Input: String
71
+ # @param Transformations: 一个转换规则列表
72
+ # @type Transformations: Array
73
+
74
+ attr_accessor :Input, :Transformations
75
+
76
+ def initialize(input=nil, transformations=nil)
77
+ @Input = input
78
+ @Transformations = transformations
79
+ end
80
+
81
+ def deserialize(params)
82
+ @Input = params['Input']
83
+ unless params['Transformations'].nil?
84
+ @Transformations = []
85
+ params['Transformations'].each do |i|
86
+ transformation_tmp = Transformation.new
87
+ transformation_tmp.deserialize(i)
88
+ @Transformations << transformation_tmp
89
+ end
90
+ end
91
+ end
92
+ end
93
+
94
+ # CheckTransformation返回参数结构体
95
+ class CheckTransformationResponse < TencentCloud::Common::AbstractModel
96
+ # @param Output: 经过Transformations处理之后的数据
97
+ # @type Output: String
98
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
99
+ # @type RequestId: String
100
+
101
+ attr_accessor :Output, :RequestId
102
+
103
+ def initialize(output=nil, requestid=nil)
104
+ @Output = output
105
+ @RequestId = requestid
106
+ end
107
+
108
+ def deserialize(params)
109
+ @Output = params['Output']
110
+ @RequestId = params['RequestId']
111
+ end
112
+ end
113
+
114
+ # 用来描述需要投递到kafka topic的参数
115
+ class CkafkaDeliveryParams < TencentCloud::Common::AbstractModel
116
+ # @param TopicName: ckafka topic name
117
+ # @type TopicName: String
118
+ # @param ResourceDescription: ckafka资源qcs六段式
119
+ # @type ResourceDescription: String
120
+
121
+ attr_accessor :TopicName, :ResourceDescription
122
+
123
+ def initialize(topicname=nil, resourcedescription=nil)
124
+ @TopicName = topicname
125
+ @ResourceDescription = resourcedescription
126
+ end
127
+
128
+ def deserialize(params)
129
+ @TopicName = params['TopicName']
130
+ @ResourceDescription = params['ResourceDescription']
131
+ end
132
+ end
133
+
134
+ # Ckafka 连接器参数
135
+ class CkafkaParams < TencentCloud::Common::AbstractModel
136
+ # @param Offset: kafka offset
137
+ # @type Offset: String
138
+ # @param TopicName: ckafka topic
139
+ # @type TopicName: String
140
+
141
+ attr_accessor :Offset, :TopicName
142
+
143
+ def initialize(offset=nil, topicname=nil)
144
+ @Offset = offset
145
+ @TopicName = topicname
146
+ end
147
+
148
+ def deserialize(params)
149
+ @Offset = params['Offset']
150
+ @TopicName = params['TopicName']
151
+ end
152
+ end
153
+
154
+ # 用来描述ckafka投递目标
155
+ class CkafkaTargetParams < TencentCloud::Common::AbstractModel
156
+ # @param TopicName: 要投递到的ckafka topic
157
+ # @type TopicName: String
158
+ # @param RetryPolicy: 重试策略
159
+ # @type RetryPolicy: :class:`Tencentcloud::Eb.v20210416.models.RetryPolicy`
160
+
161
+ attr_accessor :TopicName, :RetryPolicy
162
+
163
+ def initialize(topicname=nil, retrypolicy=nil)
164
+ @TopicName = topicname
165
+ @RetryPolicy = retrypolicy
166
+ end
167
+
168
+ def deserialize(params)
169
+ @TopicName = params['TopicName']
170
+ unless params['RetryPolicy'].nil?
171
+ @RetryPolicy = RetryPolicy.new
172
+ @RetryPolicy.deserialize(params['RetryPolicy'])
173
+ end
174
+ end
175
+ end
176
+
177
+ # Connection信息
178
+ class Connection < TencentCloud::Common::AbstractModel
179
+ # @param Status: 状态
180
+ # @type Status: String
181
+ # @param ModTime: 更新时间
182
+ # @type ModTime: String
183
+ # @param Enable: 使能开关
184
+ # @type Enable: Boolean
185
+ # @param Description: 描述
186
+ # @type Description: String
187
+ # @param AddTime: 创建时间
188
+ # @type AddTime: String
189
+ # @param ConnectionId: 连接器ID
190
+ # @type ConnectionId: String
191
+ # @param EventBusId: 事件集ID
192
+ # @type EventBusId: String
193
+ # @param ConnectionDescription: 连接器描述
194
+ # @type ConnectionDescription: :class:`Tencentcloud::Eb.v20210416.models.ConnectionDescription`
195
+ # @param ConnectionName: 连接器名称
196
+ # @type ConnectionName: String
197
+ # @param Type: 类型
198
+ # @type Type: String
199
+
200
+ attr_accessor :Status, :ModTime, :Enable, :Description, :AddTime, :ConnectionId, :EventBusId, :ConnectionDescription, :ConnectionName, :Type
201
+
202
+ def initialize(status=nil, modtime=nil, enable=nil, description=nil, addtime=nil, connectionid=nil, eventbusid=nil, connectiondescription=nil, connectionname=nil, type=nil)
203
+ @Status = status
204
+ @ModTime = modtime
205
+ @Enable = enable
206
+ @Description = description
207
+ @AddTime = addtime
208
+ @ConnectionId = connectionid
209
+ @EventBusId = eventbusid
210
+ @ConnectionDescription = connectiondescription
211
+ @ConnectionName = connectionname
212
+ @Type = type
213
+ end
214
+
215
+ def deserialize(params)
216
+ @Status = params['Status']
217
+ @ModTime = params['ModTime']
218
+ @Enable = params['Enable']
219
+ @Description = params['Description']
220
+ @AddTime = params['AddTime']
221
+ @ConnectionId = params['ConnectionId']
222
+ @EventBusId = params['EventBusId']
223
+ unless params['ConnectionDescription'].nil?
224
+ @ConnectionDescription = ConnectionDescription.new
225
+ @ConnectionDescription.deserialize(params['ConnectionDescription'])
226
+ end
227
+ @ConnectionName = params['ConnectionName']
228
+ @Type = params['Type']
229
+ end
230
+ end
231
+
232
+ # ConnectionDescription描述
233
+ class ConnectionDescription < TencentCloud::Common::AbstractModel
234
+ # @param ResourceDescription: 资源qcs六段式,更多参考 [资源六段式](https://cloud.tencent.com/document/product/598/10606)
235
+ # @type ResourceDescription: String
236
+ # @param APIGWParams: apigw参数
237
+ # 注意:此字段可能返回 null,表示取不到有效值。
238
+ # @type APIGWParams: :class:`Tencentcloud::Eb.v20210416.models.APIGWParams`
239
+ # @param CkafkaParams: ckafka参数
240
+ # 注意:此字段可能返回 null,表示取不到有效值。
241
+ # @type CkafkaParams: :class:`Tencentcloud::Eb.v20210416.models.CkafkaParams`
242
+
243
+ attr_accessor :ResourceDescription, :APIGWParams, :CkafkaParams
244
+
245
+ def initialize(resourcedescription=nil, apigwparams=nil, ckafkaparams=nil)
246
+ @ResourceDescription = resourcedescription
247
+ @APIGWParams = apigwparams
248
+ @CkafkaParams = ckafkaparams
249
+ end
250
+
251
+ def deserialize(params)
252
+ @ResourceDescription = params['ResourceDescription']
253
+ unless params['APIGWParams'].nil?
254
+ @APIGWParams = APIGWParams.new
255
+ @APIGWParams.deserialize(params['APIGWParams'])
256
+ end
257
+ unless params['CkafkaParams'].nil?
258
+ @CkafkaParams = CkafkaParams.new
259
+ @CkafkaParams.deserialize(params['CkafkaParams'])
260
+ end
261
+ end
262
+ end
263
+
264
+ # CreateConnection请求参数结构体
265
+ class CreateConnectionRequest < TencentCloud::Common::AbstractModel
266
+ # @param ConnectionDescription: 连接器描述
267
+ # @type ConnectionDescription: :class:`Tencentcloud::Eb.v20210416.models.ConnectionDescription`
268
+ # @param EventBusId: 事件集ID
269
+ # @type EventBusId: String
270
+ # @param ConnectionName: 连接器名称
271
+ # @type ConnectionName: String
272
+ # @param Description: 描述
273
+ # @type Description: String
274
+ # @param Enable: 使能开关
275
+ # @type Enable: Boolean
276
+ # @param Type: 类型
277
+ # @type Type: String
278
+
279
+ attr_accessor :ConnectionDescription, :EventBusId, :ConnectionName, :Description, :Enable, :Type
280
+
281
+ def initialize(connectiondescription=nil, eventbusid=nil, connectionname=nil, description=nil, enable=nil, type=nil)
282
+ @ConnectionDescription = connectiondescription
283
+ @EventBusId = eventbusid
284
+ @ConnectionName = connectionname
285
+ @Description = description
286
+ @Enable = enable
287
+ @Type = type
288
+ end
289
+
290
+ def deserialize(params)
291
+ unless params['ConnectionDescription'].nil?
292
+ @ConnectionDescription = ConnectionDescription.new
293
+ @ConnectionDescription.deserialize(params['ConnectionDescription'])
294
+ end
295
+ @EventBusId = params['EventBusId']
296
+ @ConnectionName = params['ConnectionName']
297
+ @Description = params['Description']
298
+ @Enable = params['Enable']
299
+ @Type = params['Type']
300
+ end
301
+ end
302
+
303
+ # CreateConnection返回参数结构体
304
+ class CreateConnectionResponse < TencentCloud::Common::AbstractModel
305
+ # @param ConnectionId: 连接器ID
306
+ # @type ConnectionId: String
307
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
308
+ # @type RequestId: String
309
+
310
+ attr_accessor :ConnectionId, :RequestId
311
+
312
+ def initialize(connectionid=nil, requestid=nil)
313
+ @ConnectionId = connectionid
314
+ @RequestId = requestid
315
+ end
316
+
317
+ def deserialize(params)
318
+ @ConnectionId = params['ConnectionId']
319
+ @RequestId = params['RequestId']
320
+ end
321
+ end
322
+
323
+ # CreateEventBus请求参数结构体
324
+ class CreateEventBusRequest < TencentCloud::Common::AbstractModel
325
+ # @param EventBusName: 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
326
+ # @type EventBusName: String
327
+ # @param Description: 事件集描述,不限字符类型,200字符描述以内
328
+ # @type Description: String
329
+
330
+ attr_accessor :EventBusName, :Description
331
+
332
+ def initialize(eventbusname=nil, description=nil)
333
+ @EventBusName = eventbusname
334
+ @Description = description
335
+ end
336
+
337
+ def deserialize(params)
338
+ @EventBusName = params['EventBusName']
339
+ @Description = params['Description']
340
+ end
341
+ end
342
+
343
+ # CreateEventBus返回参数结构体
344
+ class CreateEventBusResponse < TencentCloud::Common::AbstractModel
345
+ # @param EventBusId: 事件集ID
346
+ # @type EventBusId: String
347
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
348
+ # @type RequestId: String
349
+
350
+ attr_accessor :EventBusId, :RequestId
351
+
352
+ def initialize(eventbusid=nil, requestid=nil)
353
+ @EventBusId = eventbusid
354
+ @RequestId = requestid
355
+ end
356
+
357
+ def deserialize(params)
358
+ @EventBusId = params['EventBusId']
359
+ @RequestId = params['RequestId']
360
+ end
361
+ end
362
+
363
+ # CreateRule请求参数结构体
364
+ class CreateRuleRequest < TencentCloud::Common::AbstractModel
365
+ # @param EventPattern: 参考:[事件模式](https://cloud.tencent.com/document/product/1359/56084)
366
+ # @type EventPattern: String
367
+ # @param EventBusId: 事件集ID。
368
+ # @type EventBusId: String
369
+ # @param RuleName: 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
370
+ # @type RuleName: String
371
+ # @param Enable: 使能开关。
372
+ # @type Enable: Boolean
373
+ # @param Description: 事件集描述,不限字符类型,200字符描述以内
374
+ # @type Description: String
375
+
376
+ attr_accessor :EventPattern, :EventBusId, :RuleName, :Enable, :Description
377
+
378
+ def initialize(eventpattern=nil, eventbusid=nil, rulename=nil, enable=nil, description=nil)
379
+ @EventPattern = eventpattern
380
+ @EventBusId = eventbusid
381
+ @RuleName = rulename
382
+ @Enable = enable
383
+ @Description = description
384
+ end
385
+
386
+ def deserialize(params)
387
+ @EventPattern = params['EventPattern']
388
+ @EventBusId = params['EventBusId']
389
+ @RuleName = params['RuleName']
390
+ @Enable = params['Enable']
391
+ @Description = params['Description']
392
+ end
393
+ end
394
+
395
+ # CreateRule返回参数结构体
396
+ class CreateRuleResponse < TencentCloud::Common::AbstractModel
397
+ # @param RuleId: 事件规则ID
398
+ # @type RuleId: String
399
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
400
+ # @type RequestId: String
401
+
402
+ attr_accessor :RuleId, :RequestId
403
+
404
+ def initialize(ruleid=nil, requestid=nil)
405
+ @RuleId = ruleid
406
+ @RequestId = requestid
407
+ end
408
+
409
+ def deserialize(params)
410
+ @RuleId = params['RuleId']
411
+ @RequestId = params['RequestId']
412
+ end
413
+ end
414
+
415
+ # CreateTarget请求参数结构体
416
+ class CreateTargetRequest < TencentCloud::Common::AbstractModel
417
+ # @param EventBusId: 事件集ID
418
+ # @type EventBusId: String
419
+ # @param Type: 目标类型
420
+ # @type Type: String
421
+ # @param TargetDescription: 目标描述
422
+ # @type TargetDescription: :class:`Tencentcloud::Eb.v20210416.models.TargetDescription`
423
+ # @param RuleId: 事件规则ID
424
+ # @type RuleId: String
425
+
426
+ attr_accessor :EventBusId, :Type, :TargetDescription, :RuleId
427
+
428
+ def initialize(eventbusid=nil, type=nil, targetdescription=nil, ruleid=nil)
429
+ @EventBusId = eventbusid
430
+ @Type = type
431
+ @TargetDescription = targetdescription
432
+ @RuleId = ruleid
433
+ end
434
+
435
+ def deserialize(params)
436
+ @EventBusId = params['EventBusId']
437
+ @Type = params['Type']
438
+ unless params['TargetDescription'].nil?
439
+ @TargetDescription = TargetDescription.new
440
+ @TargetDescription.deserialize(params['TargetDescription'])
441
+ end
442
+ @RuleId = params['RuleId']
443
+ end
444
+ end
445
+
446
+ # CreateTarget返回参数结构体
447
+ class CreateTargetResponse < TencentCloud::Common::AbstractModel
448
+ # @param TargetId: 目标ID
449
+ # @type TargetId: String
450
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
451
+ # @type RequestId: String
452
+
453
+ attr_accessor :TargetId, :RequestId
454
+
455
+ def initialize(targetid=nil, requestid=nil)
456
+ @TargetId = targetid
457
+ @RequestId = requestid
458
+ end
459
+
460
+ def deserialize(params)
461
+ @TargetId = params['TargetId']
462
+ @RequestId = params['RequestId']
463
+ end
464
+ end
465
+
466
+ # CreateTransformation请求参数结构体
467
+ class CreateTransformationRequest < TencentCloud::Common::AbstractModel
468
+ # @param EventBusId: 事件总线 id
469
+ # @type EventBusId: String
470
+ # @param RuleId: 规则id
471
+ # @type RuleId: String
472
+ # @param Transformations: 一个转换规则列表,当前仅限定一个
473
+ # @type Transformations: Array
474
+
475
+ attr_accessor :EventBusId, :RuleId, :Transformations
476
+
477
+ def initialize(eventbusid=nil, ruleid=nil, transformations=nil)
478
+ @EventBusId = eventbusid
479
+ @RuleId = ruleid
480
+ @Transformations = transformations
481
+ end
482
+
483
+ def deserialize(params)
484
+ @EventBusId = params['EventBusId']
485
+ @RuleId = params['RuleId']
486
+ unless params['Transformations'].nil?
487
+ @Transformations = []
488
+ params['Transformations'].each do |i|
489
+ transformation_tmp = Transformation.new
490
+ transformation_tmp.deserialize(i)
491
+ @Transformations << transformation_tmp
492
+ end
493
+ end
494
+ end
495
+ end
496
+
497
+ # CreateTransformation返回参数结构体
498
+ class CreateTransformationResponse < TencentCloud::Common::AbstractModel
499
+ # @param TransformationId: 生成的转换器id
500
+ # @type TransformationId: String
501
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
502
+ # @type RequestId: String
503
+
504
+ attr_accessor :TransformationId, :RequestId
505
+
506
+ def initialize(transformationid=nil, requestid=nil)
507
+ @TransformationId = transformationid
508
+ @RequestId = requestid
509
+ end
510
+
511
+ def deserialize(params)
512
+ @TransformationId = params['TransformationId']
513
+ @RequestId = params['RequestId']
514
+ end
515
+ end
516
+
517
+ # rule对应的dlq配置
518
+ class DeadLetterConfig < TencentCloud::Common::AbstractModel
519
+ # @param DisposeMethod: 支持dlq、丢弃、忽略错误继续传递三种模式, 分别对应: DLQ,DROP,IGNORE_ERROR
520
+ # @type DisposeMethod: String
521
+ # @param CkafkaDeliveryParams: 设置了DLQ方式后,此选项必填. 错误消息会被投递到对应的kafka topic中
522
+ # 注意:此字段可能返回 null,表示取不到有效值。
523
+ # @type CkafkaDeliveryParams: :class:`Tencentcloud::Eb.v20210416.models.CkafkaDeliveryParams`
524
+
525
+ attr_accessor :DisposeMethod, :CkafkaDeliveryParams
526
+
527
+ def initialize(disposemethod=nil, ckafkadeliveryparams=nil)
528
+ @DisposeMethod = disposemethod
529
+ @CkafkaDeliveryParams = ckafkadeliveryparams
530
+ end
531
+
532
+ def deserialize(params)
533
+ @DisposeMethod = params['DisposeMethod']
534
+ unless params['CkafkaDeliveryParams'].nil?
535
+ @CkafkaDeliveryParams = CkafkaDeliveryParams.new
536
+ @CkafkaDeliveryParams.deserialize(params['CkafkaDeliveryParams'])
537
+ end
538
+ end
539
+ end
540
+
541
+ # DeleteConnection请求参数结构体
542
+ class DeleteConnectionRequest < TencentCloud::Common::AbstractModel
543
+ # @param ConnectionId: 连接器ID
544
+ # @type ConnectionId: String
545
+ # @param EventBusId: 事件集ID
546
+ # @type EventBusId: String
547
+
548
+ attr_accessor :ConnectionId, :EventBusId
549
+
550
+ def initialize(connectionid=nil, eventbusid=nil)
551
+ @ConnectionId = connectionid
552
+ @EventBusId = eventbusid
553
+ end
554
+
555
+ def deserialize(params)
556
+ @ConnectionId = params['ConnectionId']
557
+ @EventBusId = params['EventBusId']
558
+ end
559
+ end
560
+
561
+ # DeleteConnection返回参数结构体
562
+ class DeleteConnectionResponse < TencentCloud::Common::AbstractModel
563
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
564
+ # @type RequestId: String
565
+
566
+ attr_accessor :RequestId
567
+
568
+ def initialize(requestid=nil)
569
+ @RequestId = requestid
570
+ end
571
+
572
+ def deserialize(params)
573
+ @RequestId = params['RequestId']
574
+ end
575
+ end
576
+
577
+ # DeleteEventBus请求参数结构体
578
+ class DeleteEventBusRequest < TencentCloud::Common::AbstractModel
579
+ # @param EventBusId: 事件集ID
580
+ # @type EventBusId: String
581
+
582
+ attr_accessor :EventBusId
583
+
584
+ def initialize(eventbusid=nil)
585
+ @EventBusId = eventbusid
586
+ end
587
+
588
+ def deserialize(params)
589
+ @EventBusId = params['EventBusId']
590
+ end
591
+ end
592
+
593
+ # DeleteEventBus返回参数结构体
594
+ class DeleteEventBusResponse < TencentCloud::Common::AbstractModel
595
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
596
+ # @type RequestId: String
597
+
598
+ attr_accessor :RequestId
599
+
600
+ def initialize(requestid=nil)
601
+ @RequestId = requestid
602
+ end
603
+
604
+ def deserialize(params)
605
+ @RequestId = params['RequestId']
606
+ end
607
+ end
608
+
609
+ # DeleteRule请求参数结构体
610
+ class DeleteRuleRequest < TencentCloud::Common::AbstractModel
611
+ # @param EventBusId: 事件集ID
612
+ # @type EventBusId: String
613
+ # @param RuleId: 事件规则ID
614
+ # @type RuleId: String
615
+
616
+ attr_accessor :EventBusId, :RuleId
617
+
618
+ def initialize(eventbusid=nil, ruleid=nil)
619
+ @EventBusId = eventbusid
620
+ @RuleId = ruleid
621
+ end
622
+
623
+ def deserialize(params)
624
+ @EventBusId = params['EventBusId']
625
+ @RuleId = params['RuleId']
626
+ end
627
+ end
628
+
629
+ # DeleteRule返回参数结构体
630
+ class DeleteRuleResponse < TencentCloud::Common::AbstractModel
631
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
632
+ # @type RequestId: String
633
+
634
+ attr_accessor :RequestId
635
+
636
+ def initialize(requestid=nil)
637
+ @RequestId = requestid
638
+ end
639
+
640
+ def deserialize(params)
641
+ @RequestId = params['RequestId']
642
+ end
643
+ end
644
+
645
+ # DeleteTarget请求参数结构体
646
+ class DeleteTargetRequest < TencentCloud::Common::AbstractModel
647
+ # @param EventBusId: 事件集ID
648
+ # @type EventBusId: String
649
+ # @param TargetId: 事件目标ID
650
+ # @type TargetId: String
651
+ # @param RuleId: 事件规则ID
652
+ # @type RuleId: String
653
+
654
+ attr_accessor :EventBusId, :TargetId, :RuleId
655
+
656
+ def initialize(eventbusid=nil, targetid=nil, ruleid=nil)
657
+ @EventBusId = eventbusid
658
+ @TargetId = targetid
659
+ @RuleId = ruleid
660
+ end
661
+
662
+ def deserialize(params)
663
+ @EventBusId = params['EventBusId']
664
+ @TargetId = params['TargetId']
665
+ @RuleId = params['RuleId']
666
+ end
667
+ end
668
+
669
+ # DeleteTarget返回参数结构体
670
+ class DeleteTargetResponse < TencentCloud::Common::AbstractModel
671
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
672
+ # @type RequestId: String
673
+
674
+ attr_accessor :RequestId
675
+
676
+ def initialize(requestid=nil)
677
+ @RequestId = requestid
678
+ end
679
+
680
+ def deserialize(params)
681
+ @RequestId = params['RequestId']
682
+ end
683
+ end
684
+
685
+ # DeleteTransformation请求参数结构体
686
+ class DeleteTransformationRequest < TencentCloud::Common::AbstractModel
687
+ # @param EventBusId: 事件集ID
688
+ # @type EventBusId: String
689
+ # @param RuleId: 规则ID
690
+ # @type RuleId: String
691
+ # @param TransformationId: 转换器id
692
+ # @type TransformationId: String
693
+
694
+ attr_accessor :EventBusId, :RuleId, :TransformationId
695
+
696
+ def initialize(eventbusid=nil, ruleid=nil, transformationid=nil)
697
+ @EventBusId = eventbusid
698
+ @RuleId = ruleid
699
+ @TransformationId = transformationid
700
+ end
701
+
702
+ def deserialize(params)
703
+ @EventBusId = params['EventBusId']
704
+ @RuleId = params['RuleId']
705
+ @TransformationId = params['TransformationId']
706
+ end
707
+ end
708
+
709
+ # DeleteTransformation返回参数结构体
710
+ class DeleteTransformationResponse < TencentCloud::Common::AbstractModel
711
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
712
+ # @type RequestId: String
713
+
714
+ attr_accessor :RequestId
715
+
716
+ def initialize(requestid=nil)
717
+ @RequestId = requestid
718
+ end
719
+
720
+ def deserialize(params)
721
+ @RequestId = params['RequestId']
722
+ end
723
+ end
724
+
725
+ # 描述如何过滤数据
726
+ class EtlFilter < TencentCloud::Common::AbstractModel
727
+ # @param Filter: 语法Rule规则保持一致
728
+ # @type Filter: String
729
+
730
+ attr_accessor :Filter
731
+
732
+ def initialize(filter=nil)
733
+ @Filter = filter
734
+ end
735
+
736
+ def deserialize(params)
737
+ @Filter = params['Filter']
738
+ end
739
+ end
740
+
741
+ # eb event信息
742
+ class Event < TencentCloud::Common::AbstractModel
743
+ # @param Source: 事件源的信息,新产品上报必须符合EB的规范
744
+ # @type Source: String
745
+ # @param Data: 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串
746
+ # @type Data: String
747
+ # @param Type: 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段
748
+ # @type Type: String
749
+ # @param Subject: 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
750
+ # @type Subject: String
751
+
752
+ attr_accessor :Source, :Data, :Type, :Subject
753
+
754
+ def initialize(source=nil, data=nil, type=nil, subject=nil)
755
+ @Source = source
756
+ @Data = data
757
+ @Type = type
758
+ @Subject = subject
759
+ end
760
+
761
+ def deserialize(params)
762
+ @Source = params['Source']
763
+ @Data = params['Data']
764
+ @Type = params['Type']
765
+ @Subject = params['Subject']
766
+ end
767
+ end
768
+
769
+ # 事件集信息
770
+ class EventBus < TencentCloud::Common::AbstractModel
771
+ # @param ModTime: 更新时间
772
+ # @type ModTime: String
773
+ # @param Description: 事件集描述,不限字符类型,200字符描述以内
774
+ # @type Description: String
775
+ # @param AddTime: 创建时间
776
+ # @type AddTime: String
777
+ # @param EventBusName: 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
778
+ # @type EventBusName: String
779
+ # @param EventBusId: 事件集ID
780
+ # @type EventBusId: String
781
+ # @param Type: 事件集类型
782
+ # @type Type: String
783
+
784
+ attr_accessor :ModTime, :Description, :AddTime, :EventBusName, :EventBusId, :Type
785
+
786
+ def initialize(modtime=nil, description=nil, addtime=nil, eventbusname=nil, eventbusid=nil, type=nil)
787
+ @ModTime = modtime
788
+ @Description = description
789
+ @AddTime = addtime
790
+ @EventBusName = eventbusname
791
+ @EventBusId = eventbusid
792
+ @Type = type
793
+ end
794
+
795
+ def deserialize(params)
796
+ @ModTime = params['ModTime']
797
+ @Description = params['Description']
798
+ @AddTime = params['AddTime']
799
+ @EventBusName = params['EventBusName']
800
+ @EventBusId = params['EventBusId']
801
+ @Type = params['Type']
802
+ end
803
+ end
804
+
805
+ # 描述如何提取数据
806
+ class Extraction < TencentCloud::Common::AbstractModel
807
+ # @param ExtractionInputPath: JsonPath, 不指定则使用默认值$.
808
+ # @type ExtractionInputPath: String
809
+ # @param Format: 取值: TEXT/JSON
810
+ # @type Format: String
811
+ # @param TextParams: 仅在Text需要传递
812
+ # 注意:此字段可能返回 null,表示取不到有效值。
813
+ # @type TextParams: :class:`Tencentcloud::Eb.v20210416.models.TextParams`
814
+
815
+ attr_accessor :ExtractionInputPath, :Format, :TextParams
816
+
817
+ def initialize(extractioninputpath=nil, format=nil, textparams=nil)
818
+ @ExtractionInputPath = extractioninputpath
819
+ @Format = format
820
+ @TextParams = textparams
821
+ end
822
+
823
+ def deserialize(params)
824
+ @ExtractionInputPath = params['ExtractionInputPath']
825
+ @Format = params['Format']
826
+ unless params['TextParams'].nil?
827
+ @TextParams = TextParams.new
828
+ @TextParams.deserialize(params['TextParams'])
829
+ end
830
+ end
831
+ end
832
+
833
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
834
+ # * 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
835
+ # * 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
836
+ class Filter < TencentCloud::Common::AbstractModel
837
+ # @param Values: 一个或者多个过滤值。
838
+ # @type Values: Array
839
+ # @param Name: 过滤键的名称。
840
+ # @type Name: String
841
+
842
+ attr_accessor :Values, :Name
843
+
844
+ def initialize(values=nil, name=nil)
845
+ @Values = values
846
+ @Name = name
847
+ end
848
+
849
+ def deserialize(params)
850
+ @Values = params['Values']
851
+ @Name = params['Name']
852
+ end
853
+ end
854
+
855
+ # GetEventBus请求参数结构体
856
+ class GetEventBusRequest < TencentCloud::Common::AbstractModel
857
+ # @param EventBusId: 事件集ID
858
+ # @type EventBusId: String
859
+
860
+ attr_accessor :EventBusId
861
+
862
+ def initialize(eventbusid=nil)
863
+ @EventBusId = eventbusid
864
+ end
865
+
866
+ def deserialize(params)
867
+ @EventBusId = params['EventBusId']
868
+ end
869
+ end
870
+
871
+ # GetEventBus返回参数结构体
872
+ class GetEventBusResponse < TencentCloud::Common::AbstractModel
873
+ # @param ModTime: 更新时间
874
+ # @type ModTime: String
875
+ # @param Description: 事件集描述
876
+ # @type Description: String
877
+ # @param ClsTopicId: 日志主题ID
878
+ # @type ClsTopicId: String
879
+ # @param AddTime: 创建时间
880
+ # @type AddTime: String
881
+ # @param ClsLogsetId: 日志集ID
882
+ # @type ClsLogsetId: String
883
+ # @param EventBusName: 事件集名称
884
+ # @type EventBusName: String
885
+ # @param EventBusId: 事件集ID
886
+ # @type EventBusId: String
887
+ # @param Type: (已废弃)事件集类型
888
+ # @type Type: String
889
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
890
+ # @type RequestId: String
891
+
892
+ attr_accessor :ModTime, :Description, :ClsTopicId, :AddTime, :ClsLogsetId, :EventBusName, :EventBusId, :Type, :RequestId
893
+
894
+ def initialize(modtime=nil, description=nil, clstopicid=nil, addtime=nil, clslogsetid=nil, eventbusname=nil, eventbusid=nil, type=nil, requestid=nil)
895
+ @ModTime = modtime
896
+ @Description = description
897
+ @ClsTopicId = clstopicid
898
+ @AddTime = addtime
899
+ @ClsLogsetId = clslogsetid
900
+ @EventBusName = eventbusname
901
+ @EventBusId = eventbusid
902
+ @Type = type
903
+ @RequestId = requestid
904
+ end
905
+
906
+ def deserialize(params)
907
+ @ModTime = params['ModTime']
908
+ @Description = params['Description']
909
+ @ClsTopicId = params['ClsTopicId']
910
+ @AddTime = params['AddTime']
911
+ @ClsLogsetId = params['ClsLogsetId']
912
+ @EventBusName = params['EventBusName']
913
+ @EventBusId = params['EventBusId']
914
+ @Type = params['Type']
915
+ @RequestId = params['RequestId']
916
+ end
917
+ end
918
+
919
+ # GetRule请求参数结构体
920
+ class GetRuleRequest < TencentCloud::Common::AbstractModel
921
+ # @param EventBusId: 事件集ID
922
+ # @type EventBusId: String
923
+ # @param RuleId: 事件规则ID
924
+ # @type RuleId: String
925
+
926
+ attr_accessor :EventBusId, :RuleId
927
+
928
+ def initialize(eventbusid=nil, ruleid=nil)
929
+ @EventBusId = eventbusid
930
+ @RuleId = ruleid
931
+ end
932
+
933
+ def deserialize(params)
934
+ @EventBusId = params['EventBusId']
935
+ @RuleId = params['RuleId']
936
+ end
937
+ end
938
+
939
+ # GetRule返回参数结构体
940
+ class GetRuleResponse < TencentCloud::Common::AbstractModel
941
+ # @param EventBusId: 事件集id
942
+ # @type EventBusId: String
943
+ # @param RuleId: 事件规则id
944
+ # @type RuleId: String
945
+ # @param RuleName: 事件规则名称
946
+ # @type RuleName: String
947
+ # @param Status: 事件规则状态
948
+ # @type Status: String
949
+ # @param Enable: 使能开关
950
+ # @type Enable: Boolean
951
+ # @param Description: 事件规则描述
952
+ # @type Description: String
953
+ # @param EventPattern: 事件模式
954
+ # @type EventPattern: String
955
+ # @param AddTime: 创建时间
956
+ # @type AddTime: String
957
+ # @param ModTime: 更新时间
958
+ # @type ModTime: String
959
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
960
+ # @type RequestId: String
961
+
962
+ attr_accessor :EventBusId, :RuleId, :RuleName, :Status, :Enable, :Description, :EventPattern, :AddTime, :ModTime, :RequestId
963
+
964
+ def initialize(eventbusid=nil, ruleid=nil, rulename=nil, status=nil, enable=nil, description=nil, eventpattern=nil, addtime=nil, modtime=nil, requestid=nil)
965
+ @EventBusId = eventbusid
966
+ @RuleId = ruleid
967
+ @RuleName = rulename
968
+ @Status = status
969
+ @Enable = enable
970
+ @Description = description
971
+ @EventPattern = eventpattern
972
+ @AddTime = addtime
973
+ @ModTime = modtime
974
+ @RequestId = requestid
975
+ end
976
+
977
+ def deserialize(params)
978
+ @EventBusId = params['EventBusId']
979
+ @RuleId = params['RuleId']
980
+ @RuleName = params['RuleName']
981
+ @Status = params['Status']
982
+ @Enable = params['Enable']
983
+ @Description = params['Description']
984
+ @EventPattern = params['EventPattern']
985
+ @AddTime = params['AddTime']
986
+ @ModTime = params['ModTime']
987
+ @RequestId = params['RequestId']
988
+ end
989
+ end
990
+
991
+ # GetTransformation请求参数结构体
992
+ class GetTransformationRequest < TencentCloud::Common::AbstractModel
993
+ # @param EventBusId: 事件集ID
994
+ # @type EventBusId: String
995
+ # @param RuleId: 规则ID
996
+ # @type RuleId: String
997
+ # @param TransformationId: 转换器id
998
+ # @type TransformationId: String
999
+
1000
+ attr_accessor :EventBusId, :RuleId, :TransformationId
1001
+
1002
+ def initialize(eventbusid=nil, ruleid=nil, transformationid=nil)
1003
+ @EventBusId = eventbusid
1004
+ @RuleId = ruleid
1005
+ @TransformationId = transformationid
1006
+ end
1007
+
1008
+ def deserialize(params)
1009
+ @EventBusId = params['EventBusId']
1010
+ @RuleId = params['RuleId']
1011
+ @TransformationId = params['TransformationId']
1012
+ end
1013
+ end
1014
+
1015
+ # GetTransformation返回参数结构体
1016
+ class GetTransformationResponse < TencentCloud::Common::AbstractModel
1017
+ # @param Transformations: 转换规则列表
1018
+ # @type Transformations: Array
1019
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1020
+ # @type RequestId: String
1021
+
1022
+ attr_accessor :Transformations, :RequestId
1023
+
1024
+ def initialize(transformations=nil, requestid=nil)
1025
+ @Transformations = transformations
1026
+ @RequestId = requestid
1027
+ end
1028
+
1029
+ def deserialize(params)
1030
+ unless params['Transformations'].nil?
1031
+ @Transformations = []
1032
+ params['Transformations'].each do |i|
1033
+ transformation_tmp = Transformation.new
1034
+ transformation_tmp.deserialize(i)
1035
+ @Transformations << transformation_tmp
1036
+ end
1037
+ end
1038
+ @RequestId = params['RequestId']
1039
+ end
1040
+ end
1041
+
1042
+ # ListConnections请求参数结构体
1043
+ class ListConnectionsRequest < TencentCloud::Common::AbstractModel
1044
+ # @param EventBusId: 事件集ID
1045
+ # @type EventBusId: String
1046
+ # @param OrderBy: 根据哪个字段进行返回结果排序,目前支持如下以下字段:AddTime, ModTime
1047
+ # @type OrderBy: String
1048
+ # @param Limit: 返回数量,默认为20,最大值为100。
1049
+ # @type Limit: Integer
1050
+ # @param Order: 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
1051
+ # @type Order: String
1052
+ # @param Offset: 偏移量,默认为0。
1053
+ # @type Offset: Integer
1054
+
1055
+ attr_accessor :EventBusId, :OrderBy, :Limit, :Order, :Offset
1056
+
1057
+ def initialize(eventbusid=nil, orderby=nil, limit=nil, order=nil, offset=nil)
1058
+ @EventBusId = eventbusid
1059
+ @OrderBy = orderby
1060
+ @Limit = limit
1061
+ @Order = order
1062
+ @Offset = offset
1063
+ end
1064
+
1065
+ def deserialize(params)
1066
+ @EventBusId = params['EventBusId']
1067
+ @OrderBy = params['OrderBy']
1068
+ @Limit = params['Limit']
1069
+ @Order = params['Order']
1070
+ @Offset = params['Offset']
1071
+ end
1072
+ end
1073
+
1074
+ # ListConnections返回参数结构体
1075
+ class ListConnectionsResponse < TencentCloud::Common::AbstractModel
1076
+ # @param Connections: 连接器信息
1077
+ # @type Connections: Array
1078
+ # @param TotalCount: 连接器总数
1079
+ # @type TotalCount: Integer
1080
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1081
+ # @type RequestId: String
1082
+
1083
+ attr_accessor :Connections, :TotalCount, :RequestId
1084
+
1085
+ def initialize(connections=nil, totalcount=nil, requestid=nil)
1086
+ @Connections = connections
1087
+ @TotalCount = totalcount
1088
+ @RequestId = requestid
1089
+ end
1090
+
1091
+ def deserialize(params)
1092
+ unless params['Connections'].nil?
1093
+ @Connections = []
1094
+ params['Connections'].each do |i|
1095
+ connection_tmp = Connection.new
1096
+ connection_tmp.deserialize(i)
1097
+ @Connections << connection_tmp
1098
+ end
1099
+ end
1100
+ @TotalCount = params['TotalCount']
1101
+ @RequestId = params['RequestId']
1102
+ end
1103
+ end
1104
+
1105
+ # ListEventBuses请求参数结构体
1106
+ class ListEventBusesRequest < TencentCloud::Common::AbstractModel
1107
+ # @param OrderBy: 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
1108
+ # @type OrderBy: String
1109
+ # @param Limit: 返回数量,默认为20,最大值为100。
1110
+ # @type Limit: Integer
1111
+ # @param Order: 以升序还是降序的方式返回结果,可选值 ASC(升序) 和 DESC(降序)
1112
+ # @type Order: String
1113
+ # @param Filters: 过滤条件,详见下表:实例过滤条件表。每次请求的Filters的上限为10,Filter.Values的上限为5。
1114
+ # @type Filters: Array
1115
+ # @param Offset: 分页偏移量,默认为0。
1116
+ # @type Offset: Integer
1117
+
1118
+ attr_accessor :OrderBy, :Limit, :Order, :Filters, :Offset
1119
+
1120
+ def initialize(orderby=nil, limit=nil, order=nil, filters=nil, offset=nil)
1121
+ @OrderBy = orderby
1122
+ @Limit = limit
1123
+ @Order = order
1124
+ @Filters = filters
1125
+ @Offset = offset
1126
+ end
1127
+
1128
+ def deserialize(params)
1129
+ @OrderBy = params['OrderBy']
1130
+ @Limit = params['Limit']
1131
+ @Order = params['Order']
1132
+ unless params['Filters'].nil?
1133
+ @Filters = []
1134
+ params['Filters'].each do |i|
1135
+ filter_tmp = Filter.new
1136
+ filter_tmp.deserialize(i)
1137
+ @Filters << filter_tmp
1138
+ end
1139
+ end
1140
+ @Offset = params['Offset']
1141
+ end
1142
+ end
1143
+
1144
+ # ListEventBuses返回参数结构体
1145
+ class ListEventBusesResponse < TencentCloud::Common::AbstractModel
1146
+ # @param EventBuses: 事件集信息
1147
+ # @type EventBuses: Array
1148
+ # @param TotalCount: 事件集总数
1149
+ # @type TotalCount: Integer
1150
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1151
+ # @type RequestId: String
1152
+
1153
+ attr_accessor :EventBuses, :TotalCount, :RequestId
1154
+
1155
+ def initialize(eventbuses=nil, totalcount=nil, requestid=nil)
1156
+ @EventBuses = eventbuses
1157
+ @TotalCount = totalcount
1158
+ @RequestId = requestid
1159
+ end
1160
+
1161
+ def deserialize(params)
1162
+ unless params['EventBuses'].nil?
1163
+ @EventBuses = []
1164
+ params['EventBuses'].each do |i|
1165
+ eventbus_tmp = EventBus.new
1166
+ eventbus_tmp.deserialize(i)
1167
+ @EventBuses << eventbus_tmp
1168
+ end
1169
+ end
1170
+ @TotalCount = params['TotalCount']
1171
+ @RequestId = params['RequestId']
1172
+ end
1173
+ end
1174
+
1175
+ # ListRules请求参数结构体
1176
+ class ListRulesRequest < TencentCloud::Common::AbstractModel
1177
+ # @param EventBusId: 事件集ID
1178
+ # @type EventBusId: String
1179
+ # @param OrderBy: 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
1180
+ # @type OrderBy: String
1181
+ # @param Limit: 返回数量,默认为20,最大值为100。
1182
+ # @type Limit: Integer
1183
+ # @param Offset: 分页偏移量,默认为0。
1184
+ # @type Offset: Integer
1185
+ # @param Order: 以升序还是降序的方式返回结果,可选值 ASC(升序) 和 DESC(降序)
1186
+ # @type Order: String
1187
+
1188
+ attr_accessor :EventBusId, :OrderBy, :Limit, :Offset, :Order
1189
+
1190
+ def initialize(eventbusid=nil, orderby=nil, limit=nil, offset=nil, order=nil)
1191
+ @EventBusId = eventbusid
1192
+ @OrderBy = orderby
1193
+ @Limit = limit
1194
+ @Offset = offset
1195
+ @Order = order
1196
+ end
1197
+
1198
+ def deserialize(params)
1199
+ @EventBusId = params['EventBusId']
1200
+ @OrderBy = params['OrderBy']
1201
+ @Limit = params['Limit']
1202
+ @Offset = params['Offset']
1203
+ @Order = params['Order']
1204
+ end
1205
+ end
1206
+
1207
+ # ListRules返回参数结构体
1208
+ class ListRulesResponse < TencentCloud::Common::AbstractModel
1209
+ # @param Rules: 事件规则信息
1210
+ # @type Rules: Array
1211
+ # @param TotalCount: 事件规则总数
1212
+ # @type TotalCount: Integer
1213
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1214
+ # @type RequestId: String
1215
+
1216
+ attr_accessor :Rules, :TotalCount, :RequestId
1217
+
1218
+ def initialize(rules=nil, totalcount=nil, requestid=nil)
1219
+ @Rules = rules
1220
+ @TotalCount = totalcount
1221
+ @RequestId = requestid
1222
+ end
1223
+
1224
+ def deserialize(params)
1225
+ unless params['Rules'].nil?
1226
+ @Rules = []
1227
+ params['Rules'].each do |i|
1228
+ rule_tmp = Rule.new
1229
+ rule_tmp.deserialize(i)
1230
+ @Rules << rule_tmp
1231
+ end
1232
+ end
1233
+ @TotalCount = params['TotalCount']
1234
+ @RequestId = params['RequestId']
1235
+ end
1236
+ end
1237
+
1238
+ # ListTargets请求参数结构体
1239
+ class ListTargetsRequest < TencentCloud::Common::AbstractModel
1240
+ # @param RuleId: 事件规则ID
1241
+ # @type RuleId: String
1242
+ # @param EventBusId: 事件集ID
1243
+ # @type EventBusId: String
1244
+ # @param OrderBy: 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
1245
+ # @type OrderBy: String
1246
+ # @param Limit: 返回数量,默认为20,最大值为100。
1247
+ # @type Limit: Integer
1248
+ # @param Offset: 分页偏移量,默认为0。
1249
+ # @type Offset: Integer
1250
+ # @param Order: 以升序还是降序的方式返回结果,可选值 ASC(升序) 和 DESC(降序)
1251
+ # @type Order: String
1252
+
1253
+ attr_accessor :RuleId, :EventBusId, :OrderBy, :Limit, :Offset, :Order
1254
+
1255
+ def initialize(ruleid=nil, eventbusid=nil, orderby=nil, limit=nil, offset=nil, order=nil)
1256
+ @RuleId = ruleid
1257
+ @EventBusId = eventbusid
1258
+ @OrderBy = orderby
1259
+ @Limit = limit
1260
+ @Offset = offset
1261
+ @Order = order
1262
+ end
1263
+
1264
+ def deserialize(params)
1265
+ @RuleId = params['RuleId']
1266
+ @EventBusId = params['EventBusId']
1267
+ @OrderBy = params['OrderBy']
1268
+ @Limit = params['Limit']
1269
+ @Offset = params['Offset']
1270
+ @Order = params['Order']
1271
+ end
1272
+ end
1273
+
1274
+ # ListTargets返回参数结构体
1275
+ class ListTargetsResponse < TencentCloud::Common::AbstractModel
1276
+ # @param TotalCount: 目标总数
1277
+ # @type TotalCount: Integer
1278
+ # @param Targets: 目标信息
1279
+ # @type Targets: Array
1280
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1281
+ # @type RequestId: String
1282
+
1283
+ attr_accessor :TotalCount, :Targets, :RequestId
1284
+
1285
+ def initialize(totalcount=nil, targets=nil, requestid=nil)
1286
+ @TotalCount = totalcount
1287
+ @Targets = targets
1288
+ @RequestId = requestid
1289
+ end
1290
+
1291
+ def deserialize(params)
1292
+ @TotalCount = params['TotalCount']
1293
+ unless params['Targets'].nil?
1294
+ @Targets = []
1295
+ params['Targets'].each do |i|
1296
+ target_tmp = Target.new
1297
+ target_tmp.deserialize(i)
1298
+ @Targets << target_tmp
1299
+ end
1300
+ end
1301
+ @RequestId = params['RequestId']
1302
+ end
1303
+ end
1304
+
1305
+ # Transform输出参数
1306
+ class OutputStructParam < TencentCloud::Common::AbstractModel
1307
+ # @param Key: 对应输出json中的key
1308
+ # @type Key: String
1309
+ # @param Value: 可以填json-path也可以支持常量或者内置关键字date类型
1310
+ # @type Value: String
1311
+ # @param ValueType: value的数据类型, 可选值: STRING, NUMBER,BOOLEAN,NULL,SYS_VARIABLE,JSONPATH
1312
+ # @type ValueType: String
1313
+
1314
+ attr_accessor :Key, :Value, :ValueType
1315
+
1316
+ def initialize(key=nil, value=nil, valuetype=nil)
1317
+ @Key = key
1318
+ @Value = value
1319
+ @ValueType = valuetype
1320
+ end
1321
+
1322
+ def deserialize(params)
1323
+ @Key = params['Key']
1324
+ @Value = params['Value']
1325
+ @ValueType = params['ValueType']
1326
+ end
1327
+ end
1328
+
1329
+ # PublishEvent请求参数结构体
1330
+ class PublishEventRequest < TencentCloud::Common::AbstractModel
1331
+ # @param EventList: 事件列表
1332
+ # @type EventList: Array
1333
+ # @param EventBusId: 事件集ID
1334
+ # @type EventBusId: String
1335
+
1336
+ attr_accessor :EventList, :EventBusId
1337
+
1338
+ def initialize(eventlist=nil, eventbusid=nil)
1339
+ @EventList = eventlist
1340
+ @EventBusId = eventbusid
1341
+ end
1342
+
1343
+ def deserialize(params)
1344
+ unless params['EventList'].nil?
1345
+ @EventList = []
1346
+ params['EventList'].each do |i|
1347
+ event_tmp = Event.new
1348
+ event_tmp.deserialize(i)
1349
+ @EventList << event_tmp
1350
+ end
1351
+ end
1352
+ @EventBusId = params['EventBusId']
1353
+ end
1354
+ end
1355
+
1356
+ # PublishEvent返回参数结构体
1357
+ class PublishEventResponse < TencentCloud::Common::AbstractModel
1358
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1359
+ # @type RequestId: String
1360
+
1361
+ attr_accessor :RequestId
1362
+
1363
+ def initialize(requestid=nil)
1364
+ @RequestId = requestid
1365
+ end
1366
+
1367
+ def deserialize(params)
1368
+ @RequestId = params['RequestId']
1369
+ end
1370
+ end
1371
+
1372
+ # 用来描述一个ckafka投递目标的重试策略
1373
+ class RetryPolicy < TencentCloud::Common::AbstractModel
1374
+ # @param RetryInterval: 重试间隔 单位:秒
1375
+ # @type RetryInterval: Integer
1376
+ # @param MaxRetryAttempts: 最大重试次数
1377
+ # @type MaxRetryAttempts: Integer
1378
+
1379
+ attr_accessor :RetryInterval, :MaxRetryAttempts
1380
+
1381
+ def initialize(retryinterval=nil, maxretryattempts=nil)
1382
+ @RetryInterval = retryinterval
1383
+ @MaxRetryAttempts = maxretryattempts
1384
+ end
1385
+
1386
+ def deserialize(params)
1387
+ @RetryInterval = params['RetryInterval']
1388
+ @MaxRetryAttempts = params['MaxRetryAttempts']
1389
+ end
1390
+ end
1391
+
1392
+ # 规则信息
1393
+ class Rule < TencentCloud::Common::AbstractModel
1394
+ # @param Status: 状态
1395
+ # @type Status: String
1396
+ # @param ModTime: 修改时间
1397
+ # @type ModTime: String
1398
+ # @param Enable: 使能开关
1399
+ # @type Enable: Boolean
1400
+ # @param Description: 描述
1401
+ # @type Description: String
1402
+ # @param RuleId: 规则ID
1403
+ # @type RuleId: String
1404
+ # @param AddTime: 创建时间
1405
+ # @type AddTime: String
1406
+ # @param EventBusId: 事件集ID
1407
+ # @type EventBusId: String
1408
+ # @param RuleName: 规则名称
1409
+ # @type RuleName: String
1410
+ # @param Targets: Target 简要信息
1411
+ # 注意:此字段可能返回 null,表示取不到有效值。
1412
+ # @type Targets: Array
1413
+ # @param DeadLetterConfig: rule设置的dlq规则. 可能为null
1414
+ # 注意:此字段可能返回 null,表示取不到有效值。
1415
+ # @type DeadLetterConfig: :class:`Tencentcloud::Eb.v20210416.models.DeadLetterConfig`
1416
+
1417
+ attr_accessor :Status, :ModTime, :Enable, :Description, :RuleId, :AddTime, :EventBusId, :RuleName, :Targets, :DeadLetterConfig
1418
+
1419
+ def initialize(status=nil, modtime=nil, enable=nil, description=nil, ruleid=nil, addtime=nil, eventbusid=nil, rulename=nil, targets=nil, deadletterconfig=nil)
1420
+ @Status = status
1421
+ @ModTime = modtime
1422
+ @Enable = enable
1423
+ @Description = description
1424
+ @RuleId = ruleid
1425
+ @AddTime = addtime
1426
+ @EventBusId = eventbusid
1427
+ @RuleName = rulename
1428
+ @Targets = targets
1429
+ @DeadLetterConfig = deadletterconfig
1430
+ end
1431
+
1432
+ def deserialize(params)
1433
+ @Status = params['Status']
1434
+ @ModTime = params['ModTime']
1435
+ @Enable = params['Enable']
1436
+ @Description = params['Description']
1437
+ @RuleId = params['RuleId']
1438
+ @AddTime = params['AddTime']
1439
+ @EventBusId = params['EventBusId']
1440
+ @RuleName = params['RuleName']
1441
+ unless params['Targets'].nil?
1442
+ @Targets = []
1443
+ params['Targets'].each do |i|
1444
+ targetbrief_tmp = TargetBrief.new
1445
+ targetbrief_tmp.deserialize(i)
1446
+ @Targets << targetbrief_tmp
1447
+ end
1448
+ end
1449
+ unless params['DeadLetterConfig'].nil?
1450
+ @DeadLetterConfig = DeadLetterConfig.new
1451
+ @DeadLetterConfig.deserialize(params['DeadLetterConfig'])
1452
+ end
1453
+ end
1454
+ end
1455
+
1456
+ # 云函数参数
1457
+ class SCFParams < TencentCloud::Common::AbstractModel
1458
+ # @param BatchTimeout: 批量投递最长等待时间
1459
+ # @type BatchTimeout: Integer
1460
+ # @param BatchEventCount: 批量投递最大事件条数
1461
+ # @type BatchEventCount: Integer
1462
+ # @param EnableBatchDelivery: 开启批量投递使能
1463
+ # @type EnableBatchDelivery: Boolean
1464
+
1465
+ attr_accessor :BatchTimeout, :BatchEventCount, :EnableBatchDelivery
1466
+
1467
+ def initialize(batchtimeout=nil, batcheventcount=nil, enablebatchdelivery=nil)
1468
+ @BatchTimeout = batchtimeout
1469
+ @BatchEventCount = batcheventcount
1470
+ @EnableBatchDelivery = enablebatchdelivery
1471
+ end
1472
+
1473
+ def deserialize(params)
1474
+ @BatchTimeout = params['BatchTimeout']
1475
+ @BatchEventCount = params['BatchEventCount']
1476
+ @EnableBatchDelivery = params['EnableBatchDelivery']
1477
+ end
1478
+ end
1479
+
1480
+ # Target信息
1481
+ class Target < TencentCloud::Common::AbstractModel
1482
+ # @param Type: 目标类型
1483
+ # @type Type: String
1484
+ # @param EventBusId: 事件集ID
1485
+ # @type EventBusId: String
1486
+ # @param TargetId: 目标ID
1487
+ # @type TargetId: String
1488
+ # @param TargetDescription: 目标描述
1489
+ # @type TargetDescription: :class:`Tencentcloud::Eb.v20210416.models.TargetDescription`
1490
+ # @param RuleId: 事件规则ID
1491
+ # @type RuleId: String
1492
+ # @param EnableBatchDelivery: 开启批量投递使能
1493
+ # 注意:此字段可能返回 null,表示取不到有效值。
1494
+ # @type EnableBatchDelivery: Boolean
1495
+ # @param BatchTimeout: 批量投递最长等待时间
1496
+ # 注意:此字段可能返回 null,表示取不到有效值。
1497
+ # @type BatchTimeout: Integer
1498
+ # @param BatchEventCount: 批量投递最大事件条数
1499
+ # 注意:此字段可能返回 null,表示取不到有效值。
1500
+ # @type BatchEventCount: Integer
1501
+
1502
+ attr_accessor :Type, :EventBusId, :TargetId, :TargetDescription, :RuleId, :EnableBatchDelivery, :BatchTimeout, :BatchEventCount
1503
+
1504
+ def initialize(type=nil, eventbusid=nil, targetid=nil, targetdescription=nil, ruleid=nil, enablebatchdelivery=nil, batchtimeout=nil, batcheventcount=nil)
1505
+ @Type = type
1506
+ @EventBusId = eventbusid
1507
+ @TargetId = targetid
1508
+ @TargetDescription = targetdescription
1509
+ @RuleId = ruleid
1510
+ @EnableBatchDelivery = enablebatchdelivery
1511
+ @BatchTimeout = batchtimeout
1512
+ @BatchEventCount = batcheventcount
1513
+ end
1514
+
1515
+ def deserialize(params)
1516
+ @Type = params['Type']
1517
+ @EventBusId = params['EventBusId']
1518
+ @TargetId = params['TargetId']
1519
+ unless params['TargetDescription'].nil?
1520
+ @TargetDescription = TargetDescription.new
1521
+ @TargetDescription.deserialize(params['TargetDescription'])
1522
+ end
1523
+ @RuleId = params['RuleId']
1524
+ @EnableBatchDelivery = params['EnableBatchDelivery']
1525
+ @BatchTimeout = params['BatchTimeout']
1526
+ @BatchEventCount = params['BatchEventCount']
1527
+ end
1528
+ end
1529
+
1530
+ # 目标简要信息
1531
+ class TargetBrief < TencentCloud::Common::AbstractModel
1532
+ # @param TargetId: 目标ID
1533
+ # @type TargetId: String
1534
+ # @param Type: 目标类型
1535
+ # @type Type: String
1536
+
1537
+ attr_accessor :TargetId, :Type
1538
+
1539
+ def initialize(targetid=nil, type=nil)
1540
+ @TargetId = targetid
1541
+ @Type = type
1542
+ end
1543
+
1544
+ def deserialize(params)
1545
+ @TargetId = params['TargetId']
1546
+ @Type = params['Type']
1547
+ end
1548
+ end
1549
+
1550
+ # TargetDescription描述
1551
+ class TargetDescription < TencentCloud::Common::AbstractModel
1552
+ # @param ResourceDescription: QCS资源六段式,更多参考 [资源六段式](https://cloud.tencent.com/document/product/598/10606)
1553
+ # @type ResourceDescription: String
1554
+ # @param SCFParams: 云函数参数
1555
+ # @type SCFParams: :class:`Tencentcloud::Eb.v20210416.models.SCFParams`
1556
+ # @param CkafkaTargetParams: Ckafka参数
1557
+ # @type CkafkaTargetParams: :class:`Tencentcloud::Eb.v20210416.models.CkafkaTargetParams`
1558
+
1559
+ attr_accessor :ResourceDescription, :SCFParams, :CkafkaTargetParams
1560
+
1561
+ def initialize(resourcedescription=nil, scfparams=nil, ckafkatargetparams=nil)
1562
+ @ResourceDescription = resourcedescription
1563
+ @SCFParams = scfparams
1564
+ @CkafkaTargetParams = ckafkatargetparams
1565
+ end
1566
+
1567
+ def deserialize(params)
1568
+ @ResourceDescription = params['ResourceDescription']
1569
+ unless params['SCFParams'].nil?
1570
+ @SCFParams = SCFParams.new
1571
+ @SCFParams.deserialize(params['SCFParams'])
1572
+ end
1573
+ unless params['CkafkaTargetParams'].nil?
1574
+ @CkafkaTargetParams = CkafkaTargetParams.new
1575
+ @CkafkaTargetParams.deserialize(params['CkafkaTargetParams'])
1576
+ end
1577
+ end
1578
+ end
1579
+
1580
+ # 描述如何切分数据
1581
+ class TextParams < TencentCloud::Common::AbstractModel
1582
+ # @param Separator: 逗号、| 、制表符、空格、换行符、%、#,限制长度为 1。
1583
+ # 注意:此字段可能返回 null,表示取不到有效值。
1584
+ # @type Separator: String
1585
+ # @param Regex: 填写正则表达式:长度128
1586
+ # 注意:此字段可能返回 null,表示取不到有效值。
1587
+ # @type Regex: String
1588
+
1589
+ attr_accessor :Separator, :Regex
1590
+
1591
+ def initialize(separator=nil, regex=nil)
1592
+ @Separator = separator
1593
+ @Regex = regex
1594
+ end
1595
+
1596
+ def deserialize(params)
1597
+ @Separator = params['Separator']
1598
+ @Regex = params['Regex']
1599
+ end
1600
+ end
1601
+
1602
+ # 描述如何数据转换
1603
+ class Transform < TencentCloud::Common::AbstractModel
1604
+ # @param OutputStructs: 描述如何数据转换
1605
+ # @type OutputStructs: Array
1606
+
1607
+ attr_accessor :OutputStructs
1608
+
1609
+ def initialize(outputstructs=nil)
1610
+ @OutputStructs = outputstructs
1611
+ end
1612
+
1613
+ def deserialize(params)
1614
+ unless params['OutputStructs'].nil?
1615
+ @OutputStructs = []
1616
+ params['OutputStructs'].each do |i|
1617
+ outputstructparam_tmp = OutputStructParam.new
1618
+ outputstructparam_tmp.deserialize(i)
1619
+ @OutputStructs << outputstructparam_tmp
1620
+ end
1621
+ end
1622
+ end
1623
+ end
1624
+
1625
+ # 一个转换器
1626
+ class Transformation < TencentCloud::Common::AbstractModel
1627
+ # @param Extraction: 描述如何提取数据
1628
+ # 注意:此字段可能返回 null,表示取不到有效值。
1629
+ # @type Extraction: :class:`Tencentcloud::Eb.v20210416.models.Extraction`
1630
+ # @param EtlFilter: 描述如何过滤数据
1631
+ # 注意:此字段可能返回 null,表示取不到有效值。
1632
+ # @type EtlFilter: :class:`Tencentcloud::Eb.v20210416.models.EtlFilter`
1633
+ # @param Transform: 描述如何数据转换
1634
+ # 注意:此字段可能返回 null,表示取不到有效值。
1635
+ # @type Transform: :class:`Tencentcloud::Eb.v20210416.models.Transform`
1636
+
1637
+ attr_accessor :Extraction, :EtlFilter, :Transform
1638
+
1639
+ def initialize(extraction=nil, etlfilter=nil, transform=nil)
1640
+ @Extraction = extraction
1641
+ @EtlFilter = etlfilter
1642
+ @Transform = transform
1643
+ end
1644
+
1645
+ def deserialize(params)
1646
+ unless params['Extraction'].nil?
1647
+ @Extraction = Extraction.new
1648
+ @Extraction.deserialize(params['Extraction'])
1649
+ end
1650
+ unless params['EtlFilter'].nil?
1651
+ @EtlFilter = EtlFilter.new
1652
+ @EtlFilter.deserialize(params['EtlFilter'])
1653
+ end
1654
+ unless params['Transform'].nil?
1655
+ @Transform = Transform.new
1656
+ @Transform.deserialize(params['Transform'])
1657
+ end
1658
+ end
1659
+ end
1660
+
1661
+ # UpdateConnection请求参数结构体
1662
+ class UpdateConnectionRequest < TencentCloud::Common::AbstractModel
1663
+ # @param ConnectionId: 连接器ID
1664
+ # @type ConnectionId: String
1665
+ # @param EventBusId: 事件集ID
1666
+ # @type EventBusId: String
1667
+ # @param Enable: 使能开关
1668
+ # @type Enable: Boolean
1669
+ # @param Description: 描述
1670
+ # @type Description: String
1671
+ # @param ConnectionName: 连接器名称
1672
+ # @type ConnectionName: String
1673
+
1674
+ attr_accessor :ConnectionId, :EventBusId, :Enable, :Description, :ConnectionName
1675
+
1676
+ def initialize(connectionid=nil, eventbusid=nil, enable=nil, description=nil, connectionname=nil)
1677
+ @ConnectionId = connectionid
1678
+ @EventBusId = eventbusid
1679
+ @Enable = enable
1680
+ @Description = description
1681
+ @ConnectionName = connectionname
1682
+ end
1683
+
1684
+ def deserialize(params)
1685
+ @ConnectionId = params['ConnectionId']
1686
+ @EventBusId = params['EventBusId']
1687
+ @Enable = params['Enable']
1688
+ @Description = params['Description']
1689
+ @ConnectionName = params['ConnectionName']
1690
+ end
1691
+ end
1692
+
1693
+ # UpdateConnection返回参数结构体
1694
+ class UpdateConnectionResponse < TencentCloud::Common::AbstractModel
1695
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1696
+ # @type RequestId: String
1697
+
1698
+ attr_accessor :RequestId
1699
+
1700
+ def initialize(requestid=nil)
1701
+ @RequestId = requestid
1702
+ end
1703
+
1704
+ def deserialize(params)
1705
+ @RequestId = params['RequestId']
1706
+ end
1707
+ end
1708
+
1709
+ # UpdateEventBus请求参数结构体
1710
+ class UpdateEventBusRequest < TencentCloud::Common::AbstractModel
1711
+ # @param EventBusId: 事件集ID
1712
+ # @type EventBusId: String
1713
+ # @param Description: 事件集描述,不限字符类型,200字符描述以内
1714
+ # @type Description: String
1715
+ # @param EventBusName: 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
1716
+ # @type EventBusName: String
1717
+
1718
+ attr_accessor :EventBusId, :Description, :EventBusName
1719
+
1720
+ def initialize(eventbusid=nil, description=nil, eventbusname=nil)
1721
+ @EventBusId = eventbusid
1722
+ @Description = description
1723
+ @EventBusName = eventbusname
1724
+ end
1725
+
1726
+ def deserialize(params)
1727
+ @EventBusId = params['EventBusId']
1728
+ @Description = params['Description']
1729
+ @EventBusName = params['EventBusName']
1730
+ end
1731
+ end
1732
+
1733
+ # UpdateEventBus返回参数结构体
1734
+ class UpdateEventBusResponse < TencentCloud::Common::AbstractModel
1735
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1736
+ # @type RequestId: String
1737
+
1738
+ attr_accessor :RequestId
1739
+
1740
+ def initialize(requestid=nil)
1741
+ @RequestId = requestid
1742
+ end
1743
+
1744
+ def deserialize(params)
1745
+ @RequestId = params['RequestId']
1746
+ end
1747
+ end
1748
+
1749
+ # UpdateRule请求参数结构体
1750
+ class UpdateRuleRequest < TencentCloud::Common::AbstractModel
1751
+ # @param RuleId: 事件规则ID
1752
+ # @type RuleId: String
1753
+ # @param EventBusId: 事件集ID
1754
+ # @type EventBusId: String
1755
+ # @param Enable: 使能开关。
1756
+ # @type Enable: Boolean
1757
+ # @param Description: 规则描述,不限字符类型,200字符描述以内。
1758
+ # @type Description: String
1759
+ # @param RuleName: 事件规则名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
1760
+ # @type RuleName: String
1761
+
1762
+ attr_accessor :RuleId, :EventBusId, :Enable, :Description, :RuleName
1763
+
1764
+ def initialize(ruleid=nil, eventbusid=nil, enable=nil, description=nil, rulename=nil)
1765
+ @RuleId = ruleid
1766
+ @EventBusId = eventbusid
1767
+ @Enable = enable
1768
+ @Description = description
1769
+ @RuleName = rulename
1770
+ end
1771
+
1772
+ def deserialize(params)
1773
+ @RuleId = params['RuleId']
1774
+ @EventBusId = params['EventBusId']
1775
+ @Enable = params['Enable']
1776
+ @Description = params['Description']
1777
+ @RuleName = params['RuleName']
1778
+ end
1779
+ end
1780
+
1781
+ # UpdateRule返回参数结构体
1782
+ class UpdateRuleResponse < TencentCloud::Common::AbstractModel
1783
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1784
+ # @type RequestId: String
1785
+
1786
+ attr_accessor :RequestId
1787
+
1788
+ def initialize(requestid=nil)
1789
+ @RequestId = requestid
1790
+ end
1791
+
1792
+ def deserialize(params)
1793
+ @RequestId = params['RequestId']
1794
+ end
1795
+ end
1796
+
1797
+ # UpdateTarget请求参数结构体
1798
+ class UpdateTargetRequest < TencentCloud::Common::AbstractModel
1799
+ # @param EventBusId: 事件集ID
1800
+ # @type EventBusId: String
1801
+ # @param RuleId: 事件规则ID
1802
+ # @type RuleId: String
1803
+ # @param TargetId: 事件目标ID
1804
+ # @type TargetId: String
1805
+ # @param EnableBatchDelivery: 开启批量投递使能
1806
+ # @type EnableBatchDelivery: Boolean
1807
+ # @param BatchTimeout: 批量投递最长等待时间
1808
+ # @type BatchTimeout: Integer
1809
+ # @param BatchEventCount: 批量投递最大事件条数
1810
+ # @type BatchEventCount: Integer
1811
+
1812
+ attr_accessor :EventBusId, :RuleId, :TargetId, :EnableBatchDelivery, :BatchTimeout, :BatchEventCount
1813
+
1814
+ def initialize(eventbusid=nil, ruleid=nil, targetid=nil, enablebatchdelivery=nil, batchtimeout=nil, batcheventcount=nil)
1815
+ @EventBusId = eventbusid
1816
+ @RuleId = ruleid
1817
+ @TargetId = targetid
1818
+ @EnableBatchDelivery = enablebatchdelivery
1819
+ @BatchTimeout = batchtimeout
1820
+ @BatchEventCount = batcheventcount
1821
+ end
1822
+
1823
+ def deserialize(params)
1824
+ @EventBusId = params['EventBusId']
1825
+ @RuleId = params['RuleId']
1826
+ @TargetId = params['TargetId']
1827
+ @EnableBatchDelivery = params['EnableBatchDelivery']
1828
+ @BatchTimeout = params['BatchTimeout']
1829
+ @BatchEventCount = params['BatchEventCount']
1830
+ end
1831
+ end
1832
+
1833
+ # UpdateTarget返回参数结构体
1834
+ class UpdateTargetResponse < TencentCloud::Common::AbstractModel
1835
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1836
+ # @type RequestId: String
1837
+
1838
+ attr_accessor :RequestId
1839
+
1840
+ def initialize(requestid=nil)
1841
+ @RequestId = requestid
1842
+ end
1843
+
1844
+ def deserialize(params)
1845
+ @RequestId = params['RequestId']
1846
+ end
1847
+ end
1848
+
1849
+ # UpdateTransformation请求参数结构体
1850
+ class UpdateTransformationRequest < TencentCloud::Common::AbstractModel
1851
+ # @param EventBusId: 事件集ID
1852
+ # @type EventBusId: String
1853
+ # @param RuleId: 规则ID
1854
+ # @type RuleId: String
1855
+ # @param TransformationId: 转换器id
1856
+ # @type TransformationId: String
1857
+ # @param Transformations: 一个转换规则列表,当前仅限定一个
1858
+ # @type Transformations: Array
1859
+
1860
+ attr_accessor :EventBusId, :RuleId, :TransformationId, :Transformations
1861
+
1862
+ def initialize(eventbusid=nil, ruleid=nil, transformationid=nil, transformations=nil)
1863
+ @EventBusId = eventbusid
1864
+ @RuleId = ruleid
1865
+ @TransformationId = transformationid
1866
+ @Transformations = transformations
1867
+ end
1868
+
1869
+ def deserialize(params)
1870
+ @EventBusId = params['EventBusId']
1871
+ @RuleId = params['RuleId']
1872
+ @TransformationId = params['TransformationId']
1873
+ unless params['Transformations'].nil?
1874
+ @Transformations = []
1875
+ params['Transformations'].each do |i|
1876
+ transformation_tmp = Transformation.new
1877
+ transformation_tmp.deserialize(i)
1878
+ @Transformations << transformation_tmp
1879
+ end
1880
+ end
1881
+ end
1882
+ end
1883
+
1884
+ # UpdateTransformation返回参数结构体
1885
+ class UpdateTransformationResponse < TencentCloud::Common::AbstractModel
1886
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1887
+ # @type RequestId: String
1888
+
1889
+ attr_accessor :RequestId
1890
+
1891
+ def initialize(requestid=nil)
1892
+ @RequestId = requestid
1893
+ end
1894
+
1895
+ def deserialize(params)
1896
+ @RequestId = params['RequestId']
1897
+ end
1898
+ end
1899
+
1900
+ end
1901
+ end
1902
+ end
1903
+