Class: TencentCloud::Tke::V20180525::TagSpecification

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

Overview

标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到云主机实例。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resourcetype = nil, tags = nil) ⇒ TagSpecification

Returns a new instance of TagSpecification.



18873
18874
18875
18876
# File 'lib/v20180525/models.rb', line 18873

def initialize(resourcetype=nil, tags=nil)
  @ResourceType = resourcetype
  @Tags = tags
end

Instance Attribute Details

#ResourceTypeObject

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

Parameters:

  • ResourceType:

    标签绑定的资源类型,当前支持类型:“cluster”

  • Tags:

    标签对列表



18871
18872
18873
# File 'lib/v20180525/models.rb', line 18871

def ResourceType
  @ResourceType
end

#TagsObject

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

Parameters:

  • ResourceType:

    标签绑定的资源类型,当前支持类型:“cluster”

  • Tags:

    标签对列表



18871
18872
18873
# File 'lib/v20180525/models.rb', line 18871

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
# File 'lib/v20180525/models.rb', line 18878

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