# 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::ComputerVision::V1_0
  module Models
    #
    # Model object.
    #
    #
    class TextOperationResult

      include MsRestAzure

      # @return [TextOperationStatusCodes] Status of the text operation.
      # Possible values include: 'Not Started', 'Running', 'Failed',
      # 'Succeeded'
      attr_accessor :status

      # @return [RecognitionResult]
      attr_accessor :recognition_result


      #
      # Mapper for TextOperationResult class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TextOperationResult',
          type: {
            name: 'Composite',
            class_name: 'TextOperationResult',
            model_properties: {
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'Enum',
                  module: 'TextOperationStatusCodes'
                }
              },
              recognition_result: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recognitionResult',
                type: {
                  name: 'Composite',
                  class_name: 'RecognitionResult'
                }
              }
            }
          }
        }
      end
    end
  end
end
