Class: TencentCloud::Ckafka::V20190819::CreateTopicRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::CreateTopicRequest
- Defined in:
- lib/v20190819/models.rb
Overview
CreateTopic请求参数结构体
Instance Attribute Summary collapse
- #AclRuleName ⇒ Object
- #CleanUpPolicy ⇒ Object
- #EnableAclRule ⇒ Object
- #EnableWhiteList ⇒ Object
- #InstanceId ⇒ Object
- #IpWhiteList ⇒ Object
- #LogMsgTimestampType ⇒ Object
- #MaxMessageBytes ⇒ Object
- #MinInsyncReplicas ⇒ Object
- #Note ⇒ Object
- #PartitionNum ⇒ Object
- #ReplicaNum ⇒ Object
- #RetentionBytes ⇒ Object
- #RetentionMs ⇒ Object
- #SegmentMs ⇒ Object
- #Tags ⇒ Object
- #TopicName ⇒ Object
- #UncleanLeaderElectionEnable ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#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
constructor
A new instance of CreateTopicRequest.
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, =nil, enableaclrule=nil, aclrulename=nil, retentionbytes=nil, =nil, =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 = @EnableAclRule = enableaclrule @AclRuleName = aclrulename @RetentionBytes = retentionbytes @Tags = @LogMsgTimestampType = end |
Instance Attribute Details
#AclRuleName ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def AclRuleName @AclRuleName end |
#CleanUpPolicy ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def CleanUpPolicy @CleanUpPolicy end |
#EnableAclRule ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def EnableAclRule @EnableAclRule end |
#EnableWhiteList ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def EnableWhiteList @EnableWhiteList end |
#InstanceId ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def InstanceId @InstanceId end |
#IpWhiteList ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def IpWhiteList @IpWhiteList end |
#LogMsgTimestampType ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def LogMsgTimestampType @LogMsgTimestampType end |
#MaxMessageBytes ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def MaxMessageBytes @MaxMessageBytes end |
#MinInsyncReplicas ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def MinInsyncReplicas @MinInsyncReplicas end |
#Note ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def Note @Note end |
#PartitionNum ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def PartitionNum @PartitionNum end |
#ReplicaNum ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def ReplicaNum @ReplicaNum end |
#RetentionBytes ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def RetentionBytes @RetentionBytes end |
#RetentionMs ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def RetentionMs @RetentionMs end |
#SegmentMs ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def SegmentMs @SegmentMs end |
#Tags ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def Tags @Tags end |
#TopicName ⇒ Object
2614 2615 2616 |
# File 'lib/v20190819/models.rb', line 2614 def TopicName @TopicName end |
#UncleanLeaderElectionEnable ⇒ Object
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 |