Class: TencentCloud::Tcr::V20190924::TagSpecification

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



7117
7118
7119
7120
# File 'lib/v20190924/models.rb', line 7117

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

Instance Attribute Details

#ResourceType ⇒ Object

Parameters:

  • ResourceType: —

    默认值为instance

  • Tags: —

    云标签数组



7115
7116
7117
# File 'lib/v20190924/models.rb', line 7115

def ResourceType
  @ResourceType
end

#Tags ⇒ Object

Parameters:

  • ResourceType: —

    默认值为instance

  • Tags: —

    云标签数组



7115
7116
7117
# File 'lib/v20190924/models.rb', line 7115

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
# File 'lib/v20190924/models.rb', line 7122

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