# 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::CognitiveServices::FormRecognizer::V1_0_preview
  module Models
    #
    # Result of a model status query operation.
    #
    class ModelResult

      include MsRestAzure

      # @return Get or set model identifier.
      attr_accessor :model_id

      # @return [Enum] Get or set the status of model. Possible values include:
      # 'created', 'ready', 'invalid'
      attr_accessor :status

      # @return [DateTime] Get or set the created date time of the model.
      attr_accessor :created_date_time

      # @return [DateTime] Get or set the model last updated datetime.
      attr_accessor :last_updated_date_time


      #
      # Mapper for ModelResult class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ModelResult',
          type: {
            name: 'Composite',
            class_name: 'ModelResult',
            model_properties: {
              model_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'modelId',
                type: {
                  name: 'String'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              created_date_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'createdDateTime',
                type: {
                  name: 'DateTime'
                }
              },
              last_updated_date_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastUpdatedDateTime',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
