# 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::Qnamaker::V4_0
  module Models
    #
    # DTO to hold details of uploaded files.
    #
    class FileDTO

      include MsRestAzure

      # @return [String] File name. Supported file types are ".tsv", ".pdf",
      # ".txt", ".docx", ".xlsx".
      attr_accessor :file_name

      # @return [String] Public URI of the file.
      attr_accessor :file_uri


      #
      # Mapper for FileDTO class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'FileDTO',
          type: {
            name: 'Composite',
            class_name: 'FileDTO',
            model_properties: {
              file_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'fileName',
                constraints: {
                  MaxLength: 200,
                  MinLength: 1
                },
                type: {
                  name: 'String'
                }
              },
              file_uri: {
                client_side_validation: true,
                required: true,
                serialized_name: 'fileUri',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
