Class: TencentCloud::Ckafka::V20190819::CreateTopicRequest

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

Overview

CreateTopic请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, topicname = nil, partitionnum = nil, replicanum = nil, enablewhitelist = nil, ipwhitelist = nil, cleanuppolicy = nil, note = nil, mininsyncreplicas = nil, uncleanleaderelectionenable = nil, retentionms = nil, segmentms = nil, maxmessagebytes = nil, enableaclrule = nil, aclrulename = nil, retentionbytes = nil, tags = nil, logmsgtimestamptype = nil) ⇒ CreateTopicRequest

Returns a new instance of CreateTopicRequest.



2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
# File 'lib/v20190819/models.rb', line 2616

def initialize(instanceid=nil, topicname=nil, partitionnum=nil, replicanum=nil, enablewhitelist=nil, ipwhitelist=nil, cleanuppolicy=nil, note=nil, mininsyncreplicas=nil, uncleanleaderelectionenable=nil, retentionms=nil, segmentms=nil, maxmessagebytes=nil, enableaclrule=nil, aclrulename=nil, retentionbytes=nil, tags=nil, logmsgtimestamptype=nil)
  @InstanceId = instanceid
  @TopicName = topicname
  @PartitionNum = partitionnum
  @ReplicaNum = replicanum
  @EnableWhiteList = enablewhitelist
  @IpWhiteList = ipwhitelist
  @CleanUpPolicy = cleanuppolicy
  @Note = note
  @MinInsyncReplicas = mininsyncreplicas
  @UncleanLeaderElectionEnable = uncleanleaderelectionenable
  @RetentionMs = retentionms
  @SegmentMs = segmentms
  @MaxMessageBytes = maxmessagebytes
  @EnableAclRule = enableaclrule
  @AclRuleName = aclrulename
  @RetentionBytes = retentionbytes
  @Tags = tags
  @LogMsgTimestampType = logmsgtimestamptype
end

Instance Attribute Details

#AclRuleNameObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def AclRuleName
  @AclRuleName
end

#CleanUpPolicyObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def CleanUpPolicy
  @CleanUpPolicy
end

#EnableAclRuleObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def EnableAclRule
  @EnableAclRule
end

#EnableWhiteListObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def EnableWhiteList
  @EnableWhiteList
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def InstanceId
  @InstanceId
end

#IpWhiteListObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def IpWhiteList
  @IpWhiteList
end

#LogMsgTimestampTypeObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def LogMsgTimestampType
  @LogMsgTimestampType
end

#MaxMessageBytesObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def MaxMessageBytes
  @MaxMessageBytes
end

#MinInsyncReplicasObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def MinInsyncReplicas
  @MinInsyncReplicas
end

#NoteObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def Note
  @Note
end

#PartitionNumObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def PartitionNum
  @PartitionNum
end

#ReplicaNumObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def ReplicaNum
  @ReplicaNum
end

#RetentionBytesObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def RetentionBytes
  @RetentionBytes
end

#RetentionMsObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def RetentionMs
  @RetentionMs
end

#SegmentMsObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def SegmentMs
  @SegmentMs
end

#TagsObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def Tags
  @Tags
end

#TopicNameObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def TopicName
  @TopicName
end

#UncleanLeaderElectionEnableObject

Parameters:

  • InstanceId:

    实例Id,可通过DescribeInstances接口获取。

  • TopicName:

    只能包含字母、数字、下划线、“-”、“.”

  • PartitionNum:

    Partition个数,大于0

  • ReplicaNum:

    副本个数,不能多于 broker 数,最大为3

  • EnableWhiteList:

    ip白名单开关, 1:打开 0:关闭,默认不打开

  • IpWhiteList:

    Ip白名单列表,配额限制,enableWhileList=1时必选

  • CleanUpPolicy:

    清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。

  • Note:

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

  • MinInsyncReplicas:

    最小同步副本数,默认为1

  • UncleanLeaderElectionEnable:

    是否允许未同步的副本选为leader,0:不允许,1:允许,默认不允许

  • RetentionMs:

    可选参数。消息保留时间,单位ms,当前最小值为60000。默认值为7200000ms(2小时),最大值为7776000000 ms(90天)。

  • SegmentMs:

    Segment分片滚动的时长,单位ms,最小值为86400000ms(1天)。

  • MaxMessageBytes:

    主题消息最大值,单位为 Byte,最小值1024Bytes(即1KB),最大值为12582912Bytes(即12MB)

  • EnableAclRule:

    预设ACL规则, 1:打开 0:关闭,默认不打开

  • AclRuleName:

    预设ACL规则的名称

  • RetentionBytes:

    可选, 保留文件大小. 默认为-1,单位Byte, 当前最小值为1073741824。

  • Tags:

    标签列表

  • LogMsgTimestampType:

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



2614
2615
2616
# File 'lib/v20190819/models.rb', line 2614

def UncleanLeaderElectionEnable
  @UncleanLeaderElectionEnable
end

Instance Method Details

#deserialize(params) ⇒ Object



2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
# File 'lib/v20190819/models.rb', line 2637

def deserialize(params)
  @InstanceId = params['InstanceId']
  @TopicName = params['TopicName']
  @PartitionNum = params['PartitionNum']
  @ReplicaNum = params['ReplicaNum']
  @EnableWhiteList = params['EnableWhiteList']
  @IpWhiteList = params['IpWhiteList']
  @CleanUpPolicy = params['CleanUpPolicy']
  @Note = params['Note']
  @MinInsyncReplicas = params['MinInsyncReplicas']
  @UncleanLeaderElectionEnable = params['UncleanLeaderElectionEnable']
  @RetentionMs = params['RetentionMs']
  @SegmentMs = params['SegmentMs']
  @MaxMessageBytes = params['MaxMessageBytes']
  @EnableAclRule = params['EnableAclRule']
  @AclRuleName = params['AclRuleName']
  @RetentionBytes = params['RetentionBytes']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @LogMsgTimestampType = params['LogMsgTimestampType']
end