Class: TencentCloud::Ckafka::V20190819::TopicResult

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

Overview

统一返回的TopicResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topiclist = nil, totalcount = nil) ⇒ TopicResult

Returns a new instance of TopicResult.



12110
12111
12112
12113
# File 'lib/v20190819/models.rb', line 12110

def initialize(topiclist=nil, totalcount=nil)
  @TopicList = topiclist
  @TotalCount = totalcount
end

Instance Attribute Details

#TopicListObject

Parameters:

  • TopicList:

    返回的主题信息列表

  • TotalCount:

    符合条件的 topic 数量



12108
12109
12110
# File 'lib/v20190819/models.rb', line 12108

def TopicList
  @TopicList
end

#TotalCountObject

Parameters:

  • TopicList:

    返回的主题信息列表

  • TotalCount:

    符合条件的 topic 数量



12108
12109
12110
# File 'lib/v20190819/models.rb', line 12108

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
# File 'lib/v20190819/models.rb', line 12115

def deserialize(params)
  unless params['TopicList'].nil?
    @TopicList = []
    params['TopicList'].each do |i|
      topic_tmp = Topic.new
      topic_tmp.deserialize(i)
      @TopicList << topic_tmp
    end
  end
  @TotalCount = params['TotalCount']
end