Class: TencentCloud::Tke::V20220501::DescribeNodePoolsResponse

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

Overview

DescribeNodePools返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nodepools = nil, totalcount = nil, requestid = nil) ⇒ DescribeNodePoolsResponse

Returns a new instance of DescribeNodePoolsResponse.



1045
1046
1047
1048
1049
# File 'lib/v20220501/models.rb', line 1045

def initialize(nodepools=nil, totalcount=nil, requestid=nil)
  @NodePools = nodepools
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#NodePoolsObject

Parameters:

  • NodePools:

    节点池列表

  • TotalCount:

    资源总数

  • RequestId:

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



1043
1044
1045
# File 'lib/v20220501/models.rb', line 1043

def NodePools
  @NodePools
end

#RequestIdObject

Parameters:

  • NodePools:

    节点池列表

  • TotalCount:

    资源总数

  • RequestId:

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



1043
1044
1045
# File 'lib/v20220501/models.rb', line 1043

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • NodePools:

    节点池列表

  • TotalCount:

    资源总数

  • RequestId:

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



1043
1044
1045
# File 'lib/v20220501/models.rb', line 1043

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
# File 'lib/v20220501/models.rb', line 1051

def deserialize(params)
  unless params['NodePools'].nil?
    @NodePools = []
    params['NodePools'].each do |i|
      nodepool_tmp = NodePool.new
      nodepool_tmp.deserialize(i)
      @NodePools << nodepool_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end