Class: TencentCloud::Ckafka::V20190819::GroupOffsetTopic
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::GroupOffsetTopic
- Defined in:
- lib/v20190819/models.rb
Overview
消费分组主题对象
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topic = nil, partitions = nil) ⇒ GroupOffsetTopic
constructor
A new instance of GroupOffsetTopic.
Constructor Details
#initialize(topic = nil, partitions = nil) ⇒ GroupOffsetTopic
Returns a new instance of GroupOffsetTopic.
7456 7457 7458 7459 |
# File 'lib/v20190819/models.rb', line 7456 def initialize(topic=nil, partitions=nil) @Topic = topic @Partitions = partitions end |
Instance Attribute Details
#Partitions ⇒ Object
7454 7455 7456 |
# File 'lib/v20190819/models.rb', line 7454 def Partitions @Partitions end |
#Topic ⇒ Object
7454 7455 7456 |
# File 'lib/v20190819/models.rb', line 7454 def Topic @Topic end |
Instance Method Details
#deserialize(params) ⇒ Object
7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 |
# File 'lib/v20190819/models.rb', line 7461 def deserialize(params) @Topic = params['Topic'] unless params['Partitions'].nil? @Partitions = [] params['Partitions'].each do |i| groupoffsetpartition_tmp = GroupOffsetPartition.new groupoffsetpartition_tmp.deserialize(i) @Partitions << groupoffsetpartition_tmp end end end |