Source code for azure.mgmt.datamigration.models.connect_to_target_azure_db_for_my_sql_task_output_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 ConnectToTargetAzureDbForMySqlTaskOutput(Model):
"""Output for the task that validates connection to Azure Database for MySQL
and target server requirements.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Result identifier
:vartype id: str
:ivar server_version: Version of the target server
:vartype server_version: str
:ivar databases: List of databases on target server
:vartype databases: list[str]
:ivar target_server_brand_version: Target server brand version
:vartype target_server_brand_version: str
:ivar validation_errors: Validation errors associated with the task
:vartype validation_errors:
list[~azure.mgmt.datamigration.models.ReportableException]
"""
_validation = {
'id': {'readonly': True},
'server_version': {'readonly': True},
'databases': {'readonly': True},
'target_server_brand_version': {'readonly': True},
'validation_errors': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'server_version': {'key': 'serverVersion', 'type': 'str'},
'databases': {'key': 'databases', 'type': '[str]'},
'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'},
'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'},
}
def __init__(self, **kwargs) -> None:
super(ConnectToTargetAzureDbForMySqlTaskOutput, self).__init__(**kwargs)
self.id = None
self.server_version = None
self.databases = None
self.target_server_brand_version = None
self.validation_errors = None