Class: TencentCloud::Ckafka::V20190819::BatchModifyTopicInfo

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

Overview

批量修改topic参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topicname = nil, partitionnum = nil, note = nil, replicanum = nil, cleanuppolicy = nil, mininsyncreplicas = nil, uncleanleaderelectionenable = nil, retentionms = nil, retentionbytes = nil, segmentms = nil, maxmessagebytes = nil, logmsgtimestamptype = nil) ⇒ BatchModifyTopicInfo

Returns a new instance of BatchModifyTopicInfo.



533
534
535
536
537
538
539
540
541
542
543
544
545
546
# File 'lib/v20190819/models.rb', line 533

def initialize(topicname=nil, partitionnum=nil, note=nil, replicanum=nil, cleanuppolicy=nil, mininsyncreplicas=nil, uncleanleaderelectionenable=nil, retentionms=nil, retentionbytes=nil, segmentms=nil, maxmessagebytes=nil, logmsgtimestamptype=nil)
  @TopicName = topicname
  @PartitionNum = partitionnum
  @Note = note
  @ReplicaNum = replicanum
  @CleanUpPolicy = cleanuppolicy
  @MinInsyncReplicas = mininsyncreplicas
  @UncleanLeaderElectionEnable = uncleanleaderelectionenable
  @RetentionMs = retentionms
  @RetentionBytes = retentionbytes
  @SegmentMs = segmentms
  @MaxMessageBytes = maxmessagebytes
  @LogMsgTimestampType = logmsgtimestamptype
end

Instance Attribute Details

#CleanUpPolicyObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def CleanUpPolicy
  @CleanUpPolicy
end

#LogMsgTimestampTypeObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def LogMsgTimestampType
  @LogMsgTimestampType
end

#MaxMessageBytesObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def MaxMessageBytes
  @MaxMessageBytes
end

#MinInsyncReplicasObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def MinInsyncReplicas
  @MinInsyncReplicas
end

#NoteObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def Note
  @Note
end

#PartitionNumObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def PartitionNum
  @PartitionNum
end

#ReplicaNumObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def ReplicaNum
  @ReplicaNum
end

#RetentionBytesObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def RetentionBytes
  @RetentionBytes
end

#RetentionMsObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def RetentionMs
  @RetentionMs
end

#SegmentMsObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def SegmentMs
  @SegmentMs
end

#TopicNameObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def TopicName
  @TopicName
end

#UncleanLeaderElectionEnableObject

Parameters:

  • TopicName:

    主题名

  • PartitionNum:

    分区数

  • Note:

    备注

  • ReplicaNum:

    副本数

  • CleanUpPolicy:

    消息删除策略,可以选择delete 或者compact

  • MinInsyncReplicas:

    当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目

  • UncleanLeaderElectionEnable:

    是否允许非ISR的副本成为Leader

  • RetentionMs:

    topic维度的消息保留时间(毫秒)范围1 分钟到90 天

  • RetentionBytes:

    topic维度的消息保留大小,单位为Byte,范围1 GB到1024 GB。

  • SegmentMs:

    Segment分片滚动的时长(毫秒),范围1 天到90 天

  • MaxMessageBytes:

    批次的消息大小,范围1 KB到12 MB

  • LogMsgTimestampType:

    消息保存的时间类型:CreateTime/LogAppendTime



531
532
533
# File 'lib/v20190819/models.rb', line 531

def UncleanLeaderElectionEnable
  @UncleanLeaderElectionEnable
end

Instance Method Details

#deserialize(params) ⇒ Object



548
549
550
551
552
553
554
555
556
557
558
559
560
561
# File 'lib/v20190819/models.rb', line 548

def deserialize(params)
  @TopicName = params['TopicName']
  @PartitionNum = params['PartitionNum']
  @Note = params['Note']
  @ReplicaNum = params['ReplicaNum']
  @CleanUpPolicy = params['CleanUpPolicy']
  @MinInsyncReplicas = params['MinInsyncReplicas']
  @UncleanLeaderElectionEnable = params['UncleanLeaderElectionEnable']
  @RetentionMs = params['RetentionMs']
  @RetentionBytes = params['RetentionBytes']
  @SegmentMs = params['SegmentMs']
  @MaxMessageBytes = params['MaxMessageBytes']
  @LogMsgTimestampType = params['LogMsgTimestampType']
end