Class: Azure::ARM::DevTestLabs::Models::Cost
- Inherits:
-
Object
- Object
- Azure::ARM::DevTestLabs::Models::Cost
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_devtestlabs/models/cost.rb
Overview
A cost item.
Instance Attribute Summary collapse
-
#costs ⇒ Array<CostPerDayProperties>
cost data.
-
#currency_code ⇒ String
The currency code of the cost.
-
#id ⇒ String
The identifier of the resource.
-
#location ⇒ String
The location of the resource.
-
#name ⇒ String
The name of the resource.
-
#resource_costs ⇒ Array<ResourceCostProperties>
the cost data.
-
#tags ⇒ Hash{String => String}
The tags of the resource.
-
#type ⇒ String
The type of the resource.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Cost class as Ruby Hash.
Instance Attribute Details
#costs ⇒ Array<CostPerDayProperties>
cost data.
20 21 22 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 20 def costs @costs end |
#currency_code ⇒ String
Returns The currency code of the cost.
16 17 18 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 16 def currency_code @currency_code end |
#id ⇒ String
Returns The identifier of the resource.
27 28 29 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 27 def id @id end |
#location ⇒ String
Returns The location of the resource.
36 37 38 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 36 def location @location end |
#name ⇒ String
Returns The name of the resource.
30 31 32 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 30 def name @name end |
#resource_costs ⇒ Array<ResourceCostProperties>
the cost data.
24 25 26 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 24 def resource_costs @resource_costs end |
#tags ⇒ Hash{String => String}
Returns The tags of the resource.
39 40 41 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 39 def @tags end |
#type ⇒ String
Returns The type of the resource.
33 34 35 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 33 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for Cost class as Ruby Hash. This will be used for serialization/deserialization.
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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/generated/azure_mgmt_devtestlabs/models/cost.rb', line 46 def self.mapper() { required: false, serialized_name: 'Cost', type: { name: 'Composite', class_name: 'Cost', model_properties: { currency_code: { required: false, serialized_name: 'properties.currencyCode', type: { name: 'String' } }, costs: { required: false, serialized_name: 'properties.costs', type: { name: 'Sequence', element: { required: false, serialized_name: 'CostPerDayPropertiesElementType', type: { name: 'Composite', class_name: 'CostPerDayProperties' } } } }, resource_costs: { required: false, serialized_name: 'properties.resourceCosts', type: { name: 'Sequence', element: { required: false, serialized_name: 'ResourceCostPropertiesElementType', type: { name: 'Composite', class_name: 'ResourceCostProperties' } } } }, id: { required: false, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, serialized_name: 'type', type: { name: 'String' } }, location: { required: false, serialized_name: 'location', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |