Class: TencentCloud::Cls::V20201016::ModifyKafkaConsumerRequest

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

Overview

ModifyKafkaConsumer请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fromtopicid = nil, compression = nil, consumercontent = nil) ⇒ ModifyKafkaConsumerRequest

Returns a new instance of ModifyKafkaConsumerRequest.



14536
14537
14538
14539
14540
# File 'lib/v20201016/models.rb', line 14536

def initialize(fromtopicid=nil, compression=nil, consumercontent=nil)
  @FromTopicId = fromtopicid
  @Compression = compression
  @ConsumerContent = consumercontent
end

Instance Attribute Details

#Compression ⇒ Object

Parameters:

  • FromTopicId: —

    日志主题Id。

  • Compression: —

    压缩方式。0:不压缩;2:使用Snappy压缩;3:使用LZ4压缩

  • ConsumerContent: —

    kafka协议消费数据格式



14534
14535
14536
# File 'lib/v20201016/models.rb', line 14534

def Compression
  @Compression
end

#ConsumerContent ⇒ Object

Parameters:

  • FromTopicId: —

    日志主题Id。

  • Compression: —

    压缩方式。0:不压缩;2:使用Snappy压缩;3:使用LZ4压缩

  • ConsumerContent: —

    kafka协议消费数据格式



14534
14535
14536
# File 'lib/v20201016/models.rb', line 14534

def ConsumerContent
  @ConsumerContent
end

#FromTopicId ⇒ Object

Parameters:

  • FromTopicId: —

    日志主题Id。

  • Compression: —

    压缩方式。0:不压缩;2:使用Snappy压缩;3:使用LZ4压缩

  • ConsumerContent: —

    kafka协议消费数据格式



14534
14535
14536
# File 'lib/v20201016/models.rb', line 14534

def FromTopicId
  @FromTopicId
end

Instance Method Details

#deserialize(params) ⇒ Object



14542
14543
14544
14545
14546
14547
14548
14549
# File 'lib/v20201016/models.rb', line 14542

def deserialize(params)
  @FromTopicId = params['FromTopicId']
  @Compression = params['Compression']
  unless params['ConsumerContent'].nil?
    @ConsumerContent = KafkaConsumerContent.new
    @ConsumerContent.deserialize(params['ConsumerContent'])
  end
end