Class: TencentCloud::Tdmq::V20200217::Topic

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

Overview

主题实例

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(averagemsgsize = nil, consumercount = nil, lastconfirmedentry = nil, lastledgercreatedtimestamp = nil, msgratein = nil, msgrateout = nil, msgthroughputin = nil, msgthroughputout = nil, numberofentries = nil, partitions = nil, producercount = nil, totalsize = nil, subtopicsets = nil, topictype = nil, environmentid = nil, topicname = nil, remark = nil, createtime = nil, updatetime = nil, producerlimit = nil, consumerlimit = nil, pulsartopictype = nil, msgttl = nil) ⇒ Topic

Returns a new instance of Topic.



13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
# File 'lib/v20200217/models.rb', line 13215

def initialize(averagemsgsize=nil, consumercount=nil, lastconfirmedentry=nil, lastledgercreatedtimestamp=nil, msgratein=nil, msgrateout=nil, msgthroughputin=nil, msgthroughputout=nil, numberofentries=nil, partitions=nil, producercount=nil, totalsize=nil, subtopicsets=nil, topictype=nil, environmentid=nil, topicname=nil, remark=nil, createtime=nil, updatetime=nil, producerlimit=nil, consumerlimit=nil, pulsartopictype=nil, msgttl=nil)
  @AverageMsgSize = averagemsgsize
  @ConsumerCount = consumercount
  @LastConfirmedEntry = lastconfirmedentry
  @LastLedgerCreatedTimestamp = lastledgercreatedtimestamp
  @MsgRateIn = msgratein
  @MsgRateOut = msgrateout
  @MsgThroughputIn = msgthroughputin
  @MsgThroughputOut = msgthroughputout
  @NumberOfEntries = numberofentries
  @Partitions = partitions
  @ProducerCount = producercount
  @TotalSize = totalsize
  @SubTopicSets = subtopicsets
  @TopicType = topictype
  @EnvironmentId = environmentid
  @TopicName = topicname
  @Remark = remark
  @CreateTime = createtime
  @UpdateTime = updatetime
  @ProducerLimit = producerlimit
  @ConsumerLimit = consumerlimit
  @PulsarTopicType = pulsartopictype
  @MsgTTL = msgttl
end

Instance Attribute Details

#AverageMsgSizeObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def AverageMsgSize
  @AverageMsgSize
end

#ConsumerCountObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def ConsumerCount
  @ConsumerCount
end

#ConsumerLimitObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def ConsumerLimit
  @ConsumerLimit
end

#CreateTimeObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def CreateTime
  @CreateTime
end

#EnvironmentIdObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def EnvironmentId
  @EnvironmentId
end

#LastConfirmedEntryObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def LastConfirmedEntry
  @LastConfirmedEntry
end

#LastLedgerCreatedTimestampObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def LastLedgerCreatedTimestamp
  @LastLedgerCreatedTimestamp
end

#MsgRateInObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def MsgRateIn
  @MsgRateIn
end

#MsgRateOutObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def MsgRateOut
  @MsgRateOut
end

#MsgThroughputInObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def MsgThroughputIn
  @MsgThroughputIn
end

#MsgThroughputOutObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def MsgThroughputOut
  @MsgThroughputOut
end

#MsgTTLObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def MsgTTL
  @MsgTTL
end

#NumberOfEntriesObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def NumberOfEntries
  @NumberOfEntries
end

#PartitionsObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def Partitions
  @Partitions
end

#ProducerCountObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def ProducerCount
  @ProducerCount
end

#ProducerLimitObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def ProducerLimit
  @ProducerLimit
end

#PulsarTopicTypeObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def PulsarTopicType
  @PulsarTopicType
end

#RemarkObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def Remark
  @Remark
end

#SubTopicSetsObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def SubTopicSets
  @SubTopicSets
end

#TopicNameObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def TopicName
  @TopicName
end

#TopicTypeObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def TopicType
  @TopicType
end

#TotalSizeObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def TotalSize
  @TotalSize
end

#UpdateTimeObject

注意:此字段可能返回 null,表示取不到有效值。



13213
13214
13215
# File 'lib/v20200217/models.rb', line 13213

def UpdateTime
  @UpdateTime
end

Instance Method Details

#deserialize(params) ⇒ Object



13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
# File 'lib/v20200217/models.rb', line 13241

def deserialize(params)
  @AverageMsgSize = params['AverageMsgSize']
  @ConsumerCount = params['ConsumerCount']
  @LastConfirmedEntry = params['LastConfirmedEntry']
  @LastLedgerCreatedTimestamp = params['LastLedgerCreatedTimestamp']
  @MsgRateIn = params['MsgRateIn']
  @MsgRateOut = params['MsgRateOut']
  @MsgThroughputIn = params['MsgThroughputIn']
  @MsgThroughputOut = params['MsgThroughputOut']
  @NumberOfEntries = params['NumberOfEntries']
  @Partitions = params['Partitions']
  @ProducerCount = params['ProducerCount']
  @TotalSize = params['TotalSize']
  unless params['SubTopicSets'].nil?
    @SubTopicSets = []
    params['SubTopicSets'].each do |i|
      partitionstopic_tmp = PartitionsTopic.new
      partitionstopic_tmp.deserialize(i)
      @SubTopicSets << partitionstopic_tmp
    end
  end
  @TopicType = params['TopicType']
  @EnvironmentId = params['EnvironmentId']
  @TopicName = params['TopicName']
  @Remark = params['Remark']
  @CreateTime = params['CreateTime']
  @UpdateTime = params['UpdateTime']
  @ProducerLimit = params['ProducerLimit']
  @ConsumerLimit = params['ConsumerLimit']
  @PulsarTopicType = params['PulsarTopicType']
  @MsgTTL = params['MsgTTL']
end