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) ⇒ VirtualNodeSpec

Returns a new instance of VirtualNodeSpec.



20047
20048
20049
20050
20051
# File 'lib/v20180525/models.rb', line 20047

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

Instance Attribute Details

#DisplayNameObject

Parameters:

  • DisplayName:

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

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签



20045
20046
20047
# File 'lib/v20180525/models.rb', line 20045

def DisplayName
  @DisplayName
end

#SubnetIdObject

Parameters:

  • DisplayName:

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

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签



20045
20046
20047
# File 'lib/v20180525/models.rb', line 20045

def SubnetId
  @SubnetId
end

#TagsObject

Parameters:

  • DisplayName:

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

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签



20045
20046
20047
# File 'lib/v20180525/models.rb', line 20045

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
# File 'lib/v20180525/models.rb', line 20053

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
end