Class: Azure::Consumption::Mgmt::V2017_04_24_preview::Models::UsageDetail
- Inherits:
-
Resource
- Object
- Resource
- Azure::Consumption::Mgmt::V2017_04_24_preview::Models::UsageDetail
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb
Overview
An usage detail resource.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Hash{String => String}
additional properties, in the format ‘key’:‘value’ where key = the field name, and value = the field value.
-
#billable_quantity ⇒ Object
The billable usage quantity.
-
#billing_period_id ⇒ String
belongs to.
-
#currency ⇒ String
example, USD.
-
#instance_id ⇒ String
about.
-
#instance_location ⇒ String
is about.
-
#instance_name ⇒ String
about.
-
#invoice_id ⇒ String
to.
-
#is_estimated ⇒ Boolean
The estimated usage is subject to change.
-
#meter_details ⇒ MeterDetails
not populated, unless it’s specified in $expand.
-
#meter_id ⇒ String
The meter id.
-
#pretax_cost ⇒ Object
The amount of cost before tax.
-
#usage_end ⇒ DateTime
detail.
-
#usage_quantity ⇒ Object
The quantity of usage.
-
#usage_start ⇒ DateTime
usage detail.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for UsageDetail class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#additional_properties ⇒ Hash{String => String}
additional properties, in the format ‘key’:‘value’ where key = the field name, and value = the field value. By default this is not populated, unless it’s specified in $expand.
70 71 72 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 70 def additional_properties @additional_properties end |
#billable_quantity ⇒ Object
Returns The billable usage quantity.
51 52 53 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 51 def billable_quantity @billable_quantity end |
#billing_period_id ⇒ String
belongs to.
17 18 19 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 17 def billing_period_id @billing_period_id end |
#currency ⇒ String
example, USD.
45 46 47 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 45 def currency @currency end |
#instance_id ⇒ String
about.
37 38 39 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 37 def instance_id @instance_id end |
#instance_location ⇒ String
is about.
41 42 43 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 41 def instance_location @instance_location end |
#instance_name ⇒ String
about.
33 34 35 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 33 def instance_name @instance_name end |
#invoice_id ⇒ String
to.
21 22 23 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 21 def invoice_id @invoice_id end |
#is_estimated ⇒ Boolean
Returns The estimated usage is subject to change.
57 58 59 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 57 def is_estimated @is_estimated end |
#meter_details ⇒ MeterDetails
not populated, unless it’s specified in $expand.
64 65 66 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 64 def meter_details @meter_details end |
#meter_id ⇒ String
Returns The meter id.
60 61 62 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 60 def meter_id @meter_id end |
#pretax_cost ⇒ Object
Returns The amount of cost before tax.
54 55 56 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 54 def pretax_cost @pretax_cost end |
#usage_end ⇒ DateTime
detail.
29 30 31 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 29 def usage_end @usage_end end |
#usage_quantity ⇒ Object
Returns The quantity of usage.
48 49 50 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 48 def usage_quantity @usage_quantity end |
#usage_start ⇒ DateTime
usage detail.
25 26 27 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 25 def usage_start @usage_start end |
Class Method Details
.mapper ⇒ Object
Mapper for UsageDetail class as Ruby Hash. This will be used for serialization/deserialization.
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 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/2017-04-24-preview/generated/azure_mgmt_consumption/models/usage_detail.rb', line 77 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'UsageDetail', type: { name: 'Composite', class_name: 'UsageDetail', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, read_only: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, billing_period_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.billingPeriodId', type: { name: 'String' } }, invoice_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.invoiceId', type: { name: 'String' } }, usage_start: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.usageStart', type: { name: 'DateTime' } }, usage_end: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.usageEnd', type: { name: 'DateTime' } }, instance_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceName', type: { name: 'String' } }, instance_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceId', type: { name: 'String' } }, instance_location: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceLocation', type: { name: 'String' } }, currency: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.currency', type: { name: 'String' } }, usage_quantity: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.usageQuantity', type: { name: 'Number' } }, billable_quantity: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.billableQuantity', type: { name: 'Number' } }, pretax_cost: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.pretaxCost', type: { name: 'Number' } }, is_estimated: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.isEstimated', type: { name: 'Boolean' } }, meter_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.meterId', type: { name: 'String' } }, meter_details: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.meterDetails', type: { name: 'Composite', class_name: 'MeterDetails' } }, additional_properties: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.additionalProperties', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |