# 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::CostManagement::Mgmt::V2019_03_01_preview
  module Models
    #
    # Collection and ingestion information
    #
    class ConnectorCollectionInfo

      include MsRestAzure

      # @return [DateTime] Last time the data acquisition process initiated
      # connecting to the external provider
      attr_accessor :last_checked

      # @return [DateTime] Source timestamp of external data currently
      # available in Azure (eg AWS last processed CUR file timestamp)
      attr_accessor :source_last_updated

      # @return [DateTime] Last time the external data was updated into Azure
      attr_accessor :last_updated

      # @return [ConnectorCollectionErrorInfo] Error information of last
      # collection
      attr_accessor :error


      #
      # Mapper for ConnectorCollectionInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConnectorCollectionInfo',
          type: {
            name: 'Composite',
            class_name: 'ConnectorCollectionInfo',
            model_properties: {
              last_checked: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'lastChecked',
                type: {
                  name: 'DateTime'
                }
              },
              source_last_updated: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'sourceLastUpdated',
                type: {
                  name: 'DateTime'
                }
              },
              last_updated: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'lastUpdated',
                type: {
                  name: 'DateTime'
                }
              },
              error: {
                client_side_validation: true,
                required: false,
                serialized_name: 'error',
                type: {
                  name: 'Composite',
                  class_name: 'ConnectorCollectionErrorInfo'
                }
              }
            }
          }
        }
      end
    end
  end
end
