Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] datamigration/resource-manager #3213

Merged
merged 4 commits into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions azure-mgmt-datamigration/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,35 @@
Release History
===============

2.0.0 (2018-09-07)
++++++++++++++++++

**Features**

- Model ConnectToSourceSqlServerTaskInput has a new parameter collect_tde_certificate_info
- Model ConnectToTargetSqlDbTaskProperties has a new parameter commands
- Model ConnectToSourceSqlServerTaskProperties has a new parameter commands
- Model MigrateSqlServerSqlDbTaskProperties has a new parameter commands
- Model ConnectToSourceSqlServerTaskOutputTaskLevel has a new parameter database_tde_certificate_mapping
- Model ProjectTaskProperties has a new parameter commands
- Model ConnectToSourceSqlServerTaskOutputAgentJobLevel has a new parameter validation_errors
- Model SqlConnectionInfo has a new parameter platform
- Model GetUserTablesSqlTaskProperties has a new parameter commands
- Model MigrateSqlServerSqlDbTaskOutputMigrationLevel has a new parameter migration_validation_result
- Model MigrateSqlServerSqlDbTaskOutputMigrationLevel has a new parameter migration_report_result
- Model MigrateSqlServerSqlServerDatabaseInput has a new parameter backup_and_restore_folder
- Added operation ServicesOperations.check_children_name_availability
- Added operation TasksOperations.command
- Added operation ProjectsOperations.list

**Breaking changes**

- Model MigrateSqlServerSqlDbTaskOutputMigrationLevel no longer has parameter migration_report
- Model MigrateSqlServerSqlServerDatabaseInput no longer has parameter backup_file_share
- Model ReportableException has a new signature
- Removed operation ServicesOperations.nested_check_name_availability
- Removed operation ProjectsOperations.list_by_resource_group

1.0.0 (2018-06-05)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-datamigration/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Data Migration Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def __init__(
super(DataMigrationServiceClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-04-19'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
334 changes: 303 additions & 31 deletions azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class AvailableServiceSkuSku(Model):
:type family: str
:param size: SKU size
:type size: str
:param tier: The tier of the SKU, such as "Free", "Basic", "Standard", or
"Premium"
:param tier: The tier of the SKU, such as "Basic", "General Purpose", or
"Business Critical"
:type tier: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class AvailableServiceSkuSku(Model):
:type family: str
:param size: SKU size
:type size: str
:param tier: The tier of the SKU, such as "Free", "Basic", "Standard", or
"Premium"
:param tier: The tier of the SKU, such as "Basic", "General Purpose", or
"Business Critical"
:type tier: str
"""

Expand Down
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
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
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)
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
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'
Loading