Class: TencentCloud::Cls::V20201016::SendConsumerHeartbeatResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::SendConsumerHeartbeatResponse
- Defined in:
- lib/v20201016/models.rb
Overview
SendConsumerHeartbeat返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(consumergroup = nil, topicpartitionsinfo = nil, requestid = nil) ⇒ SendConsumerHeartbeatResponse
constructor
A new instance of SendConsumerHeartbeatResponse.
Constructor Details
#initialize(consumergroup = nil, topicpartitionsinfo = nil, requestid = nil) ⇒ SendConsumerHeartbeatResponse
Returns a new instance of SendConsumerHeartbeatResponse.
17214 17215 17216 17217 17218 |
# File 'lib/v20201016/models.rb', line 17214 def initialize(consumergroup=nil, topicpartitionsinfo=nil, requestid=nil) @ConsumerGroup = consumergroup @TopicPartitionsInfo = topicpartitionsinfo @RequestId = requestid end |
Instance Attribute Details
#ConsumerGroup ⇒ Object
17212 17213 17214 |
# File 'lib/v20201016/models.rb', line 17212 def ConsumerGroup @ConsumerGroup end |
#RequestId ⇒ Object
17212 17213 17214 |
# File 'lib/v20201016/models.rb', line 17212 def RequestId @RequestId end |
#TopicPartitionsInfo ⇒ Object
17212 17213 17214 |
# File 'lib/v20201016/models.rb', line 17212 def TopicPartitionsInfo @TopicPartitionsInfo end |
Instance Method Details
#deserialize(params) ⇒ Object
17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 |
# File 'lib/v20201016/models.rb', line 17220 def deserialize(params) @ConsumerGroup = params['ConsumerGroup'] unless params['TopicPartitionsInfo'].nil? @TopicPartitionsInfo = [] params['TopicPartitionsInfo'].each do |i| topicpartitioninfo_tmp = TopicPartitionInfo.new topicpartitioninfo_tmp.deserialize(i) @TopicPartitionsInfo << topicpartitioninfo_tmp end end @RequestId = params['RequestId'] end |