Source code for azure.mgmt.datamigration.models.migrate_my_sql_azure_db_for_my_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 MigrateMySqlAzureDbForMySqlSyncTaskInput(Model):
"""Input for the task that migrates MySQL databases to Azure Database for
MySQL for online migrations.
All required parameters must be populated in order to send to Azure.
:param source_connection_info: Required. Connection information for source
MySQL
:type source_connection_info:
~azure.mgmt.datamigration.models.MySqlConnectionInfo
:param target_connection_info: Required. Connection information for target
Azure Database for MySQL
:type target_connection_info:
~azure.mgmt.datamigration.models.MySqlConnectionInfo
:param selected_databases: Required. Databases to migrate
:type selected_databases:
list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput]
"""
_validation = {
'source_connection_info': {'required': True},
'target_connection_info': {'required': True},
'selected_databases': {'required': True},
}
_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'},
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'},
'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateMySqlAzureDbForMySqlSyncDatabaseInput]'},
}
def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None:
super(MigrateMySqlAzureDbForMySqlSyncTaskInput, self).__init__(**kwargs)
self.source_connection_info = source_connection_info
self.target_connection_info = target_connection_info
self.selected_databases = selected_databases