# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Consumption::Mgmt::V2018_01_31
  module Models
    #
    # The properties of the price sheet.
    #
    class PriceSheetProperties

      include MsRestAzure

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

      # @return [String] The meter id
      attr_accessor :meter_id

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

      # @return [String] Unit of measure
      attr_accessor :unit_of_measure

      # @return Included quality for an offer
      attr_accessor :included_quantity

      # @return [String] Part Number
      attr_accessor :part_number

      # @return Unit Price
      attr_accessor :unit_price

      # @return [String] Currency Code
      attr_accessor :currency_code


      #
      # Mapper for PriceSheetProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PriceSheetProperties',
          type: {
            name: 'Composite',
            class_name: 'PriceSheetProperties',
            model_properties: {
              billing_period_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'billingPeriodId',
                type: {
                  name: 'String'
                }
              },
              meter_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'meterId',
                type: {
                  name: 'String'
                }
              },
              meter_details: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'meterDetails',
                type: {
                  name: 'Composite',
                  class_name: 'MeterDetails'
                }
              },
              unit_of_measure: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'unitOfMeasure',
                type: {
                  name: 'String'
                }
              },
              included_quantity: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'includedQuantity',
                type: {
                  name: 'Number'
                }
              },
              part_number: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'partNumber',
                type: {
                  name: 'String'
                }
              },
              unit_price: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'unitPrice',
                type: {
                  name: 'Number'
                }
              },
              currency_code: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'currencyCode',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
