# 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::Billing::Mgmt::V2017_04_24_preview module Models # # A billing period resource. # class BillingPeriod < Resource include MsRestAzure # @return [Date] The start of the date range covered by the billing # period. attr_accessor :billing_period_start_date # @return [Date] The end of the date range covered by the billing period. attr_accessor :billing_period_end_date # @return [Array] Array of invoice ids that associated with. attr_accessor :invoice_ids # # Mapper for BillingPeriod class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BillingPeriod', type: { name: 'Composite', class_name: 'BillingPeriod', 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' } }, billing_period_start_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.billingPeriodStartDate', type: { name: 'Date' } }, billing_period_end_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.billingPeriodEndDate', type: { name: 'Date' } }, invoice_ids: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.invoiceIds', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end