|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from .project_task_properties import ProjectTaskProperties |
| 13 | + |
| 14 | + |
| 15 | +class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): |
| 16 | + """Properties for the task that validates MySQL database connection. |
| 17 | +
|
| 18 | + Variables are only populated by the server, and will be ignored when |
| 19 | + sending a request. |
| 20 | +
|
| 21 | + All required parameters must be populated in order to send to Azure. |
| 22 | +
|
| 23 | + :ivar errors: Array of errors. This is ignored if submitted. |
| 24 | + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] |
| 25 | + :ivar state: The state of the task. This is ignored if submitted. Possible |
| 26 | + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', |
| 27 | + 'Failed', 'FailedInputValidation', 'Faulted' |
| 28 | + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState |
| 29 | + :ivar commands: Array of command properties. |
| 30 | + :vartype commands: |
| 31 | + list[~azure.mgmt.datamigration.models.CommandProperties] |
| 32 | + :param task_type: Required. Constant filled by server. |
| 33 | + :type task_type: str |
| 34 | + :param input: Task input |
| 35 | + :type input: |
| 36 | + ~azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput |
| 37 | + :ivar output: Task output. This is ignored if submitted. |
| 38 | + :vartype output: |
| 39 | + list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] |
| 40 | + """ |
| 41 | + |
| 42 | + _validation = { |
| 43 | + 'errors': {'readonly': True}, |
| 44 | + 'state': {'readonly': True}, |
| 45 | + 'commands': {'readonly': True}, |
| 46 | + 'task_type': {'required': True}, |
| 47 | + 'output': {'readonly': True}, |
| 48 | + } |
| 49 | + |
| 50 | + _attribute_map = { |
| 51 | + 'errors': {'key': 'errors', 'type': '[ODataError]'}, |
| 52 | + 'state': {'key': 'state', 'type': 'str'}, |
| 53 | + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, |
| 54 | + 'task_type': {'key': 'taskType', 'type': 'str'}, |
| 55 | + 'input': {'key': 'input', 'type': 'ConnectToSourceMySqlTaskInput'}, |
| 56 | + 'output': {'key': 'output', 'type': '[ConnectToSourceNonSqlTaskOutput]'}, |
| 57 | + } |
| 58 | + |
| 59 | + def __init__(self, **kwargs): |
| 60 | + super(ConnectToSourceMySqlTaskProperties, self).__init__(**kwargs) |
| 61 | + self.input = kwargs.get('input', None) |
| 62 | + self.output = None |
| 63 | + self.task_type = 'ConnectToSource.MySql' |
0 commit comments