# 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 specific information for PostgreSQL to Azure Database for
    # PostgreSQL migration task inputs
    #
    class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput

      include MsRestAzure

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

      # @return [String] Name of target database. Note: Target database will be
      # truncated before starting migration.
      attr_accessor :target_database_name

      # @return [Hash{String => String}] Migration settings which tune the
      # migration behavior
      attr_accessor :migration_setting

      # @return [Hash{String => String}] Source settings to tune source
      # endpoint migration behavior
      attr_accessor :source_setting

      # @return [Hash{String => String}] Target settings to tune target
      # endpoint migration behavior
      attr_accessor :target_setting


      #
      # Mapper for MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput class
      # as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput',
          type: {
            name: 'Composite',
            class_name: 'MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput',
            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'
                }
              },
              migration_setting: {
                client_side_validation: true,
                required: false,
                serialized_name: 'migrationSetting',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              source_setting: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sourceSetting',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              target_setting: {
                client_side_validation: true,
                required: false,
                serialized_name: 'targetSetting',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
