Class: TencentCloud::Tke::V20220501::TagSpecification

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20220501/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.



2781
2782
2783
2784
# File 'lib/v20220501/models.rb', line 2781

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

Instance Attribute Details

#ResourceTypeObject

1.cluster:集群相关接口,TagSpecification 的 ResourceType 传参为 cluster 2.machine:节点池相关接口,如:CreateNodePool, DescribeNodePools 等,TagSpecification 的 ResourceType 传参为 machine 注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ResourceType:

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

  • Tags:

    标签对列表



2779
2780
2781
# File 'lib/v20220501/models.rb', line 2779

def ResourceType
  @ResourceType
end

#TagsObject

1.cluster:集群相关接口,TagSpecification 的 ResourceType 传参为 cluster 2.machine:节点池相关接口,如:CreateNodePool, DescribeNodePools 等,TagSpecification 的 ResourceType 传参为 machine 注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ResourceType:

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

  • Tags:

    标签对列表



2779
2780
2781
# File 'lib/v20220501/models.rb', line 2779

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
# File 'lib/v20220501/models.rb', line 2786

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