Class: TencentCloud::Ckafka::V20190819::ConsumerGroupResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::ConsumerGroupResponse
- Defined in:
- lib/v20190819/models.rb
Overview
消费组返回结果实体
Instance Attribute Summary collapse
- #GroupList ⇒ Object
- #GroupListForMonitor ⇒ Object
- #PartitionListForMonitor ⇒ Object
- #TopicList ⇒ Object
- #TopicListForMonitor ⇒ Object
- #TotalCount ⇒ Object
- #TotalPartition ⇒ Object
- #TotalTopic ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, topiclist = nil, grouplist = nil, totalpartition = nil, partitionlistformonitor = nil, totaltopic = nil, topiclistformonitor = nil, grouplistformonitor = nil) ⇒ ConsumerGroupResponse
constructor
A new instance of ConsumerGroupResponse.
Constructor Details
#initialize(totalcount = nil, topiclist = nil, grouplist = nil, totalpartition = nil, partitionlistformonitor = nil, totaltopic = nil, topiclistformonitor = nil, grouplistformonitor = nil) ⇒ ConsumerGroupResponse
Returns a new instance of ConsumerGroupResponse.
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 |
# File 'lib/v20190819/models.rb', line 1172 def initialize(totalcount=nil, topiclist=nil, grouplist=nil, totalpartition=nil, partitionlistformonitor=nil, totaltopic=nil, topiclistformonitor=nil, grouplistformonitor=nil) @TotalCount = totalcount @TopicList = topiclist @GroupList = grouplist @TotalPartition = totalpartition @PartitionListForMonitor = partitionlistformonitor @TotalTopic = totaltopic @TopicListForMonitor = topiclistformonitor @GroupListForMonitor = grouplistformonitor end |
Instance Attribute Details
#GroupList ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def GroupList @GroupList end |
#GroupListForMonitor ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def GroupListForMonitor @GroupListForMonitor end |
#PartitionListForMonitor ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def PartitionListForMonitor @PartitionListForMonitor end |
#TopicList ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def TopicList @TopicList end |
#TopicListForMonitor ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def TopicListForMonitor @TopicListForMonitor end |
#TotalCount ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def TotalCount @TotalCount end |
#TotalPartition ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def TotalPartition @TotalPartition end |
#TotalTopic ⇒ Object
1170 1171 1172 |
# File 'lib/v20190819/models.rb', line 1170 def TotalTopic @TotalTopic end |
Instance Method Details
#deserialize(params) ⇒ Object
1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 |
# File 'lib/v20190819/models.rb', line 1183 def deserialize(params) @TotalCount = params['TotalCount'] unless params['TopicList'].nil? @TopicList = [] params['TopicList'].each do |i| consumergrouptopic_tmp = ConsumerGroupTopic.new consumergrouptopic_tmp.deserialize(i) @TopicList << consumergrouptopic_tmp end end unless params['GroupList'].nil? @GroupList = [] params['GroupList'].each do |i| consumergroup_tmp = ConsumerGroup.new consumergroup_tmp.deserialize(i) @GroupList << consumergroup_tmp end end @TotalPartition = params['TotalPartition'] unless params['PartitionListForMonitor'].nil? @PartitionListForMonitor = [] params['PartitionListForMonitor'].each do |i| partition_tmp = Partition.new partition_tmp.deserialize(i) @PartitionListForMonitor << partition_tmp end end @TotalTopic = params['TotalTopic'] unless params['TopicListForMonitor'].nil? @TopicListForMonitor = [] params['TopicListForMonitor'].each do |i| consumergrouptopic_tmp = ConsumerGroupTopic.new consumergrouptopic_tmp.deserialize(i) @TopicListForMonitor << consumergrouptopic_tmp end end unless params['GroupListForMonitor'].nil? @GroupListForMonitor = [] params['GroupListForMonitor'].each do |i| group_tmp = Group.new group_tmp.deserialize(i) @GroupListForMonitor << group_tmp end end end |