Class: TencentCloud::Dts::V20211206::TopicRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dts::V20211206::TopicRule
- Defined in:
- lib/v20211206/models.rb
Overview
单topic和自定义topic的描述。投递到单topic时,该数组的最后一项会被视为默认分区策略,所有未匹配到的数据都会按该策略投递,默认策略只支持 投递至partition0、按表名、表名+主键三种。
Instance Attribute Summary collapse
-
#Columns ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DbMatchMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DbName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PartitionType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TableMatchMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TableName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TopicName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topicname = nil, partitiontype = nil, dbmatchmode = nil, dbname = nil, tablematchmode = nil, tablename = nil, columns = nil) ⇒ TopicRule
constructor
A new instance of TopicRule.
Constructor Details
#initialize(topicname = nil, partitiontype = nil, dbmatchmode = nil, dbname = nil, tablematchmode = nil, tablename = nil, columns = nil) ⇒ TopicRule
Returns a new instance of TopicRule.
7891 7892 7893 7894 7895 7896 7897 7898 7899 |
# File 'lib/v20211206/models.rb', line 7891 def initialize(topicname=nil, partitiontype=nil, dbmatchmode=nil, dbname=nil, tablematchmode=nil, tablename=nil, columns=nil) @TopicName = topicname @PartitionType = partitiontype @DbMatchMode = dbmatchmode @DbName = dbname @TableMatchMode = tablematchmode @TableName = tablename @Columns = columns end |
Instance Attribute Details
#Columns ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7889 7890 7891 |
# File 'lib/v20211206/models.rb', line 7889 def Columns @Columns end |
#DbMatchMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7889 7890 7891 |
# File 'lib/v20211206/models.rb', line 7889 def DbMatchMode @DbMatchMode end |
#DbName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7889 7890 7891 |
# File 'lib/v20211206/models.rb', line 7889 def DbName @DbName end |
#PartitionType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7889 7890 7891 |
# File 'lib/v20211206/models.rb', line 7889 def PartitionType @PartitionType end |
#TableMatchMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7889 7890 7891 |
# File 'lib/v20211206/models.rb', line 7889 def TableMatchMode @TableMatchMode end |
#TableName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7889 7890 7891 |
# File 'lib/v20211206/models.rb', line 7889 def TableName @TableName end |
#TopicName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
7889 7890 7891 |
# File 'lib/v20211206/models.rb', line 7889 def TopicName @TopicName end |
Instance Method Details
#deserialize(params) ⇒ Object
7901 7902 7903 7904 7905 7906 7907 7908 7909 |
# File 'lib/v20211206/models.rb', line 7901 def deserialize(params) @TopicName = params['TopicName'] @PartitionType = params['PartitionType'] @DbMatchMode = params['DbMatchMode'] @DbName = params['DbName'] @TableMatchMode = params['TableMatchMode'] @TableName = params['TableName'] @Columns = params['Columns'] end |