# 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
    #
    # Connector read setting.
    #
    class StoreReadSettings

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["HdfsReadSettings"] = "HdfsReadSettings"
      @@discriminatorMap["HttpReadSettings"] = "HttpReadSettings"
      @@discriminatorMap["SftpReadSettings"] = "SftpReadSettings"
      @@discriminatorMap["FtpReadSettings"] = "FtpReadSettings"
      @@discriminatorMap["GoogleCloudStorageReadSettings"] = "GoogleCloudStorageReadSettings"
      @@discriminatorMap["AzureFileStorageReadSettings"] = "AzureFileStorageReadSettings"
      @@discriminatorMap["FileServerReadSettings"] = "FileServerReadSettings"
      @@discriminatorMap["AmazonS3ReadSettings"] = "AmazonS3ReadSettings"
      @@discriminatorMap["AzureDataLakeStoreReadSettings"] = "AzureDataLakeStoreReadSettings"
      @@discriminatorMap["AzureBlobFSReadSettings"] = "AzureBlobFSReadSettings"
      @@discriminatorMap["AzureBlobStorageReadSettings"] = "AzureBlobStorageReadSettings"

      def initialize
        @type = "StoreReadSettings"
      end

      attr_accessor :type

      # @return Unmatched properties from the message are deserialized this
      # collection
      attr_accessor :additional_properties

      # @return The maximum concurrent connection count for the source data
      # store. Type: integer (or Expression with resultType integer).
      attr_accessor :max_concurrent_connections


      #
      # Mapper for StoreReadSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'StoreReadSettings',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'StoreReadSettings',
            class_name: 'StoreReadSettings',
            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'
                      }
                  }
                }
              },
              max_concurrent_connections: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxConcurrentConnections',
                type: {
                  name: 'Object'
                }
              }
            }
          }
        }
      end
    end
  end
end
