class Azure::Consumption::Mgmt::V2017_11_30::Models::UsageDetail

An usage detail resource.

Attributes

account_name[RW]

@return [String] Account name.

additional_properties[RW]

@return [String] Additional details of this usage item. 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.

consumed_service[RW]

@return [String] Consumed service name.

cost_center[RW]

@return [String] The cost center of this department if it is a department and a costcenter exists

currency[RW]

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

department_name[RW]

@return [String] Department name.

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.

product[RW]

@return [String] Product name.

subscription_guid[RW]

@return [String] Subscription guid.

subscription_name[RW]

@return [String] Subscription name.

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-11-30/generated/azure_mgmt_consumption/models/usage_detail.rb, line 97
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'
          }
        },
        subscription_guid: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.subscriptionGuid',
          type: {
            name: 'String'
          }
        },
        subscription_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.subscriptionName',
          type: {
            name: 'String'
          }
        },
        account_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.accountName',
          type: {
            name: 'String'
          }
        },
        department_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.departmentName',
          type: {
            name: 'String'
          }
        },
        product: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.product',
          type: {
            name: 'String'
          }
        },
        consumed_service: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.consumedService',
          type: {
            name: 'String'
          }
        },
        cost_center: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.costCenter',
          type: {
            name: 'String'
          }
        },
        additional_properties: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.additionalProperties',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end