Class: TencentCloud::Bm::V20180423::DescribeDeviceHardwareInfoResponse

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

Overview

DescribeDeviceHardwareInfo返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(devicehardwareinfoset = nil, requestid = nil) ⇒ DescribeDeviceHardwareInfoResponse

Returns a new instance of DescribeDeviceHardwareInfoResponse.



994
995
996
997
# File 'lib/v20180423/models.rb', line 994

def initialize(devicehardwareinfoset=nil, requestid=nil)
  @DeviceHardwareInfoSet = devicehardwareinfoset
  @RequestId = requestid
end

Instance Attribute Details

#DeviceHardwareInfoSetObject

Parameters:

  • DeviceHardwareInfoSet:

    设备硬件配置信息

  • RequestId:

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



992
993
994
# File 'lib/v20180423/models.rb', line 992

def DeviceHardwareInfoSet
  @DeviceHardwareInfoSet
end

#RequestIdObject

Parameters:

  • DeviceHardwareInfoSet:

    设备硬件配置信息

  • RequestId:

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



992
993
994
# File 'lib/v20180423/models.rb', line 992

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
# File 'lib/v20180423/models.rb', line 999

def deserialize(params)
  unless params['DeviceHardwareInfoSet'].nil?
    @DeviceHardwareInfoSet = []
    params['DeviceHardwareInfoSet'].each do |i|
      devicehardwareinfo_tmp = DeviceHardwareInfo.new
      devicehardwareinfo_tmp.deserialize(i)
      @DeviceHardwareInfoSet << devicehardwareinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end