Class: TencentCloud::Iotcloud::V20210408::BindDeviceInfo

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

Overview

子设备信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productid = nil, devicename = nil, tags = nil, bindtime = nil) ⇒ BindDeviceInfo

Returns a new instance of BindDeviceInfo.



129
130
131
132
133
134
# File 'lib/v20210408/models.rb', line 129

def initialize(productid=nil, devicename=nil, tags=nil, bindtime=nil)
  @ProductId = productid
  @DeviceName = devicename
  @Tags = tags
  @BindTime = bindtime
end

Instance Attribute Details

#BindTimeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名

  • Tags:

    设备Tag

  • BindTime:

    子设备绑定时间



127
128
129
# File 'lib/v20210408/models.rb', line 127

def BindTime
  @BindTime
end

#DeviceNameObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名

  • Tags:

    设备Tag

  • BindTime:

    子设备绑定时间



127
128
129
# File 'lib/v20210408/models.rb', line 127

def DeviceName
  @DeviceName
end

#ProductIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名

  • Tags:

    设备Tag

  • BindTime:

    子设备绑定时间



127
128
129
# File 'lib/v20210408/models.rb', line 127

def ProductId
  @ProductId
end

#TagsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名

  • Tags:

    设备Tag

  • BindTime:

    子设备绑定时间



127
128
129
# File 'lib/v20210408/models.rb', line 127

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/v20210408/models.rb', line 136

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