Class: Azure::ARM::DevTestLabs::Models::TargetCostProperties
- Inherits:
-
Object
- Object
- Azure::ARM::DevTestLabs::Models::TargetCostProperties
- 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
-
#cost_thresholds ⇒ Array<CostThresholdProperties>
Cost thresholds.
-
#cycle_end_date_time ⇒ DateTime
Reporting cycle end date.
-
#cycle_start_date_time ⇒ DateTime
Reporting cycle start date.
-
#cycle_type ⇒ ReportingCycleType
include: ‘CalendarMonth’, ‘Custom’.
-
#status ⇒ TargetCostStatus
‘Enabled’, ‘Disabled’.
-
#target ⇒ Integer
Lab target cost.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for TargetCostProperties class as Ruby Hash.
Instance Attribute Details
#cost_thresholds ⇒ Array<CostThresholdProperties>
Returns Cost thresholds.
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_time ⇒ DateTime
Returns 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_time ⇒ DateTime
Returns 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_type ⇒ ReportingCycleType
include: ‘CalendarMonth’, ‘Custom’
34 35 36 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 34 def cycle_type @cycle_type end |
#status ⇒ TargetCostStatus
‘Enabled’, ‘Disabled’
18 19 20 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb', line 18 def status @status end |
#target ⇒ Integer
Returns 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
.mapper ⇒ Object
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 |