# 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::DataMigration::Mgmt::V2018_03_31_preview
  module Models
    #
    # Input for the task that validates connection to SQL Server and also
    # validates source server requirements
    #
    class ConnectToSourceSqlServerTaskInput

      include MsRestAzure

      # @return [SqlConnectionInfo] Connection information for Source SQL
      # Server
      attr_accessor :source_connection_info

      # @return [ServerLevelPermissionsGroup] Permission group for validations.
      # Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB'
      attr_accessor :check_permissions_group

      # @return [Boolean] Flag for whether to collect logins from source
      # server. Default value: false .
      attr_accessor :collect_logins

      # @return [Boolean] Flag for whether to collect agent jobs from source
      # server. Default value: false .
      attr_accessor :collect_agent_jobs


      #
      # Mapper for ConnectToSourceSqlServerTaskInput class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConnectToSourceSqlServerTaskInput',
          type: {
            name: 'Composite',
            class_name: 'ConnectToSourceSqlServerTaskInput',
            model_properties: {
              source_connection_info: {
                client_side_validation: true,
                required: true,
                serialized_name: 'sourceConnectionInfo',
                type: {
                  name: 'Composite',
                  class_name: 'SqlConnectionInfo'
                }
              },
              check_permissions_group: {
                client_side_validation: true,
                required: false,
                serialized_name: 'checkPermissionsGroup',
                type: {
                  name: 'String'
                }
              },
              collect_logins: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CollectLogins',
                default_value: false,
                type: {
                  name: 'Boolean'
                }
              },
              collect_agent_jobs: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CollectAgentJobs',
                default_value: false,
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
