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.
8503 8504 8505 8506 8507 |
# File 'lib/v20190423/models.rb', line 8503 def initialize(devices=nil, total=nil, requestid=nil) @Devices = devices @Total = total @RequestId = requestid end |
Instance Attribute Details
#Devices ⇒ Object
8501 8502 8503 |
# File 'lib/v20190423/models.rb', line 8501 def Devices @Devices end |
#RequestId ⇒ Object
8501 8502 8503 |
# File 'lib/v20190423/models.rb', line 8501 def RequestId @RequestId end |
#Total ⇒ Object
8501 8502 8503 |
# File 'lib/v20190423/models.rb', line 8501 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 |
# File 'lib/v20190423/models.rb', line 8509 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 |