Class: TencentCloud::Tdmq::V20200217::DescribePublishersRequest

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

Overview

DescribePublishers请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, namespace = nil, topic = nil, filters = nil, offset = nil, limit = nil, sort = nil) ⇒ DescribePublishersRequest

Returns a new instance of DescribePublishersRequest.



4719
4720
4721
4722
4723
4724
4725
4726
4727
# File 'lib/v20200217/models.rb', line 4719

def initialize(clusterid=nil, namespace=nil, topic=nil, filters=nil, offset=nil, limit=nil, sort=nil)
  @ClusterId = clusterid
  @Namespace = namespace
  @Topic = topic
  @Filters = filters
  @Offset = offset
  @Limit = limit
  @Sort = sort
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • Namespace:

    命名空间名称

  • Topic:

    主题名称

  • Filters:

    参数过滤器,支持ProducerName,Address字段

  • Offset:

    查询偏移量,默认为0

  • Limit:

    查询条数,默认为20

  • Sort:

    排序器



4717
4718
4719
# File 'lib/v20200217/models.rb', line 4717

def ClusterId
  @ClusterId
end

#FiltersObject

Parameters:

  • ClusterId:

    集群ID

  • Namespace:

    命名空间名称

  • Topic:

    主题名称

  • Filters:

    参数过滤器,支持ProducerName,Address字段

  • Offset:

    查询偏移量,默认为0

  • Limit:

    查询条数,默认为20

  • Sort:

    排序器



4717
4718
4719
# File 'lib/v20200217/models.rb', line 4717

def Filters
  @Filters
end

#LimitObject

Parameters:

  • ClusterId:

    集群ID

  • Namespace:

    命名空间名称

  • Topic:

    主题名称

  • Filters:

    参数过滤器,支持ProducerName,Address字段

  • Offset:

    查询偏移量,默认为0

  • Limit:

    查询条数,默认为20

  • Sort:

    排序器



4717
4718
4719
# File 'lib/v20200217/models.rb', line 4717

def Limit
  @Limit
end

#NamespaceObject

Parameters:

  • ClusterId:

    集群ID

  • Namespace:

    命名空间名称

  • Topic:

    主题名称

  • Filters:

    参数过滤器,支持ProducerName,Address字段

  • Offset:

    查询偏移量,默认为0

  • Limit:

    查询条数,默认为20

  • Sort:

    排序器



4717
4718
4719
# File 'lib/v20200217/models.rb', line 4717

def Namespace
  @Namespace
end

#OffsetObject

Parameters:

  • ClusterId:

    集群ID

  • Namespace:

    命名空间名称

  • Topic:

    主题名称

  • Filters:

    参数过滤器,支持ProducerName,Address字段

  • Offset:

    查询偏移量,默认为0

  • Limit:

    查询条数,默认为20

  • Sort:

    排序器



4717
4718
4719
# File 'lib/v20200217/models.rb', line 4717

def Offset
  @Offset
end

#SortObject

Parameters:

  • ClusterId:

    集群ID

  • Namespace:

    命名空间名称

  • Topic:

    主题名称

  • Filters:

    参数过滤器,支持ProducerName,Address字段

  • Offset:

    查询偏移量,默认为0

  • Limit:

    查询条数,默认为20

  • Sort:

    排序器



4717
4718
4719
# File 'lib/v20200217/models.rb', line 4717

def Sort
  @Sort
end

#TopicObject

Parameters:

  • ClusterId:

    集群ID

  • Namespace:

    命名空间名称

  • Topic:

    主题名称

  • Filters:

    参数过滤器,支持ProducerName,Address字段

  • Offset:

    查询偏移量,默认为0

  • Limit:

    查询条数,默认为20

  • Sort:

    排序器



4717
4718
4719
# File 'lib/v20200217/models.rb', line 4717

def Topic
  @Topic
end

Instance Method Details

#deserialize(params) ⇒ Object



4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
# File 'lib/v20200217/models.rb', line 4729

def deserialize(params)
  @ClusterId = params['ClusterId']
  @Namespace = params['Namespace']
  @Topic = params['Topic']
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filters << filter_tmp
    end
  end
  @Offset = params['Offset']
  @Limit = params['Limit']
  unless params['Sort'].nil?
    @Sort = Sort.new
    @Sort.deserialize(params['Sort'])
  end
end