class Azure::Consumption::Mgmt::V2017_04_24_preview::Models::UsageDetail

An usage detail resource.

Attributes

additional_properties[RW]

@return [Hash{String => String}] The list of key/value pairs for the 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.

billable_quantity[RW]

@return The billable usage quantity.

billing_period_id[RW]

@return [String] The id of the billing period resource that the usage belongs to.

currency[RW]

@return [String] The ISO currency in which the meter is charged, for example, USD.

instance_id[RW]

@return [String] The uri of the resource instance that the usage is about.

instance_location[RW]

@return [String] The location of the resource instance that the usage is about.

instance_name[RW]

@return [String] The name of the resource instance that the usage is about.

invoice_id[RW]

@return [String] The id of the invoice resource that the usage belongs to.

is_estimated[RW]

@return [Boolean] The estimated usage is subject to change.

meter_details[RW]

@return [MeterDetails] The details about the meter. By default this is not populated, unless it's specified in $expand.

meter_id[RW]

@return [String] The meter id.

pretax_cost[RW]

@return The amount of cost before tax.

usage_end[RW]

@return [DateTime] The end of the date time range covered by the usage detail.

usage_quantity[RW]

@return The quantity of usage.

usage_start[RW]

@return [DateTime] The start of the date time range covered by the usage detail.

Public Class Methods

mapper() click to toggle source

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

# 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