Class: TencentCloud::Tke::V20220501::DescribeClusterMachinesResponse

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

Overview

DescribeClusterMachines返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(machines = nil, totalcount = nil, requestid = nil) ⇒ DescribeClusterMachinesResponse

Returns a new instance of DescribeClusterMachinesResponse.



763
764
765
766
767
# File 'lib/v20220501/models.rb', line 763

def initialize(machines=nil, totalcount=nil, requestid=nil)
  @Machines = machines
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#MachinesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Machines:

    节点池节点列表

  • TotalCount:

    资源总数

  • RequestId:

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



761
762
763
# File 'lib/v20220501/models.rb', line 761

def Machines
  @Machines
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Machines:

    节点池节点列表

  • TotalCount:

    资源总数

  • RequestId:

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



761
762
763
# File 'lib/v20220501/models.rb', line 761

def RequestId
  @RequestId
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Machines:

    节点池节点列表

  • TotalCount:

    资源总数

  • RequestId:

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



761
762
763
# File 'lib/v20220501/models.rb', line 761

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



769
770
771
772
773
774
775
776
777
778
779
780
# File 'lib/v20220501/models.rb', line 769

def deserialize(params)
  unless params['Machines'].nil?
    @Machines = []
    params['Machines'].each do |i|
      machine_tmp = Machine.new
      machine_tmp.deserialize(i)
      @Machines << machine_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end