Class: TencentCloud::As::V20180419::SpotMixedAllocationPolicy
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::As::V20180419::SpotMixedAllocationPolicy
- Defined in:
- lib/v20180419/models.rb
Overview
竞价混合模式下,各计费类型实例的分配策略。包括按量计费实例和竞价计费实例。
Instance Attribute Summary collapse
-
#BaseCapacity ⇒ Object
默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。.
-
#CompensateWithBaseInstance ⇒ Object
默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。.
-
#OnDemandPercentageAboveBaseCapacity ⇒ Object
默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。.
-
#SpotAllocationStrategy ⇒ Object
默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(basecapacity = nil, ondemandpercentageabovebasecapacity = nil, spotallocationstrategy = nil, compensatewithbaseinstance = nil) ⇒ SpotMixedAllocationPolicy
constructor
A new instance of SpotMixedAllocationPolicy.
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
#BaseCapacity ⇒ Object
默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。
5552 5553 5554 |
# File 'lib/v20180419/models.rb', line 5552 def BaseCapacity @BaseCapacity end |
#CompensateWithBaseInstance ⇒ Object
默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。
5552 5553 5554 |
# File 'lib/v20180419/models.rb', line 5552 def CompensateWithBaseInstance @CompensateWithBaseInstance end |
#OnDemandPercentageAboveBaseCapacity ⇒ Object
默认取值: TRUE。 注意:此字段可能返回 null,表示取不到有效值。
5552 5553 5554 |
# File 'lib/v20180419/models.rb', line 5552 def OnDemandPercentageAboveBaseCapacity @OnDemandPercentageAboveBaseCapacity end |
#SpotAllocationStrategy ⇒ Object
默认取值: 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 |