Class: TencentCloud::Tdmq::V20200217::DescribeTopicsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::DescribeTopicsResponse
- Defined in:
- lib/v20200217/models.rb
Overview
DescribeTopics返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topicsets = nil, totalcount = nil, requestid = nil) ⇒ DescribeTopicsResponse
constructor
A new instance of DescribeTopicsResponse.
Constructor Details
#initialize(topicsets = nil, totalcount = nil, requestid = nil) ⇒ DescribeTopicsResponse
Returns a new instance of DescribeTopicsResponse.
7897 7898 7899 7900 7901 |
# File 'lib/v20200217/models.rb', line 7897 def initialize(topicsets=nil, totalcount=nil, requestid=nil) @TopicSets = topicsets @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#RequestId ⇒ Object
7895 7896 7897 |
# File 'lib/v20200217/models.rb', line 7895 def RequestId @RequestId end |
#TopicSets ⇒ Object
7895 7896 7897 |
# File 'lib/v20200217/models.rb', line 7895 def TopicSets @TopicSets end |
#TotalCount ⇒ Object
7895 7896 7897 |
# File 'lib/v20200217/models.rb', line 7895 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 |
# File 'lib/v20200217/models.rb', line 7903 def deserialize(params) unless params['TopicSets'].nil? @TopicSets = [] params['TopicSets'].each do |i| topic_tmp = Topic.new topic_tmp.deserialize(i) @TopicSets << topic_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end |