Class: TencentCloud::Cls::V20201016::OpenKafkaConsumerRequest

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

Overview

OpenKafkaConsumer请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of OpenKafkaConsumerRequest.



15950
15951
15952
15953
15954
# File 'lib/v20201016/models.rb', line 15950

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:NONE;2:SNAPPY;3:LZ4],默认:0

  • ConsumerContent: —

    kafka协议消费数据格式



15948
15949
15950
# File 'lib/v20201016/models.rb', line 15948

def Compression
  @Compression
end

#ConsumerContent ⇒ Object

Parameters:

  • FromTopicId: —

    日志主题Id。

  • Compression: —

    压缩方式[0:NONE;2:SNAPPY;3:LZ4],默认:0

  • ConsumerContent: —

    kafka协议消费数据格式



15948
15949
15950
# File 'lib/v20201016/models.rb', line 15948

def ConsumerContent
  @ConsumerContent
end

#FromTopicId ⇒ Object

Parameters:

  • FromTopicId: —

    日志主题Id。

  • Compression: —

    压缩方式[0:NONE;2:SNAPPY;3:LZ4],默认:0

  • ConsumerContent: —

    kafka协议消费数据格式



15948
15949
15950
# File 'lib/v20201016/models.rb', line 15948

def FromTopicId
  @FromTopicId
end

Instance Method Details

#deserialize(params) ⇒ Object



15956
15957
15958
15959
15960
15961
15962
15963
# File 'lib/v20201016/models.rb', line 15956

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