Class: TencentCloud::Ckafka::V20190819::GroupOffsetResponse

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

Overview

消费组偏移量返回结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GroupOffsetResponse.



7429
7430
7431
7432
# File 'lib/v20190819/models.rb', line 7429

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

Instance Attribute Details

#TopicListObject

Parameters:

  • TotalCount:

    符合调节的总结果数

  • TopicList:

    该主题分区数组,其中每个元素为一个 json object



7427
7428
7429
# File 'lib/v20190819/models.rb', line 7427

def TopicList
  @TopicList
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合调节的总结果数

  • TopicList:

    该主题分区数组,其中每个元素为一个 json object



7427
7428
7429
# File 'lib/v20190819/models.rb', line 7427

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
# File 'lib/v20190819/models.rb', line 7434

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