Class: Azure::ARM::DevTestLabs::Models::LabCostDetailsProperties

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb

Overview

The properties of a lab cost item.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#costFloat

Returns The cost component of the cost item.

Returns:

  • The cost component of the cost item.



20
21
22
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 20

def cost
  @cost
end

#cost_typeCostType

‘Unavailable’, ‘Reported’, ‘Projected’

Returns:

  • The type of the cost. Possible values include:



24
25
26
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 24

def cost_type
  @cost_type
end

#dateDateTime

Returns The date of the cost item.

Returns:

  • The date of the cost item.



17
18
19
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 17

def date
  @date
end

Class Method Details

.mapperObject

Mapper for LabCostDetailsProperties class as Ruby Hash. This will be used for serialization/deserialization.



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
57
58
59
60
61
62
63
# File 'lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 31

def self.mapper()
  {
    required: false,
    serialized_name: 'LabCostDetailsProperties',
    type: {
      name: 'Composite',
      class_name: 'LabCostDetailsProperties',
      model_properties: {
        date: {
          required: false,
          serialized_name: 'date',
          type: {
            name: 'DateTime'
          }
        },
        cost: {
          required: false,
          serialized_name: 'cost',
          type: {
            name: 'Double'
          }
        },
        cost_type: {
          required: false,
          serialized_name: 'costType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end