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.



14288
14289
14290
14291
# File 'lib/v20170320/models.rb', line 14288

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

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    实例Id

  • Tags:

    标签信息



14286
14287
14288
# File 'lib/v20170320/models.rb', line 14286

def InstanceId
  @InstanceId
end

#TagsObject

Parameters:

  • InstanceId:

    实例Id

  • Tags:

    标签信息



14286
14287
14288
# File 'lib/v20170320/models.rb', line 14286

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
# File 'lib/v20170320/models.rb', line 14293

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