Class: TencentCloud::Tke::V20180525::DescribeClustersResponse

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

Overview

DescribeClusters返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeClustersResponse.



6887
6888
6889
6890
6891
# File 'lib/v20180525/models.rb', line 6887

def initialize(totalcount=nil, clusters=nil, requestid=nil)
  @TotalCount = totalcount
  @Clusters = clusters
  @RequestId = requestid
end

Instance Attribute Details

#ClustersObject

Parameters:

  • TotalCount:

    集群总个数

  • Clusters:

    集群信息列表

  • RequestId:

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



6885
6886
6887
# File 'lib/v20180525/models.rb', line 6885

def Clusters
  @Clusters
end

#RequestIdObject

Parameters:

  • TotalCount:

    集群总个数

  • Clusters:

    集群信息列表

  • RequestId:

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



6885
6886
6887
# File 'lib/v20180525/models.rb', line 6885

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    集群总个数

  • Clusters:

    集群信息列表

  • RequestId:

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



6885
6886
6887
# File 'lib/v20180525/models.rb', line 6885

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
# File 'lib/v20180525/models.rb', line 6893

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