Skip to content

Commit

Permalink
[AutoPR] datamigration/resource-manager (#3213)
Browse files Browse the repository at this point in the history
* [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

* Modified the tests with a new recording file and changed the skus input (#3293)

* Packaging update of azure-mgmt-datamigration

* Version data migration
  • Loading branch information
AutorestCI authored and lmazuel committed Sep 7, 2018
1 parent a755de5 commit 8e010d7
Show file tree
Hide file tree
Showing 257 changed files with 12,465 additions and 1,057 deletions.
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

0 comments on commit 8e010d7

Please sign in to comment.