Class: TencentCloud::Iotcloud::V20210408::BindDeviceInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotcloud::V20210408::BindDeviceInfo
- Defined in:
- lib/v20210408/models.rb
Overview
子设备信息
Instance Attribute Summary collapse
-
#BindTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DeviceName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ProductId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(productid = nil, devicename = nil, tags = nil, bindtime = nil) ⇒ BindDeviceInfo
constructor
A new instance of BindDeviceInfo.
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, =nil, bindtime=nil) @ProductId = productid @DeviceName = devicename @Tags = @BindTime = bindtime end |
Instance Attribute Details
#BindTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
127 128 129 |
# File 'lib/v20210408/models.rb', line 127 def BindTime @BindTime end |
#DeviceName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
127 128 129 |
# File 'lib/v20210408/models.rb', line 127 def DeviceName @DeviceName end |
#ProductId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
127 128 129 |
# File 'lib/v20210408/models.rb', line 127 def ProductId @ProductId end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
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 |