Class: TencentCloud::Bm::V20180423::DescribeDeviceClassResponse

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

Overview

DescribeDeviceClass返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deviceclassset = nil, requestid = nil) ⇒ DescribeDeviceClassResponse

Returns a new instance of DescribeDeviceClassResponse.



951
952
953
954
# File 'lib/v20180423/models.rb', line 951

def initialize(deviceclassset=nil, requestid=nil)
  @DeviceClassSet = deviceclassset
  @RequestId = requestid
end

Instance Attribute Details

#DeviceClassSetObject

Parameters:

  • DeviceClassSet:

    物理机设备类型列表

  • RequestId:

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



949
950
951
# File 'lib/v20180423/models.rb', line 949

def DeviceClassSet
  @DeviceClassSet
end

#RequestIdObject

Parameters:

  • DeviceClassSet:

    物理机设备类型列表

  • RequestId:

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



949
950
951
# File 'lib/v20180423/models.rb', line 949

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



956
957
958
959
960
961
962
963
964
965
966
# File 'lib/v20180423/models.rb', line 956

def deserialize(params)
  unless params['DeviceClassSet'].nil?
    @DeviceClassSet = []
    params['DeviceClassSet'].each do |i|
      deviceclass_tmp = DeviceClass.new
      deviceclass_tmp.deserialize(i)
      @DeviceClassSet << deviceclass_tmp
    end
  end
  @RequestId = params['RequestId']
end