# 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::Logic::Mgmt::V2016_06_01
  module Models
    #
    # Model object.
    #
    #
    class TrackingEvent

      include MsRestAzure

      # @return [EventLevel] Possible values include: 'LogAlways', 'Critical',
      # 'Error', 'Warning', 'Informational', 'Verbose'
      attr_accessor :event_level

      # @return [DateTime]
      attr_accessor :event_time

      # @return [TrackingRecordType] Possible values include: 'NotSpecified',
      # 'Custom', 'AS2Message', 'AS2MDN', 'X12Interchange',
      # 'X12FunctionalGroup', 'X12TransactionSet',
      # 'X12InterchangeAcknowledgment', 'X12FunctionalGroupAcknowledgment',
      # 'X12TransactionSetAcknowledgment', 'EdifactInterchange',
      # 'EdifactFunctionalGroup', 'EdifactTransactionSet',
      # 'EdifactInterchangeAcknowledgment',
      # 'EdifactFunctionalGroupAcknowledgment',
      # 'EdifactTransactionSetAcknowledgment'
      attr_accessor :record_type

      # @return [TrackingEventErrorInfo]
      attr_accessor :error


      #
      # Mapper for TrackingEvent class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TrackingEvent',
          type: {
            name: 'Composite',
            class_name: 'TrackingEvent',
            model_properties: {
              event_level: {
                client_side_validation: true,
                required: true,
                serialized_name: 'eventLevel',
                type: {
                  name: 'Enum',
                  module: 'EventLevel'
                }
              },
              event_time: {
                client_side_validation: true,
                required: true,
                serialized_name: 'eventTime',
                type: {
                  name: 'DateTime'
                }
              },
              record_type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'recordType',
                type: {
                  name: 'Enum',
                  module: 'TrackingRecordType'
                }
              },
              error: {
                client_side_validation: true,
                required: false,
                serialized_name: 'error',
                type: {
                  name: 'Composite',
                  class_name: 'TrackingEventErrorInfo'
                }
              }
            }
          }
        }
      end
    end
  end
end
