Class: TencentCloud::Iotcloud::V20210408::DescribeDevicesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotcloud::V20210408::DescribeDevicesResponse
- Defined in:
- lib/v20210408/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.
1418 1419 1420 1421 1422 |
# File 'lib/v20210408/models.rb', line 1418 def initialize(totalcount=nil, devices=nil, requestid=nil) @TotalCount = totalcount @Devices = devices @RequestId = requestid end |
Instance Attribute Details
#Devices ⇒ Object
1416 1417 1418 |
# File 'lib/v20210408/models.rb', line 1416 def Devices @Devices end |
#RequestId ⇒ Object
1416 1417 1418 |
# File 'lib/v20210408/models.rb', line 1416 def RequestId @RequestId end |
#TotalCount ⇒ Object
1416 1417 1418 |
# File 'lib/v20210408/models.rb', line 1416 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 |
# File 'lib/v20210408/models.rb', line 1424 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 |