Class: Azure::ARM::DevTestLabs::Models::TargetCostProperties

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/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:



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

def cost_thresholds
  @cost_thresholds
end

#cycle_end_date_timeDateTime

Returns Reporting cycle end date.

Returns:

  • (DateTime)

    Reporting cycle end date.



30
31
32
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 30

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.



27
28
29
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 27

def cycle_start_date_time
  @cycle_start_date_time
end

#cycle_typeReportingCycleType

include: ‘CalendarMonth’, ‘Custom’

Returns:



34
35
36
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 34

def cycle_type
  @cycle_type
end

#statusTargetCostStatus

‘Enabled’, ‘Disabled’

Returns:



18
19
20
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 18

def status
  @status
end

#targetInteger

Returns Lab target cost.

Returns:

  • (Integer)

    Lab target cost



21
22
23
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 21

def target
  @target
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 41

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