Class: Azure::Consumption::Mgmt::V2017_12_30_preview::Models::CurrentSpend
- Inherits:
-
Object
- Object
- Azure::Consumption::Mgmt::V2017_12_30_preview::Models::CurrentSpend
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/current_spend.rb
Overview
The current amount of cost which is being tracked for a budget.
Instance Attribute Summary collapse
-
#amount ⇒ Object
The total amount of cost which is being tracked by the budget.
-
#unit ⇒ String
The unit of measure for the budget amount.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CurrentSpend class as Ruby Hash.
Instance Attribute Details
#amount ⇒ Object
Returns The total amount of cost which is being tracked by the budget.
16 17 18 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/current_spend.rb', line 16 def amount @amount end |
#unit ⇒ String
Returns The unit of measure for the budget amount.
19 20 21 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/current_spend.rb', line 19 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for CurrentSpend class as Ruby Hash. This will be used for serialization/deserialization.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/current_spend.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CurrentSpend', type: { name: 'Composite', class_name: 'CurrentSpend', model_properties: { amount: { client_side_validation: true, required: false, read_only: true, serialized_name: 'amount', type: { name: 'Number' } }, unit: { client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', type: { name: 'String' } } } } } end |