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.



14582
14583
14584
14585
# File 'lib/v20170320/models.rb', line 14582

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

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    实例Id

  • Tags:

    标签信息



14580
14581
14582
# File 'lib/v20170320/models.rb', line 14580

def InstanceId
  @InstanceId
end

#TagsObject

Parameters:

  • InstanceId:

    实例Id

  • Tags:

    标签信息



14580
14581
14582
# File 'lib/v20170320/models.rb', line 14580

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
# File 'lib/v20170320/models.rb', line 14587

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