Class: TencentCloud::Ckafka::V20190819::TopicResult
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::TopicResult
- Defined in:
- lib/v20190819/models.rb
Overview
统一返回的TopicResponse
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topiclist = nil, totalcount = nil) ⇒ TopicResult
constructor
A new instance of TopicResult.
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
#TopicList ⇒ Object
12108 12109 12110 |
# File 'lib/v20190819/models.rb', line 12108 def TopicList @TopicList end |
#TotalCount ⇒ Object
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 |