Class: TencentCloud::Ecm::V20190719::TagSpecification

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

Overview

资源类型的Tag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TagSpecification.



11030
11031
11032
11033
# File 'lib/v20190719/models.rb', line 11030

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

Instance Attribute Details

#ResourceTypeObject

Parameters:

  • ResourceType:

    资源类型,目前仅支持“instance”、“module”

  • Tags:

    标签列表



11028
11029
11030
# File 'lib/v20190719/models.rb', line 11028

def ResourceType
  @ResourceType
end

#TagsObject

Parameters:

  • ResourceType:

    资源类型,目前仅支持“instance”、“module”

  • Tags:

    标签列表



11028
11029
11030
# File 'lib/v20190719/models.rb', line 11028

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
# File 'lib/v20190719/models.rb', line 11035

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