Class: TencentCloud::Batch::V20170312::SpotMarketOptions

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170312/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.



3519
3520
3521
3522
# File 'lib/v20170312/models.rb', line 3519

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

Instance Attribute Details

#MaxPriceObject

Parameters:

  • MaxPrice:

    竞价出价

  • SpotInstanceType:

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



3517
3518
3519
# File 'lib/v20170312/models.rb', line 3517

def MaxPrice
  @MaxPrice
end

#SpotInstanceTypeObject

Parameters:

  • MaxPrice:

    竞价出价

  • SpotInstanceType:

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



3517
3518
3519
# File 'lib/v20170312/models.rb', line 3517

def SpotInstanceType
  @SpotInstanceType
end

Instance Method Details

#deserialize(params) ⇒ Object



3524
3525
3526
3527
# File 'lib/v20170312/models.rb', line 3524

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