Class: TencentCloud::Dts::V20211206::KafkaOption
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dts::V20211206::KafkaOption
- Defined in:
- lib/v20211206/models.rb
Overview
目标端为kafka时添加的同步选项字段
Instance Attribute Summary collapse
- #DataOption ⇒ Object
- #DataType ⇒ Object
- #DDLTopicName ⇒ Object
- #TopicRules ⇒ Object
- #TopicType ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(datatype = nil, topictype = nil, ddltopicname = nil, topicrules = nil, dataoption = nil) ⇒ KafkaOption
constructor
A new instance of KafkaOption.
Constructor Details
#initialize(datatype = nil, topictype = nil, ddltopicname = nil, topicrules = nil, dataoption = nil) ⇒ KafkaOption
Returns a new instance of KafkaOption.
4646 4647 4648 4649 4650 4651 4652 |
# File 'lib/v20211206/models.rb', line 4646 def initialize(datatype=nil, topictype=nil, ddltopicname=nil, topicrules=nil, dataoption=nil) @DataType = datatype @TopicType = topictype @DDLTopicName = ddltopicname @TopicRules = topicrules @DataOption = dataoption end |
Instance Attribute Details
#DataOption ⇒ Object
4644 4645 4646 |
# File 'lib/v20211206/models.rb', line 4644 def DataOption @DataOption end |
#DataType ⇒ Object
4644 4645 4646 |
# File 'lib/v20211206/models.rb', line 4644 def DataType @DataType end |
#DDLTopicName ⇒ Object
4644 4645 4646 |
# File 'lib/v20211206/models.rb', line 4644 def DDLTopicName @DDLTopicName end |
#TopicRules ⇒ Object
4644 4645 4646 |
# File 'lib/v20211206/models.rb', line 4644 def TopicRules @TopicRules end |
#TopicType ⇒ Object
4644 4645 4646 |
# File 'lib/v20211206/models.rb', line 4644 def TopicType @TopicType end |
Instance Method Details
#deserialize(params) ⇒ Object
4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 |
# File 'lib/v20211206/models.rb', line 4654 def deserialize(params) @DataType = params['DataType'] @TopicType = params['TopicType'] @DDLTopicName = params['DDLTopicName'] unless params['TopicRules'].nil? @TopicRules = [] params['TopicRules'].each do |i| topicrule_tmp = TopicRule.new topicrule_tmp.deserialize(i) @TopicRules << topicrule_tmp end end unless params['DataOption'].nil? @DataOption = [] params['DataOption'].each do |i| keyvaluepairoption_tmp = KeyValuePairOption.new keyvaluepairoption_tmp.deserialize(i) @DataOption << keyvaluepairoption_tmp end end end |