Class: TencentCloud::Iotexplorer::V20190423::GetDeviceListResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotexplorer::V20190423::GetDeviceListResponse
- Defined in:
- lib/v20190423/models.rb
Overview
GetDeviceList返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(devices = nil, total = nil, requestid = nil) ⇒ GetDeviceListResponse
constructor
A new instance of GetDeviceListResponse.
Constructor Details
#initialize(devices = nil, total = nil, requestid = nil) ⇒ GetDeviceListResponse
Returns a new instance of GetDeviceListResponse.
8515 8516 8517 8518 8519 |
# File 'lib/v20190423/models.rb', line 8515 def initialize(devices=nil, total=nil, requestid=nil) @Devices = devices @Total = total @RequestId = requestid end |
Instance Attribute Details
#Devices ⇒ Object
8513 8514 8515 |
# File 'lib/v20190423/models.rb', line 8513 def Devices @Devices end |
#RequestId ⇒ Object
8513 8514 8515 |
# File 'lib/v20190423/models.rb', line 8513 def RequestId @RequestId end |
#Total ⇒ Object
8513 8514 8515 |
# File 'lib/v20190423/models.rb', line 8513 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 |
# File 'lib/v20190423/models.rb', line 8521 def deserialize(params) unless params['Devices'].nil? @Devices = [] params['Devices'].each do |i| deviceinfo_tmp = DeviceInfo.new deviceinfo_tmp.deserialize(i) @Devices << deviceinfo_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end |