Class: TencentCloud::As::V20180419::SpotMarketOptions

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

Overview

竞价相关选项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maxprice = nil, spotinstancetype = nil) ⇒ SpotMarketOptions

Returns a new instance of SpotMarketOptions.



5519
5520
5521
5522
# File 'lib/v20180419/models.rb', line 5519

def initialize(maxprice=nil, spotinstancetype=nil)
  @MaxPrice = maxprice
  @SpotInstanceType = spotinstancetype
end

Instance Attribute Details

#MaxPriceObject

Parameters:

  • MaxPrice:

    竞价出价,例如“1.05”

  • SpotInstanceType:

    竞价请求类型,当前仅支持类型:one-time,默认值为one-time



5517
5518
5519
# File 'lib/v20180419/models.rb', line 5517

def MaxPrice
  @MaxPrice
end

#SpotInstanceTypeObject

Parameters:

  • MaxPrice:

    竞价出价,例如“1.05”

  • SpotInstanceType:

    竞价请求类型,当前仅支持类型:one-time,默认值为one-time



5517
5518
5519
# File 'lib/v20180419/models.rb', line 5517

def SpotInstanceType
  @SpotInstanceType
end

Instance Method Details

#deserialize(params) ⇒ Object



5524
5525
5526
5527
# File 'lib/v20180419/models.rb', line 5524

def deserialize(params)
  @MaxPrice = params['MaxPrice']
  @SpotInstanceType = params['SpotInstanceType']
end