Class: Azure::Consumption::Mgmt::V2018_01_31::Models::CurrentSpend

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-01-31/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

Class Method Summary collapse

Instance Attribute Details

#amountObject

Returns The total amount of cost which is being tracked by the budget.

Returns:

  • The total amount of cost which is being tracked by the budget.



16
17
18
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/current_spend.rb', line 16

def amount
  @amount
end

#unitString

Returns The unit of measure for the budget amount.

Returns:

  • (String)

    The unit of measure for the budget amount.



19
20
21
# File 'lib/2018-01-31/generated/azure_mgmt_consumption/models/current_spend.rb', line 19

def unit
  @unit
end

Class Method Details

.mapperObject

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/2018-01-31/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