Class: TencentCloud::Tdmq::V20200217::ImportRocketMQTopicsRequest

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

Overview

ImportRocketMQTopics请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topics = nil, taskid = nil) ⇒ ImportRocketMQTopicsRequest

Returns a new instance of ImportRocketMQTopicsRequest.



8262
8263
8264
8265
# File 'lib/v20200217/models.rb', line 8262

def initialize(topics=nil, taskid=nil)
  @Topics = topics
  @TaskId = taskid
end

Instance Attribute Details

#TaskIdObject

Parameters:

  • Topics:

    导入topic

  • TaskId:

    任务ID



8260
8261
8262
# File 'lib/v20200217/models.rb', line 8260

def TaskId
  @TaskId
end

#TopicsObject

Parameters:

  • Topics:

    导入topic

  • TaskId:

    任务ID



8260
8261
8262
# File 'lib/v20200217/models.rb', line 8260

def Topics
  @Topics
end

Instance Method Details

#deserialize(params) ⇒ Object



8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
# File 'lib/v20200217/models.rb', line 8267

def deserialize(params)
  unless params['Topics'].nil?
    @Topics = []
    params['Topics'].each do |i|
      rocketmqtopicconfig_tmp = RocketMQTopicConfig.new
      rocketmqtopicconfig_tmp.deserialize(i)
      @Topics << rocketmqtopicconfig_tmp
    end
  end
  @TaskId = params['TaskId']
end