Class: TencentCloud::Bm::V20180423::DescribeDeviceClassRequest

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(onsale = nil, needpriceinfo = nil) ⇒ DescribeDeviceClassRequest

Returns a new instance of DescribeDeviceClassRequest.



931
932
933
934
# File 'lib/v20180423/models.rb', line 931

def initialize(onsale=nil, needpriceinfo=nil)
  @OnSale = onsale
  @NeedPriceInfo = needpriceinfo
end

Instance Attribute Details

#NeedPriceInfoObject

Parameters:

  • OnSale:

    是否仅查询在售标准机型配置信息。取值0:查询所有机型;1:查询在售机型。默认为1

  • NeedPriceInfo:

    是否返回价格信息。取值0:不返回价格信息,接口返回速度更快;1:返回价格信息。默认为1



929
930
931
# File 'lib/v20180423/models.rb', line 929

def NeedPriceInfo
  @NeedPriceInfo
end

#OnSaleObject

Parameters:

  • OnSale:

    是否仅查询在售标准机型配置信息。取值0:查询所有机型;1:查询在售机型。默认为1

  • NeedPriceInfo:

    是否返回价格信息。取值0:不返回价格信息,接口返回速度更快;1:返回价格信息。默认为1



929
930
931
# File 'lib/v20180423/models.rb', line 929

def OnSale
  @OnSale
end

Instance Method Details

#deserialize(params) ⇒ Object



936
937
938
939
# File 'lib/v20180423/models.rb', line 936

def deserialize(params)
  @OnSale = params['OnSale']
  @NeedPriceInfo = params['NeedPriceInfo']
end