Class: TencentCloud::Ckafka::V20190819::BatchModifyTopicAttributesRequest

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

Overview

BatchModifyTopicAttributes请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, topic = nil) ⇒ BatchModifyTopicAttributesRequest

Returns a new instance of BatchModifyTopicAttributesRequest.



459
460
461
462
# File 'lib/v20190819/models.rb', line 459

def initialize(instanceid=nil, topic=nil)
  @InstanceId = instanceid
  @Topic = topic
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • Topic:

    主题属性列表 (同一个批次最多支持10个),可通过DescribeTopic接口获取



457
458
459
# File 'lib/v20190819/models.rb', line 457

def InstanceId
  @InstanceId
end

#TopicObject

Parameters:

  • InstanceId:

    ckafka集群实例Id,可通过DescribeInstances接口获取

  • Topic:

    主题属性列表 (同一个批次最多支持10个),可通过DescribeTopic接口获取



457
458
459
# File 'lib/v20190819/models.rb', line 457

def Topic
  @Topic
end

Instance Method Details

#deserialize(params) ⇒ Object



464
465
466
467
468
469
470
471
472
473
474
# File 'lib/v20190819/models.rb', line 464

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['Topic'].nil?
    @Topic = []
    params['Topic'].each do |i|
      batchmodifytopicinfo_tmp = BatchModifyTopicInfo.new
      batchmodifytopicinfo_tmp.deserialize(i)
      @Topic << batchmodifytopicinfo_tmp
    end
  end
end