diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py index b63b42615918..064b7262afbc 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py @@ -88,7 +88,7 @@ def __init__( self._client = ServiceClient(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-03-15-preview' + self.api_version = '2018-03-31-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py index 4fc2f864f65b..6ae5e015ac65 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py @@ -47,7 +47,10 @@ from .migrate_sql_server_sql_db_task_input_py3 import MigrateSqlServerSqlDbTaskInput from .migrate_sql_server_sql_db_task_properties_py3 import MigrateSqlServerSqlDbTaskProperties from .migrate_sql_server_sql_mi_task_output_error_py3 import MigrateSqlServerSqlMITaskOutputError + from .migrate_sql_server_sql_mi_task_output_login_level_py3 import MigrateSqlServerSqlMITaskOutputLoginLevel + from .migrate_sql_server_sql_mi_task_output_agent_job_level_py3 import MigrateSqlServerSqlMITaskOutputAgentJobLevel from .migrate_sql_server_sql_mi_task_output_database_level_py3 import MigrateSqlServerSqlMITaskOutputDatabaseLevel + from .start_migration_scenario_server_role_result_py3 import StartMigrationScenarioServerRoleResult from .migrate_sql_server_sql_mi_task_output_migration_level_py3 import MigrateSqlServerSqlMITaskOutputMigrationLevel from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput from .migrate_sql_server_sql_mi_task_input_py3 import MigrateSqlServerSqlMITaskInput @@ -62,6 +65,9 @@ from .connect_to_target_sql_mi_task_output_py3 import ConnectToTargetSqlMITaskOutput from .connect_to_target_sql_mi_task_input_py3 import ConnectToTargetSqlMITaskInput from .connect_to_target_sql_mi_task_properties_py3 import ConnectToTargetSqlMITaskProperties + from .migration_eligibility_info_py3 import MigrationEligibilityInfo + from .connect_to_source_sql_server_task_output_agent_job_level_py3 import ConnectToSourceSqlServerTaskOutputAgentJobLevel + from .connect_to_source_sql_server_task_output_login_level_py3 import ConnectToSourceSqlServerTaskOutputLoginLevel from .database_file_info_py3 import DatabaseFileInfo from .connect_to_source_sql_server_task_output_database_level_py3 import ConnectToSourceSqlServerTaskOutputDatabaseLevel from .connect_to_source_sql_server_task_output_task_level_py3 import ConnectToSourceSqlServerTaskOutputTaskLevel @@ -135,7 +141,10 @@ from .migrate_sql_server_sql_db_task_input import MigrateSqlServerSqlDbTaskInput from .migrate_sql_server_sql_db_task_properties import MigrateSqlServerSqlDbTaskProperties from .migrate_sql_server_sql_mi_task_output_error import MigrateSqlServerSqlMITaskOutputError + from .migrate_sql_server_sql_mi_task_output_login_level import MigrateSqlServerSqlMITaskOutputLoginLevel + from .migrate_sql_server_sql_mi_task_output_agent_job_level import MigrateSqlServerSqlMITaskOutputAgentJobLevel from .migrate_sql_server_sql_mi_task_output_database_level import MigrateSqlServerSqlMITaskOutputDatabaseLevel + from .start_migration_scenario_server_role_result import StartMigrationScenarioServerRoleResult from .migrate_sql_server_sql_mi_task_output_migration_level import MigrateSqlServerSqlMITaskOutputMigrationLevel from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput from .migrate_sql_server_sql_mi_task_input import MigrateSqlServerSqlMITaskInput @@ -150,6 +159,9 @@ from .connect_to_target_sql_mi_task_output import ConnectToTargetSqlMITaskOutput from .connect_to_target_sql_mi_task_input import ConnectToTargetSqlMITaskInput from .connect_to_target_sql_mi_task_properties import ConnectToTargetSqlMITaskProperties + from .migration_eligibility_info import MigrationEligibilityInfo + from .connect_to_source_sql_server_task_output_agent_job_level import ConnectToSourceSqlServerTaskOutputAgentJobLevel + from .connect_to_source_sql_server_task_output_login_level import ConnectToSourceSqlServerTaskOutputLoginLevel from .database_file_info import DatabaseFileInfo from .connect_to_source_sql_server_task_output_database_level import ConnectToSourceSqlServerTaskOutputDatabaseLevel from .connect_to_source_sql_server_task_output_task_level import ConnectToSourceSqlServerTaskOutputTaskLevel @@ -201,6 +213,8 @@ MigrationState, DatabaseMigrationStage, MigrationStatus, + LoginMigrationStage, + LoginType, DatabaseState, DatabaseCompatLevel, DatabaseFileType, @@ -256,7 +270,10 @@ 'MigrateSqlServerSqlDbTaskInput', 'MigrateSqlServerSqlDbTaskProperties', 'MigrateSqlServerSqlMITaskOutputError', + 'MigrateSqlServerSqlMITaskOutputLoginLevel', + 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', + 'StartMigrationScenarioServerRoleResult', 'MigrateSqlServerSqlMITaskOutputMigrationLevel', 'MigrateSqlServerSqlMITaskOutput', 'MigrateSqlServerSqlMITaskInput', @@ -271,6 +288,9 @@ 'ConnectToTargetSqlMITaskOutput', 'ConnectToTargetSqlMITaskInput', 'ConnectToTargetSqlMITaskProperties', + 'MigrationEligibilityInfo', + 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', + 'ConnectToSourceSqlServerTaskOutputLoginLevel', 'DatabaseFileInfo', 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'ConnectToSourceSqlServerTaskOutputTaskLevel', @@ -321,6 +341,8 @@ 'MigrationState', 'DatabaseMigrationStage', 'MigrationStatus', + 'LoginMigrationStage', + 'LoginType', 'DatabaseState', 'DatabaseCompatLevel', 'DatabaseFileType', diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py index 7c438c410b34..ffea39a8f531 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py @@ -26,6 +26,12 @@ class ConnectToSourceSqlServerTaskInput(Model): values include: 'Default', 'MigrationFromSqlServerToAzureDB' :type check_permissions_group: str or ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + :param collect_logins: Flag for whether to collect logins from source + server. Default value: False . + :type collect_logins: bool + :param collect_agent_jobs: Flag for whether to collect agent jobs from + source server. Default value: False . + :type collect_agent_jobs: bool """ _validation = { @@ -35,9 +41,13 @@ class ConnectToSourceSqlServerTaskInput(Model): _attribute_map = { 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'}, + 'collect_logins': {'key': 'CollectLogins', 'type': 'bool'}, + 'collect_agent_jobs': {'key': 'CollectAgentJobs', 'type': 'bool'}, } def __init__(self, **kwargs): super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs) self.source_connection_info = kwargs.get('source_connection_info', None) self.check_permissions_group = kwargs.get('check_permissions_group', None) + self.collect_logins = kwargs.get('collect_logins', False) + self.collect_agent_jobs = kwargs.get('collect_agent_jobs', False) diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py index 0ba2d6b4238b..0546c68bfad5 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py @@ -26,6 +26,12 @@ class ConnectToSourceSqlServerTaskInput(Model): values include: 'Default', 'MigrationFromSqlServerToAzureDB' :type check_permissions_group: str or ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + :param collect_logins: Flag for whether to collect logins from source + server. Default value: False . + :type collect_logins: bool + :param collect_agent_jobs: Flag for whether to collect agent jobs from + source server. Default value: False . + :type collect_agent_jobs: bool """ _validation = { @@ -35,9 +41,13 @@ class ConnectToSourceSqlServerTaskInput(Model): _attribute_map = { 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'}, + 'collect_logins': {'key': 'CollectLogins', 'type': 'bool'}, + 'collect_agent_jobs': {'key': 'CollectAgentJobs', 'type': 'bool'}, } - def __init__(self, *, source_connection_info, check_permissions_group=None, **kwargs) -> None: + def __init__(self, *, source_connection_info, check_permissions_group=None, collect_logins: bool=False, collect_agent_jobs: bool=False, **kwargs) -> None: super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs) self.source_connection_info = source_connection_info self.check_permissions_group = check_permissions_group + self.collect_logins = collect_logins + self.collect_agent_jobs = collect_agent_jobs diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py index ec85bed39b45..471833f6ee3b 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py @@ -17,7 +17,9 @@ class ConnectToSourceSqlServerTaskOutput(Model): validates source server requirements. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ConnectToSourceSqlServerTaskOutputDatabaseLevel, + sub-classes are: ConnectToSourceSqlServerTaskOutputAgentJobLevel, + ConnectToSourceSqlServerTaskOutputLoginLevel, + ConnectToSourceSqlServerTaskOutputDatabaseLevel, ConnectToSourceSqlServerTaskOutputTaskLevel Variables are only populated by the server, and will be ignored when @@ -42,7 +44,7 @@ class ConnectToSourceSqlServerTaskOutput(Model): } _subtype_map = { - 'result_type': {'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} + 'result_type': {'AgentJobLevelOutput': 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', 'LoginLevelOutput': 'ConnectToSourceSqlServerTaskOutputLoginLevel', 'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level.py new file mode 100644 index 000000000000..973bec72df1e --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level.py @@ -0,0 +1,75 @@ +# 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 .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput + + +class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTaskOutput): + """AgentJob level output for the task that validates connection to SQL Server + and also validates source server requirements. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: AgentJob name + :vartype name: str + :ivar job_category: The type of AgentJob. + :vartype job_category: str + :ivar is_enabled: The state of the original AgentJob. + :vartype is_enabled: bool + :ivar job_owner: The owner of the AgentJob + :vartype job_owner: str + :ivar last_executed_on: UTC Date and time when the AgentJob was last + executed. + :vartype last_executed_on: datetime + :ivar migration_eligibility: Information about eligiblity of agent job for + migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'job_category': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'job_owner': {'readonly': True}, + 'last_executed_on': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'job_category': {'key': 'jobCategory', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'job_owner': {'key': 'jobOwner', 'type': 'str'}, + 'last_executed_on': {'key': 'lastExecutedOn', 'type': 'iso-8601'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskOutputAgentJobLevel, self).__init__(**kwargs) + self.name = None + self.job_category = None + self.is_enabled = None + self.job_owner = None + self.last_executed_on = None + self.migration_eligibility = None + self.result_type = 'AgentJobLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level_py3.py new file mode 100644 index 000000000000..610b1894f470 --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level_py3.py @@ -0,0 +1,75 @@ +# 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 .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput + + +class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTaskOutput): + """AgentJob level output for the task that validates connection to SQL Server + and also validates source server requirements. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: AgentJob name + :vartype name: str + :ivar job_category: The type of AgentJob. + :vartype job_category: str + :ivar is_enabled: The state of the original AgentJob. + :vartype is_enabled: bool + :ivar job_owner: The owner of the AgentJob + :vartype job_owner: str + :ivar last_executed_on: UTC Date and time when the AgentJob was last + executed. + :vartype last_executed_on: datetime + :ivar migration_eligibility: Information about eligiblity of agent job for + migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'job_category': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'job_owner': {'readonly': True}, + 'last_executed_on': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'job_category': {'key': 'jobCategory', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'job_owner': {'key': 'jobOwner', 'type': 'str'}, + 'last_executed_on': {'key': 'lastExecutedOn', 'type': 'iso-8601'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskOutputAgentJobLevel, self).__init__(, **kwargs) + self.name = None + self.job_category = None + self.is_enabled = None + self.job_owner = None + self.last_executed_on = None + self.migration_eligibility = None + self.result_type = 'AgentJobLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level.py new file mode 100644 index 000000000000..ad28eb21c17e --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level.py @@ -0,0 +1,71 @@ +# 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 .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput + + +class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): + """Login level output for the task that validates connection to SQL Server and + also validates source server requirements. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Login name. + :vartype name: str + :ivar login_type: The type of login. Possible values include: + 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', 'AsymmetricKey', + 'ExternalUser', 'ExternalGroup' + :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType + :ivar default_database: The default database for the login. + :vartype default_database: str + :ivar is_enabled: The state of the login. + :vartype is_enabled: bool + :ivar migration_eligibility: Information about eligiblity of login for + migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'login_type': {'readonly': True}, + 'default_database': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'login_type': {'key': 'loginType', 'type': 'LoginType'}, + 'default_database': {'key': 'defaultDatabase', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskOutputLoginLevel, self).__init__(**kwargs) + self.name = None + self.login_type = None + self.default_database = None + self.is_enabled = None + self.migration_eligibility = None + self.result_type = 'LoginLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level_py3.py new file mode 100644 index 000000000000..43ec43aafb4f --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level_py3.py @@ -0,0 +1,71 @@ +# 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 .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput + + +class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): + """Login level output for the task that validates connection to SQL Server and + also validates source server requirements. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Login name. + :vartype name: str + :ivar login_type: The type of login. Possible values include: + 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', 'AsymmetricKey', + 'ExternalUser', 'ExternalGroup' + :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType + :ivar default_database: The default database for the login. + :vartype default_database: str + :ivar is_enabled: The state of the login. + :vartype is_enabled: bool + :ivar migration_eligibility: Information about eligiblity of login for + migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'login_type': {'readonly': True}, + 'default_database': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'login_type': {'key': 'loginType', 'type': 'LoginType'}, + 'default_database': {'key': 'defaultDatabase', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskOutputLoginLevel, self).__init__(, **kwargs) + self.name = None + self.login_type = None + self.default_database = None + self.is_enabled = None + self.migration_eligibility = None + self.result_type = 'LoginLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py index d9d2c0ddb91e..c43bab371cf8 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py @@ -17,7 +17,9 @@ class ConnectToSourceSqlServerTaskOutput(Model): validates source server requirements. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ConnectToSourceSqlServerTaskOutputDatabaseLevel, + sub-classes are: ConnectToSourceSqlServerTaskOutputAgentJobLevel, + ConnectToSourceSqlServerTaskOutputLoginLevel, + ConnectToSourceSqlServerTaskOutputDatabaseLevel, ConnectToSourceSqlServerTaskOutputTaskLevel Variables are only populated by the server, and will be ignored when @@ -42,7 +44,7 @@ class ConnectToSourceSqlServerTaskOutput(Model): } _subtype_map = { - 'result_type': {'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} + 'result_type': {'AgentJobLevelOutput': 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', 'LoginLevelOutput': 'ConnectToSourceSqlServerTaskOutputLoginLevel', 'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} } def __init__(self, **kwargs) -> None: diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py index 1f16cc9d1b7c..df44d2f07919 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py @@ -28,6 +28,10 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu :ivar databases: Source databases as a map from database name to database id :vartype databases: dict[str, str] + :ivar logins: Source logins as a map from login name to login id. + :vartype logins: dict[str, str] + :ivar agent_jobs: Source agent jobs as a map from agent job name to id. + :vartype agent_jobs: dict[str, str] :ivar source_server_version: Source server version :vartype source_server_version: str :ivar source_server_brand_version: Source server brand version @@ -41,6 +45,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu 'id': {'readonly': True}, 'result_type': {'required': True}, 'databases': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, 'source_server_version': {'readonly': True}, 'source_server_brand_version': {'readonly': True}, 'validation_errors': {'readonly': True}, @@ -50,6 +56,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu 'id': {'key': 'id', 'type': 'str'}, 'result_type': {'key': 'resultType', 'type': 'str'}, 'databases': {'key': 'databases', 'type': '{str}'}, + 'logins': {'key': 'Logins', 'type': '{str}'}, + 'agent_jobs': {'key': 'AgentJobs', 'type': '{str}'}, 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, @@ -58,6 +66,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu def __init__(self, **kwargs): super(ConnectToSourceSqlServerTaskOutputTaskLevel, self).__init__(**kwargs) self.databases = None + self.logins = None + self.agent_jobs = None self.source_server_version = None self.source_server_brand_version = None self.validation_errors = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py index d6900c925da1..00b6a9def896 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py @@ -28,6 +28,10 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu :ivar databases: Source databases as a map from database name to database id :vartype databases: dict[str, str] + :ivar logins: Source logins as a map from login name to login id. + :vartype logins: dict[str, str] + :ivar agent_jobs: Source agent jobs as a map from agent job name to id. + :vartype agent_jobs: dict[str, str] :ivar source_server_version: Source server version :vartype source_server_version: str :ivar source_server_brand_version: Source server brand version @@ -41,6 +45,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu 'id': {'readonly': True}, 'result_type': {'required': True}, 'databases': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, 'source_server_version': {'readonly': True}, 'source_server_brand_version': {'readonly': True}, 'validation_errors': {'readonly': True}, @@ -50,6 +56,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu 'id': {'key': 'id', 'type': 'str'}, 'result_type': {'key': 'resultType', 'type': 'str'}, 'databases': {'key': 'databases', 'type': '{str}'}, + 'logins': {'key': 'Logins', 'type': '{str}'}, + 'agent_jobs': {'key': 'AgentJobs', 'type': '{str}'}, 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, @@ -58,6 +66,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu def __init__(self, **kwargs) -> None: super(ConnectToSourceSqlServerTaskOutputTaskLevel, self).__init__(, **kwargs) self.databases = None + self.logins = None + self.agent_jobs = None self.source_server_version = None self.source_server_brand_version = None self.validation_errors = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output.py index 1d52736000b7..8476f1a067db 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output.py @@ -25,6 +25,10 @@ class ConnectToTargetSqlMITaskOutput(Model): :vartype target_server_version: str :ivar target_server_brand_version: Target server brand version :vartype target_server_brand_version: str + :ivar logins: List of logins on the target server. + :vartype logins: list[str] + :ivar agent_jobs: List of agent jobs on the target server. + :vartype agent_jobs: list[str] :ivar validation_errors: Validation errors :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] @@ -34,6 +38,8 @@ class ConnectToTargetSqlMITaskOutput(Model): 'id': {'readonly': True}, 'target_server_version': {'readonly': True}, 'target_server_brand_version': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, 'validation_errors': {'readonly': True}, } @@ -41,6 +47,8 @@ class ConnectToTargetSqlMITaskOutput(Model): 'id': {'key': 'id', 'type': 'str'}, 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'logins': {'key': 'Logins', 'type': '[str]'}, + 'agent_jobs': {'key': 'AgentJobs', 'type': '[str]'}, 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, } @@ -49,4 +57,6 @@ def __init__(self, **kwargs): self.id = None self.target_server_version = None self.target_server_brand_version = None + self.logins = None + self.agent_jobs = None self.validation_errors = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py index bf9632dac703..3befd75e28da 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py @@ -25,6 +25,10 @@ class ConnectToTargetSqlMITaskOutput(Model): :vartype target_server_version: str :ivar target_server_brand_version: Target server brand version :vartype target_server_brand_version: str + :ivar logins: List of logins on the target server. + :vartype logins: list[str] + :ivar agent_jobs: List of agent jobs on the target server. + :vartype agent_jobs: list[str] :ivar validation_errors: Validation errors :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] @@ -34,6 +38,8 @@ class ConnectToTargetSqlMITaskOutput(Model): 'id': {'readonly': True}, 'target_server_version': {'readonly': True}, 'target_server_brand_version': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, 'validation_errors': {'readonly': True}, } @@ -41,6 +47,8 @@ class ConnectToTargetSqlMITaskOutput(Model): 'id': {'key': 'id', 'type': 'str'}, 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'logins': {'key': 'Logins', 'type': '[str]'}, + 'agent_jobs': {'key': 'AgentJobs', 'type': '[str]'}, 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, } @@ -49,4 +57,6 @@ def __init__(self, **kwargs) -> None: self.id = None self.target_server_version = None self.target_server_brand_version = None + self.logins = None + self.agent_jobs = None self.validation_errors = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_client_enums.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_client_enums.py index 030930e15a78..ce5c348948bf 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_client_enums.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_client_enums.py @@ -91,6 +91,30 @@ class MigrationStatus(str, Enum): completed_with_warnings = "CompletedWithWarnings" +class LoginMigrationStage(str, Enum): + + none = "None" + initialize = "Initialize" + login_migration = "LoginMigration" + establish_user_mapping = "EstablishUserMapping" + assign_role_membership = "AssignRoleMembership" + assign_role_ownership = "AssignRoleOwnership" + establish_server_permissions = "EstablishServerPermissions" + establish_object_permissions = "EstablishObjectPermissions" + completed = "Completed" + + +class LoginType(str, Enum): + + windows_user = "WindowsUser" + windows_group = "WindowsGroup" + sql_login = "SqlLogin" + certificate = "Certificate" + asymmetric_key = "AsymmetricKey" + external_user = "ExternalUser" + external_group = "ExternalGroup" + + class DatabaseState(str, Enum): online = "Online" @@ -159,6 +183,7 @@ class ServiceProvisioningState(str, Enum): class ProjectTargetPlatform(str, Enum): sqldb = "SQLDB" + sqlmi = "SQLMI" unknown = "Unknown" diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py index 330693ad3ac3..f611e6927792 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py @@ -29,6 +29,10 @@ class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): :param selected_databases: Required. Databases to migrate :type selected_databases: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :param selected_logins: Logins to migrate. + :type selected_logins: list[str] + :param selected_agent_jobs: Agent Jobs to migrate. + :type selected_agent_jobs: list[str] :param backup_file_share: Backup file share information for all selected databases. :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare @@ -48,6 +52,8 @@ class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, + 'selected_agent_jobs': {'key': 'selectedAgentJobs', 'type': '[str]'}, 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, } @@ -55,5 +61,7 @@ class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): def __init__(self, **kwargs): super(MigrateSqlServerSqlMITaskInput, self).__init__(**kwargs) self.selected_databases = kwargs.get('selected_databases', None) + self.selected_logins = kwargs.get('selected_logins', None) + self.selected_agent_jobs = kwargs.get('selected_agent_jobs', None) self.backup_file_share = kwargs.get('backup_file_share', None) self.backup_blob_share = kwargs.get('backup_blob_share', None) diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py index 56d5423d2aa9..ca3b87318261 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py @@ -29,6 +29,10 @@ class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): :param selected_databases: Required. Databases to migrate :type selected_databases: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :param selected_logins: Logins to migrate. + :type selected_logins: list[str] + :param selected_agent_jobs: Agent Jobs to migrate. + :type selected_agent_jobs: list[str] :param backup_file_share: Backup file share information for all selected databases. :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare @@ -48,12 +52,16 @@ class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, + 'selected_agent_jobs': {'key': 'selectedAgentJobs', 'type': '[str]'}, 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, } - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, backup_blob_share, backup_file_share=None, **kwargs) -> None: + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, backup_blob_share, selected_logins=None, selected_agent_jobs=None, backup_file_share=None, **kwargs) -> None: super(MigrateSqlServerSqlMITaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) self.selected_databases = selected_databases + self.selected_logins = selected_logins + self.selected_agent_jobs = selected_agent_jobs self.backup_file_share = backup_file_share self.backup_blob_share = backup_blob_share diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py index 35f92c4ef903..2c52e1015bb9 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py @@ -18,6 +18,8 @@ class MigrateSqlServerSqlMITaskOutput(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateSqlServerSqlMITaskOutputError, + MigrateSqlServerSqlMITaskOutputLoginLevel, + MigrateSqlServerSqlMITaskOutputAgentJobLevel, MigrateSqlServerSqlMITaskOutputDatabaseLevel, MigrateSqlServerSqlMITaskOutputMigrationLevel @@ -43,7 +45,7 @@ class MigrateSqlServerSqlMITaskOutput(Model): } _subtype_map = { - 'result_type': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} + 'result_type': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'LoginLevelOutput': 'MigrateSqlServerSqlMITaskOutputLoginLevel', 'AgentJobLevelOutput': 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py new file mode 100644 index 000000000000..84f35f544462 --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py @@ -0,0 +1,78 @@ +# 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 .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput + + +class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputAgentJobLevel. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: AgentJob name. + :vartype name: str + :ivar is_enabled: The state of the original AgentJob. + :vartype is_enabled: bool + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar message: Migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Migration errors and warnings per job + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'state': {'key': 'state', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskOutputAgentJobLevel, self).__init__(**kwargs) + self.name = None + self.is_enabled = None + self.state = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'AgentJobLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level_py3.py new file mode 100644 index 000000000000..7b940e122f63 --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level_py3.py @@ -0,0 +1,78 @@ +# 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 .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput + + +class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputAgentJobLevel. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: AgentJob name. + :vartype name: str + :ivar is_enabled: The state of the original AgentJob. + :vartype is_enabled: bool + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar message: Migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Migration errors and warnings per job + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'state': {'key': 'state', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskOutputAgentJobLevel, self).__init__(, **kwargs) + self.name = None + self.is_enabled = None + self.state = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'AgentJobLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py index 8d3879deb80a..fb0b68e98fdb 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py @@ -26,6 +26,8 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp :type result_type: str :ivar database_name: Name of the database :vartype database_name: str + :ivar size_mb: Size of the database in megabytes + :vartype size_mb: float :ivar state: Current state of migration. Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState @@ -48,6 +50,7 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp 'id': {'readonly': True}, 'result_type': {'required': True}, 'database_name': {'readonly': True}, + 'size_mb': {'readonly': True}, 'state': {'readonly': True}, 'stage': {'readonly': True}, 'started_on': {'readonly': True}, @@ -60,6 +63,7 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp 'id': {'key': 'id', 'type': 'str'}, 'result_type': {'key': 'resultType', 'type': 'str'}, 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, 'state': {'key': 'state', 'type': 'str'}, 'stage': {'key': 'stage', 'type': 'str'}, 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, @@ -71,6 +75,7 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp def __init__(self, **kwargs): super(MigrateSqlServerSqlMITaskOutputDatabaseLevel, self).__init__(**kwargs) self.database_name = None + self.size_mb = None self.state = None self.stage = None self.started_on = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py index 84be33ba0f12..cd0ed6070d19 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py @@ -26,6 +26,8 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp :type result_type: str :ivar database_name: Name of the database :vartype database_name: str + :ivar size_mb: Size of the database in megabytes + :vartype size_mb: float :ivar state: Current state of migration. Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState @@ -48,6 +50,7 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp 'id': {'readonly': True}, 'result_type': {'required': True}, 'database_name': {'readonly': True}, + 'size_mb': {'readonly': True}, 'state': {'readonly': True}, 'stage': {'readonly': True}, 'started_on': {'readonly': True}, @@ -60,6 +63,7 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp 'id': {'key': 'id', 'type': 'str'}, 'result_type': {'key': 'resultType', 'type': 'str'}, 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, 'state': {'key': 'state', 'type': 'str'}, 'stage': {'key': 'stage', 'type': 'str'}, 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, @@ -71,6 +75,7 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp def __init__(self, **kwargs) -> None: super(MigrateSqlServerSqlMITaskOutputDatabaseLevel, self).__init__(, **kwargs) self.database_name = None + self.size_mb = None self.state = None self.stage = None self.started_on = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level.py new file mode 100644 index 000000000000..77639ac9f70c --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level.py @@ -0,0 +1,83 @@ +# 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 .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput + + +class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputLoginLevel. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar login_name: Login name. + :vartype login_name: str + :ivar state: Current state of login. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of login. Possible values include: 'None', + 'Initialize', 'LoginMigration', 'EstablishUserMapping', + 'AssignRoleMembership', 'AssignRoleOwnership', + 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.LoginMigrationStage + :ivar started_on: Login migration start time + :vartype started_on: datetime + :ivar ended_on: Login migration end time + :vartype ended_on: datetime + :ivar message: Login migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Login migration errors and warnings per + login + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'login_name': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'login_name': {'key': 'loginName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'LoginMigrationStage'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskOutputLoginLevel, self).__init__(**kwargs) + self.login_name = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'LoginLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level_py3.py new file mode 100644 index 000000000000..dacf158c1542 --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level_py3.py @@ -0,0 +1,83 @@ +# 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 .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput + + +class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputLoginLevel. + + 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 id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar login_name: Login name. + :vartype login_name: str + :ivar state: Current state of login. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of login. Possible values include: 'None', + 'Initialize', 'LoginMigration', 'EstablishUserMapping', + 'AssignRoleMembership', 'AssignRoleOwnership', + 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.LoginMigrationStage + :ivar started_on: Login migration start time + :vartype started_on: datetime + :ivar ended_on: Login migration end time + :vartype ended_on: datetime + :ivar message: Login migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Login migration errors and warnings per + login + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'login_name': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'login_name': {'key': 'loginName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'LoginMigrationStage'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskOutputLoginLevel, self).__init__(, **kwargs) + self.login_name = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'LoginLevelOutput' diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py index ff5ad6f63826..299889910900 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py @@ -36,8 +36,17 @@ class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOut :ivar state: Current state of migration. Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar agent_jobs: Selected agent jobs as a map from name to id + :vartype agent_jobs: dict[str, str] + :ivar logins: Selected logins as a map from name to id + :vartype logins: dict[str, str] :ivar message: Migration progress message :vartype message: str + :ivar server_role_results: Map of server role migration results. + :vartype server_role_results: dict[str, + ~azure.mgmt.datamigration.models.StartMigrationScenarioServerRoleResult] + :ivar orphaned_users: Map of users to database name of orphaned users. + :vartype orphaned_users: dict[str, str] :ivar databases: Selected databases as a map from database name to database id :vartype databases: dict[str, str] @@ -61,7 +70,11 @@ class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOut 'ended_on': {'readonly': True}, 'status': {'readonly': True}, 'state': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'logins': {'readonly': True}, 'message': {'readonly': True}, + 'server_role_results': {'readonly': True}, + 'orphaned_users': {'readonly': True}, 'databases': {'readonly': True}, 'source_server_version': {'readonly': True}, 'source_server_brand_version': {'readonly': True}, @@ -77,7 +90,11 @@ class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOut 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, 'state': {'key': 'state', 'type': 'str'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, + 'logins': {'key': 'logins', 'type': '{str}'}, 'message': {'key': 'message', 'type': 'str'}, + 'server_role_results': {'key': 'serverRoleResults', 'type': '{StartMigrationScenarioServerRoleResult}'}, + 'orphaned_users': {'key': 'orphanedUsers', 'type': '{str}'}, 'databases': {'key': 'databases', 'type': '{str}'}, 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, @@ -92,7 +109,11 @@ def __init__(self, **kwargs): self.ended_on = None self.status = None self.state = None + self.agent_jobs = None + self.logins = None self.message = None + self.server_role_results = None + self.orphaned_users = None self.databases = None self.source_server_version = None self.source_server_brand_version = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py index c83625514b3b..dba46da1ab4c 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py @@ -36,8 +36,17 @@ class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOut :ivar state: Current state of migration. Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar agent_jobs: Selected agent jobs as a map from name to id + :vartype agent_jobs: dict[str, str] + :ivar logins: Selected logins as a map from name to id + :vartype logins: dict[str, str] :ivar message: Migration progress message :vartype message: str + :ivar server_role_results: Map of server role migration results. + :vartype server_role_results: dict[str, + ~azure.mgmt.datamigration.models.StartMigrationScenarioServerRoleResult] + :ivar orphaned_users: Map of users to database name of orphaned users. + :vartype orphaned_users: dict[str, str] :ivar databases: Selected databases as a map from database name to database id :vartype databases: dict[str, str] @@ -61,7 +70,11 @@ class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOut 'ended_on': {'readonly': True}, 'status': {'readonly': True}, 'state': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'logins': {'readonly': True}, 'message': {'readonly': True}, + 'server_role_results': {'readonly': True}, + 'orphaned_users': {'readonly': True}, 'databases': {'readonly': True}, 'source_server_version': {'readonly': True}, 'source_server_brand_version': {'readonly': True}, @@ -77,7 +90,11 @@ class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOut 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, 'state': {'key': 'state', 'type': 'str'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, + 'logins': {'key': 'logins', 'type': '{str}'}, 'message': {'key': 'message', 'type': 'str'}, + 'server_role_results': {'key': 'serverRoleResults', 'type': '{StartMigrationScenarioServerRoleResult}'}, + 'orphaned_users': {'key': 'orphanedUsers', 'type': '{str}'}, 'databases': {'key': 'databases', 'type': '{str}'}, 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, @@ -92,7 +109,11 @@ def __init__(self, **kwargs) -> None: self.ended_on = None self.status = None self.state = None + self.agent_jobs = None + self.logins = None self.message = None + self.server_role_results = None + self.orphaned_users = None self.databases = None self.source_server_version = None self.source_server_brand_version = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py index a2883f1affb1..d56b33cdb678 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py @@ -18,6 +18,8 @@ class MigrateSqlServerSqlMITaskOutput(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateSqlServerSqlMITaskOutputError, + MigrateSqlServerSqlMITaskOutputLoginLevel, + MigrateSqlServerSqlMITaskOutputAgentJobLevel, MigrateSqlServerSqlMITaskOutputDatabaseLevel, MigrateSqlServerSqlMITaskOutputMigrationLevel @@ -43,7 +45,7 @@ class MigrateSqlServerSqlMITaskOutput(Model): } _subtype_map = { - 'result_type': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} + 'result_type': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'LoginLevelOutput': 'MigrateSqlServerSqlMITaskOutputLoginLevel', 'AgentJobLevelOutput': 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} } def __init__(self, **kwargs) -> None: diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info.py new file mode 100644 index 000000000000..b9877604b4b2 --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info.py @@ -0,0 +1,42 @@ +# 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 MigrationEligibilityInfo(Model): + """Information about migration eligibility of a server object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar is_eligibile_for_migration: Whether object is eligible for migration + or not. + :vartype is_eligibile_for_migration: bool + :ivar validation_messages: Information about eligibility failure for the + server object. + :vartype validation_messages: list[str] + """ + + _validation = { + 'is_eligibile_for_migration': {'readonly': True}, + 'validation_messages': {'readonly': True}, + } + + _attribute_map = { + 'is_eligibile_for_migration': {'key': 'isEligibileForMigration', 'type': 'bool'}, + 'validation_messages': {'key': 'validationMessages', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(MigrationEligibilityInfo, self).__init__(**kwargs) + self.is_eligibile_for_migration = None + self.validation_messages = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info_py3.py new file mode 100644 index 000000000000..5ca77906d734 --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info_py3.py @@ -0,0 +1,42 @@ +# 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 MigrationEligibilityInfo(Model): + """Information about migration eligibility of a server object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar is_eligibile_for_migration: Whether object is eligible for migration + or not. + :vartype is_eligibile_for_migration: bool + :ivar validation_messages: Information about eligibility failure for the + server object. + :vartype validation_messages: list[str] + """ + + _validation = { + 'is_eligibile_for_migration': {'readonly': True}, + 'validation_messages': {'readonly': True}, + } + + _attribute_map = { + 'is_eligibile_for_migration': {'key': 'isEligibileForMigration', 'type': 'bool'}, + 'validation_messages': {'key': 'validationMessages', 'type': '[str]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrationEligibilityInfo, self).__init__(**kwargs) + self.is_eligibile_for_migration = None + self.validation_messages = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py index ad75f31100eb..dfff1eafee0b 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py @@ -35,7 +35,7 @@ class Project(TrackedResource): :type source_platform: str or ~azure.mgmt.datamigration.models.ProjectSourcePlatform :param target_platform: Required. Target platform for the project. - Possible values include: 'SQLDB', 'Unknown' + Possible values include: 'SQLDB', 'SQLMI', 'Unknown' :type target_platform: str or ~azure.mgmt.datamigration.models.ProjectTargetPlatform :ivar creation_time: UTC Date and time when project was created diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py index d3865d0459d2..179f1bdbeb74 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py @@ -35,7 +35,7 @@ class Project(TrackedResource): :type source_platform: str or ~azure.mgmt.datamigration.models.ProjectSourcePlatform :param target_platform: Required. Target platform for the project. - Possible values include: 'SQLDB', 'Unknown' + Possible values include: 'SQLDB', 'SQLMI', 'Unknown' :type target_platform: str or ~azure.mgmt.datamigration.models.ProjectTargetPlatform :ivar creation_time: UTC Date and time when project was created diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result.py new file mode 100644 index 000000000000..f124eb80738d --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result.py @@ -0,0 +1,47 @@ +# 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 StartMigrationScenarioServerRoleResult(Model): + """StartMigrationScenarioServerRoleResult. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of server role. + :vartype name: str + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'name': {'readonly': True}, + 'state': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(StartMigrationScenarioServerRoleResult, self).__init__(**kwargs) + self.name = None + self.state = None + self.exceptions_and_warnings = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result_py3.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result_py3.py new file mode 100644 index 000000000000..579e48bcda6d --- /dev/null +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result_py3.py @@ -0,0 +1,47 @@ +# 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 StartMigrationScenarioServerRoleResult(Model): + """StartMigrationScenarioServerRoleResult. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of server role. + :vartype name: str + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'name': {'readonly': True}, + 'state': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(StartMigrationScenarioServerRoleResult, self).__init__(**kwargs) + self.name = None + self.state = None + self.exceptions_and_warnings = None diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/operations.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/operations.py index a429695b399f..2188f0a13f4e 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/operations.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/operations.py @@ -22,7 +22,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API. Constant value: "2018-03-15-preview". + :ivar api_version: Version of the API. Constant value: "2018-03-31-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-15-preview" + self.api_version = "2018-03-31-preview" self.config = config diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/projects_operations.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/projects_operations.py index a7b7fff1191e..a60a670f4747 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/projects_operations.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/projects_operations.py @@ -22,7 +22,7 @@ class ProjectsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API. Constant value: "2018-03-15-preview". + :ivar api_version: Version of the API. Constant value: "2018-03-31-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-15-preview" + self.api_version = "2018-03-31-preview" self.config = config diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/resource_skus_operations.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/resource_skus_operations.py index a2ee656dfe67..19694debce87 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/resource_skus_operations.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/resource_skus_operations.py @@ -22,7 +22,7 @@ class ResourceSkusOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API. Constant value: "2018-03-15-preview". + :ivar api_version: Version of the API. Constant value: "2018-03-31-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-15-preview" + self.api_version = "2018-03-31-preview" self.config = config diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/services_operations.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/services_operations.py index 47c524a19534..6956272c9dee 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/services_operations.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/services_operations.py @@ -24,7 +24,7 @@ class ServicesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API. Constant value: "2018-03-15-preview". + :ivar api_version: Version of the API. Constant value: "2018-03-31-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-15-preview" + self.api_version = "2018-03-31-preview" self.config = config diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/tasks_operations.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/tasks_operations.py index 9379b4b6a49d..fb887902f321 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/tasks_operations.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/tasks_operations.py @@ -22,7 +22,7 @@ class TasksOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API. Constant value: "2018-03-15-preview". + :ivar api_version: Version of the API. Constant value: "2018-03-31-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-15-preview" + self.api_version = "2018-03-31-preview" self.config = config diff --git a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/usages_operations.py b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/usages_operations.py index 3b3838dc7dc9..14eb432b67ee 100644 --- a/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/usages_operations.py +++ b/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/usages_operations.py @@ -22,7 +22,7 @@ class UsagesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API. Constant value: "2018-03-15-preview". + :ivar api_version: Version of the API. Constant value: "2018-03-31-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-15-preview" + self.api_version = "2018-03-31-preview" self.config = config