Class: TencentCloud::Emr::V20190103::DescribeNodeSpec

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

Overview

节点规格

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nodetype = nil, nodename = nil, types = nil, cmntypes = nil) ⇒ DescribeNodeSpec

Returns a new instance of DescribeNodeSpec.



4857
4858
4859
4860
4861
4862
# File 'lib/v20190103/models.rb', line 4857

def initialize(nodetype=nil, nodename=nil, types=nil, cmntypes=nil)
  @NodeType = nodetype
  @NodeName = nodename
  @Types = types
  @CmnTypes = cmntypes
end

Instance Attribute Details

#CmnTypesObject

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

Parameters:

  • NodeType:

    节点类型

  • NodeName:

    节点类型名称

  • Types:

    Types数组

  • CmnTypes:

    云托管节点机型规格列表



4855
4856
4857
# File 'lib/v20190103/models.rb', line 4855

def CmnTypes
  @CmnTypes
end

#NodeNameObject

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

Parameters:

  • NodeType:

    节点类型

  • NodeName:

    节点类型名称

  • Types:

    Types数组

  • CmnTypes:

    云托管节点机型规格列表



4855
4856
4857
# File 'lib/v20190103/models.rb', line 4855

def NodeName
  @NodeName
end

#NodeTypeObject

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

Parameters:

  • NodeType:

    节点类型

  • NodeName:

    节点类型名称

  • Types:

    Types数组

  • CmnTypes:

    云托管节点机型规格列表



4855
4856
4857
# File 'lib/v20190103/models.rb', line 4855

def NodeType
  @NodeType
end

#TypesObject

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

Parameters:

  • NodeType:

    节点类型

  • NodeName:

    节点类型名称

  • Types:

    Types数组

  • CmnTypes:

    云托管节点机型规格列表



4855
4856
4857
# File 'lib/v20190103/models.rb', line 4855

def Types
  @Types
end

Instance Method Details

#deserialize(params) ⇒ Object



4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
# File 'lib/v20190103/models.rb', line 4864

def deserialize(params)
  @NodeType = params['NodeType']
  @NodeName = params['NodeName']
  unless params['Types'].nil?
    @Types = []
    params['Types'].each do |i|
      nodespectype_tmp = NodeSpecType.new
      nodespectype_tmp.deserialize(i)
      @Types << nodespectype_tmp
    end
  end
  unless params['CmnTypes'].nil?
    @CmnTypes = []
    params['CmnTypes'].each do |i|
      nodespectype_tmp = NodeSpecType.new
      nodespectype_tmp.deserialize(i)
      @CmnTypes << nodespectype_tmp
    end
  end
end