-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR datamigration/resource-manager] Syncpublicpreview (#3066)
* Generated from df63583b7b2c2fcecd4869290499edeb10958d1f Changes for new API version 2018-07-15-preview for database migration service * Generated from 89c9f8caf3a630d2b8897d5c996b453d0c9e0078 additional removal of non-publicpreview items; update default package generated * Generated from 85b755380d05647fca7f26009c998b111fafab63 address multiple comments about phrasing and terminology * Generated from b671aca13c85d49cafa7070fc58749e662c06627 remove extra unexposed scenario mysql to sql * Generated from a1391ee91507153a22e2604974b7003e20442c9a rename data migration to database migration; remove more unused objects * Generated from 79e04cb85ee19db28b0378fa9df03cf4c5b7a4c9 missed a few Data Migration to Database Migration locations * Generated from e09f71700aa005b3d2808e949aab9b2d1c95972d Update readme.md to fix path for PostgreSql task json Update readme.md to fix path for PostgreSql task json * Generated from 17cbeffa83e108bb0c328df426033b94267aa57a Merge branch 'syncpublicpreview' of https://github.com/huang91shu/azure-rest-api-specs into syncpublicpreview * Generated from 6f4da7ea06b3babea19c684ce895ae9b44de85c4 fix travis CI failures due to style
- Loading branch information
1 parent
4feed5a
commit f20d755
Showing
252 changed files
with
11,483 additions
and
879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
334 changes: 303 additions & 31 deletions
334
azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# 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 | ||
|
||
|
||
class CommandProperties(Model): | ||
"""Base class for all types of DMS command properties. If command is not | ||
supported by current client, this object is returned. | ||
You probably want to use the sub-classes and not this class directly. Known | ||
sub-classes are: MigrateSyncCompleteCommandProperties | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar errors: Array of errors. This is ignored if submitted. | ||
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError] | ||
:ivar state: The state of the command. This is ignored if submitted. | ||
Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', | ||
'Failed' | ||
:vartype state: str or ~azure.mgmt.datamigration.models.CommandState | ||
:param command_type: Required. Constant filled by server. | ||
:type command_type: str | ||
""" | ||
|
||
_validation = { | ||
'errors': {'readonly': True}, | ||
'state': {'readonly': True}, | ||
'command_type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'errors': {'key': 'errors', 'type': '[ODataError]'}, | ||
'state': {'key': 'state', 'type': 'str'}, | ||
'command_type': {'key': 'commandType', 'type': 'str'}, | ||
} | ||
|
||
_subtype_map = { | ||
'command_type': {'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties'} | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(CommandProperties, self).__init__(**kwargs) | ||
self.errors = None | ||
self.state = None | ||
self.command_type = None |
57 changes: 57 additions & 0 deletions
57
azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# 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 | ||
|
||
|
||
class CommandProperties(Model): | ||
"""Base class for all types of DMS command properties. If command is not | ||
supported by current client, this object is returned. | ||
You probably want to use the sub-classes and not this class directly. Known | ||
sub-classes are: MigrateSyncCompleteCommandProperties | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar errors: Array of errors. This is ignored if submitted. | ||
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError] | ||
:ivar state: The state of the command. This is ignored if submitted. | ||
Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', | ||
'Failed' | ||
:vartype state: str or ~azure.mgmt.datamigration.models.CommandState | ||
:param command_type: Required. Constant filled by server. | ||
:type command_type: str | ||
""" | ||
|
||
_validation = { | ||
'errors': {'readonly': True}, | ||
'state': {'readonly': True}, | ||
'command_type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'errors': {'key': 'errors', 'type': '[ODataError]'}, | ||
'state': {'key': 'state', 'type': 'str'}, | ||
'command_type': {'key': 'commandType', 'type': 'str'}, | ||
} | ||
|
||
_subtype_map = { | ||
'command_type': {'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties'} | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(CommandProperties, self).__init__(**kwargs) | ||
self.errors = None | ||
self.state = None | ||
self.command_type = None |
49 changes: 49 additions & 0 deletions
49
...mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 | ||
|
||
|
||
class ConnectToSourceMySqlTaskInput(Model): | ||
"""Input for the task that validates MySQL database connection. | ||
All required parameters must be populated in order to send to Azure. | ||
:param source_connection_info: Required. Information for connecting to | ||
MySQL source | ||
:type source_connection_info: | ||
~azure.mgmt.datamigration.models.MySqlConnectionInfo | ||
:param target_platform: Target Platform for the migration. Possible values | ||
include: 'AzureDbForMySQL' | ||
:type target_platform: str or | ||
~azure.mgmt.datamigration.models.MySqlTargetPlatformType | ||
:param check_permissions_group: Permission group for validations. Possible | ||
values include: 'Default', 'MigrationFromSqlServerToAzureDB', | ||
'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' | ||
:type check_permissions_group: str or | ||
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup | ||
""" | ||
|
||
_validation = { | ||
'source_connection_info': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, | ||
'target_platform': {'key': 'targetPlatform', 'type': 'str'}, | ||
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs) | ||
self.source_connection_info = kwargs.get('source_connection_info', None) | ||
self.target_platform = kwargs.get('target_platform', None) | ||
self.check_permissions_group = kwargs.get('check_permissions_group', None) |
49 changes: 49 additions & 0 deletions
49
...-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 | ||
|
||
|
||
class ConnectToSourceMySqlTaskInput(Model): | ||
"""Input for the task that validates MySQL database connection. | ||
All required parameters must be populated in order to send to Azure. | ||
:param source_connection_info: Required. Information for connecting to | ||
MySQL source | ||
:type source_connection_info: | ||
~azure.mgmt.datamigration.models.MySqlConnectionInfo | ||
:param target_platform: Target Platform for the migration. Possible values | ||
include: 'AzureDbForMySQL' | ||
:type target_platform: str or | ||
~azure.mgmt.datamigration.models.MySqlTargetPlatformType | ||
:param check_permissions_group: Permission group for validations. Possible | ||
values include: 'Default', 'MigrationFromSqlServerToAzureDB', | ||
'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' | ||
:type check_permissions_group: str or | ||
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup | ||
""" | ||
|
||
_validation = { | ||
'source_connection_info': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, | ||
'target_platform': {'key': 'targetPlatform', 'type': 'str'}, | ||
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, source_connection_info, target_platform=None, check_permissions_group=None, **kwargs) -> None: | ||
super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs) | ||
self.source_connection_info = source_connection_info | ||
self.target_platform = target_platform | ||
self.check_permissions_group = check_permissions_group |
63 changes: 63 additions & 0 deletions
63
...datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# 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 .project_task_properties import ProjectTaskProperties | ||
|
||
|
||
class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): | ||
"""Properties for the task that validates MySQL database connection. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar errors: Array of errors. This is ignored if submitted. | ||
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError] | ||
:ivar state: The state of the task. This is ignored if submitted. Possible | ||
values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', | ||
'Failed', 'FailedInputValidation', 'Faulted' | ||
:vartype state: str or ~azure.mgmt.datamigration.models.TaskState | ||
:ivar commands: Array of command properties. | ||
:vartype commands: | ||
list[~azure.mgmt.datamigration.models.CommandProperties] | ||
:param task_type: Required. Constant filled by server. | ||
:type task_type: str | ||
:param input: Task input | ||
:type input: | ||
~azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput | ||
:ivar output: Task output. This is ignored if submitted. | ||
:vartype output: | ||
list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] | ||
""" | ||
|
||
_validation = { | ||
'errors': {'readonly': True}, | ||
'state': {'readonly': True}, | ||
'commands': {'readonly': True}, | ||
'task_type': {'required': True}, | ||
'output': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'errors': {'key': 'errors', 'type': '[ODataError]'}, | ||
'state': {'key': 'state', 'type': 'str'}, | ||
'commands': {'key': 'commands', 'type': '[CommandProperties]'}, | ||
'task_type': {'key': 'taskType', 'type': 'str'}, | ||
'input': {'key': 'input', 'type': 'ConnectToSourceMySqlTaskInput'}, | ||
'output': {'key': 'output', 'type': '[ConnectToSourceNonSqlTaskOutput]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ConnectToSourceMySqlTaskProperties, self).__init__(**kwargs) | ||
self.input = kwargs.get('input', None) | ||
self.output = None | ||
self.task_type = 'ConnectToSource.MySql' |
63 changes: 63 additions & 0 deletions
63
...migration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# 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 .project_task_properties_py3 import ProjectTaskProperties | ||
|
||
|
||
class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): | ||
"""Properties for the task that validates MySQL database connection. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar errors: Array of errors. This is ignored if submitted. | ||
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError] | ||
:ivar state: The state of the task. This is ignored if submitted. Possible | ||
values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', | ||
'Failed', 'FailedInputValidation', 'Faulted' | ||
:vartype state: str or ~azure.mgmt.datamigration.models.TaskState | ||
:ivar commands: Array of command properties. | ||
:vartype commands: | ||
list[~azure.mgmt.datamigration.models.CommandProperties] | ||
:param task_type: Required. Constant filled by server. | ||
:type task_type: str | ||
:param input: Task input | ||
:type input: | ||
~azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput | ||
:ivar output: Task output. This is ignored if submitted. | ||
:vartype output: | ||
list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] | ||
""" | ||
|
||
_validation = { | ||
'errors': {'readonly': True}, | ||
'state': {'readonly': True}, | ||
'commands': {'readonly': True}, | ||
'task_type': {'required': True}, | ||
'output': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'errors': {'key': 'errors', 'type': '[ODataError]'}, | ||
'state': {'key': 'state', 'type': 'str'}, | ||
'commands': {'key': 'commands', 'type': '[CommandProperties]'}, | ||
'task_type': {'key': 'taskType', 'type': 'str'}, | ||
'input': {'key': 'input', 'type': 'ConnectToSourceMySqlTaskInput'}, | ||
'output': {'key': 'output', 'type': '[ConnectToSourceNonSqlTaskOutput]'}, | ||
} | ||
|
||
def __init__(self, *, input=None, **kwargs) -> None: | ||
super(ConnectToSourceMySqlTaskProperties, self).__init__(**kwargs) | ||
self.input = input | ||
self.output = None | ||
self.task_type = 'ConnectToSource.MySql' |
Oops, something went wrong.