Class: TencentCloud::Ckafka::V20190819::ModifyDatahubTopicRequest

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

Overview

ModifyDatahubTopic请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, retentionms = nil, note = nil, tags = nil) ⇒ ModifyDatahubTopicRequest

Returns a new instance of ModifyDatahubTopicRequest.



9201
9202
9203
9204
9205
9206
# File 'lib/v20190819/models.rb', line 9201

def initialize(name=nil, retentionms=nil, note=nil, tags=nil)
  @Name = name
  @RetentionMs = retentionms
  @Note = note
  @Tags = tags
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    弹性topic名称

  • RetentionMs:

    消息保留时间,单位:ms,当前最小值为60000ms。

  • Note:

    主题备注,是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线-。

  • Tags:

    标签列表



9199
9200
9201
# File 'lib/v20190819/models.rb', line 9199

def Name
  @Name
end

#NoteObject

Parameters:

  • Name:

    弹性topic名称

  • RetentionMs:

    消息保留时间,单位:ms,当前最小值为60000ms。

  • Note:

    主题备注,是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线-。

  • Tags:

    标签列表



9199
9200
9201
# File 'lib/v20190819/models.rb', line 9199

def Note
  @Note
end

#RetentionMsObject

Parameters:

  • Name:

    弹性topic名称

  • RetentionMs:

    消息保留时间,单位:ms,当前最小值为60000ms。

  • Note:

    主题备注,是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线-。

  • Tags:

    标签列表



9199
9200
9201
# File 'lib/v20190819/models.rb', line 9199

def RetentionMs
  @RetentionMs
end

#TagsObject

Parameters:

  • Name:

    弹性topic名称

  • RetentionMs:

    消息保留时间,单位:ms,当前最小值为60000ms。

  • Note:

    主题备注,是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线-。

  • Tags:

    标签列表



9199
9200
9201
# File 'lib/v20190819/models.rb', line 9199

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
# File 'lib/v20190819/models.rb', line 9208

def deserialize(params)
  @Name = params['Name']
  @RetentionMs = params['RetentionMs']
  @Note = params['Note']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end