Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabCostDetailsProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-05-15/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:

  • (Float)

    The cost component of the cost item.



19
20
21
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 19

def cost
  @cost
end

#cost_typeCostType

‘Unavailable’, ‘Reported’, ‘Projected’

Returns:

  • (CostType)

    The type of the cost. Possible values include:



23
24
25
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 23

def cost_type
  @cost_type
end

#dateDateTime

Returns The date of the cost item.

Returns:

  • (DateTime)

    The date of the cost item.



16
17
18
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 16

def date
  @date
end

Class Method Details

.mapperObject

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



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
57
58
59
60
61
62
63
64
65
66
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb', line 30

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