Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TargetCostProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb

Overview

Properties of a cost target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cost_thresholdsArray<CostThresholdProperties>

Returns Cost thresholds.

Returns:



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

def cost_thresholds
  @cost_thresholds
end

#cycle_end_date_timeDateTime

Returns Reporting cycle end date.

Returns:

  • (DateTime)

    Reporting cycle end date.



29
30
31
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 29

def cycle_end_date_time
  @cycle_end_date_time
end

#cycle_start_date_timeDateTime

Returns Reporting cycle start date.

Returns:

  • (DateTime)

    Reporting cycle start date.



26
27
28
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 26

def cycle_start_date_time
  @cycle_start_date_time
end

#cycle_typeReportingCycleType

include: ‘CalendarMonth’, ‘Custom’

Returns:



33
34
35
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 33

def cycle_type
  @cycle_type
end

#statusTargetCostStatus

‘Enabled’, ‘Disabled’

Returns:



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

def status
  @status
end

#targetInteger

Returns Lab target cost.

Returns:

  • (Integer)

    Lab target cost



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

def target
  @target
end

Class Method Details

.mapperObject

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



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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TargetCostProperties',
    type: {
      name: 'Composite',
      class_name: 'TargetCostProperties',
      model_properties: {
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        target: {
          client_side_validation: true,
          required: false,
          serialized_name: 'target',
          type: {
            name: 'Number'
          }
        },
        cost_thresholds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'costThresholds',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CostThresholdPropertiesElementType',
                type: {
                  name: 'Composite',
                  class_name: 'CostThresholdProperties'
                }
            }
          }
        },
        cycle_start_date_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cycleStartDateTime',
          type: {
            name: 'DateTime'
          }
        },
        cycle_end_date_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cycleEndDateTime',
          type: {
            name: 'DateTime'
          }
        },
        cycle_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cycleType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end