Class: TencentCloud::Tke::V20180525::VirtualNodeSpec

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

Overview

超级节点

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(displayname = nil, subnetid = nil, tags = nil, quota = nil) ⇒ VirtualNodeSpec

Returns a new instance of VirtualNodeSpec.



21680
21681
21682
21683
21684
21685
# File 'lib/v20180525/models.rb', line 21680

def initialize(displayname=nil, subnetid=nil, tags=nil, quota=nil)
  @DisplayName = displayname
  @SubnetId = subnetid
  @Tags = tags
  @Quota = quota
end

Instance Attribute Details

#DisplayNameObject

Parameters:

  • DisplayName:

    节点展示名称,建议不超过20个字符

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签

  • Quota:

    按量配额



21678
21679
21680
# File 'lib/v20180525/models.rb', line 21678

def DisplayName
  @DisplayName
end

#QuotaObject

Parameters:

  • DisplayName:

    节点展示名称,建议不超过20个字符

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签

  • Quota:

    按量配额



21678
21679
21680
# File 'lib/v20180525/models.rb', line 21678

def Quota
  @Quota
end

#SubnetIdObject

Parameters:

  • DisplayName:

    节点展示名称,建议不超过20个字符

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签

  • Quota:

    按量配额



21678
21679
21680
# File 'lib/v20180525/models.rb', line 21678

def SubnetId
  @SubnetId
end

#TagsObject

Parameters:

  • DisplayName:

    节点展示名称,建议不超过20个字符

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签

  • Quota:

    按量配额



21678
21679
21680
# File 'lib/v20180525/models.rb', line 21678

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
# File 'lib/v20180525/models.rb', line 21687

def deserialize(params)
  @DisplayName = params['DisplayName']
  @SubnetId = params['SubnetId']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  unless params['Quota'].nil?
    @Quota = SuperNodeResource.new
    @Quota.deserialize(params['Quota'])
  end
end