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.



14575
14576
14577
14578
# File 'lib/v20170320/models.rb', line 14575

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

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    实例Id

  • Tags:

    标签信息



14573
14574
14575
# File 'lib/v20170320/models.rb', line 14573

def InstanceId
  @InstanceId
end

#TagsObject

Parameters:

  • InstanceId:

    实例Id

  • Tags:

    标签信息



14573
14574
14575
# File 'lib/v20170320/models.rb', line 14573

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
# File 'lib/v20170320/models.rb', line 14580

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