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.



19647
19648
19649
19650
19651
# File 'lib/v20180525/models.rb', line 19647

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

Instance Attribute Details

#DisplayNameObject

Parameters:

  • DisplayName:

    节点展示名称

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签



19645
19646
19647
# File 'lib/v20180525/models.rb', line 19645

def DisplayName
  @DisplayName
end

#SubnetIdObject

Parameters:

  • DisplayName:

    节点展示名称

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签



19645
19646
19647
# File 'lib/v20180525/models.rb', line 19645

def SubnetId
  @SubnetId
end

#TagsObject

Parameters:

  • DisplayName:

    节点展示名称

  • SubnetId:

    子网ID

  • Tags:

    腾讯云标签



19645
19646
19647
# File 'lib/v20180525/models.rb', line 19645

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
# File 'lib/v20180525/models.rb', line 19653

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