# 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
    #
    # Input to create KB.
    #
    class CreateKbInputDTO

      include MsRestAzure

      # @return [Array<QnADTO>] List of QNA to be added to the index. Ids are
      # generated by the service and should be omitted.
      attr_accessor :qna_list

      # @return [Array<String>] List of URLs to be added to knowledgebase.
      attr_accessor :urls

      # @return [Array<FileDTO>] List of files to be added to knowledgebase.
      attr_accessor :files


      #
      # Mapper for CreateKbInputDTO class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CreateKbInputDTO',
          type: {
            name: 'Composite',
            class_name: 'CreateKbInputDTO',
            model_properties: {
              qna_list: {
                client_side_validation: true,
                required: false,
                serialized_name: 'qnaList',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'QnADTOElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'QnADTO'
                      }
                  }
                }
              },
              urls: {
                client_side_validation: true,
                required: false,
                serialized_name: 'urls',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              files: {
                client_side_validation: true,
                required: false,
                serialized_name: 'files',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'FileDTOElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'FileDTO'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
