Class: TencentCloud::Cvm::V20170312::InstanceMarketOptionsRequest

Inherits:
TencentCloud::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.



5494
5495
5496
5497
# File 'lib/v20170312/models.rb', line 5494

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

Instance Attribute Details

#MarketType ⇒ Object

Parameters:

  • SpotOptions: —

    竞价相关选项

  • MarketType: —

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



5492
5493
5494
# File 'lib/v20170312/models.rb', line 5492

def MarketType
  @MarketType
end

#SpotOptions ⇒ Object

Parameters:

  • SpotOptions: —

    竞价相关选项

  • MarketType: —

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



5492
5493
5494
# File 'lib/v20170312/models.rb', line 5492

def SpotOptions
  @SpotOptions
end

Instance Method Details

#deserialize(params) ⇒ Object



5499
5500
5501
5502
5503
5504
5505
# File 'lib/v20170312/models.rb', line 5499

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