Class: TencentCloud::Batch::V20170312::InstanceMarketOptionsRequest

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

Overview

竞价请求相关选项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spotoptions = nil, markettype = nil) ⇒ InstanceMarketOptionsRequest

Returns a new instance of InstanceMarketOptionsRequest.



2458
2459
2460
2461
# File 'lib/v20170312/models.rb', line 2458

def initialize(spotoptions=nil, markettype=nil)
  @SpotOptions = spotoptions
  @MarketType = markettype
end

Instance Attribute Details

#MarketTypeObject

Parameters:

  • SpotOptions:

    竞价相关选项

  • MarketType:

    市场选项类型,当前只支持取值:spot



2456
2457
2458
# File 'lib/v20170312/models.rb', line 2456

def MarketType
  @MarketType
end

#SpotOptionsObject

Parameters:

  • SpotOptions:

    竞价相关选项

  • MarketType:

    市场选项类型,当前只支持取值:spot



2456
2457
2458
# File 'lib/v20170312/models.rb', line 2456

def SpotOptions
  @SpotOptions
end

Instance Method Details

#deserialize(params) ⇒ Object



2463
2464
2465
2466
2467
2468
2469
# File 'lib/v20170312/models.rb', line 2463

def deserialize(params)
  unless params['SpotOptions'].nil?
    @SpotOptions = SpotMarketOptions.new
    @SpotOptions.deserialize(params['SpotOptions'])
  end
  @MarketType = params['MarketType']
end