Source code for azure.mgmt.datamigration.models.validate_sync_migration_input_sql_server_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 ValidateSyncMigrationInputSqlServerTaskInput(Model):
"""Input for task that validates migration input for SQL sync migrations.
All required parameters must be populated in order to send to Azure.
:param source_connection_info: Required. Information for connecting to
source SQL server
:type source_connection_info:
~azure.mgmt.datamigration.models.SqlConnectionInfo
:param target_connection_info: Required. Information for connecting to
target
:type target_connection_info:
~azure.mgmt.datamigration.models.SqlConnectionInfo
:param selected_databases: Required. Databases to migrate
:type selected_databases:
list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput]
"""
_validation = {
'source_connection_info': {'required': True},
'target_connection_info': {'required': True},
'selected_databases': {'required': True},
}
_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'},
'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'},
}
def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None:
super(ValidateSyncMigrationInputSqlServerTaskInput, self).__init__(**kwargs)
self.source_connection_info = source_connection_info
self.target_connection_info = target_connection_info
self.selected_databases = selected_databases