Class: TencentCloud::As::V20180419::SpotMixedAllocationPolicy

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

Overview

竞价混合模式下,各计费类型实例的分配策略。包括按量计费实例和竞价计费实例。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(basecapacity = nil, ondemandpercentageabovebasecapacity = nil, spotallocationstrategy = nil, compensatewithbaseinstance = nil) ⇒ SpotMixedAllocationPolicy

Returns a new instance of SpotMixedAllocationPolicy.



5554
5555
5556
5557
5558
5559
# File 'lib/v20180419/models.rb', line 5554

def initialize(basecapacity=nil, ondemandpercentageabovebasecapacity=nil, spotallocationstrategy=nil, compensatewithbaseinstance=nil)
  @BaseCapacity = basecapacity
  @OnDemandPercentageAboveBaseCapacity = ondemandpercentageabovebasecapacity
  @SpotAllocationStrategy = spotallocationstrategy
  @CompensateWithBaseInstance = compensatewithbaseinstance
end

Instance Attribute Details

#BaseCapacityObject

默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。



5552
5553
5554
# File 'lib/v20180419/models.rb', line 5552

def BaseCapacity
  @BaseCapacity
end

#CompensateWithBaseInstanceObject

默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。



5552
5553
5554
# File 'lib/v20180419/models.rb', line 5552

def CompensateWithBaseInstance
  @CompensateWithBaseInstance
end

#OnDemandPercentageAboveBaseCapacityObject

默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。



5552
5553
5554
# File 'lib/v20180419/models.rb', line 5552

def OnDemandPercentageAboveBaseCapacity
  @OnDemandPercentageAboveBaseCapacity
end

#SpotAllocationStrategyObject

默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。



5552
5553
5554
# File 'lib/v20180419/models.rb', line 5552

def SpotAllocationStrategy
  @SpotAllocationStrategy
end

Instance Method Details

#deserialize(params) ⇒ Object



5561
5562
5563
5564
5565
5566
# File 'lib/v20180419/models.rb', line 5561

def deserialize(params)
  @BaseCapacity = params['BaseCapacity']
  @OnDemandPercentageAboveBaseCapacity = params['OnDemandPercentageAboveBaseCapacity']
  @SpotAllocationStrategy = params['SpotAllocationStrategy']
  @CompensateWithBaseInstance = params['CompensateWithBaseInstance']
end