Class: TencentCloud::Iotvideoindustry::V20201201::DescribeDeviceResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201201/models.rb

Overview

DescribeDevice返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device = nil, requestid = nil) ⇒ DescribeDeviceResponse

Returns a new instance of DescribeDeviceResponse.



2359
2360
2361
2362
# File 'lib/v20201201/models.rb', line 2359

def initialize(device=nil, requestid=nil)
  @Device = device
  @RequestId = requestid
end

Instance Attribute Details

#DeviceObject

Parameters:

  • Device:

    设备详情信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2357
2358
2359
# File 'lib/v20201201/models.rb', line 2357

def Device
  @Device
end

#RequestIdObject

Parameters:

  • Device:

    设备详情信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2357
2358
2359
# File 'lib/v20201201/models.rb', line 2357

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2364
2365
2366
2367
2368
2369
2370
# File 'lib/v20201201/models.rb', line 2364

def deserialize(params)
  unless params['Device'].nil?
    @Device = AllDeviceInfo.new
    @Device.deserialize(params['Device'])
  end
  @RequestId = params['RequestId']
end