Class: TencentCloud::Ckafka::V20190819::DatahubTopicDTO

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

Overview

Datahub主题

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, topicname = nil, topicid = nil, partitionnum = nil, retentionms = nil, note = nil, status = nil) ⇒ DatahubTopicDTO

Returns a new instance of DatahubTopicDTO.



3153
3154
3155
3156
3157
3158
3159
3160
3161
# File 'lib/v20190819/models.rb', line 3153

def initialize(name=nil, topicname=nil, topicid=nil, partitionnum=nil, retentionms=nil, note=nil, status=nil)
  @Name = name
  @TopicName = topicname
  @TopicId = topicid
  @PartitionNum = partitionnum
  @RetentionMs = retentionms
  @Note = note
  @Status = status
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    名称

  • TopicName:

    Topic名称

  • TopicId:

    Topic Id

  • PartitionNum:

    分区数

  • RetentionMs:

    过期时间,单位ms

  • Note:

    备注

  • Status:

    状态,1使用中,2删除中



3151
3152
3153
# File 'lib/v20190819/models.rb', line 3151

def Name
  @Name
end

#NoteObject

Parameters:

  • Name:

    名称

  • TopicName:

    Topic名称

  • TopicId:

    Topic Id

  • PartitionNum:

    分区数

  • RetentionMs:

    过期时间,单位ms

  • Note:

    备注

  • Status:

    状态,1使用中,2删除中



3151
3152
3153
# File 'lib/v20190819/models.rb', line 3151

def Note
  @Note
end

#PartitionNumObject

Parameters:

  • Name:

    名称

  • TopicName:

    Topic名称

  • TopicId:

    Topic Id

  • PartitionNum:

    分区数

  • RetentionMs:

    过期时间,单位ms

  • Note:

    备注

  • Status:

    状态,1使用中,2删除中



3151
3152
3153
# File 'lib/v20190819/models.rb', line 3151

def PartitionNum
  @PartitionNum
end

#RetentionMsObject

Parameters:

  • Name:

    名称

  • TopicName:

    Topic名称

  • TopicId:

    Topic Id

  • PartitionNum:

    分区数

  • RetentionMs:

    过期时间,单位ms

  • Note:

    备注

  • Status:

    状态,1使用中,2删除中



3151
3152
3153
# File 'lib/v20190819/models.rb', line 3151

def RetentionMs
  @RetentionMs
end

#StatusObject

Parameters:

  • Name:

    名称

  • TopicName:

    Topic名称

  • TopicId:

    Topic Id

  • PartitionNum:

    分区数

  • RetentionMs:

    过期时间,单位ms

  • Note:

    备注

  • Status:

    状态,1使用中,2删除中



3151
3152
3153
# File 'lib/v20190819/models.rb', line 3151

def Status
  @Status
end

#TopicIdObject

Parameters:

  • Name:

    名称

  • TopicName:

    Topic名称

  • TopicId:

    Topic Id

  • PartitionNum:

    分区数

  • RetentionMs:

    过期时间,单位ms

  • Note:

    备注

  • Status:

    状态,1使用中,2删除中



3151
3152
3153
# File 'lib/v20190819/models.rb', line 3151

def TopicId
  @TopicId
end

#TopicNameObject

Parameters:

  • Name:

    名称

  • TopicName:

    Topic名称

  • TopicId:

    Topic Id

  • PartitionNum:

    分区数

  • RetentionMs:

    过期时间,单位ms

  • Note:

    备注

  • Status:

    状态,1使用中,2删除中



3151
3152
3153
# File 'lib/v20190819/models.rb', line 3151

def TopicName
  @TopicName
end

Instance Method Details

#deserialize(params) ⇒ Object



3163
3164
3165
3166
3167
3168
3169
3170
3171
# File 'lib/v20190819/models.rb', line 3163

def deserialize(params)
  @Name = params['Name']
  @TopicName = params['TopicName']
  @TopicId = params['TopicId']
  @PartitionNum = params['PartitionNum']
  @RetentionMs = params['RetentionMs']
  @Note = params['Note']
  @Status = params['Status']
end