# 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::TextAnalytics::V2_1
  module Models
    #
    # Model object.
    #
    #
    class RequestStatistics

      include MsRestAzure

      # @return [Integer] Number of documents submitted in the request.
      attr_accessor :documents_count

      # @return [Integer] Number of valid documents. This excludes empty,
      # over-size limit or non-supported languages documents.
      attr_accessor :valid_documents_count

      # @return [Integer] Number of invalid documents. This includes empty,
      # over-size limit or non-supported languages documents.
      attr_accessor :erroneous_documents_count

      # @return [Integer] Number of transactions for the request.
      attr_accessor :transactions_count


      #
      # Mapper for RequestStatistics class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RequestStatistics',
          type: {
            name: 'Composite',
            class_name: 'RequestStatistics',
            model_properties: {
              documents_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'documentsCount',
                type: {
                  name: 'Number'
                }
              },
              valid_documents_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'validDocumentsCount',
                type: {
                  name: 'Number'
                }
              },
              erroneous_documents_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'erroneousDocumentsCount',
                type: {
                  name: 'Number'
                }
              },
              transactions_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'transactionsCount',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
