Class: TencentCloud::Cls::V20201016::SendConsumerHeartbeatRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::SendConsumerHeartbeatRequest
- Defined in:
- lib/v20201016/models.rb
Overview
SendConsumerHeartbeat请求参数结构体
Instance Attribute Summary collapse
-
#Consumer ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256).
-
#ConsumerGroup ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256).
-
#LogsetId ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256).
-
#TopicPartitionsInfo ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256).
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(consumergroup = nil, consumer = nil, logsetid = nil, topicpartitionsinfo = nil) ⇒ SendConsumerHeartbeatRequest
constructor
A new instance of SendConsumerHeartbeatRequest.
Constructor Details
#initialize(consumergroup = nil, consumer = nil, logsetid = nil, topicpartitionsinfo = nil) ⇒ SendConsumerHeartbeatRequest
Returns a new instance of SendConsumerHeartbeatRequest.
17181 17182 17183 17184 17185 17186 |
# File 'lib/v20201016/models.rb', line 17181 def initialize(consumergroup=nil, consumer=nil, logsetid=nil, topicpartitionsinfo=nil) @ConsumerGroup = consumergroup @Consumer = consumer @LogsetId = logsetid @TopicPartitionsInfo = topicpartitionsinfo end |
Instance Attribute Details
#Consumer ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256)
17179 17180 17181 |
# File 'lib/v20201016/models.rb', line 17179 def Consumer @Consumer end |
#ConsumerGroup ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256)
17179 17180 17181 |
# File 'lib/v20201016/models.rb', line 17179 def ConsumerGroup @ConsumerGroup end |
#LogsetId ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256)
17179 17180 17181 |
# File 'lib/v20201016/models.rb', line 17179 def LogsetId @LogsetId end |
#TopicPartitionsInfo ⇒ Object
(字母数字下划线,不允许数字、_开头, 长度小于256)
17179 17180 17181 |
# File 'lib/v20201016/models.rb', line 17179 def TopicPartitionsInfo @TopicPartitionsInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 |
# File 'lib/v20201016/models.rb', line 17188 def deserialize(params) @ConsumerGroup = params['ConsumerGroup'] @Consumer = params['Consumer'] @LogsetId = params['LogsetId'] unless params['TopicPartitionsInfo'].nil? @TopicPartitionsInfo = [] params['TopicPartitionsInfo'].each do |i| topicpartitioninfo_tmp = TopicPartitionInfo.new topicpartitioninfo_tmp.deserialize(i) @TopicPartitionsInfo << topicpartitioninfo_tmp end end end |