Source code for azure.mgmt.datamigration.models.migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(Model): """Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations. All required parameters must be populated in order to send to Azure. :param selected_databases: Required. Databases to migrate :type selected_databases: list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] :param target_connection_info: Required. Connection information for target Azure Database for PostgreSQL :type target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo :param source_connection_info: Required. Connection information for source PostgreSQL :type source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo """ _validation = { 'selected_databases': {'required': True}, 'target_connection_info': {'required': True}, 'source_connection_info': {'required': True}, } _attribute_map = { 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput]'}, 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, } def __init__(self, *, selected_databases, target_connection_info, source_connection_info, **kwargs) -> None: super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) self.selected_databases = selected_databases self.target_connection_info = target_connection_info self.source_connection_info = source_connection_info