# 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::DataFactory::Mgmt::V2018_06_01
  module Models
    #
    # A copy activity DelimitedText source.
    #
    class DelimitedTextSource < CopySource

      include MsRestAzure


      def initialize
        @type = "DelimitedTextSource"
      end

      attr_accessor :type

      # @return [StoreReadSettings] DelimitedText store settings.
      attr_accessor :store_settings

      # @return [DelimitedTextReadSettings] DelimitedText format settings.
      attr_accessor :format_settings


      #
      # Mapper for DelimitedTextSource class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DelimitedTextSource',
          type: {
            name: 'Composite',
            class_name: 'DelimitedTextSource',
            model_properties: {
              additional_properties: {
                client_side_validation: true,
                required: false,
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ObjectElementType',
                      type: {
                        name: 'Object'
                      }
                  }
                }
              },
              source_retry_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sourceRetryCount',
                type: {
                  name: 'Object'
                }
              },
              source_retry_wait: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sourceRetryWait',
                type: {
                  name: 'Object'
                }
              },
              max_concurrent_connections: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxConcurrentConnections',
                type: {
                  name: 'Object'
                }
              },
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              store_settings: {
                client_side_validation: true,
                required: false,
                serialized_name: 'storeSettings',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'type',
                  uber_parent: 'StoreReadSettings',
                  class_name: 'StoreReadSettings'
                }
              },
              format_settings: {
                client_side_validation: true,
                required: false,
                serialized_name: 'formatSettings',
                type: {
                  name: 'Composite',
                  class_name: 'DelimitedTextReadSettings'
                }
              }
            }
          }
        }
      end
    end
  end
end
