Class: Azure::Compute::Mgmt::V2019_03_01::Models::BillingProfile
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_03_01::Models::BillingProfile
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01/generated/azure_mgmt_compute/models/billing_profile.rb
Overview
Specifies the billing related details of a Azure Spot VM or VMSS.
Minimum api-version: 2019-03-01.
Instance Attribute Summary collapse
-
#max_price ⇒ Float
a Azure Spot VM/VMSS.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BillingProfile class as Ruby Hash.
Instance Attribute Details
#max_price ⇒ Float
a Azure Spot VM/VMSS. This price is in US Dollars.
This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure Spot price.
The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS.
Possible values are:
- Any decimal value greater than zero. Example: 0.01538
-1 – indicates default price to be up-to on-demand.
You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you.
Minimum api-version: 2019-03-01.
30 31 32 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/billing_profile.rb', line 30 def max_price @max_price end |
Class Method Details
.mapper ⇒ Object
Mapper for BillingProfile class as Ruby Hash. This will be used for serialization/deserialization.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/billing_profile.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BillingProfile', type: { name: 'Composite', class_name: 'BillingProfile', model_properties: { max_price: { client_side_validation: true, required: false, serialized_name: 'maxPrice', type: { name: 'Double' } } } } } end |