Class: TencentCloud::Iotcloud::V20210408::Attribute

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

Overview

设备属性

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags = nil) ⇒ Attribute

Returns a new instance of Attribute.



27
28
29
# File 'lib/v20210408/models.rb', line 27

def initialize(tags=nil)
  @Tags = tags
end

Instance Attribute Details

#TagsObject

Parameters:

  • Tags:

    属性列表



25
26
27
# File 'lib/v20210408/models.rb', line 25

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



31
32
33
34
35
36
37
38
39
40
# File 'lib/v20210408/models.rb', line 31

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