Skip to content

Commit f20d755

Browse files
authored
[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
1 parent 4feed5a commit f20d755

File tree

252 files changed

+11483
-879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+11483
-879
lines changed

azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def __init__(
8888
super(DataMigrationServiceClient, self).__init__(self.config.credentials, self.config)
8989

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

azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py

+303-31
Large diffs are not rendered by default.

azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class AvailableServiceSkuSku(Model):
2121
:type family: str
2222
:param size: SKU size
2323
:type size: str
24-
:param tier: The tier of the SKU, such as "Free", "Basic", "Standard", or
25-
"Premium"
24+
:param tier: The tier of the SKU, such as "Basic", "General Purpose", or
25+
"Business Critical"
2626
:type tier: str
2727
"""
2828

azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku_py3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class AvailableServiceSkuSku(Model):
2121
:type family: str
2222
:param size: SKU size
2323
:type size: str
24-
:param tier: The tier of the SKU, such as "Free", "Basic", "Standard", or
25-
"Premium"
24+
:param tier: The tier of the SKU, such as "Basic", "General Purpose", or
25+
"Business Critical"
2626
:type tier: str
2727
"""
2828

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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 msrest.serialization import Model
13+
14+
15+
class CommandProperties(Model):
16+
"""Base class for all types of DMS command properties. If command is not
17+
supported by current client, this object is returned.
18+
19+
You probably want to use the sub-classes and not this class directly. Known
20+
sub-classes are: MigrateSyncCompleteCommandProperties
21+
22+
Variables are only populated by the server, and will be ignored when
23+
sending a request.
24+
25+
All required parameters must be populated in order to send to Azure.
26+
27+
:ivar errors: Array of errors. This is ignored if submitted.
28+
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError]
29+
:ivar state: The state of the command. This is ignored if submitted.
30+
Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded',
31+
'Failed'
32+
:vartype state: str or ~azure.mgmt.datamigration.models.CommandState
33+
:param command_type: Required. Constant filled by server.
34+
:type command_type: str
35+
"""
36+
37+
_validation = {
38+
'errors': {'readonly': True},
39+
'state': {'readonly': True},
40+
'command_type': {'required': True},
41+
}
42+
43+
_attribute_map = {
44+
'errors': {'key': 'errors', 'type': '[ODataError]'},
45+
'state': {'key': 'state', 'type': 'str'},
46+
'command_type': {'key': 'commandType', 'type': 'str'},
47+
}
48+
49+
_subtype_map = {
50+
'command_type': {'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties'}
51+
}
52+
53+
def __init__(self, **kwargs):
54+
super(CommandProperties, self).__init__(**kwargs)
55+
self.errors = None
56+
self.state = None
57+
self.command_type = None
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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 msrest.serialization import Model
13+
14+
15+
class CommandProperties(Model):
16+
"""Base class for all types of DMS command properties. If command is not
17+
supported by current client, this object is returned.
18+
19+
You probably want to use the sub-classes and not this class directly. Known
20+
sub-classes are: MigrateSyncCompleteCommandProperties
21+
22+
Variables are only populated by the server, and will be ignored when
23+
sending a request.
24+
25+
All required parameters must be populated in order to send to Azure.
26+
27+
:ivar errors: Array of errors. This is ignored if submitted.
28+
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError]
29+
:ivar state: The state of the command. This is ignored if submitted.
30+
Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded',
31+
'Failed'
32+
:vartype state: str or ~azure.mgmt.datamigration.models.CommandState
33+
:param command_type: Required. Constant filled by server.
34+
:type command_type: str
35+
"""
36+
37+
_validation = {
38+
'errors': {'readonly': True},
39+
'state': {'readonly': True},
40+
'command_type': {'required': True},
41+
}
42+
43+
_attribute_map = {
44+
'errors': {'key': 'errors', 'type': '[ODataError]'},
45+
'state': {'key': 'state', 'type': 'str'},
46+
'command_type': {'key': 'commandType', 'type': 'str'},
47+
}
48+
49+
_subtype_map = {
50+
'command_type': {'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties'}
51+
}
52+
53+
def __init__(self, **kwargs) -> None:
54+
super(CommandProperties, self).__init__(**kwargs)
55+
self.errors = None
56+
self.state = None
57+
self.command_type = None
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 msrest.serialization import Model
13+
14+
15+
class ConnectToSourceMySqlTaskInput(Model):
16+
"""Input for the task that validates MySQL database connection.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param source_connection_info: Required. Information for connecting to
21+
MySQL source
22+
:type source_connection_info:
23+
~azure.mgmt.datamigration.models.MySqlConnectionInfo
24+
:param target_platform: Target Platform for the migration. Possible values
25+
include: 'AzureDbForMySQL'
26+
:type target_platform: str or
27+
~azure.mgmt.datamigration.models.MySqlTargetPlatformType
28+
:param check_permissions_group: Permission group for validations. Possible
29+
values include: 'Default', 'MigrationFromSqlServerToAzureDB',
30+
'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL'
31+
:type check_permissions_group: str or
32+
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup
33+
"""
34+
35+
_validation = {
36+
'source_connection_info': {'required': True},
37+
}
38+
39+
_attribute_map = {
40+
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'},
41+
'target_platform': {'key': 'targetPlatform', 'type': 'str'},
42+
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
43+
}
44+
45+
def __init__(self, **kwargs):
46+
super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs)
47+
self.source_connection_info = kwargs.get('source_connection_info', None)
48+
self.target_platform = kwargs.get('target_platform', None)
49+
self.check_permissions_group = kwargs.get('check_permissions_group', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 msrest.serialization import Model
13+
14+
15+
class ConnectToSourceMySqlTaskInput(Model):
16+
"""Input for the task that validates MySQL database connection.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param source_connection_info: Required. Information for connecting to
21+
MySQL source
22+
:type source_connection_info:
23+
~azure.mgmt.datamigration.models.MySqlConnectionInfo
24+
:param target_platform: Target Platform for the migration. Possible values
25+
include: 'AzureDbForMySQL'
26+
:type target_platform: str or
27+
~azure.mgmt.datamigration.models.MySqlTargetPlatformType
28+
:param check_permissions_group: Permission group for validations. Possible
29+
values include: 'Default', 'MigrationFromSqlServerToAzureDB',
30+
'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL'
31+
:type check_permissions_group: str or
32+
~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup
33+
"""
34+
35+
_validation = {
36+
'source_connection_info': {'required': True},
37+
}
38+
39+
_attribute_map = {
40+
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'},
41+
'target_platform': {'key': 'targetPlatform', 'type': 'str'},
42+
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
43+
}
44+
45+
def __init__(self, *, source_connection_info, target_platform=None, check_permissions_group=None, **kwargs) -> None:
46+
super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs)
47+
self.source_connection_info = source_connection_info
48+
self.target_platform = target_platform
49+
self.check_permissions_group = check_permissions_group
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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_py3 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, *, input=None, **kwargs) -> None:
60+
super(ConnectToSourceMySqlTaskProperties, self).__init__(**kwargs)
61+
self.input = input
62+
self.output = None
63+
self.task_type = 'ConnectToSource.MySql'

0 commit comments

Comments
 (0)