Source code for azure.mgmt.datamigration.models.validate_migration_input_sql_server_sql_mi_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 ValidateMigrationInputSqlServerSqlMITaskInput(Model):
"""Input for task that validates migration input for SQL to Azure SQL Managed
Instance.
All required parameters must be populated in order to send to Azure.
:param source_connection_info: Required. Information for connecting to
source
: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.MigrateSqlServerSqlMIDatabaseInput]
:param selected_logins: Logins to migrate
:type selected_logins: list[str]
:param backup_file_share: Backup file share information for all selected
databases.
:type backup_file_share: ~azure.mgmt.datamigration.models.FileShare
:param backup_blob_share: Required. SAS URI of Azure Storage Account
Container to be used for storing backup files.
:type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare
:param backup_mode: Backup Mode to specify whether to use existing backup
or create new backup. Possible values include: 'CreateBackup',
'ExistingBackup'
:type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode
"""
_validation = {
'source_connection_info': {'required': True},
'target_connection_info': {'required': True},
'selected_databases': {'required': True},
'backup_blob_share': {'required': True},
}
_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'},
'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'},
'selected_logins': {'key': 'selectedLogins', 'type': '[str]'},
'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'},
'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'},
'backup_mode': {'key': 'backupMode', 'type': 'str'},
}
def __init__(self, *, source_connection_info, target_connection_info, selected_databases, backup_blob_share, selected_logins=None, backup_file_share=None, backup_mode=None, **kwargs) -> None:
super(ValidateMigrationInputSqlServerSqlMITaskInput, self).__init__(**kwargs)
self.source_connection_info = source_connection_info
self.target_connection_info = target_connection_info
self.selected_databases = selected_databases
self.selected_logins = selected_logins
self.backup_file_share = backup_file_share
self.backup_blob_share = backup_blob_share
self.backup_mode = backup_mode