# 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
    #
    # Database input for migrate schema Sql Server to Azure SQL Server scenario
    #
    class MigrateSchemaSqlServerSqlDbDatabaseInput

      include MsRestAzure

      # @return [String] Name of source database
      attr_accessor :name

      # @return [String] Name of target database
      attr_accessor :target_database_name

      # @return [SchemaMigrationSetting] Database schema migration settings
      attr_accessor :schema_setting


      #
      # Mapper for MigrateSchemaSqlServerSqlDbDatabaseInput class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'MigrateSchemaSqlServerSqlDbDatabaseInput',
          type: {
            name: 'Composite',
            class_name: 'MigrateSchemaSqlServerSqlDbDatabaseInput',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              target_database_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'targetDatabaseName',
                type: {
                  name: 'String'
                }
              },
              schema_setting: {
                client_side_validation: true,
                required: false,
                serialized_name: 'schemaSetting',
                type: {
                  name: 'Composite',
                  class_name: 'SchemaMigrationSetting'
                }
              }
            }
          }
        }
      end
    end
  end
end
