diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py index 950af65a2bb7..7b8facaa8122 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py @@ -16,6 +16,7 @@ from .operations.resource_skus_operations import ResourceSkusOperations from .operations.services_operations import ServicesOperations from .operations.tasks_operations import TasksOperations +from .operations.service_tasks_operations import ServiceTasksOperations from .operations.projects_operations import ProjectsOperations from .operations.usages_operations import UsagesOperations from .operations.operations import Operations @@ -67,6 +68,8 @@ class DataMigrationServiceClient(SDKClient): :vartype services: azure.mgmt.datamigration.operations.ServicesOperations :ivar tasks: Tasks operations :vartype tasks: azure.mgmt.datamigration.operations.TasksOperations + :ivar service_tasks: ServiceTasks operations + :vartype service_tasks: azure.mgmt.datamigration.operations.ServiceTasksOperations :ivar projects: Projects operations :vartype projects: azure.mgmt.datamigration.operations.ProjectsOperations :ivar usages: Usages operations @@ -101,6 +104,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.tasks = TasksOperations( self._client, self.config, self._serialize, self._deserialize) + self.service_tasks = ServiceTasksOperations( + self._client, self.config, self._serialize, self._deserialize) self.projects = ProjectsOperations( self._client, self.config, self._serialize, self._deserialize) self.usages = UsagesOperations( diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py index 404354c86a5b..56183cebfe0c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py @@ -28,12 +28,17 @@ from .file_share_py3 import FileShare from .mi_sql_connection_info_py3 import MiSqlConnectionInfo from .postgre_sql_connection_info_py3 import PostgreSqlConnectionInfo + from .oracle_connection_info_py3 import OracleConnectionInfo from .my_sql_connection_info_py3 import MySqlConnectionInfo from .mongo_db_connection_info_py3 import MongoDbConnectionInfo from .connection_info_py3 import ConnectionInfo from .sql_connection_info_py3 import SqlConnectionInfo from .get_tde_certificates_sql_task_input_py3 import GetTdeCertificatesSqlTaskInput from .get_tde_certificates_sql_task_properties_py3 import GetTdeCertificatesSqlTaskProperties + from .validate_oracle_azure_db_postgre_sql_sync_task_output_py3 import ValidateOracleAzureDbPostgreSqlSyncTaskOutput + from .migrate_oracle_azure_db_postgre_sql_sync_database_input_py3 import MigrateOracleAzureDbPostgreSqlSyncDatabaseInput + from .migrate_oracle_azure_db_postgre_sql_sync_task_input_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskInput + from .validate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3 import ValidateOracleAzureDbForPostgreSqlSyncTaskProperties from .mongo_db_error_py3 import MongoDbError from .mongo_db_collection_progress_py3 import MongoDbCollectionProgress from .mongo_db_database_progress_py3 import MongoDbDatabaseProgress @@ -62,6 +67,13 @@ from .validate_sync_migration_input_sql_server_task_input_py3 import ValidateSyncMigrationInputSqlServerTaskInput from .validate_migration_input_sql_server_sql_db_sync_task_properties_py3 import ValidateMigrationInputSqlServerSqlDbSyncTaskProperties from .sync_migration_database_error_event_py3 import SyncMigrationDatabaseErrorEvent + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_error_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputError + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_level_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + from .migrate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3 import MigrateOracleAzureDbForPostgreSqlSyncTaskProperties from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel @@ -147,6 +159,9 @@ from .get_user_tables_sql_task_output_py3 import GetUserTablesSqlTaskOutput from .get_user_tables_sql_task_input_py3 import GetUserTablesSqlTaskInput from .get_user_tables_sql_task_properties_py3 import GetUserTablesSqlTaskProperties + from .connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output_py3 import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput + from .connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input_py3 import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput + from .connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties_py3 import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties from .connect_to_target_azure_db_for_postgre_sql_sync_task_output_py3 import ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput from .connect_to_target_azure_db_for_postgre_sql_sync_task_input_py3 import ConnectToTargetAzureDbForPostgreSqlSyncTaskInput from .connect_to_target_azure_db_for_postgre_sql_sync_task_properties_py3 import ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties @@ -155,6 +170,9 @@ from .connect_to_target_sql_sql_db_sync_task_properties_py3 import ConnectToTargetSqlSqlDbSyncTaskProperties from .connect_to_target_sql_db_task_input_py3 import ConnectToTargetSqlDbTaskInput from .connect_to_target_sql_db_task_properties_py3 import ConnectToTargetSqlDbTaskProperties + from .connect_to_source_oracle_sync_task_output_py3 import ConnectToSourceOracleSyncTaskOutput + from .connect_to_source_oracle_sync_task_input_py3 import ConnectToSourceOracleSyncTaskInput + from .connect_to_source_oracle_sync_task_properties_py3 import ConnectToSourceOracleSyncTaskProperties from .connect_to_source_postgre_sql_sync_task_output_py3 import ConnectToSourcePostgreSqlSyncTaskOutput from .connect_to_source_postgre_sql_sync_task_input_py3 import ConnectToSourcePostgreSqlSyncTaskInput from .connect_to_source_postgre_sql_sync_task_properties_py3 import ConnectToSourcePostgreSqlSyncTaskProperties @@ -215,6 +233,16 @@ from .mongo_db_finish_command_input_py3 import MongoDbFinishCommandInput from .mongo_db_finish_command_py3 import MongoDbFinishCommand from .mongo_db_restart_command_py3 import MongoDbRestartCommand + from .oracle_oci_driver_info_py3 import OracleOCIDriverInfo + from .check_oci_driver_task_input_py3 import CheckOCIDriverTaskInput + from .check_oci_driver_task_output_py3 import CheckOCIDriverTaskOutput + from .upload_oci_driver_task_input_py3 import UploadOCIDriverTaskInput + from .upload_oci_driver_task_output_py3 import UploadOCIDriverTaskOutput + from .install_oci_driver_task_input_py3 import InstallOCIDriverTaskInput + from .install_oci_driver_task_output_py3 import InstallOCIDriverTaskOutput + from .check_oci_driver_task_properties_py3 import CheckOCIDriverTaskProperties + from .upload_oci_driver_task_properties_py3 import UploadOCIDriverTaskProperties + from .install_oci_driver_task_properties_py3 import InstallOCIDriverTaskProperties from .database_py3 import Database from .database_object_name_py3 import DatabaseObjectName from .migration_table_metadata_py3 import MigrationTableMetadata @@ -246,12 +274,17 @@ from .file_share import FileShare from .mi_sql_connection_info import MiSqlConnectionInfo from .postgre_sql_connection_info import PostgreSqlConnectionInfo + from .oracle_connection_info import OracleConnectionInfo from .my_sql_connection_info import MySqlConnectionInfo from .mongo_db_connection_info import MongoDbConnectionInfo from .connection_info import ConnectionInfo from .sql_connection_info import SqlConnectionInfo from .get_tde_certificates_sql_task_input import GetTdeCertificatesSqlTaskInput from .get_tde_certificates_sql_task_properties import GetTdeCertificatesSqlTaskProperties + from .validate_oracle_azure_db_postgre_sql_sync_task_output import ValidateOracleAzureDbPostgreSqlSyncTaskOutput + from .migrate_oracle_azure_db_postgre_sql_sync_database_input import MigrateOracleAzureDbPostgreSqlSyncDatabaseInput + from .migrate_oracle_azure_db_postgre_sql_sync_task_input import MigrateOracleAzureDbPostgreSqlSyncTaskInput + from .validate_oracle_azure_db_for_postgre_sql_sync_task_properties import ValidateOracleAzureDbForPostgreSqlSyncTaskProperties from .mongo_db_error import MongoDbError from .mongo_db_collection_progress import MongoDbCollectionProgress from .mongo_db_database_progress import MongoDbDatabaseProgress @@ -280,6 +313,13 @@ from .validate_sync_migration_input_sql_server_task_input import ValidateSyncMigrationInputSqlServerTaskInput from .validate_migration_input_sql_server_sql_db_sync_task_properties import ValidateMigrationInputSqlServerSqlDbSyncTaskProperties from .sync_migration_database_error_event import SyncMigrationDatabaseErrorEvent + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_error import MigrateOracleAzureDbPostgreSqlSyncTaskOutputError + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level import MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel + from .migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_level import MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel + from .migrate_oracle_azure_db_postgre_sql_sync_task_output import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + from .migrate_oracle_azure_db_for_postgre_sql_sync_task_properties import MigrateOracleAzureDbForPostgreSqlSyncTaskProperties from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel @@ -365,6 +405,9 @@ from .get_user_tables_sql_task_output import GetUserTablesSqlTaskOutput from .get_user_tables_sql_task_input import GetUserTablesSqlTaskInput from .get_user_tables_sql_task_properties import GetUserTablesSqlTaskProperties + from .connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput + from .connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput + from .connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties from .connect_to_target_azure_db_for_postgre_sql_sync_task_output import ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput from .connect_to_target_azure_db_for_postgre_sql_sync_task_input import ConnectToTargetAzureDbForPostgreSqlSyncTaskInput from .connect_to_target_azure_db_for_postgre_sql_sync_task_properties import ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties @@ -373,6 +416,9 @@ from .connect_to_target_sql_sql_db_sync_task_properties import ConnectToTargetSqlSqlDbSyncTaskProperties from .connect_to_target_sql_db_task_input import ConnectToTargetSqlDbTaskInput from .connect_to_target_sql_db_task_properties import ConnectToTargetSqlDbTaskProperties + from .connect_to_source_oracle_sync_task_output import ConnectToSourceOracleSyncTaskOutput + from .connect_to_source_oracle_sync_task_input import ConnectToSourceOracleSyncTaskInput + from .connect_to_source_oracle_sync_task_properties import ConnectToSourceOracleSyncTaskProperties from .connect_to_source_postgre_sql_sync_task_output import ConnectToSourcePostgreSqlSyncTaskOutput from .connect_to_source_postgre_sql_sync_task_input import ConnectToSourcePostgreSqlSyncTaskInput from .connect_to_source_postgre_sql_sync_task_properties import ConnectToSourcePostgreSqlSyncTaskProperties @@ -433,6 +479,16 @@ from .mongo_db_finish_command_input import MongoDbFinishCommandInput from .mongo_db_finish_command import MongoDbFinishCommand from .mongo_db_restart_command import MongoDbRestartCommand + from .oracle_oci_driver_info import OracleOCIDriverInfo + from .check_oci_driver_task_input import CheckOCIDriverTaskInput + from .check_oci_driver_task_output import CheckOCIDriverTaskOutput + from .upload_oci_driver_task_input import UploadOCIDriverTaskInput + from .upload_oci_driver_task_output import UploadOCIDriverTaskOutput + from .install_oci_driver_task_input import InstallOCIDriverTaskInput + from .install_oci_driver_task_output import InstallOCIDriverTaskOutput + from .check_oci_driver_task_properties import CheckOCIDriverTaskProperties + from .upload_oci_driver_task_properties import UploadOCIDriverTaskProperties + from .install_oci_driver_task_properties import InstallOCIDriverTaskProperties from .database import Database from .database_object_name import DatabaseObjectName from .migration_table_metadata import MigrationTableMetadata @@ -517,12 +573,17 @@ 'FileShare', 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo', + 'OracleConnectionInfo', 'MySqlConnectionInfo', 'MongoDbConnectionInfo', 'ConnectionInfo', 'SqlConnectionInfo', 'GetTdeCertificatesSqlTaskInput', 'GetTdeCertificatesSqlTaskProperties', + 'ValidateOracleAzureDbPostgreSqlSyncTaskOutput', + 'MigrateOracleAzureDbPostgreSqlSyncDatabaseInput', + 'MigrateOracleAzureDbPostgreSqlSyncTaskInput', + 'ValidateOracleAzureDbForPostgreSqlSyncTaskProperties', 'MongoDbError', 'MongoDbCollectionProgress', 'MongoDbDatabaseProgress', @@ -551,6 +612,13 @@ 'ValidateSyncMigrationInputSqlServerTaskInput', 'ValidateMigrationInputSqlServerSqlDbSyncTaskProperties', 'SyncMigrationDatabaseErrorEvent', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputError', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutput', + 'MigrateOracleAzureDbForPostgreSqlSyncTaskProperties', 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError', 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError', 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel', @@ -636,6 +704,9 @@ 'GetUserTablesSqlTaskOutput', 'GetUserTablesSqlTaskInput', 'GetUserTablesSqlTaskProperties', + 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput', + 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput', + 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties', 'ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput', 'ConnectToTargetAzureDbForPostgreSqlSyncTaskInput', 'ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties', @@ -644,6 +715,9 @@ 'ConnectToTargetSqlSqlDbSyncTaskProperties', 'ConnectToTargetSqlDbTaskInput', 'ConnectToTargetSqlDbTaskProperties', + 'ConnectToSourceOracleSyncTaskOutput', + 'ConnectToSourceOracleSyncTaskInput', + 'ConnectToSourceOracleSyncTaskProperties', 'ConnectToSourcePostgreSqlSyncTaskOutput', 'ConnectToSourcePostgreSqlSyncTaskInput', 'ConnectToSourcePostgreSqlSyncTaskProperties', @@ -704,6 +778,16 @@ 'MongoDbFinishCommandInput', 'MongoDbFinishCommand', 'MongoDbRestartCommand', + 'OracleOCIDriverInfo', + 'CheckOCIDriverTaskInput', + 'CheckOCIDriverTaskOutput', + 'UploadOCIDriverTaskInput', + 'UploadOCIDriverTaskOutput', + 'InstallOCIDriverTaskInput', + 'InstallOCIDriverTaskOutput', + 'CheckOCIDriverTaskProperties', + 'UploadOCIDriverTaskProperties', + 'InstallOCIDriverTaskProperties', 'Database', 'DatabaseObjectName', 'MigrationTableMetadata', diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_input.py new file mode 100644 index 000000000000..881922883dc8 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_input.py @@ -0,0 +1,29 @@ +# 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 CheckOCIDriverTaskInput(Model): + """Input for the service task to check for OCI drivers. + + :param server_version: Version of the source server to check against. + Optional. + :type server_version: str + """ + + _attribute_map = { + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckOCIDriverTaskInput, self).__init__(**kwargs) + self.server_version = kwargs.get('server_version', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_input_py3.py new file mode 100644 index 000000000000..e850ca053b31 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_input_py3.py @@ -0,0 +1,29 @@ +# 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 CheckOCIDriverTaskInput(Model): + """Input for the service task to check for OCI drivers. + + :param server_version: Version of the source server to check against. + Optional. + :type server_version: str + """ + + _attribute_map = { + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + } + + def __init__(self, *, server_version: str=None, **kwargs) -> None: + super(CheckOCIDriverTaskInput, self).__init__(**kwargs) + self.server_version = server_version diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_output.py new file mode 100644 index 000000000000..0896a25c35ee --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_output.py @@ -0,0 +1,43 @@ +# 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 CheckOCIDriverTaskOutput(Model): + """Output for the service task to check for OCI drivers. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar installed_driver: Information about the installed driver if found + and valid. + :vartype installed_driver: dict[str, + list[~azure.mgmt.datamigration.models.OracleOCIDriverInfo]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'installed_driver': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'installed_driver': {'key': 'installedDriver', 'type': '{[OracleOCIDriverInfo]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(CheckOCIDriverTaskOutput, self).__init__(**kwargs) + self.installed_driver = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_output_py3.py new file mode 100644 index 000000000000..eec3f1f768db --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_output_py3.py @@ -0,0 +1,43 @@ +# 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 CheckOCIDriverTaskOutput(Model): + """Output for the service task to check for OCI drivers. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar installed_driver: Information about the installed driver if found + and valid. + :vartype installed_driver: dict[str, + list[~azure.mgmt.datamigration.models.OracleOCIDriverInfo]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'installed_driver': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'installed_driver': {'key': 'installedDriver', 'type': '{[OracleOCIDriverInfo]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(CheckOCIDriverTaskOutput, self).__init__(**kwargs) + self.installed_driver = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_properties.py new file mode 100644 index 000000000000..2dde74a884fc --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_properties.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties import ProjectTaskProperties + + +class CheckOCIDriverTaskProperties(ProjectTaskProperties): + """Properties for the task that checks for OCI drivers. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: ~azure.mgmt.datamigration.models.CheckOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.CheckOCIDriverTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'CheckOCIDriverTaskInput'}, + 'output': {'key': 'output', 'type': '[CheckOCIDriverTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(CheckOCIDriverTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Service.Check.OCI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_properties_py3.py new file mode 100644 index 000000000000..86c80413278a --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/check_oci_driver_task_properties_py3.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties_py3 import ProjectTaskProperties + + +class CheckOCIDriverTaskProperties(ProjectTaskProperties): + """Properties for the task that checks for OCI drivers. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: ~azure.mgmt.datamigration.models.CheckOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.CheckOCIDriverTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'CheckOCIDriverTaskInput'}, + 'output': {'key': 'output', 'type': '[CheckOCIDriverTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(CheckOCIDriverTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Service.Check.OCI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output.py index 9cf392d2263a..0eea9015e14e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output.py @@ -13,7 +13,7 @@ class ConnectToSourceNonSqlTaskOutput(Model): - """Output for connect to Oracle, MySQL type source. + """Output for connect to MySQL type source. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output_py3.py index c29eaeef1cc8..afdaa12e2ac8 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output_py3.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output_py3.py @@ -13,7 +13,7 @@ class ConnectToSourceNonSqlTaskOutput(Model): - """Output for connect to Oracle, MySQL type source. + """Output for connect to MySQL type source. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_input.py new file mode 100644 index 000000000000..c1bcd42244b7 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_input.py @@ -0,0 +1,36 @@ +# 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 ConnectToSourceOracleSyncTaskInput(Model): + """Input for the task that validates Oracle database connection. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + Oracle source + :type source_connection_info: + ~azure.mgmt.datamigration.models.OracleConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'OracleConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceOracleSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_input_py3.py new file mode 100644 index 000000000000..94d02ecd177e --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_input_py3.py @@ -0,0 +1,36 @@ +# 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 ConnectToSourceOracleSyncTaskInput(Model): + """Input for the task that validates Oracle database connection. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + Oracle source + :type source_connection_info: + ~azure.mgmt.datamigration.models.OracleConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'OracleConnectionInfo'}, + } + + def __init__(self, *, source_connection_info, **kwargs) -> None: + super(ConnectToSourceOracleSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_output.py new file mode 100644 index 000000000000..c8fa0e02df22 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_output.py @@ -0,0 +1,51 @@ +# 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 ConnectToSourceOracleSyncTaskOutput(Model): + """Output for the task that validates Oracle database connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar source_server_version: Version of the source server + :vartype source_server_version: str + :ivar databases: List of schemas on source server + :vartype databases: list[str] + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'source_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '[str]'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceOracleSyncTaskOutput, self).__init__(**kwargs) + self.source_server_version = None + self.databases = None + self.source_server_brand_version = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_output_py3.py new file mode 100644 index 000000000000..4b926ce31e08 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_output_py3.py @@ -0,0 +1,51 @@ +# 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 ConnectToSourceOracleSyncTaskOutput(Model): + """Output for the task that validates Oracle database connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar source_server_version: Version of the source server + :vartype source_server_version: str + :ivar databases: List of schemas on source server + :vartype databases: list[str] + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'source_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '[str]'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceOracleSyncTaskOutput, self).__init__(**kwargs) + self.source_server_version = None + self.databases = None + self.source_server_brand_version = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_properties.py new file mode 100644 index 000000000000..a8f4006807d9 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_properties.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties import ProjectTaskProperties + + +class ConnectToSourceOracleSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates Oracle database connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: Task input + :type input: + ~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'ConnectToSourceOracleSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceOracleSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceOracleSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToSource.Oracle.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_properties_py3.py new file mode 100644 index 000000000000..f6a77da3b2b1 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_oracle_sync_task_properties_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties_py3 import ProjectTaskProperties + + +class ConnectToSourceOracleSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates Oracle database connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: Task input + :type input: + ~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'ConnectToSourceOracleSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceOracleSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToSourceOracleSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToSource.Oracle.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input.py new file mode 100644 index 000000000000..87a67ab5ed35 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input.py @@ -0,0 +1,37 @@ +# 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 ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput(Model): + """Input for the task that validates connection to Azure Database for + PostgreSQL and target server requirements for Oracle source. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for target + Azure Database for PostgreSQL server + :type target_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.target_connection_info = kwargs.get('target_connection_info', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input_py3.py new file mode 100644 index 000000000000..87948daa95ce --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_input_py3.py @@ -0,0 +1,37 @@ +# 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 ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput(Model): + """Input for the task that validates connection to Azure Database for + PostgreSQL and target server requirements for Oracle source. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for target + Azure Database for PostgreSQL server + :type target_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, *, target_connection_info, **kwargs) -> None: + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.target_connection_info = target_connection_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output.py new file mode 100644 index 000000000000..bd6f388798ad --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output.py @@ -0,0 +1,52 @@ +# 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 ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput(Model): + """Output for the task that validates connection to Azure Database for + PostgreSQL and target server requirements for Oracle source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar target_server_version: Version of the target server + :vartype target_server_version: str + :ivar databases: List of databases on target server + :vartype databases: list[str] + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'target_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '[str]'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.target_server_version = None + self.databases = None + self.target_server_brand_version = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output_py3.py new file mode 100644 index 000000000000..7f67db2f480d --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_output_py3.py @@ -0,0 +1,52 @@ +# 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 ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput(Model): + """Output for the task that validates connection to Azure Database for + PostgreSQL and target server requirements for Oracle source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar target_server_version: Version of the target server + :vartype target_server_version: str + :ivar databases: List of databases on target server + :vartype databases: list[str] + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'target_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '[str]'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.target_server_version = None + self.databases = None + self.target_server_brand_version = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties.py new file mode 100644 index 000000000000..c1f0d49e15a8 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties import ProjectTaskProperties + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure Database For + PostgreSQL server and target server requirements for online migration for + Oracle source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: Task input + :type input: + ~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py new file mode 100644 index 000000000000..fdcbf0febb7b --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties_py3 import ProjectTaskProperties + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure Database For + PostgreSQL server and target server requirements for online migration for + Oracle source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: Task input + :type input: + ~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info.py index ff8c5bb041ed..73fda4083843 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info.py @@ -17,7 +17,8 @@ class ConnectionInfo(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: MiSqlConnectionInfo, PostgreSqlConnectionInfo, - MySqlConnectionInfo, MongoDbConnectionInfo, SqlConnectionInfo + OracleConnectionInfo, MySqlConnectionInfo, MongoDbConnectionInfo, + SqlConnectionInfo All required parameters must be populated in order to send to Azure. @@ -40,7 +41,7 @@ class ConnectionInfo(Model): } _subtype_map = { - 'type': {'MiSqlConnectionInfo': 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo': 'PostgreSqlConnectionInfo', 'MySqlConnectionInfo': 'MySqlConnectionInfo', 'MongoDbConnectionInfo': 'MongoDbConnectionInfo', 'SqlConnectionInfo': 'SqlConnectionInfo'} + 'type': {'MiSqlConnectionInfo': 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo': 'PostgreSqlConnectionInfo', 'OracleConnectionInfo': 'OracleConnectionInfo', 'MySqlConnectionInfo': 'MySqlConnectionInfo', 'MongoDbConnectionInfo': 'MongoDbConnectionInfo', 'SqlConnectionInfo': 'SqlConnectionInfo'} } def __init__(self, **kwargs): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info_py3.py index d634cf8af560..1d3835f79864 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info_py3.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info_py3.py @@ -17,7 +17,8 @@ class ConnectionInfo(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: MiSqlConnectionInfo, PostgreSqlConnectionInfo, - MySqlConnectionInfo, MongoDbConnectionInfo, SqlConnectionInfo + OracleConnectionInfo, MySqlConnectionInfo, MongoDbConnectionInfo, + SqlConnectionInfo All required parameters must be populated in order to send to Azure. @@ -40,7 +41,7 @@ class ConnectionInfo(Model): } _subtype_map = { - 'type': {'MiSqlConnectionInfo': 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo': 'PostgreSqlConnectionInfo', 'MySqlConnectionInfo': 'MySqlConnectionInfo', 'MongoDbConnectionInfo': 'MongoDbConnectionInfo', 'SqlConnectionInfo': 'SqlConnectionInfo'} + 'type': {'MiSqlConnectionInfo': 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo': 'PostgreSqlConnectionInfo', 'OracleConnectionInfo': 'OracleConnectionInfo', 'MySqlConnectionInfo': 'MySqlConnectionInfo', 'MongoDbConnectionInfo': 'MongoDbConnectionInfo', 'SqlConnectionInfo': 'SqlConnectionInfo'} } def __init__(self, *, user_name: str=None, password: str=None, **kwargs) -> None: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_input.py new file mode 100644 index 000000000000..1491768b34a4 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_input.py @@ -0,0 +1,29 @@ +# 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 InstallOCIDriverTaskInput(Model): + """Input for the service task to install an OCI driver. + + :param driver_package_name: Name of the uploaded driver package to + install. + :type driver_package_name: str + """ + + _attribute_map = { + 'driver_package_name': {'key': 'driverPackageName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InstallOCIDriverTaskInput, self).__init__(**kwargs) + self.driver_package_name = kwargs.get('driver_package_name', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_input_py3.py new file mode 100644 index 000000000000..bc9e287566e2 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_input_py3.py @@ -0,0 +1,29 @@ +# 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 InstallOCIDriverTaskInput(Model): + """Input for the service task to install an OCI driver. + + :param driver_package_name: Name of the uploaded driver package to + install. + :type driver_package_name: str + """ + + _attribute_map = { + 'driver_package_name': {'key': 'driverPackageName', 'type': 'str'}, + } + + def __init__(self, *, driver_package_name: str=None, **kwargs) -> None: + super(InstallOCIDriverTaskInput, self).__init__(**kwargs) + self.driver_package_name = driver_package_name diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_output.py new file mode 100644 index 000000000000..7f4c0ad32653 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_output.py @@ -0,0 +1,36 @@ +# 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 InstallOCIDriverTaskOutput(Model): + """Output for the service task to install an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(InstallOCIDriverTaskOutput, self).__init__(**kwargs) + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_output_py3.py new file mode 100644 index 000000000000..4e494eddce51 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_output_py3.py @@ -0,0 +1,36 @@ +# 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 InstallOCIDriverTaskOutput(Model): + """Output for the service task to install an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(InstallOCIDriverTaskOutput, self).__init__(**kwargs) + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_properties.py new file mode 100644 index 000000000000..bedd2e6c2d76 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_properties.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties import ProjectTaskProperties + + +class InstallOCIDriverTaskProperties(ProjectTaskProperties): + """Properties for the task that installs an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: ~azure.mgmt.datamigration.models.InstallOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.InstallOCIDriverTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'InstallOCIDriverTaskInput'}, + 'output': {'key': 'output', 'type': '[InstallOCIDriverTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(InstallOCIDriverTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Service.Install.OCI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_properties_py3.py new file mode 100644 index 000000000000..0536adec98e5 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/install_oci_driver_task_properties_py3.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties_py3 import ProjectTaskProperties + + +class InstallOCIDriverTaskProperties(ProjectTaskProperties): + """Properties for the task that installs an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: ~azure.mgmt.datamigration.models.InstallOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.InstallOCIDriverTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'InstallOCIDriverTaskInput'}, + 'output': {'key': 'output', 'type': '[InstallOCIDriverTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(InstallOCIDriverTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Service.Install.OCI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_for_postgre_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_for_postgre_sql_sync_task_properties.py new file mode 100644 index 000000000000..17ba30b7ffe2 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_for_postgre_sql_sync_task_properties.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties import ProjectTaskProperties + + +class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates Oracle to Azure Database for + PostgreSQL for online migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: Task input + :type input: + ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateOracleAzureDbPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateOracleAzureDbPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.Oracle.Sql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py new file mode 100644 index 000000000000..c9997367a73a --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties_py3 import ProjectTaskProperties + + +class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates Oracle to Azure Database for + PostgreSQL for online migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: Task input + :type input: + ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateOracleAzureDbPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateOracleAzureDbPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.Oracle.Sql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_database_input.py new file mode 100644 index 000000000000..55be3aefdf2d --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_database_input.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(Model): + """Database specific information for Oracle to Azure Database for PostgreSQL + migration task inputs. + + :param name: Name of the migration pipeline + :type name: str + :param schema_name: Name of the source schema + :type schema_name: str + :param table_map: Mapping of source to target tables + :type table_map: dict[str, str] + :param target_database_name: Name of target database. Note: Target + database will be truncated before starting migration. + :type target_database_name: str + :param migration_setting: Migration settings which tune the migration + behavior + :type migration_setting: dict[str, str] + :param source_setting: Source settings to tune source endpoint migration + behavior + :type source_setting: dict[str, str] + :param target_setting: Target settings to tune target endpoint migration + behavior + :type target_setting: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'table_map': {'key': 'tableMap', 'type': '{str}'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'migration_setting': {'key': 'migrationSetting', 'type': '{str}'}, + 'source_setting': {'key': 'sourceSetting', 'type': '{str}'}, + 'target_setting': {'key': 'targetSetting', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncDatabaseInput, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.schema_name = kwargs.get('schema_name', None) + self.table_map = kwargs.get('table_map', None) + self.target_database_name = kwargs.get('target_database_name', None) + self.migration_setting = kwargs.get('migration_setting', None) + self.source_setting = kwargs.get('source_setting', None) + self.target_setting = kwargs.get('target_setting', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_database_input_py3.py new file mode 100644 index 000000000000..e6b290b8896e --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_database_input_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(Model): + """Database specific information for Oracle to Azure Database for PostgreSQL + migration task inputs. + + :param name: Name of the migration pipeline + :type name: str + :param schema_name: Name of the source schema + :type schema_name: str + :param table_map: Mapping of source to target tables + :type table_map: dict[str, str] + :param target_database_name: Name of target database. Note: Target + database will be truncated before starting migration. + :type target_database_name: str + :param migration_setting: Migration settings which tune the migration + behavior + :type migration_setting: dict[str, str] + :param source_setting: Source settings to tune source endpoint migration + behavior + :type source_setting: dict[str, str] + :param target_setting: Target settings to tune target endpoint migration + behavior + :type target_setting: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'table_map': {'key': 'tableMap', 'type': '{str}'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'migration_setting': {'key': 'migrationSetting', 'type': '{str}'}, + 'source_setting': {'key': 'sourceSetting', 'type': '{str}'}, + 'target_setting': {'key': 'targetSetting', 'type': '{str}'}, + } + + def __init__(self, *, name: str=None, schema_name: str=None, table_map=None, target_database_name: str=None, migration_setting=None, source_setting=None, target_setting=None, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncDatabaseInput, self).__init__(**kwargs) + self.name = name + self.schema_name = schema_name + self.table_map = table_map + self.target_database_name = target_database_name + self.migration_setting = migration_setting + self.source_setting = source_setting + self.target_setting = target_setting diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_input.py new file mode 100644 index 000000000000..4d7c742af0ae --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_input.py @@ -0,0 +1,50 @@ +# 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 MigrateOracleAzureDbPostgreSqlSyncTaskInput(Model): + """Input for the task that migrates Oracle databases to Azure Database for + PostgreSQL for online migrations. + + All required parameters must be populated in order to send to Azure. + + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput] + :param target_connection_info: Required. Connection information for target + Azure Database for PostgreSQL + :type target_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :param source_connection_info: Required. Connection information for source + Oracle + :type source_connection_info: + ~azure.mgmt.datamigration.models.OracleConnectionInfo + """ + + _validation = { + 'selected_databases': {'required': True}, + 'target_connection_info': {'required': True}, + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateOracleAzureDbPostgreSqlSyncDatabaseInput]'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'OracleConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.selected_databases = kwargs.get('selected_databases', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.source_connection_info = kwargs.get('source_connection_info', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_input_py3.py new file mode 100644 index 000000000000..f538cba7afd0 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_input_py3.py @@ -0,0 +1,50 @@ +# 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 MigrateOracleAzureDbPostgreSqlSyncTaskInput(Model): + """Input for the task that migrates Oracle databases to Azure Database for + PostgreSQL for online migrations. + + All required parameters must be populated in order to send to Azure. + + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput] + :param target_connection_info: Required. Connection information for target + Azure Database for PostgreSQL + :type target_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :param source_connection_info: Required. Connection information for source + Oracle + :type source_connection_info: + ~azure.mgmt.datamigration.models.OracleConnectionInfo + """ + + _validation = { + 'selected_databases': {'required': True}, + 'target_connection_info': {'required': True}, + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateOracleAzureDbPostgreSqlSyncDatabaseInput]'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'OracleConnectionInfo'}, + } + + def __init__(self, *, selected_databases, target_connection_info, source_connection_info, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.selected_databases = selected_databases + self.target_connection_info = target_connection_info + self.source_connection_info = source_connection_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output.py new file mode 100644 index 000000000000..dde13a419379 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output.py @@ -0,0 +1,54 @@ +# 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 MigrateOracleAzureDbPostgreSqlSyncTaskOutput(Model): + """Output for the task that migrates Oracle databases to Azure Database for + PostgreSQL for online migrations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputError, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel + + 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + } + + _subtype_map = { + 'result_type': {'DatabaseLevelErrorOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputError', 'TableLevelOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error.py new file mode 100644 index 000000000000..55fab661228a --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error.py @@ -0,0 +1,50 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError. + + 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 + :param error_message: Error message + :type error_message: str + :param events: List of error events. + :type events: + list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'events': {'key': 'events', 'type': '[SyncMigrationDatabaseErrorEvent]'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = kwargs.get('error_message', None) + self.events = kwargs.get('events', None) + self.result_type = 'DatabaseLevelErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error_py3.py new file mode 100644 index 000000000000..5a7c4b8901b4 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_error_py3.py @@ -0,0 +1,50 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError. + + 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 + :param error_message: Error message + :type error_message: str + :param events: List of error events. + :type events: + list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'events': {'key': 'events', 'type': '[SyncMigrationDatabaseErrorEvent]'}, + } + + def __init__(self, *, error_message: str=None, events=None, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = error_message + self.events = events + self.result_type = 'DatabaseLevelErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level.py new file mode 100644 index 000000000000..510bf248e58a --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level.py @@ -0,0 +1,121 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel. + + 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 database_name: Name of the database + :vartype database_name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar migration_state: Migration state that this database is in. Possible + values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', + 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', + 'CANCELLED', 'FAILED' + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState + :ivar incoming_changes: Number of incoming changes + :vartype incoming_changes: long + :ivar applied_changes: Number of applied changes + :vartype applied_changes: long + :ivar cdc_insert_counter: Number of cdc inserts + :vartype cdc_insert_counter: long + :ivar cdc_delete_counter: Number of cdc deletes + :vartype cdc_delete_counter: long + :ivar cdc_update_counter: Number of cdc updates + :vartype cdc_update_counter: long + :ivar full_load_completed_tables: Number of tables completed in full load + :vartype full_load_completed_tables: long + :ivar full_load_loading_tables: Number of tables loading in full load + :vartype full_load_loading_tables: long + :ivar full_load_queued_tables: Number of tables queued in full load + :vartype full_load_queued_tables: long + :ivar full_load_errored_tables: Number of tables errored in full load + :vartype full_load_errored_tables: long + :ivar initialization_completed: Indicates if initial load (full load) has + been completed + :vartype initialization_completed: bool + :ivar latency: CDC apply latency + :vartype latency: long + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'migration_state': {'readonly': True}, + 'incoming_changes': {'readonly': True}, + 'applied_changes': {'readonly': True}, + 'cdc_insert_counter': {'readonly': True}, + 'cdc_delete_counter': {'readonly': True}, + 'cdc_update_counter': {'readonly': True}, + 'full_load_completed_tables': {'readonly': True}, + 'full_load_loading_tables': {'readonly': True}, + 'full_load_queued_tables': {'readonly': True}, + 'full_load_errored_tables': {'readonly': True}, + 'initialization_completed': {'readonly': True}, + 'latency': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'migration_state': {'key': 'migrationState', 'type': 'str'}, + 'incoming_changes': {'key': 'incomingChanges', 'type': 'long'}, + 'applied_changes': {'key': 'appliedChanges', 'type': 'long'}, + 'cdc_insert_counter': {'key': 'cdcInsertCounter', 'type': 'long'}, + 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'long'}, + 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'long'}, + 'full_load_completed_tables': {'key': 'fullLoadCompletedTables', 'type': 'long'}, + 'full_load_loading_tables': {'key': 'fullLoadLoadingTables', 'type': 'long'}, + 'full_load_queued_tables': {'key': 'fullLoadQueuedTables', 'type': 'long'}, + 'full_load_errored_tables': {'key': 'fullLoadErroredTables', 'type': 'long'}, + 'initialization_completed': {'key': 'initializationCompleted', 'type': 'bool'}, + 'latency': {'key': 'latency', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.started_on = None + self.ended_on = None + self.migration_state = None + self.incoming_changes = None + self.applied_changes = None + self.cdc_insert_counter = None + self.cdc_delete_counter = None + self.cdc_update_counter = None + self.full_load_completed_tables = None + self.full_load_loading_tables = None + self.full_load_queued_tables = None + self.full_load_errored_tables = None + self.initialization_completed = None + self.latency = None + self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level_py3.py new file mode 100644 index 000000000000..4d349b2f3f1c --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_database_level_py3.py @@ -0,0 +1,121 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel. + + 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 database_name: Name of the database + :vartype database_name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar migration_state: Migration state that this database is in. Possible + values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', + 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', + 'CANCELLED', 'FAILED' + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState + :ivar incoming_changes: Number of incoming changes + :vartype incoming_changes: long + :ivar applied_changes: Number of applied changes + :vartype applied_changes: long + :ivar cdc_insert_counter: Number of cdc inserts + :vartype cdc_insert_counter: long + :ivar cdc_delete_counter: Number of cdc deletes + :vartype cdc_delete_counter: long + :ivar cdc_update_counter: Number of cdc updates + :vartype cdc_update_counter: long + :ivar full_load_completed_tables: Number of tables completed in full load + :vartype full_load_completed_tables: long + :ivar full_load_loading_tables: Number of tables loading in full load + :vartype full_load_loading_tables: long + :ivar full_load_queued_tables: Number of tables queued in full load + :vartype full_load_queued_tables: long + :ivar full_load_errored_tables: Number of tables errored in full load + :vartype full_load_errored_tables: long + :ivar initialization_completed: Indicates if initial load (full load) has + been completed + :vartype initialization_completed: bool + :ivar latency: CDC apply latency + :vartype latency: long + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'migration_state': {'readonly': True}, + 'incoming_changes': {'readonly': True}, + 'applied_changes': {'readonly': True}, + 'cdc_insert_counter': {'readonly': True}, + 'cdc_delete_counter': {'readonly': True}, + 'cdc_update_counter': {'readonly': True}, + 'full_load_completed_tables': {'readonly': True}, + 'full_load_loading_tables': {'readonly': True}, + 'full_load_queued_tables': {'readonly': True}, + 'full_load_errored_tables': {'readonly': True}, + 'initialization_completed': {'readonly': True}, + 'latency': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'migration_state': {'key': 'migrationState', 'type': 'str'}, + 'incoming_changes': {'key': 'incomingChanges', 'type': 'long'}, + 'applied_changes': {'key': 'appliedChanges', 'type': 'long'}, + 'cdc_insert_counter': {'key': 'cdcInsertCounter', 'type': 'long'}, + 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'long'}, + 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'long'}, + 'full_load_completed_tables': {'key': 'fullLoadCompletedTables', 'type': 'long'}, + 'full_load_loading_tables': {'key': 'fullLoadLoadingTables', 'type': 'long'}, + 'full_load_queued_tables': {'key': 'fullLoadQueuedTables', 'type': 'long'}, + 'full_load_errored_tables': {'key': 'fullLoadErroredTables', 'type': 'long'}, + 'initialization_completed': {'key': 'initializationCompleted', 'type': 'bool'}, + 'latency': {'key': 'latency', 'type': 'long'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.started_on = None + self.ended_on = None + self.migration_state = None + self.incoming_changes = None + self.applied_changes = None + self.cdc_insert_counter = None + self.cdc_delete_counter = None + self.cdc_update_counter = None + self.full_load_completed_tables = None + self.full_load_loading_tables = None + self.full_load_queued_tables = None + self.full_load_errored_tables = None + self.initialization_completed = None + self.latency = None + self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_error.py new file mode 100644 index 000000000000..36f2f17f3c9b --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_error.py @@ -0,0 +1,46 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputError(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputError. + + 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 error: Migration error + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'ReportableException'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_error_py3.py new file mode 100644 index 000000000000..b383bf192692 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_error_py3.py @@ -0,0 +1,46 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputError(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputError. + + 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 error: Migration error + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'ReportableException'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_level.py new file mode 100644 index 000000000000..e80045a9aa1a --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_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 .migrate_oracle_azure_db_postgre_sql_sync_task_output import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel. + + 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 started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server: Source server name + :vartype source_server: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server: Target server name + :vartype target_server: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server': {'key': 'sourceServer', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server': {'key': 'targetServer', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, self).__init__(**kwargs) + self.started_on = None + self.ended_on = None + self.source_server_version = None + self.source_server = None + self.target_server_version = None + self.target_server = None + self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_level_py3.py new file mode 100644 index 000000000000..542d6f8d0484 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_migration_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 .migrate_oracle_azure_db_postgre_sql_sync_task_output_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel. + + 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 started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server: Source server name + :vartype source_server: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server: Target server name + :vartype target_server: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server': {'key': 'sourceServer', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server': {'key': 'targetServer', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, self).__init__(**kwargs) + self.started_on = None + self.ended_on = None + self.source_server_version = None + self.source_server = None + self.target_server_version = None + self.target_server = None + self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_py3.py new file mode 100644 index 000000000000..1e1cc8f22c01 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_py3.py @@ -0,0 +1,54 @@ +# 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 MigrateOracleAzureDbPostgreSqlSyncTaskOutput(Model): + """Output for the task that migrates Oracle databases to Azure Database for + PostgreSQL for online migrations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputError, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel + + 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + } + + _subtype_map = { + 'result_type': {'DatabaseLevelErrorOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputError', 'TableLevelOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level.py new file mode 100644 index 000000000000..a44c88b30920 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level.py @@ -0,0 +1,109 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel. + + 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 table_name: Name of the table + :vartype table_name: str + :ivar database_name: Name of the database + :vartype database_name: str + :ivar cdc_insert_counter: Number of applied inserts + :vartype cdc_insert_counter: long + :ivar cdc_update_counter: Number of applied updates + :vartype cdc_update_counter: long + :ivar cdc_delete_counter: Number of applied deletes + :vartype cdc_delete_counter: long + :ivar full_load_est_finish_time: Estimate to finish full load + :vartype full_load_est_finish_time: datetime + :ivar full_load_started_on: Full load start time + :vartype full_load_started_on: datetime + :ivar full_load_ended_on: Full load end time + :vartype full_load_ended_on: datetime + :ivar full_load_total_rows: Number of rows applied in full load + :vartype full_load_total_rows: long + :ivar state: Current state of the table migration. Possible values + include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', + 'FAILED' + :vartype state: str or + ~azure.mgmt.datamigration.models.SyncTableMigrationState + :ivar total_changes_applied: Total number of applied changes + :vartype total_changes_applied: long + :ivar data_errors_counter: Number of data errors occurred + :vartype data_errors_counter: long + :ivar last_modified_time: Last modified time on target + :vartype last_modified_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'table_name': {'readonly': True}, + 'database_name': {'readonly': True}, + 'cdc_insert_counter': {'readonly': True}, + 'cdc_update_counter': {'readonly': True}, + 'cdc_delete_counter': {'readonly': True}, + 'full_load_est_finish_time': {'readonly': True}, + 'full_load_started_on': {'readonly': True}, + 'full_load_ended_on': {'readonly': True}, + 'full_load_total_rows': {'readonly': True}, + 'state': {'readonly': True}, + 'total_changes_applied': {'readonly': True}, + 'data_errors_counter': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'cdc_insert_counter': {'key': 'cdcInsertCounter', 'type': 'long'}, + 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'long'}, + 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'long'}, + 'full_load_est_finish_time': {'key': 'fullLoadEstFinishTime', 'type': 'iso-8601'}, + 'full_load_started_on': {'key': 'fullLoadStartedOn', 'type': 'iso-8601'}, + 'full_load_ended_on': {'key': 'fullLoadEndedOn', 'type': 'iso-8601'}, + 'full_load_total_rows': {'key': 'fullLoadTotalRows', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_changes_applied': {'key': 'totalChangesApplied', 'type': 'long'}, + 'data_errors_counter': {'key': 'dataErrorsCounter', 'type': 'long'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, self).__init__(**kwargs) + self.table_name = None + self.database_name = None + self.cdc_insert_counter = None + self.cdc_update_counter = None + self.cdc_delete_counter = None + self.full_load_est_finish_time = None + self.full_load_started_on = None + self.full_load_ended_on = None + self.full_load_total_rows = None + self.state = None + self.total_changes_applied = None + self.data_errors_counter = None + self.last_modified_time = None + self.result_type = 'TableLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level_py3.py new file mode 100644 index 000000000000..ba8394bcb22c --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_oracle_azure_db_postgre_sql_sync_task_output_table_level_py3.py @@ -0,0 +1,109 @@ +# 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_oracle_azure_db_postgre_sql_sync_task_output_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel(MigrateOracleAzureDbPostgreSqlSyncTaskOutput): + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel. + + 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 table_name: Name of the table + :vartype table_name: str + :ivar database_name: Name of the database + :vartype database_name: str + :ivar cdc_insert_counter: Number of applied inserts + :vartype cdc_insert_counter: long + :ivar cdc_update_counter: Number of applied updates + :vartype cdc_update_counter: long + :ivar cdc_delete_counter: Number of applied deletes + :vartype cdc_delete_counter: long + :ivar full_load_est_finish_time: Estimate to finish full load + :vartype full_load_est_finish_time: datetime + :ivar full_load_started_on: Full load start time + :vartype full_load_started_on: datetime + :ivar full_load_ended_on: Full load end time + :vartype full_load_ended_on: datetime + :ivar full_load_total_rows: Number of rows applied in full load + :vartype full_load_total_rows: long + :ivar state: Current state of the table migration. Possible values + include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', + 'FAILED' + :vartype state: str or + ~azure.mgmt.datamigration.models.SyncTableMigrationState + :ivar total_changes_applied: Total number of applied changes + :vartype total_changes_applied: long + :ivar data_errors_counter: Number of data errors occurred + :vartype data_errors_counter: long + :ivar last_modified_time: Last modified time on target + :vartype last_modified_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'table_name': {'readonly': True}, + 'database_name': {'readonly': True}, + 'cdc_insert_counter': {'readonly': True}, + 'cdc_update_counter': {'readonly': True}, + 'cdc_delete_counter': {'readonly': True}, + 'full_load_est_finish_time': {'readonly': True}, + 'full_load_started_on': {'readonly': True}, + 'full_load_ended_on': {'readonly': True}, + 'full_load_total_rows': {'readonly': True}, + 'state': {'readonly': True}, + 'total_changes_applied': {'readonly': True}, + 'data_errors_counter': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'cdc_insert_counter': {'key': 'cdcInsertCounter', 'type': 'long'}, + 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'long'}, + 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'long'}, + 'full_load_est_finish_time': {'key': 'fullLoadEstFinishTime', 'type': 'iso-8601'}, + 'full_load_started_on': {'key': 'fullLoadStartedOn', 'type': 'iso-8601'}, + 'full_load_ended_on': {'key': 'fullLoadEndedOn', 'type': 'iso-8601'}, + 'full_load_total_rows': {'key': 'fullLoadTotalRows', 'type': 'long'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_changes_applied': {'key': 'totalChangesApplied', 'type': 'long'}, + 'data_errors_counter': {'key': 'dataErrorsCounter', 'type': 'long'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, self).__init__(**kwargs) + self.table_name = None + self.database_name = None + self.cdc_insert_counter = None + self.cdc_update_counter = None + self.cdc_delete_counter = None + self.full_load_est_finish_time = None + self.full_load_started_on = None + self.full_load_ended_on = None + self.full_load_total_rows = None + self.state = None + self.total_changes_applied = None + self.data_errors_counter = None + self.last_modified_time = None + self.result_type = 'TableLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_connection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_connection_info.py new file mode 100644 index 000000000000..0287641590fc --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_connection_info.py @@ -0,0 +1,45 @@ +# 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 .connection_info import ConnectionInfo + + +class OracleConnectionInfo(ConnectionInfo): + """Information for connecting to Oracle server. + + All required parameters must be populated in order to send to Azure. + + :param user_name: User name + :type user_name: str + :param password: Password credential. + :type password: str + :param type: Required. Constant filled by server. + :type type: str + :param data_source: Required. EZConnect or TNSName connection string. + :type data_source: str + """ + + _validation = { + 'type': {'required': True}, + 'data_source': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'data_source': {'key': 'dataSource', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OracleConnectionInfo, self).__init__(**kwargs) + self.data_source = kwargs.get('data_source', None) + self.type = 'OracleConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_connection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_connection_info_py3.py new file mode 100644 index 000000000000..9291e9849e98 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_connection_info_py3.py @@ -0,0 +1,45 @@ +# 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 .connection_info_py3 import ConnectionInfo + + +class OracleConnectionInfo(ConnectionInfo): + """Information for connecting to Oracle server. + + All required parameters must be populated in order to send to Azure. + + :param user_name: User name + :type user_name: str + :param password: Password credential. + :type password: str + :param type: Required. Constant filled by server. + :type type: str + :param data_source: Required. EZConnect or TNSName connection string. + :type data_source: str + """ + + _validation = { + 'type': {'required': True}, + 'data_source': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'data_source': {'key': 'dataSource', 'type': 'str'}, + } + + def __init__(self, *, data_source: str, user_name: str=None, password: str=None, **kwargs) -> None: + super(OracleConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) + self.data_source = data_source + self.type = 'OracleConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_oci_driver_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_oci_driver_info.py new file mode 100644 index 000000000000..bb9168d3d842 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_oci_driver_info.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OracleOCIDriverInfo(Model): + """Information about an Oracle OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar driver_name: The name of the driver package + :vartype driver_name: str + :ivar driver_size: The size in bytes of the driver package + :vartype driver_size: str + :ivar archive_checksum: The MD5 Base64 encoded checksum for the driver + package. + :vartype archive_checksum: str + :ivar oracle_checksum: The checksum for the driver package provided by + Oracle. + :vartype oracle_checksum: str + :ivar assembly_version: Version listed in the OCI assembly 'oci.dll' + :vartype assembly_version: str + :ivar supported_oracle_versions: List of Oracle database versions + supported by this driver. Only major minor of the version is listed. + :vartype supported_oracle_versions: list[str] + """ + + _validation = { + 'driver_name': {'readonly': True}, + 'driver_size': {'readonly': True}, + 'archive_checksum': {'readonly': True}, + 'oracle_checksum': {'readonly': True}, + 'assembly_version': {'readonly': True}, + 'supported_oracle_versions': {'readonly': True}, + } + + _attribute_map = { + 'driver_name': {'key': 'driverName', 'type': 'str'}, + 'driver_size': {'key': 'driverSize', 'type': 'str'}, + 'archive_checksum': {'key': 'archiveChecksum', 'type': 'str'}, + 'oracle_checksum': {'key': 'oracleChecksum', 'type': 'str'}, + 'assembly_version': {'key': 'assemblyVersion', 'type': 'str'}, + 'supported_oracle_versions': {'key': 'supportedOracleVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(OracleOCIDriverInfo, self).__init__(**kwargs) + self.driver_name = None + self.driver_size = None + self.archive_checksum = None + self.oracle_checksum = None + self.assembly_version = None + self.supported_oracle_versions = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_oci_driver_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_oci_driver_info_py3.py new file mode 100644 index 000000000000..4c47bc8e4ae6 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/oracle_oci_driver_info_py3.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OracleOCIDriverInfo(Model): + """Information about an Oracle OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar driver_name: The name of the driver package + :vartype driver_name: str + :ivar driver_size: The size in bytes of the driver package + :vartype driver_size: str + :ivar archive_checksum: The MD5 Base64 encoded checksum for the driver + package. + :vartype archive_checksum: str + :ivar oracle_checksum: The checksum for the driver package provided by + Oracle. + :vartype oracle_checksum: str + :ivar assembly_version: Version listed in the OCI assembly 'oci.dll' + :vartype assembly_version: str + :ivar supported_oracle_versions: List of Oracle database versions + supported by this driver. Only major minor of the version is listed. + :vartype supported_oracle_versions: list[str] + """ + + _validation = { + 'driver_name': {'readonly': True}, + 'driver_size': {'readonly': True}, + 'archive_checksum': {'readonly': True}, + 'oracle_checksum': {'readonly': True}, + 'assembly_version': {'readonly': True}, + 'supported_oracle_versions': {'readonly': True}, + } + + _attribute_map = { + 'driver_name': {'key': 'driverName', 'type': 'str'}, + 'driver_size': {'key': 'driverSize', 'type': 'str'}, + 'archive_checksum': {'key': 'archiveChecksum', 'type': 'str'}, + 'oracle_checksum': {'key': 'oracleChecksum', 'type': 'str'}, + 'assembly_version': {'key': 'assemblyVersion', 'type': 'str'}, + 'supported_oracle_versions': {'key': 'supportedOracleVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs) -> None: + super(OracleOCIDriverInfo, self).__init__(**kwargs) + self.driver_name = None + self.driver_size = None + self.archive_checksum = None + self.oracle_checksum = None + self.assembly_version = None + self.supported_oracle_versions = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties.py index 4acb7d23b387..27ddf8aa1523 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties.py @@ -18,10 +18,12 @@ class ProjectTaskProperties(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: GetTdeCertificatesSqlTaskProperties, + ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, ValidateMongoDbTaskProperties, ValidateMigrationInputSqlServerSqlMISyncTaskProperties, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, + MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, MigrateMySqlAzureDbForMySqlSyncTaskProperties, MigrateSqlServerSqlDbSyncTaskProperties, @@ -31,14 +33,17 @@ class ProjectTaskProperties(Model): ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetSqlMISyncTaskProperties, ConnectToTargetSqlMITaskProperties, GetUserTablesSqlSyncTaskProperties, GetUserTablesSqlTaskProperties, + ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, ConnectToTargetSqlSqlDbSyncTaskProperties, ConnectToTargetSqlDbTaskProperties, + ConnectToSourceOracleSyncTaskProperties, ConnectToSourcePostgreSqlSyncTaskProperties, ConnectToSourceSqlServerSyncTaskProperties, ConnectToSourceSqlServerTaskProperties, ConnectToMongoDbTaskProperties, ConnectToSourceMySqlTaskProperties, - MigrateSchemaSqlServerSqlDbTaskProperties + MigrateSchemaSqlServerSqlDbTaskProperties, CheckOCIDriverTaskProperties, + UploadOCIDriverTaskProperties, InstallOCIDriverTaskProperties Variables are only populated by the server, and will be ignored when sending a request. @@ -77,7 +82,7 @@ class ProjectTaskProperties(Model): } _subtype_map = { - 'task_type': {'GetTDECertificates.Sql': 'GetTdeCertificatesSqlTaskProperties', 'Validate.MongoDb': 'ValidateMongoDbTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS': 'ValidateMigrationInputSqlServerSqlMISyncTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI': 'ValidateMigrationInputSqlServerSqlMITaskProperties', 'ValidateMigrationInput.SqlServer.SqlDb.Sync': 'ValidateMigrationInputSqlServerSqlDbSyncTaskProperties', 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties', 'Migrate.MySql.AzureDbForMySql.Sync': 'MigrateMySqlAzureDbForMySqlSyncTaskProperties', 'Migrate.SqlServer.AzureSqlDb.Sync': 'MigrateSqlServerSqlDbSyncTaskProperties', 'Migrate.SqlServer.SqlDb': 'MigrateSqlServerSqlDbTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS': 'MigrateSqlServerSqlMISyncTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI': 'MigrateSqlServerSqlMITaskProperties', 'Migrate.MongoDb': 'MigrateMongoDbTaskProperties', 'ConnectToTarget.AzureDbForMySql': 'ConnectToTargetAzureDbForMySqlTaskProperties', 'ConnectToTarget.AzureSqlDbMI.Sync.LRS': 'ConnectToTargetSqlMISyncTaskProperties', 'ConnectToTarget.AzureSqlDbMI': 'ConnectToTargetSqlMITaskProperties', 'GetUserTables.AzureSqlDb.Sync': 'GetUserTablesSqlSyncTaskProperties', 'GetUserTables.Sql': 'GetUserTablesSqlTaskProperties', 'ConnectToTarget.AzureDbForPostgreSql.Sync': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties', 'ConnectToTarget.SqlDb.Sync': 'ConnectToTargetSqlSqlDbSyncTaskProperties', 'ConnectToTarget.SqlDb': 'ConnectToTargetSqlDbTaskProperties', 'ConnectToSource.PostgreSql.Sync': 'ConnectToSourcePostgreSqlSyncTaskProperties', 'ConnectToSource.SqlServer.Sync': 'ConnectToSourceSqlServerSyncTaskProperties', 'ConnectToSource.SqlServer': 'ConnectToSourceSqlServerTaskProperties', 'Connect.MongoDb': 'ConnectToMongoDbTaskProperties', 'ConnectToSource.MySql': 'ConnectToSourceMySqlTaskProperties', 'MigrateSchemaSqlServerSqlDb': 'MigrateSchemaSqlServerSqlDbTaskProperties'} + 'task_type': {'GetTDECertificates.Sql': 'GetTdeCertificatesSqlTaskProperties', 'Validate.Oracle.AzureDbPostgreSql.Sync': 'ValidateOracleAzureDbForPostgreSqlSyncTaskProperties', 'Validate.MongoDb': 'ValidateMongoDbTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS': 'ValidateMigrationInputSqlServerSqlMISyncTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI': 'ValidateMigrationInputSqlServerSqlMITaskProperties', 'ValidateMigrationInput.SqlServer.SqlDb.Sync': 'ValidateMigrationInputSqlServerSqlDbSyncTaskProperties', 'Migrate.Oracle.Sql.Sync': 'MigrateOracleAzureDbForPostgreSqlSyncTaskProperties', 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties', 'Migrate.MySql.AzureDbForMySql.Sync': 'MigrateMySqlAzureDbForMySqlSyncTaskProperties', 'Migrate.SqlServer.AzureSqlDb.Sync': 'MigrateSqlServerSqlDbSyncTaskProperties', 'Migrate.SqlServer.SqlDb': 'MigrateSqlServerSqlDbTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS': 'MigrateSqlServerSqlMISyncTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI': 'MigrateSqlServerSqlMITaskProperties', 'Migrate.MongoDb': 'MigrateMongoDbTaskProperties', 'ConnectToTarget.AzureDbForMySql': 'ConnectToTargetAzureDbForMySqlTaskProperties', 'ConnectToTarget.AzureSqlDbMI.Sync.LRS': 'ConnectToTargetSqlMISyncTaskProperties', 'ConnectToTarget.AzureSqlDbMI': 'ConnectToTargetSqlMITaskProperties', 'GetUserTables.AzureSqlDb.Sync': 'GetUserTablesSqlSyncTaskProperties', 'GetUserTables.Sql': 'GetUserTablesSqlTaskProperties', 'ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync': 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties', 'ConnectToTarget.AzureDbForPostgreSql.Sync': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties', 'ConnectToTarget.SqlDb.Sync': 'ConnectToTargetSqlSqlDbSyncTaskProperties', 'ConnectToTarget.SqlDb': 'ConnectToTargetSqlDbTaskProperties', 'ConnectToSource.Oracle.Sync': 'ConnectToSourceOracleSyncTaskProperties', 'ConnectToSource.PostgreSql.Sync': 'ConnectToSourcePostgreSqlSyncTaskProperties', 'ConnectToSource.SqlServer.Sync': 'ConnectToSourceSqlServerSyncTaskProperties', 'ConnectToSource.SqlServer': 'ConnectToSourceSqlServerTaskProperties', 'Connect.MongoDb': 'ConnectToMongoDbTaskProperties', 'ConnectToSource.MySql': 'ConnectToSourceMySqlTaskProperties', 'MigrateSchemaSqlServerSqlDb': 'MigrateSchemaSqlServerSqlDbTaskProperties', 'Service.Check.OCI': 'CheckOCIDriverTaskProperties', 'Service.Upload.OCI': 'UploadOCIDriverTaskProperties', 'Service.Install.OCI': 'InstallOCIDriverTaskProperties'} } def __init__(self, **kwargs): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties_py3.py index 01fbf74ea550..64cf7a8f764c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties_py3.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties_py3.py @@ -18,10 +18,12 @@ class ProjectTaskProperties(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: GetTdeCertificatesSqlTaskProperties, + ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, ValidateMongoDbTaskProperties, ValidateMigrationInputSqlServerSqlMISyncTaskProperties, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, + MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, MigrateMySqlAzureDbForMySqlSyncTaskProperties, MigrateSqlServerSqlDbSyncTaskProperties, @@ -31,14 +33,17 @@ class ProjectTaskProperties(Model): ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetSqlMISyncTaskProperties, ConnectToTargetSqlMITaskProperties, GetUserTablesSqlSyncTaskProperties, GetUserTablesSqlTaskProperties, + ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, ConnectToTargetSqlSqlDbSyncTaskProperties, ConnectToTargetSqlDbTaskProperties, + ConnectToSourceOracleSyncTaskProperties, ConnectToSourcePostgreSqlSyncTaskProperties, ConnectToSourceSqlServerSyncTaskProperties, ConnectToSourceSqlServerTaskProperties, ConnectToMongoDbTaskProperties, ConnectToSourceMySqlTaskProperties, - MigrateSchemaSqlServerSqlDbTaskProperties + MigrateSchemaSqlServerSqlDbTaskProperties, CheckOCIDriverTaskProperties, + UploadOCIDriverTaskProperties, InstallOCIDriverTaskProperties Variables are only populated by the server, and will be ignored when sending a request. @@ -77,7 +82,7 @@ class ProjectTaskProperties(Model): } _subtype_map = { - 'task_type': {'GetTDECertificates.Sql': 'GetTdeCertificatesSqlTaskProperties', 'Validate.MongoDb': 'ValidateMongoDbTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS': 'ValidateMigrationInputSqlServerSqlMISyncTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI': 'ValidateMigrationInputSqlServerSqlMITaskProperties', 'ValidateMigrationInput.SqlServer.SqlDb.Sync': 'ValidateMigrationInputSqlServerSqlDbSyncTaskProperties', 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties', 'Migrate.MySql.AzureDbForMySql.Sync': 'MigrateMySqlAzureDbForMySqlSyncTaskProperties', 'Migrate.SqlServer.AzureSqlDb.Sync': 'MigrateSqlServerSqlDbSyncTaskProperties', 'Migrate.SqlServer.SqlDb': 'MigrateSqlServerSqlDbTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS': 'MigrateSqlServerSqlMISyncTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI': 'MigrateSqlServerSqlMITaskProperties', 'Migrate.MongoDb': 'MigrateMongoDbTaskProperties', 'ConnectToTarget.AzureDbForMySql': 'ConnectToTargetAzureDbForMySqlTaskProperties', 'ConnectToTarget.AzureSqlDbMI.Sync.LRS': 'ConnectToTargetSqlMISyncTaskProperties', 'ConnectToTarget.AzureSqlDbMI': 'ConnectToTargetSqlMITaskProperties', 'GetUserTables.AzureSqlDb.Sync': 'GetUserTablesSqlSyncTaskProperties', 'GetUserTables.Sql': 'GetUserTablesSqlTaskProperties', 'ConnectToTarget.AzureDbForPostgreSql.Sync': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties', 'ConnectToTarget.SqlDb.Sync': 'ConnectToTargetSqlSqlDbSyncTaskProperties', 'ConnectToTarget.SqlDb': 'ConnectToTargetSqlDbTaskProperties', 'ConnectToSource.PostgreSql.Sync': 'ConnectToSourcePostgreSqlSyncTaskProperties', 'ConnectToSource.SqlServer.Sync': 'ConnectToSourceSqlServerSyncTaskProperties', 'ConnectToSource.SqlServer': 'ConnectToSourceSqlServerTaskProperties', 'Connect.MongoDb': 'ConnectToMongoDbTaskProperties', 'ConnectToSource.MySql': 'ConnectToSourceMySqlTaskProperties', 'MigrateSchemaSqlServerSqlDb': 'MigrateSchemaSqlServerSqlDbTaskProperties'} + 'task_type': {'GetTDECertificates.Sql': 'GetTdeCertificatesSqlTaskProperties', 'Validate.Oracle.AzureDbPostgreSql.Sync': 'ValidateOracleAzureDbForPostgreSqlSyncTaskProperties', 'Validate.MongoDb': 'ValidateMongoDbTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS': 'ValidateMigrationInputSqlServerSqlMISyncTaskProperties', 'ValidateMigrationInput.SqlServer.AzureSqlDbMI': 'ValidateMigrationInputSqlServerSqlMITaskProperties', 'ValidateMigrationInput.SqlServer.SqlDb.Sync': 'ValidateMigrationInputSqlServerSqlDbSyncTaskProperties', 'Migrate.Oracle.Sql.Sync': 'MigrateOracleAzureDbForPostgreSqlSyncTaskProperties', 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties', 'Migrate.MySql.AzureDbForMySql.Sync': 'MigrateMySqlAzureDbForMySqlSyncTaskProperties', 'Migrate.SqlServer.AzureSqlDb.Sync': 'MigrateSqlServerSqlDbSyncTaskProperties', 'Migrate.SqlServer.SqlDb': 'MigrateSqlServerSqlDbTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS': 'MigrateSqlServerSqlMISyncTaskProperties', 'Migrate.SqlServer.AzureSqlDbMI': 'MigrateSqlServerSqlMITaskProperties', 'Migrate.MongoDb': 'MigrateMongoDbTaskProperties', 'ConnectToTarget.AzureDbForMySql': 'ConnectToTargetAzureDbForMySqlTaskProperties', 'ConnectToTarget.AzureSqlDbMI.Sync.LRS': 'ConnectToTargetSqlMISyncTaskProperties', 'ConnectToTarget.AzureSqlDbMI': 'ConnectToTargetSqlMITaskProperties', 'GetUserTables.AzureSqlDb.Sync': 'GetUserTablesSqlSyncTaskProperties', 'GetUserTables.Sql': 'GetUserTablesSqlTaskProperties', 'ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync': 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties', 'ConnectToTarget.AzureDbForPostgreSql.Sync': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties', 'ConnectToTarget.SqlDb.Sync': 'ConnectToTargetSqlSqlDbSyncTaskProperties', 'ConnectToTarget.SqlDb': 'ConnectToTargetSqlDbTaskProperties', 'ConnectToSource.Oracle.Sync': 'ConnectToSourceOracleSyncTaskProperties', 'ConnectToSource.PostgreSql.Sync': 'ConnectToSourcePostgreSqlSyncTaskProperties', 'ConnectToSource.SqlServer.Sync': 'ConnectToSourceSqlServerSyncTaskProperties', 'ConnectToSource.SqlServer': 'ConnectToSourceSqlServerTaskProperties', 'Connect.MongoDb': 'ConnectToMongoDbTaskProperties', 'ConnectToSource.MySql': 'ConnectToSourceMySqlTaskProperties', 'MigrateSchemaSqlServerSqlDb': 'MigrateSchemaSqlServerSqlDbTaskProperties', 'Service.Check.OCI': 'CheckOCIDriverTaskProperties', 'Service.Upload.OCI': 'UploadOCIDriverTaskProperties', 'Service.Install.OCI': 'InstallOCIDriverTaskProperties'} } def __init__(self, *, client_data=None, **kwargs) -> None: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties.py index 8507c9404cee..2d63eedb53a6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties.py @@ -13,7 +13,7 @@ class ServerProperties(Model): - """Server properties for Oracle, MySQL type source. + """Server properties for MySQL type source. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties_py3.py index fbee0abcd1ab..02175bca05ce 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties_py3.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties_py3.py @@ -13,7 +13,7 @@ class ServerProperties(Model): - """Server properties for Oracle, MySQL type source. + """Server properties for MySQL type source. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_input.py new file mode 100644 index 000000000000..2510746ca4aa --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_input.py @@ -0,0 +1,28 @@ +# 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 UploadOCIDriverTaskInput(Model): + """Input for the service task to upload an OCI driver. + + :param driver_share: File share information for the OCI driver archive. + :type driver_share: ~azure.mgmt.datamigration.models.FileShare + """ + + _attribute_map = { + 'driver_share': {'key': 'driverShare', 'type': 'FileShare'}, + } + + def __init__(self, **kwargs): + super(UploadOCIDriverTaskInput, self).__init__(**kwargs) + self.driver_share = kwargs.get('driver_share', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_input_py3.py new file mode 100644 index 000000000000..9d10a178d6b7 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_input_py3.py @@ -0,0 +1,28 @@ +# 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 UploadOCIDriverTaskInput(Model): + """Input for the service task to upload an OCI driver. + + :param driver_share: File share information for the OCI driver archive. + :type driver_share: ~azure.mgmt.datamigration.models.FileShare + """ + + _attribute_map = { + 'driver_share': {'key': 'driverShare', 'type': 'FileShare'}, + } + + def __init__(self, *, driver_share=None, **kwargs) -> None: + super(UploadOCIDriverTaskInput, self).__init__(**kwargs) + self.driver_share = driver_share diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_output.py new file mode 100644 index 000000000000..28a695403c3f --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_output.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 UploadOCIDriverTaskOutput(Model): + """Output for the service task to upload an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar driver_package_name: The name of the driver package that was + validated and uploaded. + :vartype driver_package_name: str + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'driver_package_name': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'driver_package_name': {'key': 'driverPackageName', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(UploadOCIDriverTaskOutput, self).__init__(**kwargs) + self.driver_package_name = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_output_py3.py new file mode 100644 index 000000000000..5aed1d6fee94 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_output_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 UploadOCIDriverTaskOutput(Model): + """Output for the service task to upload an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar driver_package_name: The name of the driver package that was + validated and uploaded. + :vartype driver_package_name: str + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'driver_package_name': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'driver_package_name': {'key': 'driverPackageName', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(UploadOCIDriverTaskOutput, self).__init__(**kwargs) + self.driver_package_name = None + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_properties.py new file mode 100644 index 000000000000..b034b8f56cbb --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_properties.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties import ProjectTaskProperties + + +class UploadOCIDriverTaskProperties(ProjectTaskProperties): + """Properties for the task that uploads an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: ~azure.mgmt.datamigration.models.UploadOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.UploadOCIDriverTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'UploadOCIDriverTaskInput'}, + 'output': {'key': 'output', 'type': '[UploadOCIDriverTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(UploadOCIDriverTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Service.Upload.OCI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_properties_py3.py new file mode 100644 index 000000000000..62bf0f4cf2a1 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/upload_oci_driver_task_properties_py3.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties_py3 import ProjectTaskProperties + + +class UploadOCIDriverTaskProperties(ProjectTaskProperties): + """Properties for the task that uploads an OCI driver. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: ~azure.mgmt.datamigration.models.UploadOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.UploadOCIDriverTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'UploadOCIDriverTaskInput'}, + 'output': {'key': 'output', 'type': '[UploadOCIDriverTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(UploadOCIDriverTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Service.Upload.OCI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_for_postgre_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_for_postgre_sql_sync_task_properties.py new file mode 100644 index 000000000000..6dc72d71ddc1 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_for_postgre_sql_sync_task_properties.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties import ProjectTaskProperties + + +class ValidateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates a migration for Oracle to Azure + Database for PostgreSQL for online migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: + ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput + :ivar output: An array containing a single validation error response + object + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateOracleAzureDbPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateOracleAzureDbPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Validate.Oracle.AzureDbPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py new file mode 100644 index 000000000000..13fd2a9f5e8a --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_for_postgre_sql_sync_task_properties_py3.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .project_task_properties_py3 import ProjectTaskProperties + + +class ValidateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates a migration for Oracle to Azure + Database for PostgreSQL for online migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param client_data: Key value pairs of client data to attach meta data + information to task + :type client_data: dict[str, str] + :param task_type: Required. Constant filled by server. + :type task_type: str + :param input: + :type input: + ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput + :ivar output: An array containing a single validation error response + object + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateOracleAzureDbPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateOracleAzureDbPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Validate.Oracle.AzureDbPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_postgre_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_postgre_sql_sync_task_output.py new file mode 100644 index 000000000000..402cd6c2c8d1 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_postgre_sql_sync_task_output.py @@ -0,0 +1,37 @@ +# 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 ValidateOracleAzureDbPostgreSqlSyncTaskOutput(Model): + """Output for task that validates migration input for Oracle to Azure Database + for PostgreSQL for online migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar validation_errors: Errors associated with a selected database object + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ValidateOracleAzureDbPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_postgre_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_postgre_sql_sync_task_output_py3.py new file mode 100644 index 000000000000..14877e19e064 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_oracle_azure_db_postgre_sql_sync_task_output_py3.py @@ -0,0 +1,37 @@ +# 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 ValidateOracleAzureDbPostgreSqlSyncTaskOutput(Model): + """Output for task that validates migration input for Oracle to Azure Database + for PostgreSQL for online migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar validation_errors: Errors associated with a selected database object + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ValidateOracleAzureDbPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py index b06ecfce78cc..6e69916a3f14 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py @@ -12,6 +12,7 @@ from .resource_skus_operations import ResourceSkusOperations from .services_operations import ServicesOperations from .tasks_operations import TasksOperations +from .service_tasks_operations import ServiceTasksOperations from .projects_operations import ProjectsOperations from .usages_operations import UsagesOperations from .operations import Operations @@ -21,6 +22,7 @@ 'ResourceSkusOperations', 'ServicesOperations', 'TasksOperations', + 'ServiceTasksOperations', 'ProjectsOperations', 'UsagesOperations', 'Operations', diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/service_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/service_tasks_operations.py new file mode 100644 index 000000000000..9ce5b86aa6b6 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/service_tasks_operations.py @@ -0,0 +1,485 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ServiceTasksOperations(object): + """ServiceTasksOperations operations. + + :param client: Client for service requests. + :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-07-15-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-07-15-preview" + + self.config = config + + def list( + self, group_name, service_name, task_type=None, custom_headers=None, raw=False, **operation_config): + """Get service level tasks for a service. + + The services resource is the top-level resource that represents the + Database Migration Service. This method returns a list of service level + tasks owned by a service resource. Some tasks may have a status of + Unknown, which indicates that an error occurred while querying the + status of that task. + + :param group_name: Name of the resource group + :type group_name: str + :param service_name: Name of the service + :type service_name: str + :param task_type: Filter tasks by task type + :type task_type: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ProjectTask + :rtype: + ~azure.mgmt.datamigration.models.ProjectTaskPaged[~azure.mgmt.datamigration.models.ProjectTask] + :raises: + :class:`ApiErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if task_type is not None: + query_parameters['taskType'] = self._serialize.query("task_type", task_type, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.ProjectTaskPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ProjectTaskPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks'} + + def create_or_update( + self, group_name, service_name, task_name, etag=None, properties=None, custom_headers=None, raw=False, **operation_config): + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource + representing work performed by a DMS instance. The PUT method creates a + new service task or updates an existing one, although since service + tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group + :type group_name: str + :param service_name: Name of the service + :type service_name: str + :param task_name: Name of the Task + :type task_name: str + :param etag: HTTP strong entity tag value. This is ignored if + submitted. + :type etag: str + :param properties: Custom task properties + :type properties: + ~azure.mgmt.datamigration.models.ProjectTaskProperties + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ProjectTask or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.datamigration.models.ProjectTask or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + parameters = models.ProjectTask(etag=etag, properties=properties) + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'taskName': self._serialize.url("task_name", task_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ProjectTask') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ProjectTask', response) + if response.status_code == 201: + deserialized = self._deserialize('ProjectTask', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}'} + + def get( + self, group_name, service_name, task_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Get service task information. + + The service tasks resource is a nested, proxy-only resource + representing work performed by a DMS instance. The GET method retrieves + information about a service task. + + :param group_name: Name of the resource group + :type group_name: str + :param service_name: Name of the service + :type service_name: str + :param task_name: Name of the Task + :type task_name: str + :param expand: Expand the response + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ProjectTask or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.datamigration.models.ProjectTask or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'taskName': self._serialize.url("task_name", task_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ProjectTask', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}'} + + def delete( + self, group_name, service_name, task_name, delete_running_tasks=None, custom_headers=None, raw=False, **operation_config): + """Delete service task. + + The service tasks resource is a nested, proxy-only resource + representing work performed by a DMS instance. The DELETE method + deletes a service task, canceling it first if it's running. + + :param group_name: Name of the resource group + :type group_name: str + :param service_name: Name of the service + :type service_name: str + :param task_name: Name of the Task + :type task_name: str + :param delete_running_tasks: Delete the resource even if it contains + running tasks + :type delete_running_tasks: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'taskName': self._serialize.url("task_name", task_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if delete_running_tasks is not None: + query_parameters['deleteRunningTasks'] = self._serialize.query("delete_running_tasks", delete_running_tasks, 'bool') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ApiErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}'} + + def update( + self, group_name, service_name, task_name, etag=None, properties=None, custom_headers=None, raw=False, **operation_config): + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource + representing work performed by a DMS instance. The PATCH method updates + an existing service task, but since service tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group + :type group_name: str + :param service_name: Name of the service + :type service_name: str + :param task_name: Name of the Task + :type task_name: str + :param etag: HTTP strong entity tag value. This is ignored if + submitted. + :type etag: str + :param properties: Custom task properties + :type properties: + ~azure.mgmt.datamigration.models.ProjectTaskProperties + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ProjectTask or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.datamigration.models.ProjectTask or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + parameters = models.ProjectTask(etag=etag, properties=properties) + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'taskName': self._serialize.url("task_name", task_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ProjectTask') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ProjectTask', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}'} + + def cancel( + self, group_name, service_name, task_name, custom_headers=None, raw=False, **operation_config): + """Cancel a service task. + + The service tasks resource is a nested, proxy-only resource + representing work performed by a DMS instance. This method cancels a + service task if it's currently queued or running. + + :param group_name: Name of the resource group + :type group_name: str + :param service_name: Name of the service + :type service_name: str + :param task_name: Name of the Task + :type task_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ProjectTask or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.datamigration.models.ProjectTask or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.cancel.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'taskName': self._serialize.url("task_name", task_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ProjectTask', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}/cancel'}