Class: TencentCloud::Cdb::V20170320::TagsInfoOfInstance

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

Overview

实例的标签信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, tags = nil) ⇒ TagsInfoOfInstance

Returns a new instance of TagsInfoOfInstance.



14593
14594
14595
14596
# File 'lib/v20170320/models.rb', line 14593

def initialize(instanceid=nil, tags=nil)
  @InstanceId = instanceid
  @Tags = tags
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • 实例Id

  • 标签信息



14591
14592
14593
# File 'lib/v20170320/models.rb', line 14591

def InstanceId
  @InstanceId
end

#TagsObject

Parameters:

  • 实例Id

  • 标签信息



14591
14592
14593
# File 'lib/v20170320/models.rb', line 14591

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
# File 'lib/v20170320/models.rb', line 14598

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      taginfounit_tmp = TagInfoUnit.new
      taginfounit_tmp.deserialize(i)
      @Tags << taginfounit_tmp
    end
  end
end