Class: TencentCloud::Thpc::V20230321::TagSpecification

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



3696
3697
3698
3699
# File 'lib/v20230321/models.rb', line 3696

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

Instance Attribute Details

#ResourceTypeObject

Parameters:

  • 标签绑定的资源类型

  • 标签对列表



3694
3695
3696
# File 'lib/v20230321/models.rb', line 3694

def ResourceType
  @ResourceType
end

#TagsObject

Parameters:

  • 标签绑定的资源类型

  • 标签对列表



3694
3695
3696
# File 'lib/v20230321/models.rb', line 3694

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
# File 'lib/v20230321/models.rb', line 3701

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