Class: TencentCloud::Tdmq::V20200217::RocketMQTopicConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200217/models.rb

Overview

RocketMQ主题配置信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace = nil, topicname = nil, type = nil, partitions = nil, remark = nil) ⇒ RocketMQTopicConfig

Returns a new instance of RocketMQTopicConfig.



12333
12334
12335
12336
12337
12338
12339
# File 'lib/v20200217/models.rb', line 12333

def initialize(namespace=nil, topicname=nil, type=nil, partitions=nil, remark=nil)
  @Namespace = namespace
  @TopicName = topicname
  @Type = type
  @Partitions = partitions
  @Remark = remark
end

Instance Attribute Details

#NamespaceObject

Normal,普通 PartitionedOrder, 分区顺序 Transaction,事务消息 DelayScheduled,延迟/定时消息

Parameters:

  • Namespace:

    命名空间

  • TopicName:

    主题名称

  • Type:

    主题类型:

  • Partitions:

    分区个数

  • Remark:

    备注信息



12331
12332
12333
# File 'lib/v20200217/models.rb', line 12331

def Namespace
  @Namespace
end

#PartitionsObject

Normal,普通 PartitionedOrder, 分区顺序 Transaction,事务消息 DelayScheduled,延迟/定时消息

Parameters:

  • Namespace:

    命名空间

  • TopicName:

    主题名称

  • Type:

    主题类型:

  • Partitions:

    分区个数

  • Remark:

    备注信息



12331
12332
12333
# File 'lib/v20200217/models.rb', line 12331

def Partitions
  @Partitions
end

#RemarkObject

Normal,普通 PartitionedOrder, 分区顺序 Transaction,事务消息 DelayScheduled,延迟/定时消息

Parameters:

  • Namespace:

    命名空间

  • TopicName:

    主题名称

  • Type:

    主题类型:

  • Partitions:

    分区个数

  • Remark:

    备注信息



12331
12332
12333
# File 'lib/v20200217/models.rb', line 12331

def Remark
  @Remark
end

#TopicNameObject

Normal,普通 PartitionedOrder, 分区顺序 Transaction,事务消息 DelayScheduled,延迟/定时消息

Parameters:

  • Namespace:

    命名空间

  • TopicName:

    主题名称

  • Type:

    主题类型:

  • Partitions:

    分区个数

  • Remark:

    备注信息



12331
12332
12333
# File 'lib/v20200217/models.rb', line 12331

def TopicName
  @TopicName
end

#TypeObject

Normal,普通 PartitionedOrder, 分区顺序 Transaction,事务消息 DelayScheduled,延迟/定时消息

Parameters:

  • Namespace:

    命名空间

  • TopicName:

    主题名称

  • Type:

    主题类型:

  • Partitions:

    分区个数

  • Remark:

    备注信息



12331
12332
12333
# File 'lib/v20200217/models.rb', line 12331

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



12341
12342
12343
12344
12345
12346
12347
# File 'lib/v20200217/models.rb', line 12341

def deserialize(params)
  @Namespace = params['Namespace']
  @TopicName = params['TopicName']
  @Type = params['Type']
  @Partitions = params['Partitions']
  @Remark = params['Remark']
end