Class: TencentCloud::Emr::V20190103::NodeSpecType

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

Overview

节点机型类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, typename = nil, order = nil, instancefamilies = nil) ⇒ NodeSpecType

Returns a new instance of NodeSpecType.



10593
10594
10595
10596
10597
10598
# File 'lib/v20190103/models.rb', line 10593

def initialize(type=nil, typename=nil, order=nil, instancefamilies=nil)
  @Type = type
  @TypeName = typename
  @Order = order
  @InstanceFamilies = instancefamilies
end

Instance Attribute Details

#InstanceFamiliesObject

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

Parameters:

  • 机型序列

  • 机型序列名字

  • 排序

  • InstanceFamily数组



10591
10592
10593
# File 'lib/v20190103/models.rb', line 10591

def InstanceFamilies
  @InstanceFamilies
end

#OrderObject

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

Parameters:

  • 机型序列

  • 机型序列名字

  • 排序

  • InstanceFamily数组



10591
10592
10593
# File 'lib/v20190103/models.rb', line 10591

def Order
  @Order
end

#TypeObject

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

Parameters:

  • 机型序列

  • 机型序列名字

  • 排序

  • InstanceFamily数组



10591
10592
10593
# File 'lib/v20190103/models.rb', line 10591

def Type
  @Type
end

#TypeNameObject

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

Parameters:

  • 机型序列

  • 机型序列名字

  • 排序

  • InstanceFamily数组



10591
10592
10593
# File 'lib/v20190103/models.rb', line 10591

def TypeName
  @TypeName
end

Instance Method Details

#deserialize(params) ⇒ Object



10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
# File 'lib/v20190103/models.rb', line 10600

def deserialize(params)
  @Type = params['Type']
  @TypeName = params['TypeName']
  @Order = params['Order']
  unless params['InstanceFamilies'].nil?
    @InstanceFamilies = []
    params['InstanceFamilies'].each do |i|
      nodespecfamily_tmp = NodeSpecFamily.new
      nodespecfamily_tmp.deserialize(i)
      @InstanceFamilies << nodespecfamily_tmp
    end
  end
end