lib/v20190819/models.rb in tencentcloud-sdk-ckafka-1.0.227 vs lib/v20190819/models.rb in tencentcloud-sdk-ckafka-1.0.228

- old
+ new

@@ -1123,14 +1123,16 @@ # @type EnableAclRule: Integer # @param AclRuleName: 预设ACL规则的名称 # @type AclRuleName: String # @param RetentionBytes: 可选, 保留文件大小. 默认为-1,单位bytes, 当前最小值为1048576B # @type RetentionBytes: Integer + # @param Tags: 标签列表 + # @type Tags: Array - attr_accessor :InstanceId, :TopicName, :PartitionNum, :ReplicaNum, :EnableWhiteList, :IpWhiteList, :CleanUpPolicy, :Note, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :EnableAclRule, :AclRuleName, :RetentionBytes + attr_accessor :InstanceId, :TopicName, :PartitionNum, :ReplicaNum, :EnableWhiteList, :IpWhiteList, :CleanUpPolicy, :Note, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :EnableAclRule, :AclRuleName, :RetentionBytes, :Tags - 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, enableaclrule=nil, aclrulename=nil, retentionbytes=nil) + 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, enableaclrule=nil, aclrulename=nil, retentionbytes=nil, tags=nil) @InstanceId = instanceid @TopicName = topicname @PartitionNum = partitionnum @ReplicaNum = replicanum @EnableWhiteList = enablewhitelist @@ -1142,10 +1144,11 @@ @RetentionMs = retentionms @SegmentMs = segmentms @EnableAclRule = enableaclrule @AclRuleName = aclrulename @RetentionBytes = retentionbytes + @Tags = tags end def deserialize(params) @InstanceId = params['InstanceId'] @TopicName = params['TopicName'] @@ -1160,9 +1163,17 @@ @RetentionMs = params['RetentionMs'] @SegmentMs = params['SegmentMs'] @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 end end # 创建主题返回 class CreateTopicResp < TencentCloud::Common::AbstractModel