Class: TencentCloud::Iotcloud::V20180614::DescribeDevicesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotcloud::V20180614::DescribeDevicesResponse
- Defined in:
- lib/v20180614/models.rb
Overview
DescribeDevices返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, devices = nil, requestid = nil) ⇒ DescribeDevicesResponse
constructor
A new instance of DescribeDevicesResponse.
Constructor Details
#initialize(totalcount = nil, devices = nil, requestid = nil) ⇒ DescribeDevicesResponse
Returns a new instance of DescribeDevicesResponse.
1485 1486 1487 1488 1489 |
# File 'lib/v20180614/models.rb', line 1485 def initialize(totalcount=nil, devices=nil, requestid=nil) @TotalCount = totalcount @Devices = devices @RequestId = requestid end |
Instance Attribute Details
#Devices ⇒ Object
1483 1484 1485 |
# File 'lib/v20180614/models.rb', line 1483 def Devices @Devices end |
#RequestId ⇒ Object
1483 1484 1485 |
# File 'lib/v20180614/models.rb', line 1483 def RequestId @RequestId end |
#TotalCount ⇒ Object
1483 1484 1485 |
# File 'lib/v20180614/models.rb', line 1483 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 |
# File 'lib/v20180614/models.rb', line 1491 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Devices'].nil? @Devices = [] params['Devices'].each do |i| deviceinfo_tmp = DeviceInfo.new deviceinfo_tmp.deserialize(i) @Devices << deviceinfo_tmp end end @RequestId = params['RequestId'] end |