# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::DataMigration::Mgmt::V2018_07_15_preview
  module Models
    #
    # Base class for migration task input
    #
    class SqlMigrationTaskInput

      include MsRestAzure

      # @return [SqlConnectionInfo] Information for connecting to source
      attr_accessor :source_connection_info

      # @return [SqlConnectionInfo] Information for connecting to target
      attr_accessor :target_connection_info


      #
      # Mapper for SqlMigrationTaskInput class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SqlMigrationTaskInput',
          type: {
            name: 'Composite',
            class_name: 'SqlMigrationTaskInput',
            model_properties: {
              source_connection_info: {
                client_side_validation: true,
                required: true,
                serialized_name: 'sourceConnectionInfo',
                type: {
                  name: 'Composite',
                  class_name: 'SqlConnectionInfo'
                }
              },
              target_connection_info: {
                client_side_validation: true,
                required: true,
                serialized_name: 'targetConnectionInfo',
                type: {
                  name: 'Composite',
                  class_name: 'SqlConnectionInfo'
                }
              }
            }
          }
        }
      end
    end
  end
end
