Class: TencentCloud::Tdmq::V20200217::DescribeClustersResponse

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

Overview

DescribeClusters返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, clusterset = nil, requestid = nil) ⇒ DescribeClustersResponse

Returns a new instance of DescribeClustersResponse.



3719
3720
3721
3722
3723
# File 'lib/v20200217/models.rb', line 3719

def initialize(totalcount=nil, clusterset=nil, requestid=nil)
  @TotalCount = totalcount
  @ClusterSet = clusterset
  @RequestId = requestid
end

Instance Attribute Details

#ClusterSetObject

Parameters:

  • TotalCount:

    集群列表数量

  • ClusterSet:

    集群信息列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3717
3718
3719
# File 'lib/v20200217/models.rb', line 3717

def ClusterSet
  @ClusterSet
end

#RequestIdObject

Parameters:

  • TotalCount:

    集群列表数量

  • ClusterSet:

    集群信息列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3717
3718
3719
# File 'lib/v20200217/models.rb', line 3717

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    集群列表数量

  • ClusterSet:

    集群信息列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3717
3718
3719
# File 'lib/v20200217/models.rb', line 3717

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
# File 'lib/v20200217/models.rb', line 3725

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['ClusterSet'].nil?
    @ClusterSet = []
    params['ClusterSet'].each do |i|
      cluster_tmp = Cluster.new
      cluster_tmp.deserialize(i)
      @ClusterSet << cluster_tmp
    end
  end
  @RequestId = params['RequestId']
end