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



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



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

def NodePools
  @NodePools
end

#RequestIdObject



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

def RequestId
  @RequestId
end

#TotalCountObject



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