From ccd654595d313d2f4a84cbc07b372253321fd5d5 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 11 Jul 2019 23:07:21 -0700 Subject: [PATCH] [AutoPR] datamigration/resource-manager (#5417) * Generated from cd2b75fab8a5e322525e5214385f07c648756b5b (#5416) chore: jsonfmt datamigrtion Ran `jsonfmt -w "specification/datamigration/**/*.json"` * [AutoPR datamigration/resource-manager] Add OracleAzureDbPostgreSQLSync scenario and ServiceTask resource (#5434) * Generated from 5c209c20ca9a6f8d5f2e9bf3aca1078b6d80ab92 Add Oracle to Azure Database For PostgreSQL scenarios and Service Task resource which supports the scenario. * Generated from 96de3859707b69b5b8b372d72f09cac32be112c7 Add Oracle to Azure Database For PostgreSQL scenarios and Service Task resource which supports the scenario. * Generated from a455f45c33d0e2b8f0a298d637a86ecac9fb4042 Add Oracle to Azure Database For PostgreSQL scenarios and Service Task resource which supports the scenario. * Generated from 2281cc30a4d0eae30b0c3b68f6a679a6dff649ee Add Oracle to Azure Database For PostgreSQL scenarios and Service Task resource which supports the scenario. * Generated from e94036625f69f01964f3b6821aa72c4cc578073e Add Oracle to Azure Database For PostgreSQL scenarios and Service Task resource which supports the scenario. * Update version.py * Generated from e4898febbc6b7d49e046eff01fe973d108cc53ca (#5951) chore: jsonfmt datamigration Ran `jsonfmt -w "specification/datamigration/**/*.json"` * [AutoPR datamigration/resource-manager] Adding objects necessary for mapping Oracle schemas and tables to PostgreSQL databases and tables (#6096) * Generated from 835bf096bcbb0db18081cb31338036c70108ccd5 Adding objects necessary for mapping Oracle schemas and tables to PostgreSQL databases and tables. * Generated from 4f5182d37c4186591e8206f751be4c47bb32b08c Adding objects necessary for mapping Oracle schemas and tables to PostgreSQL databases and tables 2 * Packaging update of azure-mgmt-datamigration * updated changelog * Added breaking change info --- .../azure-mgmt-datamigration/HISTORY.rst | 17 + .../azure-mgmt-datamigration/README.rst | 2 +- .../azure/mgmt/datamigration/__init__.py | 7 +- .../mgmt/datamigration/_configuration.py | 48 + ...t.py => _data_migration_service_client.py} | 55 +- .../mgmt/datamigration/models/__init__.py | 1363 +- ...> _data_migration_service_client_enums.py} | 0 .../mgmt/datamigration/models/_models.py | 11596 ++++++++++++++++ .../mgmt/datamigration/models/_models_py3.py | 11596 ++++++++++++++++ .../datamigration/models/_paged_models.py | 118 + .../mgmt/datamigration/models/api_error.py | 41 - .../datamigration/models/api_error_py3.py | 41 - .../models/available_service_sku.py | 37 - .../models/available_service_sku_capacity.py | 42 - .../available_service_sku_capacity_py3.py | 42 - .../models/available_service_sku_paged.py | 27 - .../models/available_service_sku_py3.py | 37 - .../models/available_service_sku_sku.py | 41 - .../models/available_service_sku_sku_py3.py | 41 - .../models/azure_active_directory_app.py | 46 - .../models/azure_active_directory_app_py3.py | 46 - .../datamigration/models/backup_file_info.py | 39 - .../models/backup_file_info_py3.py | 39 - .../datamigration/models/backup_set_info.py | 69 - .../models/backup_set_info_py3.py | 69 - .../mgmt/datamigration/models/blob_share.py | 34 - .../datamigration/models/blob_share_py3.py | 34 - .../models/command_properties.py | 59 - .../models/command_properties_py3.py | 59 - .../connect_to_mongo_db_task_properties.py | 66 - ...connect_to_mongo_db_task_properties_py3.py | 66 - .../connect_to_source_my_sql_task_input.py | 49 - ...connect_to_source_my_sql_task_input_py3.py | 49 - ...onnect_to_source_my_sql_task_properties.py | 67 - ...ct_to_source_my_sql_task_properties_py3.py | 67 - .../connect_to_source_non_sql_task_output.py | 57 - ...nnect_to_source_non_sql_task_output_py3.py | 57 - ...t_to_source_postgre_sql_sync_task_input.py | 37 - ..._source_postgre_sql_sync_task_input_py3.py | 37 - ..._to_source_postgre_sql_sync_task_output.py | 57 - ...source_postgre_sql_sync_task_output_py3.py | 57 - ...source_postgre_sql_sync_task_properties.py | 68 - ...ce_postgre_sql_sync_task_properties_py3.py | 68 - ..._source_sql_server_sync_task_properties.py | 68 - ...rce_sql_server_sync_task_properties_py3.py | 68 - ...connect_to_source_sql_server_task_input.py | 59 - ...ect_to_source_sql_server_task_input_py3.py | 59 - ...onnect_to_source_sql_server_task_output.py | 53 - ..._sql_server_task_output_agent_job_level.py | 81 - ..._server_task_output_agent_job_level_py3.py | 81 - ...e_sql_server_task_output_database_level.py | 75 - ...l_server_task_output_database_level_py3.py | 75 - ...urce_sql_server_task_output_login_level.py | 71 - ..._sql_server_task_output_login_level_py3.py | 71 - ...ct_to_source_sql_server_task_output_py3.py | 53 - ...ource_sql_server_task_output_task_level.py | 80 - ...e_sql_server_task_output_task_level_py3.py | 80 - ...ct_to_source_sql_server_task_properties.py | 68 - ...o_source_sql_server_task_properties_py3.py | 68 - ...o_target_azure_db_for_my_sql_task_input.py | 44 - ...rget_azure_db_for_my_sql_task_input_py3.py | 44 - ..._target_azure_db_for_my_sql_task_output.py | 57 - ...get_azure_db_for_my_sql_task_output_py3.py | 57 - ...get_azure_db_for_my_sql_task_properties.py | 68 - ...azure_db_for_my_sql_task_properties_py3.py | 68 - ...zure_db_for_postgre_sql_sync_task_input.py | 44 - ..._db_for_postgre_sql_sync_task_input_py3.py | 44 - ...ure_db_for_postgre_sql_sync_task_output.py | 57 - ...db_for_postgre_sql_sync_task_output_py3.py | 57 - ...db_for_postgre_sql_sync_task_properties.py | 68 - ...or_postgre_sql_sync_task_properties_py3.py | 68 - .../connect_to_target_sql_db_task_input.py | 37 - ...connect_to_target_sql_db_task_input_py3.py | 37 - .../connect_to_target_sql_db_task_output.py | 52 - ...onnect_to_target_sql_db_task_output_py3.py | 52 - ...onnect_to_target_sql_db_task_properties.py | 68 - ...ct_to_target_sql_db_task_properties_py3.py | 68 - ...onnect_to_target_sql_mi_sync_task_input.py | 44 - ...ct_to_target_sql_mi_sync_task_input_py3.py | 44 - ...nnect_to_target_sql_mi_sync_task_output.py | 47 - ...t_to_target_sql_mi_sync_task_output_py3.py | 47 - ...t_to_target_sql_mi_sync_task_properties.py | 68 - ..._target_sql_mi_sync_task_properties_py3.py | 68 - .../connect_to_target_sql_mi_task_input.py | 37 - ...connect_to_target_sql_mi_task_input_py3.py | 37 - .../connect_to_target_sql_mi_task_output.py | 62 - ...onnect_to_target_sql_mi_task_output_py3.py | 62 - ...onnect_to_target_sql_mi_task_properties.py | 68 - ...ct_to_target_sql_mi_task_properties_py3.py | 68 - ...ct_to_target_sql_sql_db_sync_task_input.py | 44 - ...o_target_sql_sql_db_sync_task_input_py3.py | 44 - ..._target_sql_sql_db_sync_task_properties.py | 68 - ...get_sql_sql_db_sync_task_properties_py3.py | 68 - .../datamigration/models/connection_info.py | 50 - .../models/connection_info_py3.py | 50 - .../data_integrity_validation_result.py | 34 - .../data_integrity_validation_result_py3.py | 34 - .../data_item_migration_summary_result.py | 78 - .../data_item_migration_summary_result_py3.py | 78 - .../models/data_migration_error.py | 39 - .../models/data_migration_error_py3.py | 39 - .../models/data_migration_project_metadata.py | 72 - .../data_migration_project_metadata_py3.py | 72 - .../models/data_migration_service.py | 84 - .../models/data_migration_service_paged.py | 27 - .../models/data_migration_service_py3.py | 84 - .../data_migration_service_status_response.py | 43 - ...a_migration_service_status_response_py3.py | 43 - .../mgmt/datamigration/models/database.py | 100 - .../models/database_backup_info.py | 74 - .../models/database_backup_info_py3.py | 74 - .../models/database_file_info.py | 53 - .../models/database_file_info_py3.py | 53 - .../models/database_file_input.py | 45 - .../models/database_file_input_py3.py | 45 - .../datamigration/models/database_info.py | 34 - .../datamigration/models/database_info_py3.py | 34 - .../models/database_object_name.py | 51 - .../models/database_object_name_py3.py | 51 - .../mgmt/datamigration/models/database_py3.py | 100 - .../models/database_summary_result.py | 74 - .../models/database_summary_result_py3.py | 74 - .../datamigration/models/database_table.py | 40 - .../models/database_table_py3.py | 40 - .../models/execution_statistics.py | 51 - .../models/execution_statistics_py3.py | 51 - .../mgmt/datamigration/models/file_share.py | 43 - .../datamigration/models/file_share_py3.py | 43 - .../datamigration/models/file_storage_info.py | 32 - .../models/file_storage_info_py3.py | 32 - .../get_project_details_non_sql_task_input.py | 40 - ..._project_details_non_sql_task_input_py3.py | 40 - .../get_tde_certificates_sql_task_input.py | 47 - ...get_tde_certificates_sql_task_input_py3.py | 47 - .../get_tde_certificates_sql_task_output.py | 42 - ...et_tde_certificates_sql_task_output_py3.py | 42 - ...et_tde_certificates_sql_task_properties.py | 68 - ...de_certificates_sql_task_properties_py3.py | 68 - .../get_user_tables_sql_sync_task_input.py | 55 - ...get_user_tables_sql_sync_task_input_py3.py | 55 - .../get_user_tables_sql_sync_task_output.py | 57 - ...et_user_tables_sql_sync_task_output_py3.py | 57 - ...et_user_tables_sql_sync_task_properties.py | 68 - ...ser_tables_sql_sync_task_properties_py3.py | 68 - .../models/get_user_tables_sql_task_input.py | 41 - .../get_user_tables_sql_task_input_py3.py | 41 - .../models/get_user_tables_sql_task_output.py | 48 - .../get_user_tables_sql_task_output_py3.py | 48 - .../get_user_tables_sql_task_properties.py | 67 - ...get_user_tables_sql_task_properties_py3.py | 67 - .../models/mi_sql_connection_info.py | 47 - .../models/mi_sql_connection_info_py3.py | 47 - .../migrate_mi_sync_complete_command_input.py | 35 - ...rate_mi_sync_complete_command_input_py3.py | 35 - ...migrate_mi_sync_complete_command_output.py | 29 - ...ate_mi_sync_complete_command_output_py3.py | 29 - ...ate_mi_sync_complete_command_properties.py | 59 - ...mi_sync_complete_command_properties_py3.py | 59 - .../migrate_mongo_db_task_properties.py | 65 - .../migrate_mongo_db_task_properties_py3.py | 65 - ...azure_db_for_my_sql_sync_database_input.py | 49 - ...e_db_for_my_sql_sync_database_input_py3.py | 49 - ...sql_azure_db_for_my_sql_sync_task_input.py | 50 - ...azure_db_for_my_sql_sync_task_input_py3.py | 50 - ...ql_azure_db_for_my_sql_sync_task_output.py | 54 - ..._my_sql_sync_task_output_database_error.py | 50 - ...sql_sync_task_output_database_error_py3.py | 50 - ..._my_sql_sync_task_output_database_level.py | 121 - ...sql_sync_task_output_database_level_py3.py | 121 - ...re_db_for_my_sql_sync_task_output_error.py | 46 - ...b_for_my_sql_sync_task_output_error_py3.py | 46 - ...my_sql_sync_task_output_migration_level.py | 71 - ...ql_sync_task_output_migration_level_py3.py | 71 - ...zure_db_for_my_sql_sync_task_output_py3.py | 54 - ...for_my_sql_sync_task_output_table_level.py | 109 - ...my_sql_sync_task_output_table_level_py3.py | 109 - ...zure_db_for_my_sql_sync_task_properties.py | 68 - ..._db_for_my_sql_sync_task_properties_py3.py | 68 - ..._db_for_postgre_sql_sync_database_input.py | 49 - ...for_postgre_sql_sync_database_input_py3.py | 49 - ...zure_db_for_postgre_sql_sync_task_input.py | 50 - ..._db_for_postgre_sql_sync_task_input_py3.py | 50 - ...ure_db_for_postgre_sql_sync_task_output.py | 55 - ...gre_sql_sync_task_output_database_error.py | 50 - ...sql_sync_task_output_database_error_py3.py | 50 - ...gre_sql_sync_task_output_database_level.py | 121 - ...sql_sync_task_output_database_level_py3.py | 121 - ..._for_postgre_sql_sync_task_output_error.py | 46 - ..._postgre_sql_sync_task_output_error_py3.py | 46 - ...re_sql_sync_task_output_migration_level.py | 71 - ...ql_sync_task_output_migration_level_py3.py | 71 - ...db_for_postgre_sql_sync_task_output_py3.py | 55 - ...ostgre_sql_sync_task_output_table_level.py | 109 - ...re_sql_sync_task_output_table_level_py3.py | 109 - ...db_for_postgre_sql_sync_task_properties.py | 68 - ...or_postgre_sql_sync_task_properties_py3.py | 68 - ...schema_sql_server_sql_db_database_input.py | 37 - ...ma_sql_server_sql_db_database_input_py3.py | 37 - ...ate_schema_sql_server_sql_db_task_input.py | 48 - ...schema_sql_server_sql_db_task_input_py3.py | 48 - ...te_schema_sql_server_sql_db_task_output.py | 52 - ...erver_sql_db_task_output_database_level.py | 102 - ...r_sql_db_task_output_database_level_py3.py | 102 - ...ema_sql_server_sql_db_task_output_error.py | 51 - ...sql_server_sql_db_task_output_error_py3.py | 51 - ...rver_sql_db_task_output_migration_level.py | 78 - ..._sql_db_task_output_migration_level_py3.py | 78 - ...chema_sql_server_sql_db_task_output_py3.py | 52 - ...chema_sql_server_sql_db_task_properties.py | 68 - ...a_sql_server_sql_db_task_properties_py3.py | 68 - .../migrate_schema_sql_task_output_error.py | 46 - ...igrate_schema_sql_task_output_error_py3.py | 46 - ...igrate_sql_server_sql_db_database_input.py | 43 - ...te_sql_server_sql_db_database_input_py3.py | 43 - ...e_sql_server_sql_db_sync_database_input.py | 60 - ...l_server_sql_db_sync_database_input_py3.py | 60 - ...grate_sql_server_sql_db_sync_task_input.py | 53 - ...e_sql_server_sql_db_sync_task_input_py3.py | 53 - ...rate_sql_server_sql_db_sync_task_output.py | 54 - ..._sql_db_sync_task_output_database_error.py | 50 - ..._db_sync_task_output_database_error_py3.py | 50 - ..._sql_db_sync_task_output_database_level.py | 121 - ..._db_sync_task_output_database_level_py3.py | 121 - ...ql_server_sql_db_sync_task_output_error.py | 46 - ...erver_sql_db_sync_task_output_error_py3.py | 46 - ...sql_db_sync_task_output_migration_level.py | 76 - ...db_sync_task_output_migration_level_py3.py | 76 - ..._sql_server_sql_db_sync_task_output_py3.py | 54 - ...ver_sql_db_sync_task_output_table_level.py | 109 - ...sql_db_sync_task_output_table_level_py3.py | 109 - ..._sql_server_sql_db_sync_task_properties.py | 68 - ..._server_sql_db_sync_task_properties_py3.py | 68 - .../migrate_sql_server_sql_db_task_input.py | 63 - ...igrate_sql_server_sql_db_task_input_py3.py | 63 - .../migrate_sql_server_sql_db_task_output.py | 53 - ...erver_sql_db_task_output_database_level.py | 120 - ...r_sql_db_task_output_database_level_py3.py | 120 - ...ate_sql_server_sql_db_task_output_error.py | 46 - ...sql_server_sql_db_task_output_error_py3.py | 46 - ...rver_sql_db_task_output_migration_level.py | 123 - ..._sql_db_task_output_migration_level_py3.py | 123 - ...grate_sql_server_sql_db_task_output_py3.py | 53 - ...l_server_sql_db_task_output_table_level.py | 89 - ...rver_sql_db_task_output_table_level_py3.py | 89 - ...grate_sql_server_sql_db_task_properties.py | 68 - ...e_sql_server_sql_db_task_properties_py3.py | 68 - ...igrate_sql_server_sql_mi_database_input.py | 51 - ...te_sql_server_sql_mi_database_input_py3.py | 51 - ...grate_sql_server_sql_mi_sync_task_input.py | 62 - ...e_sql_server_sql_mi_sync_task_input_py3.py | 62 - ...rate_sql_server_sql_mi_sync_task_output.py | 52 - ..._sql_mi_sync_task_output_database_level.py | 108 - ..._mi_sync_task_output_database_level_py3.py | 108 - ...ql_server_sql_mi_sync_task_output_error.py | 46 - ...erver_sql_mi_sync_task_output_error_py3.py | 46 - ...sql_mi_sync_task_output_migration_level.py | 97 - ...mi_sync_task_output_migration_level_py3.py | 97 - ..._sql_server_sql_mi_sync_task_output_py3.py | 52 - ..._sql_server_sql_mi_sync_task_properties.py | 68 - ..._server_sql_mi_sync_task_properties_py3.py | 68 - .../migrate_sql_server_sql_mi_task_input.py | 74 - ...igrate_sql_server_sql_mi_task_input_py3.py | 74 - .../migrate_sql_server_sql_mi_task_output.py | 54 - ...rver_sql_mi_task_output_agent_job_level.py | 78 - ..._sql_mi_task_output_agent_job_level_py3.py | 78 - ...erver_sql_mi_task_output_database_level.py | 85 - ...r_sql_mi_task_output_database_level_py3.py | 85 - ...ate_sql_server_sql_mi_task_output_error.py | 46 - ...sql_server_sql_mi_task_output_error_py3.py | 46 - ...l_server_sql_mi_task_output_login_level.py | 83 - ...rver_sql_mi_task_output_login_level_py3.py | 83 - ...rver_sql_mi_task_output_migration_level.py | 124 - ..._sql_mi_task_output_migration_level_py3.py | 124 - ...grate_sql_server_sql_mi_task_output_py3.py | 54 - ...grate_sql_server_sql_mi_task_properties.py | 68 - ...e_sql_server_sql_mi_task_properties_py3.py | 68 - ...te_sql_server_sql_server_database_input.py | 41 - ...ql_server_sql_server_database_input_py3.py | 41 - .../migrate_sync_complete_command_input.py | 38 - ...migrate_sync_complete_command_input_py3.py | 38 - .../migrate_sync_complete_command_output.py | 41 - ...igrate_sync_complete_command_output_py3.py | 41 - ...igrate_sync_complete_command_properties.py | 58 - ...te_sync_complete_command_properties_py3.py | 58 - .../models/migration_eligibility_info.py | 42 - .../models/migration_eligibility_info_py3.py | 42 - .../models/migration_report_result.py | 33 - .../models/migration_report_result_py3.py | 33 - .../models/migration_table_metadata.py | 40 - .../models/migration_table_metadata_py3.py | 40 - ...ration_validation_database_level_result.py | 88 - ...on_validation_database_level_result_py3.py | 88 - ...tion_validation_database_summary_result.py | 67 - ..._validation_database_summary_result_py3.py | 67 - .../models/migration_validation_options.py | 42 - .../migration_validation_options_py3.py | 42 - .../models/migration_validation_result.py | 53 - .../models/migration_validation_result_py3.py | 53 - .../models/mongo_db_cancel_command.py | 51 - .../models/mongo_db_cancel_command_py3.py | 51 - .../models/mongo_db_cluster_info.py | 53 - .../models/mongo_db_cluster_info_py3.py | 53 - .../models/mongo_db_collection_info.py | 94 - .../models/mongo_db_collection_info_py3.py | 94 - .../models/mongo_db_collection_progress.py | 101 - .../mongo_db_collection_progress_py3.py | 101 - .../models/mongo_db_collection_settings.py | 38 - .../mongo_db_collection_settings_py3.py | 38 - .../models/mongo_db_command_input.py | 30 - .../models/mongo_db_command_input_py3.py | 30 - .../models/mongo_db_connection_info.py | 47 - .../models/mongo_db_connection_info_py3.py | 47 - .../models/mongo_db_database_info.py | 67 - .../models/mongo_db_database_info_py3.py | 67 - .../models/mongo_db_database_progress.py | 107 - .../models/mongo_db_database_progress_py3.py | 107 - .../models/mongo_db_database_settings.py | 43 - .../models/mongo_db_database_settings_py3.py | 43 - .../datamigration/models/mongo_db_error.py | 43 - .../models/mongo_db_error_py3.py | 43 - .../models/mongo_db_finish_command.py | 51 - .../models/mongo_db_finish_command_input.py | 40 - .../mongo_db_finish_command_input_py3.py | 40 - .../models/mongo_db_finish_command_py3.py | 51 - .../models/mongo_db_migration_progress.py | 107 - .../models/mongo_db_migration_progress_py3.py | 107 - .../models/mongo_db_migration_settings.py | 67 - .../models/mongo_db_migration_settings_py3.py | 67 - .../models/mongo_db_object_info.py | 58 - .../models/mongo_db_object_info_py3.py | 58 - .../datamigration/models/mongo_db_progress.py | 115 - .../models/mongo_db_progress_py3.py | 115 - .../models/mongo_db_restart_command.py | 51 - .../models/mongo_db_restart_command_py3.py | 51 - .../models/mongo_db_shard_key_field.py | 40 - .../models/mongo_db_shard_key_field_py3.py | 40 - .../models/mongo_db_shard_key_info.py | 39 - .../models/mongo_db_shard_key_info_py3.py | 39 - .../models/mongo_db_shard_key_setting.py | 39 - .../models/mongo_db_shard_key_setting_py3.py | 39 - .../models/mongo_db_throttling_settings.py | 39 - .../mongo_db_throttling_settings_py3.py | 39 - .../models/my_sql_connection_info.py | 50 - .../models/my_sql_connection_info_py3.py | 50 - .../models/name_availability_request.py | 32 - .../models/name_availability_request_py3.py | 32 - .../models/name_availability_response.py | 40 - .../models/name_availability_response_py3.py | 40 - .../models/non_sql_data_migration_table.py | 28 - .../non_sql_data_migration_table_py3.py | 28 - .../non_sql_data_migration_table_result.py | 68 - ...non_sql_data_migration_table_result_py3.py | 68 - .../models/non_sql_migration_task_input.py | 59 - .../non_sql_migration_task_input_py3.py | 59 - .../models/non_sql_migration_task_output.py | 75 - .../non_sql_migration_task_output_py3.py | 75 - .../mgmt/datamigration/models/odata_error.py | 37 - .../datamigration/models/odata_error_py3.py | 37 - .../models/orphaned_user_info.py | 32 - .../models/orphaned_user_info_py3.py | 32 - .../models/postgre_sql_connection_info.py | 54 - .../models/postgre_sql_connection_info_py3.py | 54 - .../mgmt/datamigration/models/project.py | 93 - .../mgmt/datamigration/models/project_file.py | 50 - .../models/project_file_paged.py | 27 - .../models/project_file_properties.py | 55 - .../models/project_file_properties_py3.py | 55 - .../datamigration/models/project_file_py3.py | 50 - .../datamigration/models/project_paged.py | 27 - .../mgmt/datamigration/models/project_py3.py | 93 - .../mgmt/datamigration/models/project_task.py | 50 - .../models/project_task_paged.py | 27 - .../models/project_task_properties.py | 89 - .../models/project_task_properties_py3.py | 89 - .../datamigration/models/project_task_py3.py | 50 - .../query_analysis_validation_result.py | 33 - .../query_analysis_validation_result_py3.py | 33 - .../models/query_execution_result.py | 40 - .../models/query_execution_result_py3.py | 40 - .../azure/mgmt/datamigration/models/quota.py | 47 - .../mgmt/datamigration/models/quota_name.py | 32 - .../datamigration/models/quota_name_py3.py | 32 - .../mgmt/datamigration/models/quota_paged.py | 27 - .../mgmt/datamigration/models/quota_py3.py | 47 - .../models/reportable_exception.py | 49 - .../models/reportable_exception_py3.py | 49 - .../mgmt/datamigration/models/resource.py | 45 - .../mgmt/datamigration/models/resource_py3.py | 45 - .../mgmt/datamigration/models/resource_sku.py | 93 - .../models/resource_sku_capabilities.py | 40 - .../models/resource_sku_capabilities_py3.py | 40 - .../models/resource_sku_capacity.py | 52 - .../models/resource_sku_capacity_py3.py | 52 - .../models/resource_sku_costs.py | 45 - .../models/resource_sku_costs_py3.py | 45 - .../models/resource_sku_paged.py | 27 - .../datamigration/models/resource_sku_py3.py | 93 - .../models/resource_sku_restrictions.py | 49 - .../models/resource_sku_restrictions_py3.py | 49 - .../schema_comparison_validation_result.py | 43 - ...schema_comparison_validation_result_py3.py | 43 - ...chema_comparison_validation_result_type.py | 40 - ...a_comparison_validation_result_type_py3.py | 40 - .../models/schema_migration_setting.py | 35 - .../models/schema_migration_setting_py3.py | 35 - .../models/selected_certificate_input.py | 40 - .../models/selected_certificate_input_py3.py | 40 - .../datamigration/models/server_properties.py | 60 - .../models/server_properties_py3.py | 60 - .../datamigration/models/service_operation.py | 33 - .../models/service_operation_display.py | 40 - .../models/service_operation_display_py3.py | 40 - .../models/service_operation_paged.py | 27 - .../models/service_operation_py3.py | 33 - .../mgmt/datamigration/models/service_sku.py | 49 - .../datamigration/models/service_sku_py3.py | 49 - .../models/sql_connection_info.py | 72 - .../models/sql_connection_info_py3.py | 72 - .../models/sql_migration_task_input.py | 43 - .../models/sql_migration_task_input_py3.py | 43 - .../sql_server_sql_mi_sync_task_input.py | 68 - .../sql_server_sql_mi_sync_task_input_py3.py | 68 - ...t_migration_scenario_server_role_result.py | 47 - ...gration_scenario_server_role_result_py3.py | 47 - .../sync_migration_database_error_event.py | 45 - ...sync_migration_database_error_event_py3.py | 45 - .../datamigration/models/tracked_resource.py | 53 - .../models/tracked_resource_py3.py | 53 - ..._sql_server_sql_db_sync_task_properties.py | 68 - ..._server_sql_db_sync_task_properties_py3.py | 68 - ...input_sql_server_sql_mi_sync_task_input.py | 62 - ...t_sql_server_sql_mi_sync_task_input_py3.py | 62 - ...nput_sql_server_sql_mi_sync_task_output.py | 47 - ..._sql_server_sql_mi_sync_task_output_py3.py | 47 - ..._sql_server_sql_mi_sync_task_properties.py | 68 - ..._server_sql_mi_sync_task_properties_py3.py | 68 - ...tion_input_sql_server_sql_mi_task_input.py | 71 - ..._input_sql_server_sql_mi_task_input_py3.py | 71 - ...ion_input_sql_server_sql_mi_task_output.py | 81 - ...input_sql_server_sql_mi_task_output_py3.py | 81 - ...input_sql_server_sql_mi_task_properties.py | 68 - ...t_sql_server_sql_mi_task_properties_py3.py | 68 - .../validate_mongo_db_task_properties.py | 67 - .../validate_mongo_db_task_properties_py3.py | 67 - ...c_migration_input_sql_server_task_input.py | 49 - ...gration_input_sql_server_task_input_py3.py | 49 - ..._migration_input_sql_server_task_output.py | 46 - ...ration_input_sql_server_task_output_py3.py | 46 - .../datamigration/models/validation_error.py | 33 - .../models/validation_error_py3.py | 33 - .../datamigration/models/wait_statistics.py | 37 - .../models/wait_statistics_py3.py | 37 - .../mgmt/datamigration/operations/__init__.py | 16 +- ...les_operations.py => _files_operations.py} | 21 +- .../{operations.py => _operations.py} | 16 +- ..._operations.py => _projects_operations.py} | 19 +- ...ations.py => _resource_skus_operations.py} | 16 +- .../operations/_service_tasks_operations.py | 485 + ..._operations.py => _services_operations.py} | 48 +- ...sks_operations.py => _tasks_operations.py} | 21 +- ...es_operations.py => _usages_operations.py} | 16 +- .../azure/mgmt/datamigration/version.py | 3 +- .../azure-mgmt-datamigration/setup.py | 1 - 463 files changed, 24710 insertions(+), 26338 deletions(-) create mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/{data_migration_service_client.py => _data_migration_service_client.py} (65%) rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/{data_migration_service_client_enums.py => _data_migration_service_client_enums.py} (100%) create mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_paged_models.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_database_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_database_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_table_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_table_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_paged.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics_py3.py rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/{files_operations.py => _files_operations.py} (98%) rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/{operations.py => _operations.py} (90%) rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/{projects_operations.py => _projects_operations.py} (97%) rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/{resource_skus_operations.py => _resource_skus_operations.py} (91%) create mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/{services_operations.py => _services_operations.py} (98%) rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/{tasks_operations.py => _tasks_operations.py} (98%) rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/{usages_operations.py => _usages_operations.py} (91%) diff --git a/sdk/datamigration/azure-mgmt-datamigration/HISTORY.rst b/sdk/datamigration/azure-mgmt-datamigration/HISTORY.rst index 7eedeee1c212..41da9e7ca363 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/HISTORY.rst +++ b/sdk/datamigration/azure-mgmt-datamigration/HISTORY.rst @@ -3,6 +3,23 @@ Release History =============== +3.0.0 (2019-07-12) ++++++:w+++++++++++++ + +**Features** + +- Added operation group ServiceTasksOperations + + +**General Breaking changes** + +This version uses a next-generation code generator that might introduce breaking changes if from some import. In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place. +DataMigrationServiceManagementClient cannot be imported from azure.mgmt.datamigration.data_migration_service_client anymore (import from azure.mgmt.datamigration works like before) +DataMigrationServiceManagementClientConfiguration import has been moved from azure.mgmt.datamigration.data_migration_service_management_client to azure.mgmt.datamigration +A model MyClass from a "models" sub-module cannot be imported anymore using azure.mgmt.datamigration.models.my_class (import from azure.mgmt.datamigration.models works like before) +An operation class MyClassOperations from an operations sub-module cannot be imported anymore using azure.mgmt.datamigration.operations.my_class_operations (import from azure.mgmt.datamigration.operations works like before) +Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process. + 2.2.0 (2019-05-21) ++++++++++++++++++ diff --git a/sdk/datamigration/azure-mgmt-datamigration/README.rst b/sdk/datamigration/azure-mgmt-datamigration/README.rst index 1bdbd770f51b..950750f2f897 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/README.rst +++ b/sdk/datamigration/azure-mgmt-datamigration/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure Data Migration Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py index 50b17677a35b..5a5dc56421e3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .data_migration_service_client import DataMigrationServiceClient -from .version import VERSION +from ._configuration import DataMigrationServiceClientConfiguration +from ._data_migration_service_client import DataMigrationServiceClient +__all__ = ['DataMigrationServiceClient', 'DataMigrationServiceClientConfiguration'] -__all__ = ['DataMigrationServiceClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py new file mode 100644 index 000000000000..2d5f7085ebf6 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py @@ -0,0 +1,48 @@ +# 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 msrestazure import AzureConfiguration + +from .version import VERSION + + +class DataMigrationServiceClientConfiguration(AzureConfiguration): + """Configuration for DataMigrationServiceClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Identifier of the subscription + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(DataMigrationServiceClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-datamigration/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id 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 similarity index 65% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/data_migration_service_client.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_service_client.py index 950af65a2bb7..7afc2ba06307 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 @@ -11,48 +11,17 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.resource_skus_operations import ResourceSkusOperations -from .operations.services_operations import ServicesOperations -from .operations.tasks_operations import TasksOperations -from .operations.projects_operations import ProjectsOperations -from .operations.usages_operations import UsagesOperations -from .operations.operations import Operations -from .operations.files_operations import FilesOperations -from . import models - - -class DataMigrationServiceClientConfiguration(AzureConfiguration): - """Configuration for DataMigrationServiceClient - Note that all parameters used to create this instance are saved as instance - attributes. - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Identifier of the subscription - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(DataMigrationServiceClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-datamigration/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import DataMigrationServiceClientConfiguration +from .operations import ResourceSkusOperations +from .operations import ServicesOperations +from .operations import TasksOperations +from .operations import ServiceTasksOperations +from .operations import ProjectsOperations +from .operations import UsagesOperations +from .operations import Operations +from .operations import FilesOperations +from . import models class DataMigrationServiceClient(SDKClient): @@ -67,6 +36,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 +72,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..d91a847735ef 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 @@ -10,450 +10,520 @@ # -------------------------------------------------------------------------- try: - from .tracked_resource_py3 import TrackedResource - from .resource_py3 import Resource - from .project_file_properties_py3 import ProjectFileProperties - from .project_file_py3 import ProjectFile - from .odata_error_py3 import ODataError - from .reportable_exception_py3 import ReportableException - from .migrate_mi_sync_complete_command_output_py3 import MigrateMISyncCompleteCommandOutput - from .migrate_mi_sync_complete_command_input_py3 import MigrateMISyncCompleteCommandInput - from .migrate_mi_sync_complete_command_properties_py3 import MigrateMISyncCompleteCommandProperties - from .migrate_sync_complete_command_output_py3 import MigrateSyncCompleteCommandOutput - from .migrate_sync_complete_command_input_py3 import MigrateSyncCompleteCommandInput - from .migrate_sync_complete_command_properties_py3 import MigrateSyncCompleteCommandProperties - from .command_properties_py3 import CommandProperties - from .get_tde_certificates_sql_task_output_py3 import GetTdeCertificatesSqlTaskOutput - from .selected_certificate_input_py3 import SelectedCertificateInput - from .file_share_py3 import FileShare - from .mi_sql_connection_info_py3 import MiSqlConnectionInfo - from .postgre_sql_connection_info_py3 import PostgreSqlConnectionInfo - 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 .mongo_db_error_py3 import MongoDbError - from .mongo_db_collection_progress_py3 import MongoDbCollectionProgress - from .mongo_db_database_progress_py3 import MongoDbDatabaseProgress - from .mongo_db_progress_py3 import MongoDbProgress - from .mongo_db_migration_progress_py3 import MongoDbMigrationProgress - from .mongo_db_throttling_settings_py3 import MongoDbThrottlingSettings - from .mongo_db_shard_key_field_py3 import MongoDbShardKeyField - from .mongo_db_shard_key_setting_py3 import MongoDbShardKeySetting - from .mongo_db_collection_settings_py3 import MongoDbCollectionSettings - from .mongo_db_database_settings_py3 import MongoDbDatabaseSettings - from .mongo_db_migration_settings_py3 import MongoDbMigrationSettings - from .validate_mongo_db_task_properties_py3 import ValidateMongoDbTaskProperties - from .validate_migration_input_sql_server_sql_mi_sync_task_output_py3 import ValidateMigrationInputSqlServerSqlMISyncTaskOutput - from .azure_active_directory_app_py3 import AzureActiveDirectoryApp - from .migrate_sql_server_sql_mi_database_input_py3 import MigrateSqlServerSqlMIDatabaseInput - from .sql_server_sql_mi_sync_task_input_py3 import SqlServerSqlMISyncTaskInput - from .validate_migration_input_sql_server_sql_mi_sync_task_input_py3 import ValidateMigrationInputSqlServerSqlMISyncTaskInput - from .validate_migration_input_sql_server_sql_mi_sync_task_properties_py3 import ValidateMigrationInputSqlServerSqlMISyncTaskProperties - from .database_backup_info_py3 import DatabaseBackupInfo - from .validate_migration_input_sql_server_sql_mi_task_output_py3 import ValidateMigrationInputSqlServerSqlMITaskOutput - from .blob_share_py3 import BlobShare - from .validate_migration_input_sql_server_sql_mi_task_input_py3 import ValidateMigrationInputSqlServerSqlMITaskInput - from .validate_migration_input_sql_server_sql_mi_task_properties_py3 import ValidateMigrationInputSqlServerSqlMITaskProperties - from .validate_sync_migration_input_sql_server_task_output_py3 import ValidateSyncMigrationInputSqlServerTaskOutput - from .migrate_sql_server_sql_db_sync_database_input_py3 import MigrateSqlServerSqlDbSyncDatabaseInput - 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_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 - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_error_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputError - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutput - from .migrate_my_sql_azure_db_for_my_sql_sync_database_input_py3 import MigrateMySqlAzureDbForMySqlSyncDatabaseInput - from .migrate_my_sql_azure_db_for_my_sql_sync_task_input_py3 import MigrateMySqlAzureDbForMySqlSyncTaskInput - from .migrate_my_sql_azure_db_for_my_sql_sync_task_properties_py3 import MigrateMySqlAzureDbForMySqlSyncTaskProperties - from .migrate_sql_server_sql_db_sync_task_output_database_error_py3 import MigrateSqlServerSqlDbSyncTaskOutputDatabaseError - from .migrate_sql_server_sql_db_sync_task_output_error_py3 import MigrateSqlServerSqlDbSyncTaskOutputError - from .migrate_sql_server_sql_db_sync_task_output_table_level_py3 import MigrateSqlServerSqlDbSyncTaskOutputTableLevel - from .migrate_sql_server_sql_db_sync_task_output_database_level_py3 import MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel - from .migrate_sql_server_sql_db_sync_task_output_migration_level_py3 import MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel - from .migrate_sql_server_sql_db_sync_task_output_py3 import MigrateSqlServerSqlDbSyncTaskOutput - from .sql_migration_task_input_py3 import SqlMigrationTaskInput - from .migration_validation_options_py3 import MigrationValidationOptions - from .migrate_sql_server_sql_db_sync_task_input_py3 import MigrateSqlServerSqlDbSyncTaskInput - from .migrate_sql_server_sql_db_sync_task_properties_py3 import MigrateSqlServerSqlDbSyncTaskProperties - from .validation_error_py3 import ValidationError - from .wait_statistics_py3 import WaitStatistics - from .execution_statistics_py3 import ExecutionStatistics - from .query_execution_result_py3 import QueryExecutionResult - from .query_analysis_validation_result_py3 import QueryAnalysisValidationResult - from .schema_comparison_validation_result_type_py3 import SchemaComparisonValidationResultType - from .schema_comparison_validation_result_py3 import SchemaComparisonValidationResult - from .data_integrity_validation_result_py3 import DataIntegrityValidationResult - from .migration_validation_database_level_result_py3 import MigrationValidationDatabaseLevelResult - from .migration_validation_database_summary_result_py3 import MigrationValidationDatabaseSummaryResult - from .migration_validation_result_py3 import MigrationValidationResult - from .migrate_sql_server_sql_db_task_output_error_py3 import MigrateSqlServerSqlDbTaskOutputError - from .migrate_sql_server_sql_db_task_output_table_level_py3 import MigrateSqlServerSqlDbTaskOutputTableLevel - from .data_item_migration_summary_result_py3 import DataItemMigrationSummaryResult - from .migrate_sql_server_sql_db_task_output_database_level_py3 import MigrateSqlServerSqlDbTaskOutputDatabaseLevel - from .migration_report_result_py3 import MigrationReportResult - from .database_summary_result_py3 import DatabaseSummaryResult - from .migrate_sql_server_sql_db_task_output_migration_level_py3 import MigrateSqlServerSqlDbTaskOutputMigrationLevel - from .migrate_sql_server_sql_db_task_output_py3 import MigrateSqlServerSqlDbTaskOutput - from .migrate_sql_server_sql_db_database_input_py3 import MigrateSqlServerSqlDbDatabaseInput - from .migrate_sql_server_sql_db_task_input_py3 import MigrateSqlServerSqlDbTaskInput - from .migrate_sql_server_sql_db_task_properties_py3 import MigrateSqlServerSqlDbTaskProperties - from .migrate_sql_server_sql_mi_sync_task_output_error_py3 import MigrateSqlServerSqlMISyncTaskOutputError - from .backup_file_info_py3 import BackupFileInfo - from .backup_set_info_py3 import BackupSetInfo - from .migrate_sql_server_sql_mi_sync_task_output_database_level_py3 import MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel - from .migrate_sql_server_sql_mi_sync_task_output_migration_level_py3 import MigrateSqlServerSqlMISyncTaskOutputMigrationLevel - from .migrate_sql_server_sql_mi_sync_task_output_py3 import MigrateSqlServerSqlMISyncTaskOutput - from .migrate_sql_server_sql_mi_sync_task_input_py3 import MigrateSqlServerSqlMISyncTaskInput - from .migrate_sql_server_sql_mi_sync_task_properties_py3 import MigrateSqlServerSqlMISyncTaskProperties - from .migrate_sql_server_sql_mi_task_output_error_py3 import MigrateSqlServerSqlMITaskOutputError - from .migrate_sql_server_sql_mi_task_output_login_level_py3 import MigrateSqlServerSqlMITaskOutputLoginLevel - from .migrate_sql_server_sql_mi_task_output_agent_job_level_py3 import MigrateSqlServerSqlMITaskOutputAgentJobLevel - from .migrate_sql_server_sql_mi_task_output_database_level_py3 import MigrateSqlServerSqlMITaskOutputDatabaseLevel - from .orphaned_user_info_py3 import OrphanedUserInfo - from .start_migration_scenario_server_role_result_py3 import StartMigrationScenarioServerRoleResult - from .migrate_sql_server_sql_mi_task_output_migration_level_py3 import MigrateSqlServerSqlMITaskOutputMigrationLevel - from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput - from .migrate_sql_server_sql_mi_task_input_py3 import MigrateSqlServerSqlMITaskInput - from .migrate_sql_server_sql_mi_task_properties_py3 import MigrateSqlServerSqlMITaskProperties - from .migrate_mongo_db_task_properties_py3 import MigrateMongoDbTaskProperties - from .connect_to_target_azure_db_for_my_sql_task_output_py3 import ConnectToTargetAzureDbForMySqlTaskOutput - from .connect_to_target_azure_db_for_my_sql_task_input_py3 import ConnectToTargetAzureDbForMySqlTaskInput - from .connect_to_target_azure_db_for_my_sql_task_properties_py3 import ConnectToTargetAzureDbForMySqlTaskProperties - from .connect_to_target_sql_mi_sync_task_output_py3 import ConnectToTargetSqlMISyncTaskOutput - from .connect_to_target_sql_mi_sync_task_input_py3 import ConnectToTargetSqlMISyncTaskInput - from .connect_to_target_sql_mi_sync_task_properties_py3 import ConnectToTargetSqlMISyncTaskProperties - from .connect_to_target_sql_mi_task_output_py3 import ConnectToTargetSqlMITaskOutput - from .connect_to_target_sql_mi_task_input_py3 import ConnectToTargetSqlMITaskInput - from .connect_to_target_sql_mi_task_properties_py3 import ConnectToTargetSqlMITaskProperties - from .database_table_py3 import DatabaseTable - from .get_user_tables_sql_sync_task_output_py3 import GetUserTablesSqlSyncTaskOutput - from .get_user_tables_sql_sync_task_input_py3 import GetUserTablesSqlSyncTaskInput - from .get_user_tables_sql_sync_task_properties_py3 import GetUserTablesSqlSyncTaskProperties - 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_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 - from .connect_to_target_sql_db_task_output_py3 import ConnectToTargetSqlDbTaskOutput - from .connect_to_target_sql_sql_db_sync_task_input_py3 import ConnectToTargetSqlSqlDbSyncTaskInput - 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_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 - from .migration_eligibility_info_py3 import MigrationEligibilityInfo - from .connect_to_source_sql_server_task_output_agent_job_level_py3 import ConnectToSourceSqlServerTaskOutputAgentJobLevel - from .connect_to_source_sql_server_task_output_login_level_py3 import ConnectToSourceSqlServerTaskOutputLoginLevel - from .database_file_info_py3 import DatabaseFileInfo - from .connect_to_source_sql_server_task_output_database_level_py3 import ConnectToSourceSqlServerTaskOutputDatabaseLevel - from .connect_to_source_sql_server_task_output_task_level_py3 import ConnectToSourceSqlServerTaskOutputTaskLevel - from .connect_to_source_sql_server_task_output_py3 import ConnectToSourceSqlServerTaskOutput - from .connect_to_source_sql_server_task_input_py3 import ConnectToSourceSqlServerTaskInput - from .connect_to_source_sql_server_sync_task_properties_py3 import ConnectToSourceSqlServerSyncTaskProperties - from .connect_to_source_sql_server_task_properties_py3 import ConnectToSourceSqlServerTaskProperties - from .mongo_db_shard_key_info_py3 import MongoDbShardKeyInfo - from .mongo_db_collection_info_py3 import MongoDbCollectionInfo - from .mongo_db_object_info_py3 import MongoDbObjectInfo - from .mongo_db_database_info_py3 import MongoDbDatabaseInfo - from .mongo_db_cluster_info_py3 import MongoDbClusterInfo - from .connect_to_mongo_db_task_properties_py3 import ConnectToMongoDbTaskProperties - from .project_task_properties_py3 import ProjectTaskProperties - from .project_task_py3 import ProjectTask - from .service_sku_py3 import ServiceSku - from .data_migration_service_py3 import DataMigrationService - from .name_availability_request_py3 import NameAvailabilityRequest - from .database_info_py3 import DatabaseInfo - from .project_py3 import Project - from .api_error_py3 import ApiError, ApiErrorException - from .file_storage_info_py3 import FileStorageInfo - from .service_operation_display_py3 import ServiceOperationDisplay - from .service_operation_py3 import ServiceOperation - from .quota_name_py3 import QuotaName - from .quota_py3 import Quota - from .name_availability_response_py3 import NameAvailabilityResponse - from .available_service_sku_sku_py3 import AvailableServiceSkuSku - from .available_service_sku_capacity_py3 import AvailableServiceSkuCapacity - from .available_service_sku_py3 import AvailableServiceSku - from .data_migration_service_status_response_py3 import DataMigrationServiceStatusResponse - from .resource_sku_restrictions_py3 import ResourceSkuRestrictions - from .resource_sku_capabilities_py3 import ResourceSkuCapabilities - from .resource_sku_costs_py3 import ResourceSkuCosts - from .resource_sku_capacity_py3 import ResourceSkuCapacity - from .resource_sku_py3 import ResourceSku - from .connect_to_source_my_sql_task_input_py3 import ConnectToSourceMySqlTaskInput - from .server_properties_py3 import ServerProperties - from .connect_to_source_non_sql_task_output_py3 import ConnectToSourceNonSqlTaskOutput - from .connect_to_source_my_sql_task_properties_py3 import ConnectToSourceMySqlTaskProperties - from .schema_migration_setting_py3 import SchemaMigrationSetting - from .migrate_schema_sql_server_sql_db_database_input_py3 import MigrateSchemaSqlServerSqlDbDatabaseInput - from .migrate_schema_sql_server_sql_db_task_input_py3 import MigrateSchemaSqlServerSqlDbTaskInput - from .migrate_schema_sql_server_sql_db_task_output_py3 import MigrateSchemaSqlServerSqlDbTaskOutput - from .migrate_schema_sql_server_sql_db_task_properties_py3 import MigrateSchemaSqlServerSqlDbTaskProperties - from .migrate_schema_sql_server_sql_db_task_output_migration_level_py3 import MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel - from .migrate_schema_sql_server_sql_db_task_output_database_level_py3 import MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel - from .migrate_schema_sql_server_sql_db_task_output_error_py3 import MigrateSchemaSqlServerSqlDbTaskOutputError - from .migrate_schema_sql_task_output_error_py3 import MigrateSchemaSqlTaskOutputError - from .mongo_db_command_input_py3 import MongoDbCommandInput - from .mongo_db_cancel_command_py3 import MongoDbCancelCommand - 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 .database_py3 import Database - from .database_object_name_py3 import DatabaseObjectName - from .migration_table_metadata_py3 import MigrationTableMetadata - from .data_migration_project_metadata_py3 import DataMigrationProjectMetadata - from .get_project_details_non_sql_task_input_py3 import GetProjectDetailsNonSqlTaskInput - from .non_sql_data_migration_table_py3 import NonSqlDataMigrationTable - from .non_sql_migration_task_input_py3 import NonSqlMigrationTaskInput - from .data_migration_error_py3 import DataMigrationError - from .non_sql_data_migration_table_result_py3 import NonSqlDataMigrationTableResult - from .non_sql_migration_task_output_py3 import NonSqlMigrationTaskOutput - from .database_file_input_py3 import DatabaseFileInput - from .migrate_sql_server_sql_server_database_input_py3 import MigrateSqlServerSqlServerDatabaseInput + from ._models_py3 import ApiError, ApiErrorException + from ._models_py3 import AvailableServiceSku + from ._models_py3 import AvailableServiceSkuCapacity + from ._models_py3 import AvailableServiceSkuSku + from ._models_py3 import AzureActiveDirectoryApp + from ._models_py3 import BackupFileInfo + from ._models_py3 import BackupSetInfo + from ._models_py3 import BlobShare + from ._models_py3 import CheckOCIDriverTaskInput + from ._models_py3 import CheckOCIDriverTaskOutput + from ._models_py3 import CheckOCIDriverTaskProperties + from ._models_py3 import CommandProperties + from ._models_py3 import ConnectionInfo + from ._models_py3 import ConnectToMongoDbTaskProperties + from ._models_py3 import ConnectToSourceMySqlTaskInput + from ._models_py3 import ConnectToSourceMySqlTaskProperties + from ._models_py3 import ConnectToSourceNonSqlTaskOutput + from ._models_py3 import ConnectToSourceOracleSyncTaskInput + from ._models_py3 import ConnectToSourceOracleSyncTaskOutput + from ._models_py3 import ConnectToSourceOracleSyncTaskProperties + from ._models_py3 import ConnectToSourcePostgreSqlSyncTaskInput + from ._models_py3 import ConnectToSourcePostgreSqlSyncTaskOutput + from ._models_py3 import ConnectToSourcePostgreSqlSyncTaskProperties + from ._models_py3 import ConnectToSourceSqlServerSyncTaskProperties + from ._models_py3 import ConnectToSourceSqlServerTaskInput + from ._models_py3 import ConnectToSourceSqlServerTaskOutput + from ._models_py3 import ConnectToSourceSqlServerTaskOutputAgentJobLevel + from ._models_py3 import ConnectToSourceSqlServerTaskOutputDatabaseLevel + from ._models_py3 import ConnectToSourceSqlServerTaskOutputLoginLevel + from ._models_py3 import ConnectToSourceSqlServerTaskOutputTaskLevel + from ._models_py3 import ConnectToSourceSqlServerTaskProperties + from ._models_py3 import ConnectToTargetAzureDbForMySqlTaskInput + from ._models_py3 import ConnectToTargetAzureDbForMySqlTaskOutput + from ._models_py3 import ConnectToTargetAzureDbForMySqlTaskProperties + from ._models_py3 import ConnectToTargetAzureDbForPostgreSqlSyncTaskInput + from ._models_py3 import ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput + from ._models_py3 import ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties + from ._models_py3 import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput + from ._models_py3 import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput + from ._models_py3 import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem + from ._models_py3 import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties + from ._models_py3 import ConnectToTargetSqlDbTaskInput + from ._models_py3 import ConnectToTargetSqlDbTaskOutput + from ._models_py3 import ConnectToTargetSqlDbTaskProperties + from ._models_py3 import ConnectToTargetSqlMISyncTaskInput + from ._models_py3 import ConnectToTargetSqlMISyncTaskOutput + from ._models_py3 import ConnectToTargetSqlMISyncTaskProperties + from ._models_py3 import ConnectToTargetSqlMITaskInput + from ._models_py3 import ConnectToTargetSqlMITaskOutput + from ._models_py3 import ConnectToTargetSqlMITaskProperties + from ._models_py3 import ConnectToTargetSqlSqlDbSyncTaskInput + from ._models_py3 import ConnectToTargetSqlSqlDbSyncTaskProperties + from ._models_py3 import Database + from ._models_py3 import DatabaseBackupInfo + from ._models_py3 import DatabaseFileInfo + from ._models_py3 import DatabaseFileInput + from ._models_py3 import DatabaseInfo + from ._models_py3 import DatabaseObjectName + from ._models_py3 import DatabaseSummaryResult + from ._models_py3 import DatabaseTable + from ._models_py3 import DataIntegrityValidationResult + from ._models_py3 import DataItemMigrationSummaryResult + from ._models_py3 import DataMigrationError + from ._models_py3 import DataMigrationProjectMetadata + from ._models_py3 import DataMigrationService + from ._models_py3 import DataMigrationServiceStatusResponse + from ._models_py3 import ExecutionStatistics + from ._models_py3 import FileShare + from ._models_py3 import FileStorageInfo + from ._models_py3 import GetProjectDetailsNonSqlTaskInput + from ._models_py3 import GetTdeCertificatesSqlTaskInput + from ._models_py3 import GetTdeCertificatesSqlTaskOutput + from ._models_py3 import GetTdeCertificatesSqlTaskProperties + from ._models_py3 import GetUserTablesOracleTaskInput + from ._models_py3 import GetUserTablesOracleTaskOutput + from ._models_py3 import GetUserTablesOracleTaskProperties + from ._models_py3 import GetUserTablesPostgreSqlTaskInput + from ._models_py3 import GetUserTablesPostgreSqlTaskOutput + from ._models_py3 import GetUserTablesPostgreSqlTaskProperties + from ._models_py3 import GetUserTablesSqlSyncTaskInput + from ._models_py3 import GetUserTablesSqlSyncTaskOutput + from ._models_py3 import GetUserTablesSqlSyncTaskProperties + from ._models_py3 import GetUserTablesSqlTaskInput + from ._models_py3 import GetUserTablesSqlTaskOutput + from ._models_py3 import GetUserTablesSqlTaskProperties + from ._models_py3 import InstallOCIDriverTaskInput + from ._models_py3 import InstallOCIDriverTaskOutput + from ._models_py3 import InstallOCIDriverTaskProperties + from ._models_py3 import MigrateMISyncCompleteCommandInput + from ._models_py3 import MigrateMISyncCompleteCommandOutput + from ._models_py3 import MigrateMISyncCompleteCommandProperties + from ._models_py3 import MigrateMongoDbTaskProperties + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncDatabaseInput + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskInput + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutput + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputError + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel + from ._models_py3 import MigrateMySqlAzureDbForMySqlSyncTaskProperties + from ._models_py3 import MigrateOracleAzureDbForPostgreSqlSyncTaskProperties + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncDatabaseInput + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskInput + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputError + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel + from ._models_py3 import MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel + from ._models_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties + from ._models_py3 import MigrateSchemaSqlServerSqlDbDatabaseInput + from ._models_py3 import MigrateSchemaSqlServerSqlDbTaskInput + from ._models_py3 import MigrateSchemaSqlServerSqlDbTaskOutput + from ._models_py3 import MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel + from ._models_py3 import MigrateSchemaSqlServerSqlDbTaskOutputError + from ._models_py3 import MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel + from ._models_py3 import MigrateSchemaSqlServerSqlDbTaskProperties + from ._models_py3 import MigrateSchemaSqlTaskOutputError + from ._models_py3 import MigrateSqlServerSqlDbDatabaseInput + from ._models_py3 import MigrateSqlServerSqlDbSyncDatabaseInput + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskInput + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskOutput + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskOutputDatabaseError + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskOutputError + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskOutputTableLevel + from ._models_py3 import MigrateSqlServerSqlDbSyncTaskProperties + from ._models_py3 import MigrateSqlServerSqlDbTaskInput + from ._models_py3 import MigrateSqlServerSqlDbTaskOutput + from ._models_py3 import MigrateSqlServerSqlDbTaskOutputDatabaseLevel + from ._models_py3 import MigrateSqlServerSqlDbTaskOutputError + from ._models_py3 import MigrateSqlServerSqlDbTaskOutputMigrationLevel + from ._models_py3 import MigrateSqlServerSqlDbTaskOutputTableLevel + from ._models_py3 import MigrateSqlServerSqlDbTaskProperties + from ._models_py3 import MigrateSqlServerSqlMIDatabaseInput + from ._models_py3 import MigrateSqlServerSqlMISyncTaskInput + from ._models_py3 import MigrateSqlServerSqlMISyncTaskOutput + from ._models_py3 import MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel + from ._models_py3 import MigrateSqlServerSqlMISyncTaskOutputError + from ._models_py3 import MigrateSqlServerSqlMISyncTaskOutputMigrationLevel + from ._models_py3 import MigrateSqlServerSqlMISyncTaskProperties + from ._models_py3 import MigrateSqlServerSqlMITaskInput + from ._models_py3 import MigrateSqlServerSqlMITaskOutput + from ._models_py3 import MigrateSqlServerSqlMITaskOutputAgentJobLevel + from ._models_py3 import MigrateSqlServerSqlMITaskOutputDatabaseLevel + from ._models_py3 import MigrateSqlServerSqlMITaskOutputError + from ._models_py3 import MigrateSqlServerSqlMITaskOutputLoginLevel + from ._models_py3 import MigrateSqlServerSqlMITaskOutputMigrationLevel + from ._models_py3 import MigrateSqlServerSqlMITaskProperties + from ._models_py3 import MigrateSqlServerSqlServerDatabaseInput + from ._models_py3 import MigrateSyncCompleteCommandInput + from ._models_py3 import MigrateSyncCompleteCommandOutput + from ._models_py3 import MigrateSyncCompleteCommandProperties + from ._models_py3 import MigrationEligibilityInfo + from ._models_py3 import MigrationReportResult + from ._models_py3 import MigrationTableMetadata + from ._models_py3 import MigrationValidationDatabaseLevelResult + from ._models_py3 import MigrationValidationDatabaseSummaryResult + from ._models_py3 import MigrationValidationOptions + from ._models_py3 import MigrationValidationResult + from ._models_py3 import MiSqlConnectionInfo + from ._models_py3 import MongoDbCancelCommand + from ._models_py3 import MongoDbClusterInfo + from ._models_py3 import MongoDbCollectionInfo + from ._models_py3 import MongoDbCollectionProgress + from ._models_py3 import MongoDbCollectionSettings + from ._models_py3 import MongoDbCommandInput + from ._models_py3 import MongoDbConnectionInfo + from ._models_py3 import MongoDbDatabaseInfo + from ._models_py3 import MongoDbDatabaseProgress + from ._models_py3 import MongoDbDatabaseSettings + from ._models_py3 import MongoDbError + from ._models_py3 import MongoDbFinishCommand + from ._models_py3 import MongoDbFinishCommandInput + from ._models_py3 import MongoDbMigrationProgress + from ._models_py3 import MongoDbMigrationSettings + from ._models_py3 import MongoDbObjectInfo + from ._models_py3 import MongoDbProgress + from ._models_py3 import MongoDbRestartCommand + from ._models_py3 import MongoDbShardKeyField + from ._models_py3 import MongoDbShardKeyInfo + from ._models_py3 import MongoDbShardKeySetting + from ._models_py3 import MongoDbThrottlingSettings + from ._models_py3 import MySqlConnectionInfo + from ._models_py3 import NameAvailabilityRequest + from ._models_py3 import NameAvailabilityResponse + from ._models_py3 import NonSqlDataMigrationTable + from ._models_py3 import NonSqlDataMigrationTableResult + from ._models_py3 import NonSqlMigrationTaskInput + from ._models_py3 import NonSqlMigrationTaskOutput + from ._models_py3 import ODataError + from ._models_py3 import OracleConnectionInfo + from ._models_py3 import OracleOCIDriverInfo + from ._models_py3 import OrphanedUserInfo + from ._models_py3 import PostgreSqlConnectionInfo + from ._models_py3 import Project + from ._models_py3 import ProjectFile + from ._models_py3 import ProjectFileProperties + from ._models_py3 import ProjectTask + from ._models_py3 import ProjectTaskProperties + from ._models_py3 import QueryAnalysisValidationResult + from ._models_py3 import QueryExecutionResult + from ._models_py3 import Quota + from ._models_py3 import QuotaName + from ._models_py3 import ReportableException + from ._models_py3 import Resource + from ._models_py3 import ResourceSku + from ._models_py3 import ResourceSkuCapabilities + from ._models_py3 import ResourceSkuCapacity + from ._models_py3 import ResourceSkuCosts + from ._models_py3 import ResourceSkuRestrictions + from ._models_py3 import SchemaComparisonValidationResult + from ._models_py3 import SchemaComparisonValidationResultType + from ._models_py3 import SchemaMigrationSetting + from ._models_py3 import SelectedCertificateInput + from ._models_py3 import ServerProperties + from ._models_py3 import ServiceOperation + from ._models_py3 import ServiceOperationDisplay + from ._models_py3 import ServiceSku + from ._models_py3 import SqlConnectionInfo + from ._models_py3 import SqlMigrationTaskInput + from ._models_py3 import SqlServerSqlMISyncTaskInput + from ._models_py3 import StartMigrationScenarioServerRoleResult + from ._models_py3 import SyncMigrationDatabaseErrorEvent + from ._models_py3 import TrackedResource + from ._models_py3 import UploadOCIDriverTaskInput + from ._models_py3 import UploadOCIDriverTaskOutput + from ._models_py3 import UploadOCIDriverTaskProperties + from ._models_py3 import ValidateMigrationInputSqlServerSqlDbSyncTaskProperties + from ._models_py3 import ValidateMigrationInputSqlServerSqlMISyncTaskInput + from ._models_py3 import ValidateMigrationInputSqlServerSqlMISyncTaskOutput + from ._models_py3 import ValidateMigrationInputSqlServerSqlMISyncTaskProperties + from ._models_py3 import ValidateMigrationInputSqlServerSqlMITaskInput + from ._models_py3 import ValidateMigrationInputSqlServerSqlMITaskOutput + from ._models_py3 import ValidateMigrationInputSqlServerSqlMITaskProperties + from ._models_py3 import ValidateMongoDbTaskProperties + from ._models_py3 import ValidateOracleAzureDbForPostgreSqlSyncTaskProperties + from ._models_py3 import ValidateOracleAzureDbPostgreSqlSyncTaskOutput + from ._models_py3 import ValidateSyncMigrationInputSqlServerTaskInput + from ._models_py3 import ValidateSyncMigrationInputSqlServerTaskOutput + from ._models_py3 import ValidationError + from ._models_py3 import WaitStatistics except (SyntaxError, ImportError): - from .tracked_resource import TrackedResource - from .resource import Resource - from .project_file_properties import ProjectFileProperties - from .project_file import ProjectFile - from .odata_error import ODataError - from .reportable_exception import ReportableException - from .migrate_mi_sync_complete_command_output import MigrateMISyncCompleteCommandOutput - from .migrate_mi_sync_complete_command_input import MigrateMISyncCompleteCommandInput - from .migrate_mi_sync_complete_command_properties import MigrateMISyncCompleteCommandProperties - from .migrate_sync_complete_command_output import MigrateSyncCompleteCommandOutput - from .migrate_sync_complete_command_input import MigrateSyncCompleteCommandInput - from .migrate_sync_complete_command_properties import MigrateSyncCompleteCommandProperties - from .command_properties import CommandProperties - from .get_tde_certificates_sql_task_output import GetTdeCertificatesSqlTaskOutput - from .selected_certificate_input import SelectedCertificateInput - from .file_share import FileShare - from .mi_sql_connection_info import MiSqlConnectionInfo - from .postgre_sql_connection_info import PostgreSqlConnectionInfo - 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 .mongo_db_error import MongoDbError - from .mongo_db_collection_progress import MongoDbCollectionProgress - from .mongo_db_database_progress import MongoDbDatabaseProgress - from .mongo_db_progress import MongoDbProgress - from .mongo_db_migration_progress import MongoDbMigrationProgress - from .mongo_db_throttling_settings import MongoDbThrottlingSettings - from .mongo_db_shard_key_field import MongoDbShardKeyField - from .mongo_db_shard_key_setting import MongoDbShardKeySetting - from .mongo_db_collection_settings import MongoDbCollectionSettings - from .mongo_db_database_settings import MongoDbDatabaseSettings - from .mongo_db_migration_settings import MongoDbMigrationSettings - from .validate_mongo_db_task_properties import ValidateMongoDbTaskProperties - from .validate_migration_input_sql_server_sql_mi_sync_task_output import ValidateMigrationInputSqlServerSqlMISyncTaskOutput - from .azure_active_directory_app import AzureActiveDirectoryApp - from .migrate_sql_server_sql_mi_database_input import MigrateSqlServerSqlMIDatabaseInput - from .sql_server_sql_mi_sync_task_input import SqlServerSqlMISyncTaskInput - from .validate_migration_input_sql_server_sql_mi_sync_task_input import ValidateMigrationInputSqlServerSqlMISyncTaskInput - from .validate_migration_input_sql_server_sql_mi_sync_task_properties import ValidateMigrationInputSqlServerSqlMISyncTaskProperties - from .database_backup_info import DatabaseBackupInfo - from .validate_migration_input_sql_server_sql_mi_task_output import ValidateMigrationInputSqlServerSqlMITaskOutput - from .blob_share import BlobShare - from .validate_migration_input_sql_server_sql_mi_task_input import ValidateMigrationInputSqlServerSqlMITaskInput - from .validate_migration_input_sql_server_sql_mi_task_properties import ValidateMigrationInputSqlServerSqlMITaskProperties - from .validate_sync_migration_input_sql_server_task_output import ValidateSyncMigrationInputSqlServerTaskOutput - from .migrate_sql_server_sql_db_sync_database_input import MigrateSqlServerSqlDbSyncDatabaseInput - 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_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 - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input import MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput - from .migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_error import MigrateMySqlAzureDbForMySqlSyncTaskOutputError - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level import MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level import MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel - from .migrate_my_sql_azure_db_for_my_sql_sync_task_output import MigrateMySqlAzureDbForMySqlSyncTaskOutput - from .migrate_my_sql_azure_db_for_my_sql_sync_database_input import MigrateMySqlAzureDbForMySqlSyncDatabaseInput - from .migrate_my_sql_azure_db_for_my_sql_sync_task_input import MigrateMySqlAzureDbForMySqlSyncTaskInput - from .migrate_my_sql_azure_db_for_my_sql_sync_task_properties import MigrateMySqlAzureDbForMySqlSyncTaskProperties - from .migrate_sql_server_sql_db_sync_task_output_database_error import MigrateSqlServerSqlDbSyncTaskOutputDatabaseError - from .migrate_sql_server_sql_db_sync_task_output_error import MigrateSqlServerSqlDbSyncTaskOutputError - from .migrate_sql_server_sql_db_sync_task_output_table_level import MigrateSqlServerSqlDbSyncTaskOutputTableLevel - from .migrate_sql_server_sql_db_sync_task_output_database_level import MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel - from .migrate_sql_server_sql_db_sync_task_output_migration_level import MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel - from .migrate_sql_server_sql_db_sync_task_output import MigrateSqlServerSqlDbSyncTaskOutput - from .sql_migration_task_input import SqlMigrationTaskInput - from .migration_validation_options import MigrationValidationOptions - from .migrate_sql_server_sql_db_sync_task_input import MigrateSqlServerSqlDbSyncTaskInput - from .migrate_sql_server_sql_db_sync_task_properties import MigrateSqlServerSqlDbSyncTaskProperties - from .validation_error import ValidationError - from .wait_statistics import WaitStatistics - from .execution_statistics import ExecutionStatistics - from .query_execution_result import QueryExecutionResult - from .query_analysis_validation_result import QueryAnalysisValidationResult - from .schema_comparison_validation_result_type import SchemaComparisonValidationResultType - from .schema_comparison_validation_result import SchemaComparisonValidationResult - from .data_integrity_validation_result import DataIntegrityValidationResult - from .migration_validation_database_level_result import MigrationValidationDatabaseLevelResult - from .migration_validation_database_summary_result import MigrationValidationDatabaseSummaryResult - from .migration_validation_result import MigrationValidationResult - from .migrate_sql_server_sql_db_task_output_error import MigrateSqlServerSqlDbTaskOutputError - from .migrate_sql_server_sql_db_task_output_table_level import MigrateSqlServerSqlDbTaskOutputTableLevel - from .data_item_migration_summary_result import DataItemMigrationSummaryResult - from .migrate_sql_server_sql_db_task_output_database_level import MigrateSqlServerSqlDbTaskOutputDatabaseLevel - from .migration_report_result import MigrationReportResult - from .database_summary_result import DatabaseSummaryResult - from .migrate_sql_server_sql_db_task_output_migration_level import MigrateSqlServerSqlDbTaskOutputMigrationLevel - from .migrate_sql_server_sql_db_task_output import MigrateSqlServerSqlDbTaskOutput - from .migrate_sql_server_sql_db_database_input import MigrateSqlServerSqlDbDatabaseInput - from .migrate_sql_server_sql_db_task_input import MigrateSqlServerSqlDbTaskInput - from .migrate_sql_server_sql_db_task_properties import MigrateSqlServerSqlDbTaskProperties - from .migrate_sql_server_sql_mi_sync_task_output_error import MigrateSqlServerSqlMISyncTaskOutputError - from .backup_file_info import BackupFileInfo - from .backup_set_info import BackupSetInfo - from .migrate_sql_server_sql_mi_sync_task_output_database_level import MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel - from .migrate_sql_server_sql_mi_sync_task_output_migration_level import MigrateSqlServerSqlMISyncTaskOutputMigrationLevel - from .migrate_sql_server_sql_mi_sync_task_output import MigrateSqlServerSqlMISyncTaskOutput - from .migrate_sql_server_sql_mi_sync_task_input import MigrateSqlServerSqlMISyncTaskInput - from .migrate_sql_server_sql_mi_sync_task_properties import MigrateSqlServerSqlMISyncTaskProperties - from .migrate_sql_server_sql_mi_task_output_error import MigrateSqlServerSqlMITaskOutputError - from .migrate_sql_server_sql_mi_task_output_login_level import MigrateSqlServerSqlMITaskOutputLoginLevel - from .migrate_sql_server_sql_mi_task_output_agent_job_level import MigrateSqlServerSqlMITaskOutputAgentJobLevel - from .migrate_sql_server_sql_mi_task_output_database_level import MigrateSqlServerSqlMITaskOutputDatabaseLevel - from .orphaned_user_info import OrphanedUserInfo - from .start_migration_scenario_server_role_result import StartMigrationScenarioServerRoleResult - from .migrate_sql_server_sql_mi_task_output_migration_level import MigrateSqlServerSqlMITaskOutputMigrationLevel - from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput - from .migrate_sql_server_sql_mi_task_input import MigrateSqlServerSqlMITaskInput - from .migrate_sql_server_sql_mi_task_properties import MigrateSqlServerSqlMITaskProperties - from .migrate_mongo_db_task_properties import MigrateMongoDbTaskProperties - from .connect_to_target_azure_db_for_my_sql_task_output import ConnectToTargetAzureDbForMySqlTaskOutput - from .connect_to_target_azure_db_for_my_sql_task_input import ConnectToTargetAzureDbForMySqlTaskInput - from .connect_to_target_azure_db_for_my_sql_task_properties import ConnectToTargetAzureDbForMySqlTaskProperties - from .connect_to_target_sql_mi_sync_task_output import ConnectToTargetSqlMISyncTaskOutput - from .connect_to_target_sql_mi_sync_task_input import ConnectToTargetSqlMISyncTaskInput - from .connect_to_target_sql_mi_sync_task_properties import ConnectToTargetSqlMISyncTaskProperties - from .connect_to_target_sql_mi_task_output import ConnectToTargetSqlMITaskOutput - from .connect_to_target_sql_mi_task_input import ConnectToTargetSqlMITaskInput - from .connect_to_target_sql_mi_task_properties import ConnectToTargetSqlMITaskProperties - from .database_table import DatabaseTable - from .get_user_tables_sql_sync_task_output import GetUserTablesSqlSyncTaskOutput - from .get_user_tables_sql_sync_task_input import GetUserTablesSqlSyncTaskInput - from .get_user_tables_sql_sync_task_properties import GetUserTablesSqlSyncTaskProperties - 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_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 - from .connect_to_target_sql_db_task_output import ConnectToTargetSqlDbTaskOutput - from .connect_to_target_sql_sql_db_sync_task_input import ConnectToTargetSqlSqlDbSyncTaskInput - 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_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 - from .migration_eligibility_info import MigrationEligibilityInfo - from .connect_to_source_sql_server_task_output_agent_job_level import ConnectToSourceSqlServerTaskOutputAgentJobLevel - from .connect_to_source_sql_server_task_output_login_level import ConnectToSourceSqlServerTaskOutputLoginLevel - from .database_file_info import DatabaseFileInfo - from .connect_to_source_sql_server_task_output_database_level import ConnectToSourceSqlServerTaskOutputDatabaseLevel - from .connect_to_source_sql_server_task_output_task_level import ConnectToSourceSqlServerTaskOutputTaskLevel - from .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput - from .connect_to_source_sql_server_task_input import ConnectToSourceSqlServerTaskInput - from .connect_to_source_sql_server_sync_task_properties import ConnectToSourceSqlServerSyncTaskProperties - from .connect_to_source_sql_server_task_properties import ConnectToSourceSqlServerTaskProperties - from .mongo_db_shard_key_info import MongoDbShardKeyInfo - from .mongo_db_collection_info import MongoDbCollectionInfo - from .mongo_db_object_info import MongoDbObjectInfo - from .mongo_db_database_info import MongoDbDatabaseInfo - from .mongo_db_cluster_info import MongoDbClusterInfo - from .connect_to_mongo_db_task_properties import ConnectToMongoDbTaskProperties - from .project_task_properties import ProjectTaskProperties - from .project_task import ProjectTask - from .service_sku import ServiceSku - from .data_migration_service import DataMigrationService - from .name_availability_request import NameAvailabilityRequest - from .database_info import DatabaseInfo - from .project import Project - from .api_error import ApiError, ApiErrorException - from .file_storage_info import FileStorageInfo - from .service_operation_display import ServiceOperationDisplay - from .service_operation import ServiceOperation - from .quota_name import QuotaName - from .quota import Quota - from .name_availability_response import NameAvailabilityResponse - from .available_service_sku_sku import AvailableServiceSkuSku - from .available_service_sku_capacity import AvailableServiceSkuCapacity - from .available_service_sku import AvailableServiceSku - from .data_migration_service_status_response import DataMigrationServiceStatusResponse - from .resource_sku_restrictions import ResourceSkuRestrictions - from .resource_sku_capabilities import ResourceSkuCapabilities - from .resource_sku_costs import ResourceSkuCosts - from .resource_sku_capacity import ResourceSkuCapacity - from .resource_sku import ResourceSku - from .connect_to_source_my_sql_task_input import ConnectToSourceMySqlTaskInput - from .server_properties import ServerProperties - from .connect_to_source_non_sql_task_output import ConnectToSourceNonSqlTaskOutput - from .connect_to_source_my_sql_task_properties import ConnectToSourceMySqlTaskProperties - from .schema_migration_setting import SchemaMigrationSetting - from .migrate_schema_sql_server_sql_db_database_input import MigrateSchemaSqlServerSqlDbDatabaseInput - from .migrate_schema_sql_server_sql_db_task_input import MigrateSchemaSqlServerSqlDbTaskInput - from .migrate_schema_sql_server_sql_db_task_output import MigrateSchemaSqlServerSqlDbTaskOutput - from .migrate_schema_sql_server_sql_db_task_properties import MigrateSchemaSqlServerSqlDbTaskProperties - from .migrate_schema_sql_server_sql_db_task_output_migration_level import MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel - from .migrate_schema_sql_server_sql_db_task_output_database_level import MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel - from .migrate_schema_sql_server_sql_db_task_output_error import MigrateSchemaSqlServerSqlDbTaskOutputError - from .migrate_schema_sql_task_output_error import MigrateSchemaSqlTaskOutputError - from .mongo_db_command_input import MongoDbCommandInput - from .mongo_db_cancel_command import MongoDbCancelCommand - from .mongo_db_finish_command_input import MongoDbFinishCommandInput - from .mongo_db_finish_command import MongoDbFinishCommand - from .mongo_db_restart_command import MongoDbRestartCommand - from .database import Database - from .database_object_name import DatabaseObjectName - from .migration_table_metadata import MigrationTableMetadata - from .data_migration_project_metadata import DataMigrationProjectMetadata - from .get_project_details_non_sql_task_input import GetProjectDetailsNonSqlTaskInput - from .non_sql_data_migration_table import NonSqlDataMigrationTable - from .non_sql_migration_task_input import NonSqlMigrationTaskInput - from .data_migration_error import DataMigrationError - from .non_sql_data_migration_table_result import NonSqlDataMigrationTableResult - from .non_sql_migration_task_output import NonSqlMigrationTaskOutput - from .database_file_input import DatabaseFileInput - from .migrate_sql_server_sql_server_database_input import MigrateSqlServerSqlServerDatabaseInput -from .resource_sku_paged import ResourceSkuPaged -from .available_service_sku_paged import AvailableServiceSkuPaged -from .data_migration_service_paged import DataMigrationServicePaged -from .project_task_paged import ProjectTaskPaged -from .project_paged import ProjectPaged -from .quota_paged import QuotaPaged -from .service_operation_paged import ServiceOperationPaged -from .project_file_paged import ProjectFilePaged -from .data_migration_service_client_enums import ( + from ._models import ApiError, ApiErrorException + from ._models import AvailableServiceSku + from ._models import AvailableServiceSkuCapacity + from ._models import AvailableServiceSkuSku + from ._models import AzureActiveDirectoryApp + from ._models import BackupFileInfo + from ._models import BackupSetInfo + from ._models import BlobShare + from ._models import CheckOCIDriverTaskInput + from ._models import CheckOCIDriverTaskOutput + from ._models import CheckOCIDriverTaskProperties + from ._models import CommandProperties + from ._models import ConnectionInfo + from ._models import ConnectToMongoDbTaskProperties + from ._models import ConnectToSourceMySqlTaskInput + from ._models import ConnectToSourceMySqlTaskProperties + from ._models import ConnectToSourceNonSqlTaskOutput + from ._models import ConnectToSourceOracleSyncTaskInput + from ._models import ConnectToSourceOracleSyncTaskOutput + from ._models import ConnectToSourceOracleSyncTaskProperties + from ._models import ConnectToSourcePostgreSqlSyncTaskInput + from ._models import ConnectToSourcePostgreSqlSyncTaskOutput + from ._models import ConnectToSourcePostgreSqlSyncTaskProperties + from ._models import ConnectToSourceSqlServerSyncTaskProperties + from ._models import ConnectToSourceSqlServerTaskInput + from ._models import ConnectToSourceSqlServerTaskOutput + from ._models import ConnectToSourceSqlServerTaskOutputAgentJobLevel + from ._models import ConnectToSourceSqlServerTaskOutputDatabaseLevel + from ._models import ConnectToSourceSqlServerTaskOutputLoginLevel + from ._models import ConnectToSourceSqlServerTaskOutputTaskLevel + from ._models import ConnectToSourceSqlServerTaskProperties + from ._models import ConnectToTargetAzureDbForMySqlTaskInput + from ._models import ConnectToTargetAzureDbForMySqlTaskOutput + from ._models import ConnectToTargetAzureDbForMySqlTaskProperties + from ._models import ConnectToTargetAzureDbForPostgreSqlSyncTaskInput + from ._models import ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput + from ._models import ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties + from ._models import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput + from ._models import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput + from ._models import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem + from ._models import ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties + from ._models import ConnectToTargetSqlDbTaskInput + from ._models import ConnectToTargetSqlDbTaskOutput + from ._models import ConnectToTargetSqlDbTaskProperties + from ._models import ConnectToTargetSqlMISyncTaskInput + from ._models import ConnectToTargetSqlMISyncTaskOutput + from ._models import ConnectToTargetSqlMISyncTaskProperties + from ._models import ConnectToTargetSqlMITaskInput + from ._models import ConnectToTargetSqlMITaskOutput + from ._models import ConnectToTargetSqlMITaskProperties + from ._models import ConnectToTargetSqlSqlDbSyncTaskInput + from ._models import ConnectToTargetSqlSqlDbSyncTaskProperties + from ._models import Database + from ._models import DatabaseBackupInfo + from ._models import DatabaseFileInfo + from ._models import DatabaseFileInput + from ._models import DatabaseInfo + from ._models import DatabaseObjectName + from ._models import DatabaseSummaryResult + from ._models import DatabaseTable + from ._models import DataIntegrityValidationResult + from ._models import DataItemMigrationSummaryResult + from ._models import DataMigrationError + from ._models import DataMigrationProjectMetadata + from ._models import DataMigrationService + from ._models import DataMigrationServiceStatusResponse + from ._models import ExecutionStatistics + from ._models import FileShare + from ._models import FileStorageInfo + from ._models import GetProjectDetailsNonSqlTaskInput + from ._models import GetTdeCertificatesSqlTaskInput + from ._models import GetTdeCertificatesSqlTaskOutput + from ._models import GetTdeCertificatesSqlTaskProperties + from ._models import GetUserTablesOracleTaskInput + from ._models import GetUserTablesOracleTaskOutput + from ._models import GetUserTablesOracleTaskProperties + from ._models import GetUserTablesPostgreSqlTaskInput + from ._models import GetUserTablesPostgreSqlTaskOutput + from ._models import GetUserTablesPostgreSqlTaskProperties + from ._models import GetUserTablesSqlSyncTaskInput + from ._models import GetUserTablesSqlSyncTaskOutput + from ._models import GetUserTablesSqlSyncTaskProperties + from ._models import GetUserTablesSqlTaskInput + from ._models import GetUserTablesSqlTaskOutput + from ._models import GetUserTablesSqlTaskProperties + from ._models import InstallOCIDriverTaskInput + from ._models import InstallOCIDriverTaskOutput + from ._models import InstallOCIDriverTaskProperties + from ._models import MigrateMISyncCompleteCommandInput + from ._models import MigrateMISyncCompleteCommandOutput + from ._models import MigrateMISyncCompleteCommandProperties + from ._models import MigrateMongoDbTaskProperties + from ._models import MigrateMySqlAzureDbForMySqlSyncDatabaseInput + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskInput + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskOutput + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskOutputError + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel + from ._models import MigrateMySqlAzureDbForMySqlSyncTaskProperties + from ._models import MigrateOracleAzureDbForPostgreSqlSyncTaskProperties + from ._models import MigrateOracleAzureDbPostgreSqlSyncDatabaseInput + from ._models import MigrateOracleAzureDbPostgreSqlSyncTaskInput + from ._models import MigrateOracleAzureDbPostgreSqlSyncTaskOutput + from ._models import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError + from ._models import MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel + from ._models import MigrateOracleAzureDbPostgreSqlSyncTaskOutputError + from ._models import MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel + from ._models import MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel + from ._models import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties + from ._models import MigrateSchemaSqlServerSqlDbDatabaseInput + from ._models import MigrateSchemaSqlServerSqlDbTaskInput + from ._models import MigrateSchemaSqlServerSqlDbTaskOutput + from ._models import MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel + from ._models import MigrateSchemaSqlServerSqlDbTaskOutputError + from ._models import MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel + from ._models import MigrateSchemaSqlServerSqlDbTaskProperties + from ._models import MigrateSchemaSqlTaskOutputError + from ._models import MigrateSqlServerSqlDbDatabaseInput + from ._models import MigrateSqlServerSqlDbSyncDatabaseInput + from ._models import MigrateSqlServerSqlDbSyncTaskInput + from ._models import MigrateSqlServerSqlDbSyncTaskOutput + from ._models import MigrateSqlServerSqlDbSyncTaskOutputDatabaseError + from ._models import MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel + from ._models import MigrateSqlServerSqlDbSyncTaskOutputError + from ._models import MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel + from ._models import MigrateSqlServerSqlDbSyncTaskOutputTableLevel + from ._models import MigrateSqlServerSqlDbSyncTaskProperties + from ._models import MigrateSqlServerSqlDbTaskInput + from ._models import MigrateSqlServerSqlDbTaskOutput + from ._models import MigrateSqlServerSqlDbTaskOutputDatabaseLevel + from ._models import MigrateSqlServerSqlDbTaskOutputError + from ._models import MigrateSqlServerSqlDbTaskOutputMigrationLevel + from ._models import MigrateSqlServerSqlDbTaskOutputTableLevel + from ._models import MigrateSqlServerSqlDbTaskProperties + from ._models import MigrateSqlServerSqlMIDatabaseInput + from ._models import MigrateSqlServerSqlMISyncTaskInput + from ._models import MigrateSqlServerSqlMISyncTaskOutput + from ._models import MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel + from ._models import MigrateSqlServerSqlMISyncTaskOutputError + from ._models import MigrateSqlServerSqlMISyncTaskOutputMigrationLevel + from ._models import MigrateSqlServerSqlMISyncTaskProperties + from ._models import MigrateSqlServerSqlMITaskInput + from ._models import MigrateSqlServerSqlMITaskOutput + from ._models import MigrateSqlServerSqlMITaskOutputAgentJobLevel + from ._models import MigrateSqlServerSqlMITaskOutputDatabaseLevel + from ._models import MigrateSqlServerSqlMITaskOutputError + from ._models import MigrateSqlServerSqlMITaskOutputLoginLevel + from ._models import MigrateSqlServerSqlMITaskOutputMigrationLevel + from ._models import MigrateSqlServerSqlMITaskProperties + from ._models import MigrateSqlServerSqlServerDatabaseInput + from ._models import MigrateSyncCompleteCommandInput + from ._models import MigrateSyncCompleteCommandOutput + from ._models import MigrateSyncCompleteCommandProperties + from ._models import MigrationEligibilityInfo + from ._models import MigrationReportResult + from ._models import MigrationTableMetadata + from ._models import MigrationValidationDatabaseLevelResult + from ._models import MigrationValidationDatabaseSummaryResult + from ._models import MigrationValidationOptions + from ._models import MigrationValidationResult + from ._models import MiSqlConnectionInfo + from ._models import MongoDbCancelCommand + from ._models import MongoDbClusterInfo + from ._models import MongoDbCollectionInfo + from ._models import MongoDbCollectionProgress + from ._models import MongoDbCollectionSettings + from ._models import MongoDbCommandInput + from ._models import MongoDbConnectionInfo + from ._models import MongoDbDatabaseInfo + from ._models import MongoDbDatabaseProgress + from ._models import MongoDbDatabaseSettings + from ._models import MongoDbError + from ._models import MongoDbFinishCommand + from ._models import MongoDbFinishCommandInput + from ._models import MongoDbMigrationProgress + from ._models import MongoDbMigrationSettings + from ._models import MongoDbObjectInfo + from ._models import MongoDbProgress + from ._models import MongoDbRestartCommand + from ._models import MongoDbShardKeyField + from ._models import MongoDbShardKeyInfo + from ._models import MongoDbShardKeySetting + from ._models import MongoDbThrottlingSettings + from ._models import MySqlConnectionInfo + from ._models import NameAvailabilityRequest + from ._models import NameAvailabilityResponse + from ._models import NonSqlDataMigrationTable + from ._models import NonSqlDataMigrationTableResult + from ._models import NonSqlMigrationTaskInput + from ._models import NonSqlMigrationTaskOutput + from ._models import ODataError + from ._models import OracleConnectionInfo + from ._models import OracleOCIDriverInfo + from ._models import OrphanedUserInfo + from ._models import PostgreSqlConnectionInfo + from ._models import Project + from ._models import ProjectFile + from ._models import ProjectFileProperties + from ._models import ProjectTask + from ._models import ProjectTaskProperties + from ._models import QueryAnalysisValidationResult + from ._models import QueryExecutionResult + from ._models import Quota + from ._models import QuotaName + from ._models import ReportableException + from ._models import Resource + from ._models import ResourceSku + from ._models import ResourceSkuCapabilities + from ._models import ResourceSkuCapacity + from ._models import ResourceSkuCosts + from ._models import ResourceSkuRestrictions + from ._models import SchemaComparisonValidationResult + from ._models import SchemaComparisonValidationResultType + from ._models import SchemaMigrationSetting + from ._models import SelectedCertificateInput + from ._models import ServerProperties + from ._models import ServiceOperation + from ._models import ServiceOperationDisplay + from ._models import ServiceSku + from ._models import SqlConnectionInfo + from ._models import SqlMigrationTaskInput + from ._models import SqlServerSqlMISyncTaskInput + from ._models import StartMigrationScenarioServerRoleResult + from ._models import SyncMigrationDatabaseErrorEvent + from ._models import TrackedResource + from ._models import UploadOCIDriverTaskInput + from ._models import UploadOCIDriverTaskOutput + from ._models import UploadOCIDriverTaskProperties + from ._models import ValidateMigrationInputSqlServerSqlDbSyncTaskProperties + from ._models import ValidateMigrationInputSqlServerSqlMISyncTaskInput + from ._models import ValidateMigrationInputSqlServerSqlMISyncTaskOutput + from ._models import ValidateMigrationInputSqlServerSqlMISyncTaskProperties + from ._models import ValidateMigrationInputSqlServerSqlMITaskInput + from ._models import ValidateMigrationInputSqlServerSqlMITaskOutput + from ._models import ValidateMigrationInputSqlServerSqlMITaskProperties + from ._models import ValidateMongoDbTaskProperties + from ._models import ValidateOracleAzureDbForPostgreSqlSyncTaskProperties + from ._models import ValidateOracleAzureDbPostgreSqlSyncTaskOutput + from ._models import ValidateSyncMigrationInputSqlServerTaskInput + from ._models import ValidateSyncMigrationInputSqlServerTaskOutput + from ._models import ValidationError + from ._models import WaitStatistics +from ._paged_models import AvailableServiceSkuPaged +from ._paged_models import DataMigrationServicePaged +from ._paged_models import ProjectFilePaged +from ._paged_models import ProjectPaged +from ._paged_models import ProjectTaskPaged +from ._paged_models import QuotaPaged +from ._paged_models import ResourceSkuPaged +from ._paged_models import ServiceOperationPaged +from ._data_migration_service_client_enums import ( CommandState, SqlSourcePlatform, AuthenticationType, @@ -499,223 +569,258 @@ ) __all__ = [ - 'TrackedResource', - 'Resource', - 'ProjectFileProperties', - 'ProjectFile', - 'ODataError', - 'ReportableException', - 'MigrateMISyncCompleteCommandOutput', - 'MigrateMISyncCompleteCommandInput', - 'MigrateMISyncCompleteCommandProperties', - 'MigrateSyncCompleteCommandOutput', - 'MigrateSyncCompleteCommandInput', - 'MigrateSyncCompleteCommandProperties', + 'ApiError', 'ApiErrorException', + 'AvailableServiceSku', + 'AvailableServiceSkuCapacity', + 'AvailableServiceSkuSku', + 'AzureActiveDirectoryApp', + 'BackupFileInfo', + 'BackupSetInfo', + 'BlobShare', + 'CheckOCIDriverTaskInput', + 'CheckOCIDriverTaskOutput', + 'CheckOCIDriverTaskProperties', 'CommandProperties', - 'GetTdeCertificatesSqlTaskOutput', - 'SelectedCertificateInput', - 'FileShare', - 'MiSqlConnectionInfo', - 'PostgreSqlConnectionInfo', - 'MySqlConnectionInfo', - 'MongoDbConnectionInfo', 'ConnectionInfo', - 'SqlConnectionInfo', + 'ConnectToMongoDbTaskProperties', + 'ConnectToSourceMySqlTaskInput', + 'ConnectToSourceMySqlTaskProperties', + 'ConnectToSourceNonSqlTaskOutput', + 'ConnectToSourceOracleSyncTaskInput', + 'ConnectToSourceOracleSyncTaskOutput', + 'ConnectToSourceOracleSyncTaskProperties', + 'ConnectToSourcePostgreSqlSyncTaskInput', + 'ConnectToSourcePostgreSqlSyncTaskOutput', + 'ConnectToSourcePostgreSqlSyncTaskProperties', + 'ConnectToSourceSqlServerSyncTaskProperties', + 'ConnectToSourceSqlServerTaskInput', + 'ConnectToSourceSqlServerTaskOutput', + 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', + 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', + 'ConnectToSourceSqlServerTaskOutputLoginLevel', + 'ConnectToSourceSqlServerTaskOutputTaskLevel', + 'ConnectToSourceSqlServerTaskProperties', + 'ConnectToTargetAzureDbForMySqlTaskInput', + 'ConnectToTargetAzureDbForMySqlTaskOutput', + 'ConnectToTargetAzureDbForMySqlTaskProperties', + 'ConnectToTargetAzureDbForPostgreSqlSyncTaskInput', + 'ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput', + 'ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties', + 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput', + 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput', + 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem', + 'ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties', + 'ConnectToTargetSqlDbTaskInput', + 'ConnectToTargetSqlDbTaskOutput', + 'ConnectToTargetSqlDbTaskProperties', + 'ConnectToTargetSqlMISyncTaskInput', + 'ConnectToTargetSqlMISyncTaskOutput', + 'ConnectToTargetSqlMISyncTaskProperties', + 'ConnectToTargetSqlMITaskInput', + 'ConnectToTargetSqlMITaskOutput', + 'ConnectToTargetSqlMITaskProperties', + 'ConnectToTargetSqlSqlDbSyncTaskInput', + 'ConnectToTargetSqlSqlDbSyncTaskProperties', + 'Database', + 'DatabaseBackupInfo', + 'DatabaseFileInfo', + 'DatabaseFileInput', + 'DatabaseInfo', + 'DatabaseObjectName', + 'DatabaseSummaryResult', + 'DatabaseTable', + 'DataIntegrityValidationResult', + 'DataItemMigrationSummaryResult', + 'DataMigrationError', + 'DataMigrationProjectMetadata', + 'DataMigrationService', + 'DataMigrationServiceStatusResponse', + 'ExecutionStatistics', + 'FileShare', + 'FileStorageInfo', + 'GetProjectDetailsNonSqlTaskInput', 'GetTdeCertificatesSqlTaskInput', + 'GetTdeCertificatesSqlTaskOutput', 'GetTdeCertificatesSqlTaskProperties', - 'MongoDbError', - 'MongoDbCollectionProgress', - 'MongoDbDatabaseProgress', - 'MongoDbProgress', - 'MongoDbMigrationProgress', - 'MongoDbThrottlingSettings', - 'MongoDbShardKeyField', - 'MongoDbShardKeySetting', - 'MongoDbCollectionSettings', - 'MongoDbDatabaseSettings', - 'MongoDbMigrationSettings', - 'ValidateMongoDbTaskProperties', - 'ValidateMigrationInputSqlServerSqlMISyncTaskOutput', - 'AzureActiveDirectoryApp', - 'MigrateSqlServerSqlMIDatabaseInput', - 'SqlServerSqlMISyncTaskInput', - 'ValidateMigrationInputSqlServerSqlMISyncTaskInput', - 'ValidateMigrationInputSqlServerSqlMISyncTaskProperties', - 'DatabaseBackupInfo', - 'ValidateMigrationInputSqlServerSqlMITaskOutput', - 'BlobShare', - 'ValidateMigrationInputSqlServerSqlMITaskInput', - 'ValidateMigrationInputSqlServerSqlMITaskProperties', - 'ValidateSyncMigrationInputSqlServerTaskOutput', - 'MigrateSqlServerSqlDbSyncDatabaseInput', - 'ValidateSyncMigrationInputSqlServerTaskInput', - 'ValidateMigrationInputSqlServerSqlDbSyncTaskProperties', - 'SyncMigrationDatabaseErrorEvent', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput', - 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties', + 'GetUserTablesOracleTaskInput', + 'GetUserTablesOracleTaskOutput', + 'GetUserTablesOracleTaskProperties', + 'GetUserTablesPostgreSqlTaskInput', + 'GetUserTablesPostgreSqlTaskOutput', + 'GetUserTablesPostgreSqlTaskProperties', + 'GetUserTablesSqlSyncTaskInput', + 'GetUserTablesSqlSyncTaskOutput', + 'GetUserTablesSqlSyncTaskProperties', + 'GetUserTablesSqlTaskInput', + 'GetUserTablesSqlTaskOutput', + 'GetUserTablesSqlTaskProperties', + 'InstallOCIDriverTaskInput', + 'InstallOCIDriverTaskOutput', + 'InstallOCIDriverTaskProperties', + 'MigrateMISyncCompleteCommandInput', + 'MigrateMISyncCompleteCommandOutput', + 'MigrateMISyncCompleteCommandProperties', + 'MigrateMongoDbTaskProperties', + 'MigrateMySqlAzureDbForMySqlSyncDatabaseInput', + 'MigrateMySqlAzureDbForMySqlSyncTaskInput', + 'MigrateMySqlAzureDbForMySqlSyncTaskOutput', 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError', - 'MigrateMySqlAzureDbForMySqlSyncTaskOutputError', - 'MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel', 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel', + 'MigrateMySqlAzureDbForMySqlSyncTaskOutputError', 'MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel', - 'MigrateMySqlAzureDbForMySqlSyncTaskOutput', - 'MigrateMySqlAzureDbForMySqlSyncDatabaseInput', - 'MigrateMySqlAzureDbForMySqlSyncTaskInput', + 'MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel', 'MigrateMySqlAzureDbForMySqlSyncTaskProperties', + 'MigrateOracleAzureDbForPostgreSqlSyncTaskProperties', + 'MigrateOracleAzureDbPostgreSqlSyncDatabaseInput', + 'MigrateOracleAzureDbPostgreSqlSyncTaskInput', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutput', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputError', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel', + 'MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel', + 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties', + 'MigrateSchemaSqlServerSqlDbDatabaseInput', + 'MigrateSchemaSqlServerSqlDbTaskInput', + 'MigrateSchemaSqlServerSqlDbTaskOutput', + 'MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel', + 'MigrateSchemaSqlServerSqlDbTaskOutputError', + 'MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel', + 'MigrateSchemaSqlServerSqlDbTaskProperties', + 'MigrateSchemaSqlTaskOutputError', + 'MigrateSqlServerSqlDbDatabaseInput', + 'MigrateSqlServerSqlDbSyncDatabaseInput', + 'MigrateSqlServerSqlDbSyncTaskInput', + 'MigrateSqlServerSqlDbSyncTaskOutput', 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseError', - 'MigrateSqlServerSqlDbSyncTaskOutputError', - 'MigrateSqlServerSqlDbSyncTaskOutputTableLevel', 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel', + 'MigrateSqlServerSqlDbSyncTaskOutputError', 'MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel', - 'MigrateSqlServerSqlDbSyncTaskOutput', - 'SqlMigrationTaskInput', - 'MigrationValidationOptions', - 'MigrateSqlServerSqlDbSyncTaskInput', + 'MigrateSqlServerSqlDbSyncTaskOutputTableLevel', 'MigrateSqlServerSqlDbSyncTaskProperties', - 'ValidationError', - 'WaitStatistics', - 'ExecutionStatistics', - 'QueryExecutionResult', - 'QueryAnalysisValidationResult', - 'SchemaComparisonValidationResultType', - 'SchemaComparisonValidationResult', - 'DataIntegrityValidationResult', - 'MigrationValidationDatabaseLevelResult', - 'MigrationValidationDatabaseSummaryResult', - 'MigrationValidationResult', - 'MigrateSqlServerSqlDbTaskOutputError', - 'MigrateSqlServerSqlDbTaskOutputTableLevel', - 'DataItemMigrationSummaryResult', + 'MigrateSqlServerSqlDbTaskInput', + 'MigrateSqlServerSqlDbTaskOutput', 'MigrateSqlServerSqlDbTaskOutputDatabaseLevel', - 'MigrationReportResult', - 'DatabaseSummaryResult', + 'MigrateSqlServerSqlDbTaskOutputError', 'MigrateSqlServerSqlDbTaskOutputMigrationLevel', - 'MigrateSqlServerSqlDbTaskOutput', - 'MigrateSqlServerSqlDbDatabaseInput', - 'MigrateSqlServerSqlDbTaskInput', + 'MigrateSqlServerSqlDbTaskOutputTableLevel', 'MigrateSqlServerSqlDbTaskProperties', - 'MigrateSqlServerSqlMISyncTaskOutputError', - 'BackupFileInfo', - 'BackupSetInfo', + 'MigrateSqlServerSqlMIDatabaseInput', + 'MigrateSqlServerSqlMISyncTaskInput', + 'MigrateSqlServerSqlMISyncTaskOutput', 'MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel', + 'MigrateSqlServerSqlMISyncTaskOutputError', 'MigrateSqlServerSqlMISyncTaskOutputMigrationLevel', - 'MigrateSqlServerSqlMISyncTaskOutput', - 'MigrateSqlServerSqlMISyncTaskInput', 'MigrateSqlServerSqlMISyncTaskProperties', - 'MigrateSqlServerSqlMITaskOutputError', - 'MigrateSqlServerSqlMITaskOutputLoginLevel', + 'MigrateSqlServerSqlMITaskInput', + 'MigrateSqlServerSqlMITaskOutput', 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', - 'OrphanedUserInfo', - 'StartMigrationScenarioServerRoleResult', + 'MigrateSqlServerSqlMITaskOutputError', + 'MigrateSqlServerSqlMITaskOutputLoginLevel', 'MigrateSqlServerSqlMITaskOutputMigrationLevel', - 'MigrateSqlServerSqlMITaskOutput', - 'MigrateSqlServerSqlMITaskInput', 'MigrateSqlServerSqlMITaskProperties', - 'MigrateMongoDbTaskProperties', - 'ConnectToTargetAzureDbForMySqlTaskOutput', - 'ConnectToTargetAzureDbForMySqlTaskInput', - 'ConnectToTargetAzureDbForMySqlTaskProperties', - 'ConnectToTargetSqlMISyncTaskOutput', - 'ConnectToTargetSqlMISyncTaskInput', - 'ConnectToTargetSqlMISyncTaskProperties', - 'ConnectToTargetSqlMITaskOutput', - 'ConnectToTargetSqlMITaskInput', - 'ConnectToTargetSqlMITaskProperties', - 'DatabaseTable', - 'GetUserTablesSqlSyncTaskOutput', - 'GetUserTablesSqlSyncTaskInput', - 'GetUserTablesSqlSyncTaskProperties', - 'GetUserTablesSqlTaskOutput', - 'GetUserTablesSqlTaskInput', - 'GetUserTablesSqlTaskProperties', - 'ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput', - 'ConnectToTargetAzureDbForPostgreSqlSyncTaskInput', - 'ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties', - 'ConnectToTargetSqlDbTaskOutput', - 'ConnectToTargetSqlSqlDbSyncTaskInput', - 'ConnectToTargetSqlSqlDbSyncTaskProperties', - 'ConnectToTargetSqlDbTaskInput', - 'ConnectToTargetSqlDbTaskProperties', - 'ConnectToSourcePostgreSqlSyncTaskOutput', - 'ConnectToSourcePostgreSqlSyncTaskInput', - 'ConnectToSourcePostgreSqlSyncTaskProperties', + 'MigrateSqlServerSqlServerDatabaseInput', + 'MigrateSyncCompleteCommandInput', + 'MigrateSyncCompleteCommandOutput', + 'MigrateSyncCompleteCommandProperties', 'MigrationEligibilityInfo', - 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', - 'ConnectToSourceSqlServerTaskOutputLoginLevel', - 'DatabaseFileInfo', - 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', - 'ConnectToSourceSqlServerTaskOutputTaskLevel', - 'ConnectToSourceSqlServerTaskOutput', - 'ConnectToSourceSqlServerTaskInput', - 'ConnectToSourceSqlServerSyncTaskProperties', - 'ConnectToSourceSqlServerTaskProperties', - 'MongoDbShardKeyInfo', + 'MigrationReportResult', + 'MigrationTableMetadata', + 'MigrationValidationDatabaseLevelResult', + 'MigrationValidationDatabaseSummaryResult', + 'MigrationValidationOptions', + 'MigrationValidationResult', + 'MiSqlConnectionInfo', + 'MongoDbCancelCommand', + 'MongoDbClusterInfo', 'MongoDbCollectionInfo', - 'MongoDbObjectInfo', + 'MongoDbCollectionProgress', + 'MongoDbCollectionSettings', + 'MongoDbCommandInput', + 'MongoDbConnectionInfo', 'MongoDbDatabaseInfo', - 'MongoDbClusterInfo', - 'ConnectToMongoDbTaskProperties', - 'ProjectTaskProperties', - 'ProjectTask', - 'ServiceSku', - 'DataMigrationService', + 'MongoDbDatabaseProgress', + 'MongoDbDatabaseSettings', + 'MongoDbError', + 'MongoDbFinishCommand', + 'MongoDbFinishCommandInput', + 'MongoDbMigrationProgress', + 'MongoDbMigrationSettings', + 'MongoDbObjectInfo', + 'MongoDbProgress', + 'MongoDbRestartCommand', + 'MongoDbShardKeyField', + 'MongoDbShardKeyInfo', + 'MongoDbShardKeySetting', + 'MongoDbThrottlingSettings', + 'MySqlConnectionInfo', 'NameAvailabilityRequest', - 'DatabaseInfo', + 'NameAvailabilityResponse', + 'NonSqlDataMigrationTable', + 'NonSqlDataMigrationTableResult', + 'NonSqlMigrationTaskInput', + 'NonSqlMigrationTaskOutput', + 'ODataError', + 'OracleConnectionInfo', + 'OracleOCIDriverInfo', + 'OrphanedUserInfo', + 'PostgreSqlConnectionInfo', 'Project', - 'ApiError', 'ApiErrorException', - 'FileStorageInfo', - 'ServiceOperationDisplay', - 'ServiceOperation', - 'QuotaName', + 'ProjectFile', + 'ProjectFileProperties', + 'ProjectTask', + 'ProjectTaskProperties', + 'QueryAnalysisValidationResult', + 'QueryExecutionResult', 'Quota', - 'NameAvailabilityResponse', - 'AvailableServiceSkuSku', - 'AvailableServiceSkuCapacity', - 'AvailableServiceSku', - 'DataMigrationServiceStatusResponse', - 'ResourceSkuRestrictions', + 'QuotaName', + 'ReportableException', + 'Resource', + 'ResourceSku', 'ResourceSkuCapabilities', - 'ResourceSkuCosts', 'ResourceSkuCapacity', - 'ResourceSku', - 'ConnectToSourceMySqlTaskInput', - 'ServerProperties', - 'ConnectToSourceNonSqlTaskOutput', - 'ConnectToSourceMySqlTaskProperties', + 'ResourceSkuCosts', + 'ResourceSkuRestrictions', + 'SchemaComparisonValidationResult', + 'SchemaComparisonValidationResultType', 'SchemaMigrationSetting', - 'MigrateSchemaSqlServerSqlDbDatabaseInput', - 'MigrateSchemaSqlServerSqlDbTaskInput', - 'MigrateSchemaSqlServerSqlDbTaskOutput', - 'MigrateSchemaSqlServerSqlDbTaskProperties', - 'MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel', - 'MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel', - 'MigrateSchemaSqlServerSqlDbTaskOutputError', - 'MigrateSchemaSqlTaskOutputError', - 'MongoDbCommandInput', - 'MongoDbCancelCommand', - 'MongoDbFinishCommandInput', - 'MongoDbFinishCommand', - 'MongoDbRestartCommand', - 'Database', - 'DatabaseObjectName', - 'MigrationTableMetadata', - 'DataMigrationProjectMetadata', - 'GetProjectDetailsNonSqlTaskInput', - 'NonSqlDataMigrationTable', - 'NonSqlMigrationTaskInput', - 'DataMigrationError', - 'NonSqlDataMigrationTableResult', - 'NonSqlMigrationTaskOutput', - 'DatabaseFileInput', - 'MigrateSqlServerSqlServerDatabaseInput', + 'SelectedCertificateInput', + 'ServerProperties', + 'ServiceOperation', + 'ServiceOperationDisplay', + 'ServiceSku', + 'SqlConnectionInfo', + 'SqlMigrationTaskInput', + 'SqlServerSqlMISyncTaskInput', + 'StartMigrationScenarioServerRoleResult', + 'SyncMigrationDatabaseErrorEvent', + 'TrackedResource', + 'UploadOCIDriverTaskInput', + 'UploadOCIDriverTaskOutput', + 'UploadOCIDriverTaskProperties', + 'ValidateMigrationInputSqlServerSqlDbSyncTaskProperties', + 'ValidateMigrationInputSqlServerSqlMISyncTaskInput', + 'ValidateMigrationInputSqlServerSqlMISyncTaskOutput', + 'ValidateMigrationInputSqlServerSqlMISyncTaskProperties', + 'ValidateMigrationInputSqlServerSqlMITaskInput', + 'ValidateMigrationInputSqlServerSqlMITaskOutput', + 'ValidateMigrationInputSqlServerSqlMITaskProperties', + 'ValidateMongoDbTaskProperties', + 'ValidateOracleAzureDbForPostgreSqlSyncTaskProperties', + 'ValidateOracleAzureDbPostgreSqlSyncTaskOutput', + 'ValidateSyncMigrationInputSqlServerTaskInput', + 'ValidateSyncMigrationInputSqlServerTaskOutput', + 'ValidationError', + 'WaitStatistics', 'ResourceSkuPaged', 'AvailableServiceSkuPaged', 'DataMigrationServicePaged', diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_client_enums.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_data_migration_service_client_enums.py similarity index 100% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_client_enums.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_data_migration_service_client_enums.py diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py new file mode 100644 index 000000000000..363a8a070eed --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py @@ -0,0 +1,11596 @@ +# 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 +from msrest.exceptions import HttpOperationError + + +class ApiError(Model): + """Error information. + + :param error: Error information in OData format + :type error: ~azure.mgmt.datamigration.models.ODataError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ODataError'}, + } + + def __init__(self, **kwargs): + super(ApiError, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ApiErrorException(HttpOperationError): + """Server responsed with exception of type: 'ApiError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) + + +class AvailableServiceSku(Model): + """Describes the available service SKU. + + :param resource_type: The resource type, including the provider namespace + :type resource_type: str + :param sku: SKU name, tier, etc. + :type sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku + :param capacity: A description of the scaling capacities of the SKU + :type capacity: + ~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'AvailableServiceSkuSku'}, + 'capacity': {'key': 'capacity', 'type': 'AvailableServiceSkuCapacity'}, + } + + def __init__(self, **kwargs): + super(AvailableServiceSku, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.sku = kwargs.get('sku', None) + self.capacity = kwargs.get('capacity', None) + + +class AvailableServiceSkuCapacity(Model): + """A description of the scaling capacities of the SKU. + + :param minimum: The minimum capacity, usually 0 or 1. + :type minimum: int + :param maximum: The maximum capacity + :type maximum: int + :param default: The default capacity + :type default: int + :param scale_type: The scalability approach. Possible values include: + 'none', 'manual', 'automatic' + :type scale_type: str or + ~azure.mgmt.datamigration.models.ServiceScalability + """ + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AvailableServiceSkuCapacity, self).__init__(**kwargs) + self.minimum = kwargs.get('minimum', None) + self.maximum = kwargs.get('maximum', None) + self.default = kwargs.get('default', None) + self.scale_type = kwargs.get('scale_type', None) + + +class AvailableServiceSkuSku(Model): + """SKU name, tier, etc. + + :param name: The name of the SKU + :type name: str + :param family: SKU family + :type family: str + :param size: SKU size + :type size: str + :param tier: The tier of the SKU, such as "Basic", "General Purpose", or + "Business Critical" + :type tier: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AvailableServiceSkuSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.family = kwargs.get('family', None) + self.size = kwargs.get('size', None) + self.tier = kwargs.get('tier', None) + + +class AzureActiveDirectoryApp(Model): + """Azure Active Directory Application. + + All required parameters must be populated in order to send to Azure. + + :param application_id: Required. Application ID of the Azure Active + Directory Application + :type application_id: str + :param app_key: Required. Key used to authenticate to the Azure Active + Directory Application + :type app_key: str + :param tenant_id: Required. Tenant id of the customer + :type tenant_id: str + """ + + _validation = { + 'application_id': {'required': True}, + 'app_key': {'required': True}, + 'tenant_id': {'required': True}, + } + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'app_key': {'key': 'appKey', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureActiveDirectoryApp, self).__init__(**kwargs) + self.application_id = kwargs.get('application_id', None) + self.app_key = kwargs.get('app_key', None) + self.tenant_id = kwargs.get('tenant_id', None) + + +class BackupFileInfo(Model): + """Information of the backup file. + + :param file_location: Location of the backup file in shared folder + :type file_location: str + :param family_sequence_number: Sequence number of the backup file in the + backup set + :type family_sequence_number: int + :param status: Status of the backup file during migration. Possible values + include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', + 'Restored', 'Cancelled' + :type status: str or ~azure.mgmt.datamigration.models.BackupFileStatus + """ + + _attribute_map = { + 'file_location': {'key': 'fileLocation', 'type': 'str'}, + 'family_sequence_number': {'key': 'familySequenceNumber', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackupFileInfo, self).__init__(**kwargs) + self.file_location = kwargs.get('file_location', None) + self.family_sequence_number = kwargs.get('family_sequence_number', None) + self.status = kwargs.get('status', None) + + +class BackupSetInfo(Model): + """Information of backup set. + + :param backup_set_id: Id for the set of backup files + :type backup_set_id: str + :param first_lsn: First log sequence number of the backup file + :type first_lsn: str + :param last_lsn: Last log sequence number of the backup file + :type last_lsn: str + :param last_modified_time: Last modified time of the backup file in share + location + :type last_modified_time: datetime + :param backup_type: Enum of the different backup types. Possible values + include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', + 'DifferentialFile', 'Partial', 'DifferentialPartial' + :type backup_type: str or ~azure.mgmt.datamigration.models.BackupType + :param list_of_backup_files: List of files in the backup set + :type list_of_backup_files: + list[~azure.mgmt.datamigration.models.BackupFileInfo] + :param database_name: Name of the database to which the backup set belongs + :type database_name: str + :param backup_start_date: Date and time that the backup operation began + :type backup_start_date: datetime + :param backup_finished_date: Date and time that the backup operation + finished + :type backup_finished_date: datetime + :param is_backup_restored: Whether the backup set is restored or not + :type is_backup_restored: bool + """ + + _attribute_map = { + 'backup_set_id': {'key': 'backupSetId', 'type': 'str'}, + 'first_lsn': {'key': 'firstLsn', 'type': 'str'}, + 'last_lsn': {'key': 'lastLsn', 'type': 'str'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'backup_type': {'key': 'backupType', 'type': 'str'}, + 'list_of_backup_files': {'key': 'listOfBackupFiles', 'type': '[BackupFileInfo]'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'backup_start_date': {'key': 'backupStartDate', 'type': 'iso-8601'}, + 'backup_finished_date': {'key': 'backupFinishedDate', 'type': 'iso-8601'}, + 'is_backup_restored': {'key': 'isBackupRestored', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(BackupSetInfo, self).__init__(**kwargs) + self.backup_set_id = kwargs.get('backup_set_id', None) + self.first_lsn = kwargs.get('first_lsn', None) + self.last_lsn = kwargs.get('last_lsn', None) + self.last_modified_time = kwargs.get('last_modified_time', None) + self.backup_type = kwargs.get('backup_type', None) + self.list_of_backup_files = kwargs.get('list_of_backup_files', None) + self.database_name = kwargs.get('database_name', None) + self.backup_start_date = kwargs.get('backup_start_date', None) + self.backup_finished_date = kwargs.get('backup_finished_date', None) + self.is_backup_restored = kwargs.get('is_backup_restored', None) + + +class BlobShare(Model): + """Blob container storage information. + + All required parameters must be populated in order to send to Azure. + + :param sas_uri: Required. SAS URI of Azure Storage Account Container. + :type sas_uri: str + """ + + _validation = { + 'sas_uri': {'required': True}, + } + + _attribute_map = { + 'sas_uri': {'key': 'sasUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BlobShare, self).__init__(**kwargs) + self.sas_uri = kwargs.get('sas_uri', None) + + +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) + + +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 + + +class ProjectTaskProperties(Model): + """Base class for all types of DMS task properties. If task is not supported + by current client, this object is returned. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: GetTdeCertificatesSqlTaskProperties, + ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, + ValidateMongoDbTaskProperties, + ValidateMigrationInputSqlServerSqlMISyncTaskProperties, + ValidateMigrationInputSqlServerSqlMITaskProperties, + ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, + MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, + MigrateMySqlAzureDbForMySqlSyncTaskProperties, + MigrateSqlServerSqlDbSyncTaskProperties, + MigrateSqlServerSqlDbTaskProperties, + MigrateSqlServerSqlMISyncTaskProperties, + MigrateSqlServerSqlMITaskProperties, MigrateMongoDbTaskProperties, + ConnectToTargetAzureDbForMySqlTaskProperties, + ConnectToTargetSqlMISyncTaskProperties, ConnectToTargetSqlMITaskProperties, + GetUserTablesPostgreSqlTaskProperties, GetUserTablesOracleTaskProperties, + GetUserTablesSqlSyncTaskProperties, GetUserTablesSqlTaskProperties, + ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetSqlSqlDbSyncTaskProperties, + ConnectToTargetSqlDbTaskProperties, + ConnectToSourceOracleSyncTaskProperties, + ConnectToSourcePostgreSqlSyncTaskProperties, + ConnectToSourceSqlServerSyncTaskProperties, + ConnectToSourceSqlServerTaskProperties, ConnectToMongoDbTaskProperties, + ConnectToSourceMySqlTaskProperties, + MigrateSchemaSqlServerSqlDbTaskProperties, CheckOCIDriverTaskProperties, + UploadOCIDriverTaskProperties, InstallOCIDriverTaskProperties + + 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 + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': 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'}, + } + + _subtype_map = { + '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', 'GetUserTablesPostgreSql': 'GetUserTablesPostgreSqlTaskProperties', 'GetUserTablesOracle': 'GetUserTablesOracleTaskProperties', '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): + super(ProjectTaskProperties, self).__init__(**kwargs) + self.errors = None + self.state = None + self.commands = None + self.client_data = kwargs.get('client_data', None) + self.task_type = None + + +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' + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CommandProperties(Model): + """Base class for all types of DMS command properties. If command is not + supported by current client, this object is returned. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateMISyncCompleteCommandProperties, + MigrateSyncCompleteCommandProperties, MongoDbCancelCommand, + MongoDbFinishCommand, MongoDbRestartCommand + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + } + + _subtype_map = { + 'command_type': {'Migrate.SqlServer.AzureDbSqlMi.Complete': 'MigrateMISyncCompleteCommandProperties', 'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'} + } + + def __init__(self, **kwargs): + super(CommandProperties, self).__init__(**kwargs) + self.errors = None + self.state = None + self.command_type = None + + +class ConnectionInfo(Model): + """Defines the connection properties of a server. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MiSqlConnectionInfo, PostgreSqlConnectionInfo, + OracleConnectionInfo, MySqlConnectionInfo, MongoDbConnectionInfo, + SqlConnectionInfo + + 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 + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + 'type': {'MiSqlConnectionInfo': 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo': 'PostgreSqlConnectionInfo', 'OracleConnectionInfo': 'OracleConnectionInfo', 'MySqlConnectionInfo': 'MySqlConnectionInfo', 'MongoDbConnectionInfo': 'MongoDbConnectionInfo', 'SqlConnectionInfo': 'SqlConnectionInfo'} + } + + def __init__(self, **kwargs): + super(ConnectionInfo, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) + self.type = None + + +class ConnectToMongoDbTaskProperties(ProjectTaskProperties): + """Properties for the task that validates the connection to and provides + information about a MongoDB server. + + 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.MongoDbConnectionInfo + :ivar output: An array containing a single MongoDbClusterInfo object + :vartype output: list[~azure.mgmt.datamigration.models.MongoDbClusterInfo] + """ + + _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': 'MongoDbConnectionInfo'}, + 'output': {'key': 'output', 'type': '[MongoDbClusterInfo]'}, + } + + def __init__(self, **kwargs): + super(ConnectToMongoDbTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Connect.MongoDb' + + +class ConnectToSourceMySqlTaskInput(Model): + """Input for the task that validates MySQL database connection. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + MySQL source + :type source_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param target_platform: Target Platform for the migration. Possible values + include: 'SqlServer', 'AzureDbForMySQL' + :type target_platform: str or + ~azure.mgmt.datamigration.models.MySqlTargetPlatformType + :param check_permissions_group: Permission group for validations. Possible + values include: 'Default', 'MigrationFromSqlServerToAzureDB', + 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + :type check_permissions_group: str or + ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'target_platform': {'key': 'targetPlatform', 'type': 'str'}, + 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_platform = kwargs.get('target_platform', None) + self.check_permissions_group = kwargs.get('check_permissions_group', None) + + +class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): + """Properties for the task that validates MySQL database connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param 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.ConnectToSourceMySqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'ConnectToSourceMySqlTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceNonSqlTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceMySqlTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToSource.MySql' + + +class ConnectToSourceNonSqlTaskOutput(Model): + """Output for connect to MySQL type source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar source_server_brand_version: Server brand version + :vartype source_server_brand_version: str + :ivar server_properties: Server properties + :vartype server_properties: + ~azure.mgmt.datamigration.models.ServerProperties + :ivar databases: List of databases on the server + :vartype databases: list[str] + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'server_properties': {'readonly': True}, + 'databases': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'server_properties': {'key': 'serverProperties', 'type': 'ServerProperties'}, + 'databases': {'key': 'databases', 'type': '[str]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceNonSqlTaskOutput, self).__init__(**kwargs) + self.id = None + self.source_server_brand_version = None + self.server_properties = None + self.databases = None + self.validation_errors = None + + +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) + + +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 + + +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' + + +class ConnectToSourcePostgreSqlSyncTaskInput(Model): + """Input for the task that validates connection to PostgreSQL and source + server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + PostgreSQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourcePostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + + +class ConnectToSourcePostgreSqlSyncTaskOutput(Model): + """Output for the task that validates connection to PostgreSQL and source + server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar source_server_version: Version of the source server + :vartype source_server_version: str + :ivar databases: List of databases 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 = { + 'id': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + '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(ConnectToSourcePostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.source_server_version = None + self.databases = None + self.source_server_brand_version = None + self.validation_errors = None + + +class ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to PostgreSQL server and + source server requirements for online migration. + + 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.ConnectToSourcePostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput] + """ + + _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': 'ConnectToSourcePostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourcePostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourcePostgreSqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToSource.PostgreSql.Sync' + + +class ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL Server and source + server requirements for online migration. + + 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.ConnectToSourceSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] + """ + + _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': 'ConnectToSourceSqlServerTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToSource.SqlServer.Sync' + + +class ConnectToSourceSqlServerTaskInput(Model): + """Input for the task that validates connection to SQL Server and also + validates source server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for Source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param check_permissions_group: Permission group for validations. Possible + values include: 'Default', 'MigrationFromSqlServerToAzureDB', + 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + :type check_permissions_group: str or + ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + :param collect_logins: Flag for whether to collect logins from source + server. Default value: False . + :type collect_logins: bool + :param collect_agent_jobs: Flag for whether to collect agent jobs from + source server. Default value: False . + :type collect_agent_jobs: bool + :param collect_tde_certificate_info: Flag for whether to collect TDE + Certificate names from source server. Default value: False . + :type collect_tde_certificate_info: bool + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, + 'collect_logins': {'key': 'collectLogins', 'type': 'bool'}, + 'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'}, + 'collect_tde_certificate_info': {'key': 'collectTdeCertificateInfo', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.check_permissions_group = kwargs.get('check_permissions_group', None) + self.collect_logins = kwargs.get('collect_logins', False) + self.collect_agent_jobs = kwargs.get('collect_agent_jobs', False) + self.collect_tde_certificate_info = kwargs.get('collect_tde_certificate_info', False) + + +class ConnectToSourceSqlServerTaskOutput(Model): + """Output for the task that validates connection to SQL Server and also + validates source server requirements. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ConnectToSourceSqlServerTaskOutputAgentJobLevel, + ConnectToSourceSqlServerTaskOutputLoginLevel, + ConnectToSourceSqlServerTaskOutputDatabaseLevel, + ConnectToSourceSqlServerTaskOutputTaskLevel + + 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': {'AgentJobLevelOutput': 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', 'LoginLevelOutput': 'ConnectToSourceSqlServerTaskOutputLoginLevel', 'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTaskOutput): + """Agent Job level output for the task that validates connection to SQL Server + and also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Agent Job name + :vartype name: str + :ivar job_category: The type of Agent Job. + :vartype job_category: str + :ivar is_enabled: The state of the original Agent Job. + :vartype is_enabled: bool + :ivar job_owner: The owner of the Agent Job + :vartype job_owner: str + :ivar last_executed_on: UTC Date and time when the Agent Job was last + executed. + :vartype last_executed_on: datetime + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar migration_eligibility: Information about eligibility of agent job + for migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'job_category': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'job_owner': {'readonly': True}, + 'last_executed_on': {'readonly': True}, + 'validation_errors': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'job_category': {'key': 'jobCategory', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'job_owner': {'key': 'jobOwner', 'type': 'str'}, + 'last_executed_on': {'key': 'lastExecutedOn', 'type': 'iso-8601'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskOutputAgentJobLevel, self).__init__(**kwargs) + self.name = None + self.job_category = None + self.is_enabled = None + self.job_owner = None + self.last_executed_on = None + self.validation_errors = None + self.migration_eligibility = None + self.result_type = 'AgentJobLevelOutput' + + +class ConnectToSourceSqlServerTaskOutputDatabaseLevel(ConnectToSourceSqlServerTaskOutput): + """Database level output for the task that validates connection to SQL Server + and also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Database name + :vartype name: str + :ivar size_mb: Size of the file in megabytes + :vartype size_mb: float + :ivar database_files: The list of database files + :vartype database_files: + list[~azure.mgmt.datamigration.models.DatabaseFileInfo] + :ivar compatibility_level: SQL Server compatibility level of database. + Possible values include: 'CompatLevel80', 'CompatLevel90', + 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', + 'CompatLevel140' + :vartype compatibility_level: str or + ~azure.mgmt.datamigration.models.DatabaseCompatLevel + :ivar database_state: State of the database. Possible values include: + 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + :vartype database_state: str or + ~azure.mgmt.datamigration.models.DatabaseState + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'size_mb': {'readonly': True}, + 'database_files': {'readonly': True}, + 'compatibility_level': {'readonly': True}, + 'database_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInfo]'}, + 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, + 'database_state': {'key': 'databaseState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.name = None + self.size_mb = None + self.database_files = None + self.compatibility_level = None + self.database_state = None + self.result_type = 'DatabaseLevelOutput' + + +class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): + """Login level output for the task that validates connection to SQL Server and + also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Login name. + :vartype name: str + :ivar login_type: The type of login. Possible values include: + 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', 'AsymmetricKey', + 'ExternalUser', 'ExternalGroup' + :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType + :ivar default_database: The default database for the login. + :vartype default_database: str + :ivar is_enabled: The state of the login. + :vartype is_enabled: bool + :ivar migration_eligibility: Information about eligibility of login for + migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'login_type': {'readonly': True}, + 'default_database': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'login_type': {'key': 'loginType', 'type': 'str'}, + 'default_database': {'key': 'defaultDatabase', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskOutputLoginLevel, self).__init__(**kwargs) + self.name = None + self.login_type = None + self.default_database = None + self.is_enabled = None + self.migration_eligibility = None + self.result_type = 'LoginLevelOutput' + + +class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOutput): + """Task level output for the task that validates connection to SQL Server and + also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar databases: Source databases as a map from database name to database + id + :vartype databases: dict[str, str] + :ivar logins: Source logins as a map from login name to login id. + :vartype logins: dict[str, str] + :ivar agent_jobs: Source agent jobs as a map from agent job name to id. + :vartype agent_jobs: dict[str, str] + :ivar database_tde_certificate_mapping: Mapping from database name to TDE + certificate name, if applicable + :vartype database_tde_certificate_mapping: dict[str, str] + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'databases': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'database_tde_certificate_mapping': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'logins': {'key': 'logins', 'type': '{str}'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, + 'database_tde_certificate_mapping': {'key': 'databaseTdeCertificateMapping', 'type': '{str}'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskOutputTaskLevel, self).__init__(**kwargs) + self.databases = None + self.logins = None + self.agent_jobs = None + self.database_tde_certificate_mapping = None + self.source_server_version = None + self.source_server_brand_version = None + self.validation_errors = None + self.result_type = 'TaskLevelOutput' + + +class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL Server and also + validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar 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.ConnectToSourceSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] + """ + + _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': 'ConnectToSourceSqlServerTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToSourceSqlServerTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToSource.SqlServer' + + +class ConnectToTargetAzureDbForMySqlTaskInput(Model): + """Input for the task that validates connection to Azure Database for MySQL + and target server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + MySQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param target_connection_info: Required. Connection information for target + Azure Database for MySQL server + :type target_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetAzureDbForMySqlTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + + +class ConnectToTargetAzureDbForMySqlTaskOutput(Model): + """Output for the task that validates connection to Azure Database for MySQL + and target server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar server_version: Version of the target server + :vartype 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 = { + 'id': {'readonly': True}, + 'server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'server_version': {'key': 'serverVersion', '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(ConnectToTargetAzureDbForMySqlTaskOutput, self).__init__(**kwargs) + self.id = None + self.server_version = None + self.databases = None + self.target_server_brand_version = None + self.validation_errors = None + + +class ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure Database for + MySQL and target server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar 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.ConnectToTargetAzureDbForMySqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput] + """ + + _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': 'ConnectToTargetAzureDbForMySqlTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForMySqlTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetAzureDbForMySqlTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToTarget.AzureDbForMySql' + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(Model): + """Input for the task that validates connection to Azure Database for + PostgreSQL and target server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + PostgreSQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :param target_connection_info: Required. Connection information for target + Azure Database for PostgreSQL server + :type target_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(Model): + """Output for the task that validates connection to Azure Database for + PostgreSQL and target server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :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 = { + 'id': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + '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(ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.target_server_version = None + self.databases = None + self.target_server_brand_version = None + self.validation_errors = None + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure Database For + PostgreSQL server and target server requirements for online migration. + + 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.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput] + """ + + _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': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToTarget.AzureDbForPostgreSql.Sync' + + +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) + + +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] + :param database_schema_map: Mapping of schemas per database + :type database_schema_map: + list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem] + """ + + _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]'}, + 'database_schema_map': {'key': 'databaseSchemaMap', 'type': '[ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem]'}, + } + + 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 + self.database_schema_map = kwargs.get('database_schema_map', None) + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem(Model): + """ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem. + + :param database: + :type database: str + :param schemas: + :type schemas: list[str] + """ + + _attribute_map = { + 'database': {'key': 'database', 'type': 'str'}, + 'schemas': {'key': 'schemas', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem, self).__init__(**kwargs) + self.database = kwargs.get('database', None) + self.schemas = kwargs.get('schemas', None) + + +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' + + +class ConnectToTargetSqlDbTaskInput(Model): + """Input for the task that validates connection to SQL DB and target server + requirements. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for target + SQL DB + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlDbTaskInput, self).__init__(**kwargs) + self.target_connection_info = kwargs.get('target_connection_info', None) + + +class ConnectToTargetSqlDbTaskOutput(Model): + """Output for the task that validates connection to SQL DB and target server + requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar databases: Source databases as a map from database name to database + id + :vartype databases: dict[str, str] + :ivar target_server_version: Version of the target server + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlDbTaskOutput, self).__init__(**kwargs) + self.id = None + self.databases = None + self.target_server_version = None + self.target_server_brand_version = None + + +class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL DB and target + server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar 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.ConnectToTargetSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] + """ + + _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': 'ConnectToTargetSqlDbTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlDbTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToTarget.SqlDb' + + +class ConnectToTargetSqlMISyncTaskInput(Model): + """Input for the task that validates connection to Azure SQL Database Managed + Instance online scenario. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlMISyncTaskInput, self).__init__(**kwargs) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.azure_app = kwargs.get('azure_app', None) + + +class ConnectToTargetSqlMISyncTaskOutput(Model): + """Output for the task that validates connection to Azure SQL Database Managed + Instance. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlMISyncTaskOutput, self).__init__(**kwargs) + self.target_server_version = None + self.target_server_brand_version = None + self.validation_errors = None + + +class ConnectToTargetSqlMISyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure SQL Database + Managed Instance. + + 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.ConnectToTargetSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput] + """ + + _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': 'ConnectToTargetSqlMISyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMISyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlMISyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToTarget.AzureSqlDbMI.Sync.LRS' + + +class ConnectToTargetSqlMITaskInput(Model): + """Input for the task that validates connection to Azure SQL Database Managed + Instance. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for target + SQL Server + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlMITaskInput, self).__init__(**kwargs) + self.target_connection_info = kwargs.get('target_connection_info', None) + + +class ConnectToTargetSqlMITaskOutput(Model): + """Output for the task that validates connection to Azure SQL Database Managed + Instance. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar logins: List of logins on the target server. + :vartype logins: list[str] + :ivar agent_jobs: List of agent jobs on the target server. + :vartype agent_jobs: list[str] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'logins': {'key': 'logins', 'type': '[str]'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '[str]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlMITaskOutput, self).__init__(**kwargs) + self.id = None + self.target_server_version = None + self.target_server_brand_version = None + self.logins = None + self.agent_jobs = None + self.validation_errors = None + + +class ConnectToTargetSqlMITaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure SQL Database + Managed Instance. + + 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.ConnectToTargetSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput] + """ + + _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': 'ConnectToTargetSqlMITaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMITaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlMITaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToTarget.AzureSqlDbMI' + + +class ConnectToTargetSqlSqlDbSyncTaskInput(Model): + """Input for the task that validates connection to Azure SQL DB and target + server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for target + SQL DB + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlSqlDbSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + + +class ConnectToTargetSqlSqlDbSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL DB and target + server requirements for online migration. + + 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.ConnectToTargetSqlSqlDbSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] + """ + + _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': 'ConnectToTargetSqlSqlDbSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ConnectToTargetSqlSqlDbSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ConnectToTarget.SqlDb.Sync' + + +class Database(Model): + """Information about a single database. + + :param id: Unique identifier for the database + :type id: str + :param name: Name of the database + :type name: str + :param compatibility_level: SQL Server compatibility level of database. + Possible values include: 'CompatLevel80', 'CompatLevel90', + 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', + 'CompatLevel140' + :type compatibility_level: str or + ~azure.mgmt.datamigration.models.DatabaseCompatLevel + :param collation: Collation name of the database + :type collation: str + :param server_name: Name of the server + :type server_name: str + :param fqdn: Fully qualified name + :type fqdn: str + :param install_id: Install id of the database + :type install_id: str + :param server_version: Version of the server + :type server_version: str + :param server_edition: Edition of the server + :type server_edition: str + :param server_level: Product level of the server (RTM, SP, CTP). + :type server_level: str + :param server_default_data_path: Default path of the data files + :type server_default_data_path: str + :param server_default_log_path: Default path of the log files + :type server_default_log_path: str + :param server_default_backup_path: Default path of the backup folder + :type server_default_backup_path: str + :param server_core_count: Number of cores on the server + :type server_core_count: int + :param server_visible_online_core_count: Number of cores on the server + that have VISIBLE ONLINE status + :type server_visible_online_core_count: int + :param database_state: State of the database. Possible values include: + 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + :type database_state: str or + ~azure.mgmt.datamigration.models.DatabaseState + :param server_id: The unique Server Id + :type server_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, + 'collation': {'key': 'collation', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'install_id': {'key': 'installId', 'type': 'str'}, + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + 'server_edition': {'key': 'serverEdition', 'type': 'str'}, + 'server_level': {'key': 'serverLevel', 'type': 'str'}, + 'server_default_data_path': {'key': 'serverDefaultDataPath', 'type': 'str'}, + 'server_default_log_path': {'key': 'serverDefaultLogPath', 'type': 'str'}, + 'server_default_backup_path': {'key': 'serverDefaultBackupPath', 'type': 'str'}, + 'server_core_count': {'key': 'serverCoreCount', 'type': 'int'}, + 'server_visible_online_core_count': {'key': 'serverVisibleOnlineCoreCount', 'type': 'int'}, + 'database_state': {'key': 'databaseState', 'type': 'str'}, + 'server_id': {'key': 'serverId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Database, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.compatibility_level = kwargs.get('compatibility_level', None) + self.collation = kwargs.get('collation', None) + self.server_name = kwargs.get('server_name', None) + self.fqdn = kwargs.get('fqdn', None) + self.install_id = kwargs.get('install_id', None) + self.server_version = kwargs.get('server_version', None) + self.server_edition = kwargs.get('server_edition', None) + self.server_level = kwargs.get('server_level', None) + self.server_default_data_path = kwargs.get('server_default_data_path', None) + self.server_default_log_path = kwargs.get('server_default_log_path', None) + self.server_default_backup_path = kwargs.get('server_default_backup_path', None) + self.server_core_count = kwargs.get('server_core_count', None) + self.server_visible_online_core_count = kwargs.get('server_visible_online_core_count', None) + self.database_state = kwargs.get('database_state', None) + self.server_id = kwargs.get('server_id', None) + + +class DatabaseBackupInfo(Model): + """Information about backup files when existing backup mode is used. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar database_name: Database name. + :vartype database_name: str + :ivar backup_type: Backup Type. Possible values include: 'Database', + 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', + 'Partial', 'DifferentialPartial' + :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType + :ivar backup_files: The list of backup files for the current database. + :vartype backup_files: list[str] + :ivar position: Position of current database backup in the file. + :vartype position: int + :ivar is_damaged: Database was damaged when backed up, but the backup + operation was requested to continue despite errors. + :vartype is_damaged: bool + :ivar is_compressed: Whether the backup set is compressed + :vartype is_compressed: bool + :ivar family_count: Number of files in the backup set. + :vartype family_count: int + :ivar backup_finish_date: Date and time when the backup operation + finished. + :vartype backup_finish_date: datetime + """ + + _validation = { + 'database_name': {'readonly': True}, + 'backup_type': {'readonly': True}, + 'backup_files': {'readonly': True}, + 'position': {'readonly': True}, + 'is_damaged': {'readonly': True}, + 'is_compressed': {'readonly': True}, + 'family_count': {'readonly': True}, + 'backup_finish_date': {'readonly': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'backup_type': {'key': 'backupType', 'type': 'str'}, + 'backup_files': {'key': 'backupFiles', 'type': '[str]'}, + 'position': {'key': 'position', 'type': 'int'}, + 'is_damaged': {'key': 'isDamaged', 'type': 'bool'}, + 'is_compressed': {'key': 'isCompressed', 'type': 'bool'}, + 'family_count': {'key': 'familyCount', 'type': 'int'}, + 'backup_finish_date': {'key': 'backupFinishDate', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(DatabaseBackupInfo, self).__init__(**kwargs) + self.database_name = None + self.backup_type = None + self.backup_files = None + self.position = None + self.is_damaged = None + self.is_compressed = None + self.family_count = None + self.backup_finish_date = None + + +class DatabaseFileInfo(Model): + """Database file specific information. + + :param database_name: Name of the database + :type database_name: str + :param id: Unique identifier for database file + :type id: str + :param logical_name: Logical name of the file + :type logical_name: str + :param physical_full_name: Operating-system full path of the file + :type physical_full_name: str + :param restore_full_name: Suggested full path of the file for restoring + :type restore_full_name: str + :param file_type: Database file type. Possible values include: 'Rows', + 'Log', 'Filestream', 'NotSupported', 'Fulltext' + :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType + :param size_mb: Size of the file in megabytes + :type size_mb: float + """ + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'logical_name': {'key': 'logicalName', 'type': 'str'}, + 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, + 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, + 'file_type': {'key': 'fileType', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(DatabaseFileInfo, self).__init__(**kwargs) + self.database_name = kwargs.get('database_name', None) + self.id = kwargs.get('id', None) + self.logical_name = kwargs.get('logical_name', None) + self.physical_full_name = kwargs.get('physical_full_name', None) + self.restore_full_name = kwargs.get('restore_full_name', None) + self.file_type = kwargs.get('file_type', None) + self.size_mb = kwargs.get('size_mb', None) + + +class DatabaseFileInput(Model): + """Database file specific information for input. + + :param id: Unique identifier for database file + :type id: str + :param logical_name: Logical name of the file + :type logical_name: str + :param physical_full_name: Operating-system full path of the file + :type physical_full_name: str + :param restore_full_name: Suggested full path of the file for restoring + :type restore_full_name: str + :param file_type: Database file type. Possible values include: 'Rows', + 'Log', 'Filestream', 'NotSupported', 'Fulltext' + :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'logical_name': {'key': 'logicalName', 'type': 'str'}, + 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, + 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, + 'file_type': {'key': 'fileType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DatabaseFileInput, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.logical_name = kwargs.get('logical_name', None) + self.physical_full_name = kwargs.get('physical_full_name', None) + self.restore_full_name = kwargs.get('restore_full_name', None) + self.file_type = kwargs.get('file_type', None) + + +class DatabaseInfo(Model): + """Project Database Details. + + All required parameters must be populated in order to send to Azure. + + :param source_database_name: Required. Name of the database + :type source_database_name: str + """ + + _validation = { + 'source_database_name': {'required': True}, + } + + _attribute_map = { + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DatabaseInfo, self).__init__(**kwargs) + self.source_database_name = kwargs.get('source_database_name', None) + + +class DatabaseObjectName(Model): + """A representation of the name of an object in a database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar database_name: The unescaped name of the database containing the + object + :vartype database_name: str + :ivar object_name: The unescaped name of the object + :vartype object_name: str + :ivar schema_name: The unescaped name of the schema containing the object + :vartype schema_name: str + :param object_type: Type of the object in the database. Possible values + include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' + :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType + """ + + _validation = { + 'database_name': {'readonly': True}, + 'object_name': {'readonly': True}, + 'schema_name': {'readonly': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DatabaseObjectName, self).__init__(**kwargs) + self.database_name = None + self.object_name = None + self.schema_name = None + self.object_type = kwargs.get('object_type', None) + + +class DataItemMigrationSummaryResult(Model): + """Basic summary of a data item migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the item + :vartype name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message + :vartype status_message: str + :ivar items_count: Number of items + :vartype items_count: long + :ivar items_completed_count: Number of successfully completed items + :vartype items_completed_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + """ + + _validation = { + 'name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'items_count': {'readonly': True}, + 'items_completed_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'items_count': {'key': 'itemsCount', 'type': 'long'}, + 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataItemMigrationSummaryResult, self).__init__(**kwargs) + self.name = None + self.started_on = None + self.ended_on = None + self.state = None + self.status_message = None + self.items_count = None + self.items_completed_count = None + self.error_prefix = None + self.result_prefix = None + + +class DatabaseSummaryResult(DataItemMigrationSummaryResult): + """Summary of database results in the migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the item + :vartype name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message + :vartype status_message: str + :ivar items_count: Number of items + :vartype items_count: long + :ivar items_completed_count: Number of successfully completed items + :vartype items_completed_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + :ivar size_mb: Size of the database in megabytes + :vartype size_mb: float + """ + + _validation = { + 'name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'items_count': {'readonly': True}, + 'items_completed_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + 'size_mb': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'items_count': {'key': 'itemsCount', 'type': 'long'}, + 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(DatabaseSummaryResult, self).__init__(**kwargs) + self.size_mb = None + + +class DatabaseTable(Model): + """Table properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar has_rows: Indicates whether table is empty or not + :vartype has_rows: bool + :ivar name: Schema-qualified name of the table + :vartype name: str + """ + + _validation = { + 'has_rows': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'has_rows': {'key': 'hasRows', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DatabaseTable, self).__init__(**kwargs) + self.has_rows = None + self.name = None + + +class DataIntegrityValidationResult(Model): + """Results for checksum based Data Integrity validation results. + + :param failed_objects: List of failed table names of source and target + pair + :type failed_objects: dict[str, str] + :param validation_errors: List of errors that happened while performing + data integrity validation + :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError + """ + + _attribute_map = { + 'failed_objects': {'key': 'failedObjects', 'type': '{str}'}, + 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, + } + + def __init__(self, **kwargs): + super(DataIntegrityValidationResult, self).__init__(**kwargs) + self.failed_objects = kwargs.get('failed_objects', None) + self.validation_errors = kwargs.get('validation_errors', None) + + +class DataMigrationError(Model): + """Migration Task errors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar message: Error description + :vartype message: str + :param type: Possible values include: 'Default', 'Warning', 'Error' + :type type: str or ~azure.mgmt.datamigration.models.ErrorType + """ + + _validation = { + 'message': {'readonly': True}, + } + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataMigrationError, self).__init__(**kwargs) + self.message = None + self.type = kwargs.get('type', None) + + +class DataMigrationProjectMetadata(Model): + """Common metadata for migration projects. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar source_server_name: Source server name + :vartype source_server_name: str + :ivar source_server_port: Source server port number + :vartype source_server_port: str + :ivar source_username: Source username + :vartype source_username: str + :ivar target_server_name: Target server name + :vartype target_server_name: str + :ivar target_username: Target username + :vartype target_username: str + :ivar target_db_name: Target database name + :vartype target_db_name: str + :ivar target_using_win_auth: Whether target connection is Windows + authentication + :vartype target_using_win_auth: bool + :ivar selected_migration_tables: List of tables selected for migration + :vartype selected_migration_tables: + list[~azure.mgmt.datamigration.models.MigrationTableMetadata] + """ + + _validation = { + 'source_server_name': {'readonly': True}, + 'source_server_port': {'readonly': True}, + 'source_username': {'readonly': True}, + 'target_server_name': {'readonly': True}, + 'target_username': {'readonly': True}, + 'target_db_name': {'readonly': True}, + 'target_using_win_auth': {'readonly': True}, + 'selected_migration_tables': {'readonly': True}, + } + + _attribute_map = { + 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, + 'source_server_port': {'key': 'sourceServerPort', 'type': 'str'}, + 'source_username': {'key': 'sourceUsername', 'type': 'str'}, + 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, + 'target_username': {'key': 'targetUsername', 'type': 'str'}, + 'target_db_name': {'key': 'targetDbName', 'type': 'str'}, + 'target_using_win_auth': {'key': 'targetUsingWinAuth', 'type': 'bool'}, + 'selected_migration_tables': {'key': 'selectedMigrationTables', 'type': '[MigrationTableMetadata]'}, + } + + def __init__(self, **kwargs): + super(DataMigrationProjectMetadata, self).__init__(**kwargs) + self.source_server_name = None + self.source_server_port = None + self.source_username = None + self.target_server_name = None + self.target_username = None + self.target_db_name = None + self.target_using_win_auth = None + self.selected_migration_tables = None + + +class Resource(Model): + """ARM resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """ARM tracked top level resource. + + 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: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. Resource location. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs.get('location', None) + + +class DataMigrationService(TrackedResource): + """A Database Migration Service resource. + + 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: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. Resource location. + :type location: str + :param etag: HTTP strong entity tag value. Ignored if submitted + :type etag: str + :param kind: The resource kind. Only 'vm' (the default) is supported. + :type kind: str + :ivar provisioning_state: The resource's provisioning state. Possible + values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', + 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', + 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.datamigration.models.ServiceProvisioningState + :param public_key: The public key of the service, used to encrypt secrets + sent to the service + :type public_key: str + :param virtual_subnet_id: Required. The ID of the + Microsoft.Network/virtualNetworks/subnets resource to which the service + should be joined + :type virtual_subnet_id: str + :param sku: Service SKU + :type sku: ~azure.mgmt.datamigration.models.ServiceSku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_subnet_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, + 'virtual_subnet_id': {'key': 'properties.virtualSubnetId', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'ServiceSku'}, + } + + def __init__(self, **kwargs): + super(DataMigrationService, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.kind = kwargs.get('kind', None) + self.provisioning_state = None + self.public_key = kwargs.get('public_key', None) + self.virtual_subnet_id = kwargs.get('virtual_subnet_id', None) + self.sku = kwargs.get('sku', None) + + +class DataMigrationServiceStatusResponse(Model): + """Service health status. + + :param agent_version: The DMS instance agent version + :type agent_version: str + :param status: The machine-readable status, such as 'Initializing', + 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', + 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed' + :type status: str + :param vm_size: The services virtual machine size, such as + 'Standard_D2_v2' + :type vm_size: str + :param supported_task_types: The list of supported task types + :type supported_task_types: list[str] + """ + + _attribute_map = { + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'supported_task_types': {'key': 'supportedTaskTypes', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DataMigrationServiceStatusResponse, self).__init__(**kwargs) + self.agent_version = kwargs.get('agent_version', None) + self.status = kwargs.get('status', None) + self.vm_size = kwargs.get('vm_size', None) + self.supported_task_types = kwargs.get('supported_task_types', None) + + +class ExecutionStatistics(Model): + """Description about the errors happen while performing migration validation. + + :param execution_count: No. of query executions + :type execution_count: long + :param cpu_time_ms: CPU Time in millisecond(s) for the query execution + :type cpu_time_ms: float + :param elapsed_time_ms: Time taken in millisecond(s) for executing the + query + :type elapsed_time_ms: float + :param wait_stats: Dictionary of sql query execution wait types and the + respective statistics + :type wait_stats: dict[str, + ~azure.mgmt.datamigration.models.WaitStatistics] + :param has_errors: Indicates whether the query resulted in an error + :type has_errors: bool + :param sql_errors: List of sql Errors + :type sql_errors: list[str] + """ + + _attribute_map = { + 'execution_count': {'key': 'executionCount', 'type': 'long'}, + 'cpu_time_ms': {'key': 'cpuTimeMs', 'type': 'float'}, + 'elapsed_time_ms': {'key': 'elapsedTimeMs', 'type': 'float'}, + 'wait_stats': {'key': 'waitStats', 'type': '{WaitStatistics}'}, + 'has_errors': {'key': 'hasErrors', 'type': 'bool'}, + 'sql_errors': {'key': 'sqlErrors', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ExecutionStatistics, self).__init__(**kwargs) + self.execution_count = kwargs.get('execution_count', None) + self.cpu_time_ms = kwargs.get('cpu_time_ms', None) + self.elapsed_time_ms = kwargs.get('elapsed_time_ms', None) + self.wait_stats = kwargs.get('wait_stats', None) + self.has_errors = kwargs.get('has_errors', None) + self.sql_errors = kwargs.get('sql_errors', None) + + +class FileShare(Model): + """File share information with Path, Username, and Password. + + All required parameters must be populated in order to send to Azure. + + :param user_name: User name credential to connect to the share location + :type user_name: str + :param password: Password credential used to connect to the share + location. + :type password: str + :param path: Required. The folder path for this share. + :type path: str + """ + + _validation = { + 'path': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FileShare, self).__init__(**kwargs) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) + self.path = kwargs.get('path', None) + + +class FileStorageInfo(Model): + """File storage information. + + :param uri: A URI that can be used to access the file content. + :type uri: str + :param headers: + :type headers: dict[str, str] + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(FileStorageInfo, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.headers = kwargs.get('headers', None) + + +class GetProjectDetailsNonSqlTaskInput(Model): + """Input for the task that reads configuration from project artifacts. + + All required parameters must be populated in order to send to Azure. + + :param project_name: Required. Name of the migration project + :type project_name: str + :param project_location: Required. A URL that points to the location to + access project artifacts + :type project_location: str + """ + + _validation = { + 'project_name': {'required': True}, + 'project_location': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'project_location': {'key': 'projectLocation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GetProjectDetailsNonSqlTaskInput, self).__init__(**kwargs) + self.project_name = kwargs.get('project_name', None) + self.project_location = kwargs.get('project_location', None) + + +class GetTdeCertificatesSqlTaskInput(Model): + """Input for the task that gets TDE certificates in Base64 encoded format. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Connection information for SQL Server + :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param backup_file_share: Required. Backup file share information for file + share to be used for temporarily storing files. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param selected_certificates: Required. List containing certificate names + and corresponding password to use for encrypting the exported certificate. + :type selected_certificates: + list[~azure.mgmt.datamigration.models.SelectedCertificateInput] + """ + + _validation = { + 'connection_info': {'required': True}, + 'backup_file_share': {'required': True}, + 'selected_certificates': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'selected_certificates': {'key': 'selectedCertificates', 'type': '[SelectedCertificateInput]'}, + } + + def __init__(self, **kwargs): + super(GetTdeCertificatesSqlTaskInput, self).__init__(**kwargs) + self.connection_info = kwargs.get('connection_info', None) + self.backup_file_share = kwargs.get('backup_file_share', None) + self.selected_certificates = kwargs.get('selected_certificates', None) + + +class GetTdeCertificatesSqlTaskOutput(Model): + """Output of the task that gets TDE certificates in Base64 encoded format. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar base64_encoded_certificates: Mapping from certificate name to base + 64 encoded format. + :vartype base64_encoded_certificates: dict[str, list[str]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'base64_encoded_certificates': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'base64_encoded_certificates': {'key': 'base64EncodedCertificates', 'type': '{[str]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(GetTdeCertificatesSqlTaskOutput, self).__init__(**kwargs) + self.base64_encoded_certificates = None + self.validation_errors = None + + +class GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties): + """Properties for the task that gets TDE certificates in Base64 encoded + format. + + 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.GetTdeCertificatesSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput] + """ + + _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': 'GetTdeCertificatesSqlTaskInput'}, + 'output': {'key': 'output', 'type': '[GetTdeCertificatesSqlTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(GetTdeCertificatesSqlTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'GetTDECertificates.Sql' + + +class GetUserTablesOracleTaskInput(Model): + """Input for the task that gets the list of tables contained within a provided + list of Oracle schemas. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Information for connecting to Oracle + source + :type connection_info: + ~azure.mgmt.datamigration.models.OracleConnectionInfo + :param selected_schemas: Required. List of Oracle schemas for which to + collect tables + :type selected_schemas: list[str] + """ + + _validation = { + 'connection_info': {'required': True}, + 'selected_schemas': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'OracleConnectionInfo'}, + 'selected_schemas': {'key': 'selectedSchemas', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesOracleTaskInput, self).__init__(**kwargs) + self.connection_info = kwargs.get('connection_info', None) + self.selected_schemas = kwargs.get('selected_schemas', None) + + +class GetUserTablesOracleTaskOutput(Model): + """Output for the task that gets the list of tables contained within a + provided list of Oracle schemas. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar schema_name: The schema this result is for + :vartype schema_name: str + :ivar tables: List of valid tables found for this schema + :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'schema_name': {'readonly': True}, + 'tables': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'tables': {'key': 'tables', 'type': '[DatabaseTable]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesOracleTaskOutput, self).__init__(**kwargs) + self.schema_name = None + self.tables = None + self.validation_errors = None + + +class GetUserTablesOracleTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + Oracle schemas. + + 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.GetUserTablesOracleTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesOracleTaskOutput] + """ + + _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': 'GetUserTablesOracleTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesOracleTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesOracleTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'GetUserTablesOracle' + + +class GetUserTablesPostgreSqlTaskInput(Model): + """Input for the task that gets the list of tables for a provided list of + PostgreSQL databases. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Information for connecting to PostgreSQL + source + :type connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :param selected_databases: Required. List of PostgreSQL databases for + which to collect tables + :type selected_databases: list[str] + """ + + _validation = { + 'connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesPostgreSqlTaskInput, self).__init__(**kwargs) + self.connection_info = kwargs.get('connection_info', None) + self.selected_databases = kwargs.get('selected_databases', None) + + +class GetUserTablesPostgreSqlTaskOutput(Model): + """Output for the task that gets the list of tables for a provided list of + PostgreSQL databases. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar database_name: The database this result is for + :vartype database_name: str + :ivar tables: List of valid tables found for this database + :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'database_name': {'readonly': True}, + 'tables': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'tables': {'key': 'tables', 'type': '[DatabaseTable]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesPostgreSqlTaskOutput, self).__init__(**kwargs) + self.database_name = None + self.tables = None + self.validation_errors = None + + +class GetUserTablesPostgreSqlTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + databases. + + 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.GetUserTablesPostgreSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskOutput] + """ + + _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': 'GetUserTablesPostgreSqlTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesPostgreSqlTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesPostgreSqlTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'GetUserTablesPostgreSql' + + +class GetUserTablesSqlSyncTaskInput(Model): + """Input for the task that collects user tables for the given list of + databases. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for SQL + Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for SQL DB + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_source_databases: Required. List of source database names + to collect tables for + :type selected_source_databases: list[str] + :param selected_target_databases: Required. List of target database names + to collect tables for + :type selected_target_databases: list[str] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_source_databases': {'required': True}, + 'selected_target_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_source_databases': {'key': 'selectedSourceDatabases', 'type': '[str]'}, + 'selected_target_databases': {'key': 'selectedTargetDatabases', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesSqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.selected_source_databases = kwargs.get('selected_source_databases', None) + self.selected_target_databases = kwargs.get('selected_target_databases', None) + + +class GetUserTablesSqlSyncTaskOutput(Model): + """Output of the task that collects user tables for the given list of + databases. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar databases_to_source_tables: Mapping from database name to list of + source tables + :vartype databases_to_source_tables: dict[str, + list[~azure.mgmt.datamigration.models.DatabaseTable]] + :ivar databases_to_target_tables: Mapping from database name to list of + target tables + :vartype databases_to_target_tables: dict[str, + list[~azure.mgmt.datamigration.models.DatabaseTable]] + :ivar table_validation_errors: Mapping from database name to list of + validation errors + :vartype table_validation_errors: dict[str, list[str]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'databases_to_source_tables': {'readonly': True}, + 'databases_to_target_tables': {'readonly': True}, + 'table_validation_errors': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'databases_to_source_tables': {'key': 'databasesToSourceTables', 'type': '{[DatabaseTable]}'}, + 'databases_to_target_tables': {'key': 'databasesToTargetTables', 'type': '{[DatabaseTable]}'}, + 'table_validation_errors': {'key': 'tableValidationErrors', 'type': '{[str]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesSqlSyncTaskOutput, self).__init__(**kwargs) + self.databases_to_source_tables = None + self.databases_to_target_tables = None + self.table_validation_errors = None + self.validation_errors = None + + +class GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + databases. + + 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.GetUserTablesSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput] + """ + + _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': 'GetUserTablesSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesSqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesSqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'GetUserTables.AzureSqlDb.Sync' + + +class GetUserTablesSqlTaskInput(Model): + """Input for the task that collects user tables for the given list of + databases. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Connection information for SQL Server + :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. List of database names to collect + tables for + :type selected_databases: list[str] + """ + + _validation = { + 'connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesSqlTaskInput, self).__init__(**kwargs) + self.connection_info = kwargs.get('connection_info', None) + self.selected_databases = kwargs.get('selected_databases', None) + + +class GetUserTablesSqlTaskOutput(Model): + """Output of the task that collects user tables for the given list of + databases. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar databases_to_tables: Mapping from database name to list of tables + :vartype databases_to_tables: dict[str, + list[~azure.mgmt.datamigration.models.DatabaseTable]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'databases_to_tables': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'databases_to_tables': {'key': 'databasesToTables', 'type': '{[DatabaseTable]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesSqlTaskOutput, self).__init__(**kwargs) + self.id = None + self.databases_to_tables = None + self.validation_errors = None + + +class GetUserTablesSqlTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + databases. + + 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.GetUserTablesSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput] + """ + + _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': 'GetUserTablesSqlTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesSqlTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(GetUserTablesSqlTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'GetUserTables.Sql' + + +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) + + +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 + + +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' + + +class MigrateMISyncCompleteCommandInput(Model): + """Input for command that completes online migration for an Azure SQL Database + Managed Instance. + + All required parameters must be populated in order to send to Azure. + + :param source_database_name: Required. Name of managed instance database + :type source_database_name: str + """ + + _validation = { + 'source_database_name': {'required': True}, + } + + _attribute_map = { + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrateMISyncCompleteCommandInput, self).__init__(**kwargs) + self.source_database_name = kwargs.get('source_database_name', None) + + +class MigrateMISyncCompleteCommandOutput(Model): + """Output for command that completes online migration for an Azure SQL + Database Managed Instance. + + :param errors: List of errors that happened during the command execution + :type errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateMISyncCompleteCommandOutput, self).__init__(**kwargs) + self.errors = kwargs.get('errors', None) + + +class MigrateMISyncCompleteCommandProperties(CommandProperties): + """Properties for the command that completes online migration for an Azure SQL + Database Managed Instance. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: + ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput + :ivar output: Command output. This is ignored if submitted. + :vartype output: + ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateMISyncCompleteCommandInput'}, + 'output': {'key': 'output', 'type': 'MigrateMISyncCompleteCommandOutput'}, + } + + def __init__(self, **kwargs): + super(MigrateMISyncCompleteCommandProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.command_type = 'Migrate.SqlServer.AzureDbSqlMi.Complete' + + +class MigrateMongoDbTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates data between MongoDB data sources. + + 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.MongoDbMigrationSettings + :ivar output: + :vartype output: list[~azure.mgmt.datamigration.models.MongoDbProgress] + """ + + _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': 'MongoDbMigrationSettings'}, + 'output': {'key': 'output', 'type': '[MongoDbProgress]'}, + } + + def __init__(self, **kwargs): + super(MigrateMongoDbTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.MongoDb' + + +class MigrateMySqlAzureDbForMySqlSyncDatabaseInput(Model): + """Database specific information for MySQL to Azure Database for MySQL + migration task inputs. + + :param name: Name of the database + :type name: 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'}, + '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(MigrateMySqlAzureDbForMySqlSyncDatabaseInput, self).__init__(**kwargs) + self.name = kwargs.get('name', 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) + + +class MigrateMySqlAzureDbForMySqlSyncTaskInput(Model): + """Input for the task that migrates MySQL databases to Azure Database for + MySQL for online migrations. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + MySQL + :type source_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param target_connection_info: Required. Connection information for target + Azure Database for MySQL + :type target_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateMySqlAzureDbForMySqlSyncDatabaseInput]'}, + } + + def __init__(self, **kwargs): + super(MigrateMySqlAzureDbForMySqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.selected_databases = kwargs.get('selected_databases', None) + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutput(Model): + """Output for the task that migrates MySQL databases to Azure Database for + MySQL for online migrations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, + MigrateMySqlAzureDbForMySqlSyncTaskOutputError, + MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel + + 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': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputError', 'TableLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs): + super(MigrateMySqlAzureDbForMySqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = kwargs.get('error_message', None) + self.events = kwargs.get('events', None) + self.result_type = 'DatabaseLevelErrorOutput' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, 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' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputError. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel, 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' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel. + + 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: str + :ivar cdc_update_counter: Number of applied updates + :vartype cdc_update_counter: str + :ivar cdc_delete_counter: Number of applied deletes + :vartype cdc_delete_counter: str + :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': 'str'}, + 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'str'}, + 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'str'}, + '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(MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, 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' + + +class MigrateMySqlAzureDbForMySqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates MySQL databases to Azure Database for + MySQL 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.MigrateMySqlAzureDbForMySqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput] + """ + + _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': 'MigrateMySqlAzureDbForMySqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateMySqlAzureDbForMySqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigrateMySqlAzureDbForMySqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.MySql.AzureDbForMySql.Sync' + + +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' + + +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) + + +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) + + +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 + + +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' + + +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' + + +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' + + +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' + + +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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(Model): + """Database specific information for PostgreSQL to Azure Database for + PostgreSQL migration task inputs. + + :param name: Name of the database + :type name: 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'}, + '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(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, self).__init__(**kwargs) + self.name = kwargs.get('name', 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) + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(Model): + """Input for the task that migrates PostgreSQL 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.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] + :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 + PostgreSQL + :type source_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'selected_databases': {'required': True}, + 'target_connection_info': {'required': True}, + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput]'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, 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) + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(Model): + """Output for the task that migrates PostgreSQL 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: + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel + + 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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError', 'TableLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs): + super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = kwargs.get('error_message', None) + self.events = kwargs.get('events', None) + self.result_type = 'DatabaseLevelErrorOutput' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, 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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, 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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, 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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates PostgreSQL databases 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.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput] + """ + + _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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync' + + +class MigrateSchemaSqlServerSqlDbDatabaseInput(Model): + """Database input for migrate schema Sql Server to Azure SQL Server scenario. + + :param name: Name of source database + :type name: str + :param target_database_name: Name of target database + :type target_database_name: str + :param schema_setting: Database schema migration settings + :type schema_setting: + ~azure.mgmt.datamigration.models.SchemaMigrationSetting + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'schema_setting': {'key': 'schemaSetting', 'type': 'SchemaMigrationSetting'}, + } + + def __init__(self, **kwargs): + super(MigrateSchemaSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.target_database_name = kwargs.get('target_database_name', None) + self.schema_setting = kwargs.get('schema_setting', None) + + +class SqlMigrationTaskInput(Model): + """Base class for migration task input. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, **kwargs): + super(SqlMigrationTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + + +class MigrateSchemaSqlServerSqlDbTaskInput(SqlMigrationTaskInput): + """Input for task that migrates Schema for SQL Server databases to Azure SQL + databases. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSchemaSqlServerSqlDbDatabaseInput]'}, + } + + def __init__(self, **kwargs): + super(MigrateSchemaSqlServerSqlDbTaskInput, self).__init__(**kwargs) + self.selected_databases = kwargs.get('selected_databases', None) + + +class MigrateSchemaSqlServerSqlDbTaskOutput(Model): + """Output for the task that migrates Schema for SQL Server databases to Azure + SQL databases. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, + MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, + MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError + + 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': {'MigrationLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel', 'DatabaseLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel', 'SchemaErrorOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputError', 'ErrorOutput': 'MigrateSchemaSqlTaskOutputError'} + } + + def __init__(self, **kwargs): + super(MigrateSchemaSqlServerSqlDbTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel. + + 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: The name of the database + :vartype database_name: str + :ivar state: State of the schema migration for this database. Possible + values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', + 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Schema migration stage for this database. Possible values + include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', + 'DownloadingScript', 'GeneratingScript', 'UploadingScript', + 'DeployingSchema', 'Completed', 'CompletedWithWarnings', 'Failed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.SchemaMigrationStage + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar database_error_result_prefix: Prefix string to use for querying + errors for this database + :vartype database_error_result_prefix: str + :ivar schema_error_result_prefix: Prefix string to use for querying schema + errors for this database + :vartype schema_error_result_prefix: str + :ivar number_of_successful_operations: Number of successful operations for + this database + :vartype number_of_successful_operations: long + :ivar number_of_failed_operations: Number of failed operations for this + database + :vartype number_of_failed_operations: long + :ivar file_id: Identifier for the file resource containing the schema of + this database + :vartype file_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'database_error_result_prefix': {'readonly': True}, + 'schema_error_result_prefix': {'readonly': True}, + 'number_of_successful_operations': {'readonly': True}, + 'number_of_failed_operations': {'readonly': True}, + 'file_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'database_error_result_prefix': {'key': 'databaseErrorResultPrefix', 'type': 'str'}, + 'schema_error_result_prefix': {'key': 'schemaErrorResultPrefix', 'type': 'str'}, + 'number_of_successful_operations': {'key': 'numberOfSuccessfulOperations', 'type': 'long'}, + 'number_of_failed_operations': {'key': 'numberOfFailedOperations', 'type': 'long'}, + 'file_id': {'key': 'fileId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.database_error_result_prefix = None + self.schema_error_result_prefix = None + self.number_of_successful_operations = None + self.number_of_failed_operations = None + self.file_id = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSchemaSqlServerSqlDbTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlServerSqlDbTaskOutputError. + + 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 command_text: Schema command which failed + :vartype command_text: str + :ivar error_text: Reason of failure + :vartype error_text: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'command_text': {'readonly': True}, + 'error_text': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'command_text': {'key': 'commandText', 'type': 'str'}, + 'error_text': {'key': 'errorText', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrateSchemaSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) + self.command_text = None + self.error_text = None + self.result_type = 'SchemaErrorOutput' + + +class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel. + + 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 state: Overall state of the schema migration. Possible values + include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', + 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', '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_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) + self.state = None + self.started_on = None + self.ended_on = None + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_version = None + self.target_server_brand_version = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties): + """Properties for task that migrates Schema for SQL Server databases to Azure + SQL databases. + + 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.MigrateSchemaSqlServerSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput] + """ + + _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': 'MigrateSchemaSqlServerSqlDbTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSchemaSqlServerSqlDbTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigrateSchemaSqlServerSqlDbTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'MigrateSchemaSqlServerSqlDb' + + +class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlTaskOutputError. + + 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(MigrateSchemaSqlTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlDbDatabaseInput(Model): + """Database specific information for SQL to Azure SQL DB migration task + inputs. + + :param name: Name of the database + :type name: str + :param target_database_name: Name of target database. Note: Target + database will be truncated before starting migration. + :type target_database_name: str + :param make_source_db_read_only: Whether to set database read only before + migration + :type make_source_db_read_only: bool + :param table_map: Mapping of source to target tables + :type table_map: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'make_source_db_read_only': {'key': 'makeSourceDbReadOnly', 'type': 'bool'}, + 'table_map': {'key': 'tableMap', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.target_database_name = kwargs.get('target_database_name', None) + self.make_source_db_read_only = kwargs.get('make_source_db_read_only', None) + self.table_map = kwargs.get('table_map', None) + + +class MigrateSqlServerSqlDbSyncDatabaseInput(Model): + """Database specific information for SQL to Azure SQL DB sync migration task + inputs. + + :param id: Unique identifier for database + :type id: str + :param name: Name of database + :type name: str + :param target_database_name: Target database name + :type target_database_name: str + :param schema_name: Schema name to be migrated + :type schema_name: str + :param table_map: Mapping of source to target tables + :type table_map: dict[str, 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 = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'table_map': {'key': 'tableMap', '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(MigrateSqlServerSqlDbSyncDatabaseInput, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.target_database_name = kwargs.get('target_database_name', None) + self.schema_name = kwargs.get('schema_name', None) + self.table_map = kwargs.get('table_map', 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) + + +class MigrateSqlServerSqlDbSyncTaskInput(SqlMigrationTaskInput): + """Input for the task that migrates on-prem SQL Server databases to Azure SQL + Database for online migrations. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] + :param validation_options: Validation options + :type validation_options: + ~azure.mgmt.datamigration.models.MigrationValidationOptions + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, + 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbSyncTaskInput, self).__init__(**kwargs) + self.selected_databases = kwargs.get('selected_databases', None) + self.validation_options = kwargs.get('validation_options', None) + + +class MigrateSqlServerSqlDbSyncTaskOutput(Model): + """Output for the task that migrates on-prem SQL Server databases to Azure SQL + Database for online migrations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, + MigrateSqlServerSqlDbSyncTaskOutputError, + MigrateSqlServerSqlDbSyncTaskOutputTableLevel, + MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, + MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel + + 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': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateSqlServerSqlDbSyncTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputDatabaseError. + + 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = kwargs.get('error_message', None) + self.events = kwargs.get('events', None) + self.result_type = 'DatabaseLevelErrorOutput' + + +class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel. + + 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, 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' + + +class MigrateSqlServerSqlDbSyncTaskOutputError(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputError. + + 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(MigrateSqlServerSqlDbSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel. + + 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 + :ivar database_count: Count of databases + :vartype database_count: int + """ + + _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}, + 'database_count': {'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'}, + 'database_count': {'key': 'databaseCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel, 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.database_count = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlDbSyncTaskOutputTableLevel(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputTableLevel. + + 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(MigrateSqlServerSqlDbSyncTaskOutputTableLevel, 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' + + +class MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates on-prem SQL Server databases to Azure + SQL Database 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.MigrateSqlServerSqlDbSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput] + """ + + _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': 'MigrateSqlServerSqlDbSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbSyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.SqlServer.AzureSqlDb.Sync' + + +class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): + """Input for the task that migrates on-prem SQL Server databases to Azure SQL + Database. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] + :param validation_options: Options for enabling various post migration + validations. Available options, + 1.) Data Integrity Check: Performs a checksum based comparison on source + and target tables after the migration to ensure the correctness of the + data. + 2.) Schema Validation: Performs a thorough schema comparison between the + source and target tables and provides a list of differences between the + source and target database, 3.) Query Analysis: Executes a set of queries + picked up automatically either from the Query Plan Cache or Query Store + and execute them and compares the execution time between the source and + target database. + :type validation_options: + ~azure.mgmt.datamigration.models.MigrationValidationOptions + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbDatabaseInput]'}, + 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbTaskInput, self).__init__(**kwargs) + self.selected_databases = kwargs.get('selected_databases', None) + self.validation_options = kwargs.get('validation_options', None) + + +class MigrateSqlServerSqlDbTaskOutput(Model): + """Output for the task that migrates on-prem SQL Server databases to Azure SQL + Database. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlDbTaskOutputError, + MigrateSqlServerSqlDbTaskOutputTableLevel, + MigrateSqlServerSqlDbTaskOutputDatabaseLevel, + MigrateSqlServerSqlDbTaskOutputMigrationLevel + + 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': {'ErrorOutput': 'MigrateSqlServerSqlDbTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputDatabaseLevel. + + 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 item + :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 state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Migration stage that this database is in. Possible values + include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', + 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.DatabaseMigrationStage + :ivar status_message: Status message + :vartype status_message: str + :ivar message: Migration progress message + :vartype message: str + :ivar number_of_objects: Number of objects + :vartype number_of_objects: long + :ivar number_of_objects_completed: Number of successfully completed + objects + :vartype number_of_objects_completed: long + :ivar error_count: Number of database/object errors. + :vartype error_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar object_summary: Summary of object results in the migration + :vartype object_summary: dict[str, + ~azure.mgmt.datamigration.models.DataItemMigrationSummaryResult] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'status_message': {'readonly': True}, + 'message': {'readonly': True}, + 'number_of_objects': {'readonly': True}, + 'number_of_objects_completed': {'readonly': True}, + 'error_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + 'object_summary': {'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'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'number_of_objects': {'key': 'numberOfObjects', 'type': 'long'}, + 'number_of_objects_completed': {'key': 'numberOfObjectsCompleted', 'type': 'long'}, + 'error_count': {'key': 'errorCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + 'object_summary': {'key': 'objectSummary', 'type': '{DataItemMigrationSummaryResult}'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.started_on = None + self.ended_on = None + self.state = None + self.stage = None + self.status_message = None + self.message = None + self.number_of_objects = None + self.number_of_objects_completed = None + self.error_count = None + self.error_prefix = None + self.result_prefix = None + self.exceptions_and_warnings = None + self.object_summary = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSqlServerSqlDbTaskOutputError(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputError. + + 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(MigrateSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlDbTaskOutputMigrationLevel(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputMigrationLevel. + + 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 duration_in_seconds: Duration of task execution in seconds. + :vartype duration_in_seconds: long + :ivar status: Current status of migration. Possible values include: + 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + 'CompletedWithWarnings' + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar status_message: Migration status message + :vartype status_message: str + :ivar message: Migration progress message + :vartype message: str + :ivar databases: Selected databases as a map from database name to + database id + :vartype databases: dict[str, str] + :ivar database_summary: Summary of database results in the migration + :vartype database_summary: dict[str, + ~azure.mgmt.datamigration.models.DatabaseSummaryResult] + :param migration_validation_result: Migration Validation Results + :type migration_validation_result: + ~azure.mgmt.datamigration.models.MigrationValidationResult + :param migration_report_result: Migration Report Result, provides unique + url for downloading your migration report. + :type migration_report_result: + ~azure.mgmt.datamigration.models.MigrationReportResult + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'duration_in_seconds': {'readonly': True}, + 'status': {'readonly': True}, + 'status_message': {'readonly': True}, + 'message': {'readonly': True}, + 'databases': {'readonly': True}, + 'database_summary': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'exceptions_and_warnings': {'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'}, + 'duration_in_seconds': {'key': 'durationInSeconds', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'database_summary': {'key': 'databaseSummary', 'type': '{DatabaseSummaryResult}'}, + 'migration_validation_result': {'key': 'migrationValidationResult', 'type': 'MigrationValidationResult'}, + 'migration_report_result': {'key': 'migrationReportResult', 'type': 'MigrationReportResult'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) + self.started_on = None + self.ended_on = None + self.duration_in_seconds = None + self.status = None + self.status_message = None + self.message = None + self.databases = None + self.database_summary = None + self.migration_validation_result = kwargs.get('migration_validation_result', None) + self.migration_report_result = kwargs.get('migration_report_result', None) + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_version = None + self.target_server_brand_version = None + self.exceptions_and_warnings = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlDbTaskOutputTableLevel(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputTableLevel. + + 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 object_name: Name of the item + :vartype object_name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message + :vartype status_message: str + :ivar items_count: Number of items + :vartype items_count: long + :ivar items_completed_count: Number of successfully completed items + :vartype items_completed_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'object_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'items_count': {'readonly': True}, + 'items_completed_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'items_count': {'key': 'itemsCount', 'type': 'long'}, + 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbTaskOutputTableLevel, self).__init__(**kwargs) + self.object_name = None + self.started_on = None + self.ended_on = None + self.state = None + self.status_message = None + self.items_count = None + self.items_completed_count = None + self.error_prefix = None + self.result_prefix = None + self.result_type = 'TableLevelOutput' + + +class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates on-prem SQL Server databases to Azure + SQL Database. + + 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.MigrateSqlServerSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput] + """ + + _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': 'MigrateSqlServerSqlDbTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlDbTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.SqlServer.SqlDb' + + +class MigrateSqlServerSqlMIDatabaseInput(Model): + """Database specific information for SQL to Azure SQL DB Managed Instance + migration task inputs. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the database + :type name: str + :param restore_database_name: Required. Name of the database at + destination + :type restore_database_name: str + :param backup_file_share: Backup file share information for backing up + this database. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param backup_file_paths: The list of backup files to be used in case of + existing backups. + :type backup_file_paths: list[str] + """ + + _validation = { + 'name': {'required': True}, + 'restore_database_name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'backup_file_paths': {'key': 'backupFilePaths', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMIDatabaseInput, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.restore_database_name = kwargs.get('restore_database_name', None) + self.backup_file_share = kwargs.get('backup_file_share', None) + self.backup_file_paths = kwargs.get('backup_file_paths', None) + + +class SqlServerSqlMISyncTaskInput(Model): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance online scenario. + + 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.MigrateSqlServerSqlMIDatabaseInput] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param storage_resource_id: Required. Fully qualified resourceId of + storage + :type storage_resource_id: str + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'selected_databases': {'required': True}, + 'storage_resource_id': {'required': True}, + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, **kwargs): + super(SqlServerSqlMISyncTaskInput, self).__init__(**kwargs) + self.selected_databases = kwargs.get('selected_databases', None) + self.backup_file_share = kwargs.get('backup_file_share', None) + self.storage_resource_id = kwargs.get('storage_resource_id', None) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.azure_app = kwargs.get('azure_app', None) + + +class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance online scenario. + + 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.MigrateSqlServerSqlMIDatabaseInput] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param storage_resource_id: Required. Fully qualified resourceId of + storage + :type storage_resource_id: str + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'selected_databases': {'required': True}, + 'storage_resource_id': {'required': True}, + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMISyncTaskInput, self).__init__(**kwargs) + + +class MigrateSqlServerSqlMISyncTaskOutput(Model): + """Output for task that migrates SQL Server databases to Azure SQL Database + Managed Instance using Log Replay Service. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlMISyncTaskOutputError, + MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, + MigrateSqlServerSqlMISyncTaskOutputMigrationLevel + + 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': {'ErrorOutput': 'MigrateSqlServerSqlMISyncTaskOutputError', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(MigrateSqlServerSqlMISyncTaskOutput): + """MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. + + 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 source_database_name: Name of the database + :vartype source_database_name: str + :ivar migration_state: Current state of database. Possible values include: + 'UNDEFINED', 'INITIAL', 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', + 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', + 'COMPLETED', 'CANCELLED', 'FAILED' + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.DatabaseMigrationState + :ivar started_on: Database migration start time + :vartype started_on: datetime + :ivar ended_on: Database migration end time + :vartype ended_on: datetime + :ivar full_backup_set_info: Details of full backup set + :vartype full_backup_set_info: + ~azure.mgmt.datamigration.models.BackupSetInfo + :ivar last_restored_backup_set_info: Last applied backup set information + :vartype last_restored_backup_set_info: + ~azure.mgmt.datamigration.models.BackupSetInfo + :ivar active_backup_sets: Backup sets that are currently active (Either + being uploaded or getting restored) + :vartype active_backup_sets: + list[~azure.mgmt.datamigration.models.BackupSetInfo] + :ivar container_name: Name of container created in the Azure Storage + account where backups are copied to + :vartype container_name: str + :ivar error_prefix: prefix string to use for querying errors for this + database + :vartype error_prefix: str + :ivar is_full_backup_restored: Whether full backup has been applied to the + target database or not + :vartype is_full_backup_restored: bool + :ivar exceptions_and_warnings: Migration exceptions and warnings + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'source_database_name': {'readonly': True}, + 'migration_state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'full_backup_set_info': {'readonly': True}, + 'last_restored_backup_set_info': {'readonly': True}, + 'active_backup_sets': {'readonly': True}, + 'container_name': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'is_full_backup_restored': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'full_backup_set_info': {'key': 'fullBackupSetInfo', 'type': 'BackupSetInfo'}, + 'last_restored_backup_set_info': {'key': 'lastRestoredBackupSetInfo', 'type': 'BackupSetInfo'}, + 'active_backup_sets': {'key': 'activeBackupSets', 'type': '[BackupSetInfo]'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'is_full_backup_restored': {'key': 'isFullBackupRestored', 'type': 'bool'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.source_database_name = None + self.migration_state = None + self.started_on = None + self.ended_on = None + self.full_backup_set_info = None + self.last_restored_backup_set_info = None + self.active_backup_sets = None + self.container_name = None + self.error_prefix = None + self.is_full_backup_restored = None + self.exceptions_and_warnings = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutput): + """MigrateSqlServerSqlMISyncTaskOutputError. + + 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(MigrateSqlServerSqlMISyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(MigrateSqlServerSqlMISyncTaskOutput): + """MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. + + 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_count: Count of databases + :vartype database_count: int + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar source_server_name: Source server name + :vartype source_server_name: str + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_name: Target server name + :vartype target_server_name: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar database_error_count: Number of database level errors + :vartype database_error_count: int + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_count': {'readonly': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'source_server_name': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_name': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'database_error_count': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_count': {'key': 'databaseCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'database_error_count': {'key': 'databaseErrorCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, self).__init__(**kwargs) + self.database_count = None + self.state = None + self.started_on = None + self.ended_on = None + self.source_server_name = None + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_name = None + self.target_server_version = None + self.target_server_brand_version = None + self.database_error_count = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): + """Properties for task that migrates SQL Server databases to Azure SQL + Database Managed Instance sync scenario. + + 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.MigrateSqlServerSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput] + """ + + _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': 'MigrateSqlServerSqlMISyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMISyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMISyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS' + + +class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :param selected_logins: Logins to migrate. + :type selected_logins: list[str] + :param selected_agent_jobs: Agent Jobs to migrate. + :type selected_agent_jobs: list[str] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param backup_blob_share: Required. SAS URI of Azure Storage Account + Container to be used for storing backup files. + :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare + :param backup_mode: Backup Mode to specify whether to use existing backup + or create new backup. If using existing backups, backup file paths are + required to be provided in selectedDatabases. Possible values include: + 'CreateBackup', 'ExistingBackup' + :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + 'backup_blob_share': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, + 'selected_agent_jobs': {'key': 'selectedAgentJobs', 'type': '[str]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, + 'backup_mode': {'key': 'backupMode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskInput, self).__init__(**kwargs) + self.selected_databases = kwargs.get('selected_databases', None) + self.selected_logins = kwargs.get('selected_logins', None) + self.selected_agent_jobs = kwargs.get('selected_agent_jobs', None) + self.backup_file_share = kwargs.get('backup_file_share', None) + self.backup_blob_share = kwargs.get('backup_blob_share', None) + self.backup_mode = kwargs.get('backup_mode', None) + + +class MigrateSqlServerSqlMITaskOutput(Model): + """Output for task that migrates SQL Server databases to Azure SQL Database + Managed Instance. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlMITaskOutputError, + MigrateSqlServerSqlMITaskOutputLoginLevel, + MigrateSqlServerSqlMITaskOutputAgentJobLevel, + MigrateSqlServerSqlMITaskOutputDatabaseLevel, + MigrateSqlServerSqlMITaskOutputMigrationLevel + + 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': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'LoginLevelOutput': 'MigrateSqlServerSqlMITaskOutputLoginLevel', 'AgentJobLevelOutput': 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputAgentJobLevel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Agent Job name. + :vartype name: str + :ivar is_enabled: The state of the original Agent Job. + :vartype is_enabled: bool + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar message: Migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Migration errors and warnings per job + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'state': {'key': 'state', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskOutputAgentJobLevel, self).__init__(**kwargs) + self.name = None + self.is_enabled = None + self.state = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'AgentJobLevelOutput' + + +class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputDatabaseLevel. + + 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 size_mb: Size of the database in megabytes + :vartype size_mb: float + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of migration. Possible values include: 'None', + 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.DatabaseMigrationStage + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar message: Migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Migration exceptions and warnings + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'size_mb': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.size_mb = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputError. + + 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(MigrateSqlServerSqlMITaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputLoginLevel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar login_name: Login name. + :vartype login_name: str + :ivar state: Current state of login. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of login. Possible values include: 'None', + 'Initialize', 'LoginMigration', 'EstablishUserMapping', + 'AssignRoleMembership', 'AssignRoleOwnership', + 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.LoginMigrationStage + :ivar started_on: Login migration start time + :vartype started_on: datetime + :ivar ended_on: Login migration end time + :vartype ended_on: datetime + :ivar message: Login migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Login migration errors and warnings per + login + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'login_name': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'login_name': {'key': 'loginName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskOutputLoginLevel, self).__init__(**kwargs) + self.login_name = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'LoginLevelOutput' + + +class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputMigrationLevel. + + 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 status: Current status of migration. Possible values include: + 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + 'CompletedWithWarnings' + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar agent_jobs: Selected agent jobs as a map from name to id + :vartype agent_jobs: dict[str, str] + :ivar logins: Selected logins as a map from name to id + :vartype logins: dict[str, str] + :ivar message: Migration progress message + :vartype message: str + :ivar server_role_results: Map of server role migration results. + :vartype server_role_results: dict[str, + ~azure.mgmt.datamigration.models.StartMigrationScenarioServerRoleResult] + :ivar orphaned_users_info: List of orphaned users. + :vartype orphaned_users_info: + list[~azure.mgmt.datamigration.models.OrphanedUserInfo] + :ivar databases: Selected databases as a map from database name to + database id + :vartype databases: dict[str, str] + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'status': {'readonly': True}, + 'state': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'logins': {'readonly': True}, + 'message': {'readonly': True}, + 'server_role_results': {'readonly': True}, + 'orphaned_users_info': {'readonly': True}, + 'databases': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'exceptions_and_warnings': {'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'}, + 'status': {'key': 'status', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, + 'logins': {'key': 'logins', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'server_role_results': {'key': 'serverRoleResults', 'type': '{StartMigrationScenarioServerRoleResult}'}, + 'orphaned_users_info': {'key': 'orphanedUsersInfo', 'type': '[OrphanedUserInfo]'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskOutputMigrationLevel, self).__init__(**kwargs) + self.started_on = None + self.ended_on = None + self.status = None + self.state = None + self.agent_jobs = None + self.logins = None + self.message = None + self.server_role_results = None + self.orphaned_users_info = None + self.databases = None + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_version = None + self.target_server_brand_version = None + self.exceptions_and_warnings = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties): + """Properties for task that migrates SQL Server databases to Azure SQL + Database Managed Instance. + + 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.MigrateSqlServerSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput] + """ + + _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': 'MigrateSqlServerSqlMITaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMITaskOutput]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlMITaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Migrate.SqlServer.AzureSqlDbMI' + + +class MigrateSqlServerSqlServerDatabaseInput(Model): + """Database specific information for SQL to SQL migration task inputs. + + :param name: Name of the database + :type name: str + :param restore_database_name: Name of the database at destination + :type restore_database_name: str + :param backup_and_restore_folder: The backup and restore folder + :type backup_and_restore_folder: str + :param database_files: The list of database files + :type database_files: + list[~azure.mgmt.datamigration.models.DatabaseFileInput] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, + 'backup_and_restore_folder': {'key': 'backupAndRestoreFolder', 'type': 'str'}, + 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInput]'}, + } + + def __init__(self, **kwargs): + super(MigrateSqlServerSqlServerDatabaseInput, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.restore_database_name = kwargs.get('restore_database_name', None) + self.backup_and_restore_folder = kwargs.get('backup_and_restore_folder', None) + self.database_files = kwargs.get('database_files', None) + + +class MigrateSyncCompleteCommandInput(Model): + """Input for command that completes sync migration for a database. + + All required parameters must be populated in order to send to Azure. + + :param database_name: Required. Name of database + :type database_name: str + :param commit_time_stamp: Time stamp to complete + :type commit_time_stamp: datetime + """ + + _validation = { + 'database_name': {'required': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'commit_time_stamp': {'key': 'commitTimeStamp', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(MigrateSyncCompleteCommandInput, self).__init__(**kwargs) + self.database_name = kwargs.get('database_name', None) + self.commit_time_stamp = kwargs.get('commit_time_stamp', None) + + +class MigrateSyncCompleteCommandOutput(Model): + """Output for command that completes sync migration for a database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar errors: List of errors that happened during the command execution + :vartype errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(MigrateSyncCompleteCommandOutput, self).__init__(**kwargs) + self.id = None + self.errors = None + + +class MigrateSyncCompleteCommandProperties(CommandProperties): + """Properties for the command that completes sync migration for a database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: + ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput + :ivar output: Command output. This is ignored if submitted. + :vartype output: + ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateSyncCompleteCommandInput'}, + 'output': {'key': 'output', 'type': 'MigrateSyncCompleteCommandOutput'}, + } + + def __init__(self, **kwargs): + super(MigrateSyncCompleteCommandProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.command_type = 'Migrate.Sync.Complete.Database' + + +class MigrationEligibilityInfo(Model): + """Information about migration eligibility of a server object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar is_eligibile_for_migration: Whether object is eligible for migration + or not. + :vartype is_eligibile_for_migration: bool + :ivar validation_messages: Information about eligibility failure for the + server object. + :vartype validation_messages: list[str] + """ + + _validation = { + 'is_eligibile_for_migration': {'readonly': True}, + 'validation_messages': {'readonly': True}, + } + + _attribute_map = { + 'is_eligibile_for_migration': {'key': 'isEligibileForMigration', 'type': 'bool'}, + 'validation_messages': {'key': 'validationMessages', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(MigrationEligibilityInfo, self).__init__(**kwargs) + self.is_eligibile_for_migration = None + self.validation_messages = None + + +class MigrationReportResult(Model): + """Migration validation report result, contains the url for downloading the + generated report. + + :param id: Migration validation result identifier + :type id: str + :param report_url: The url of the report. + :type report_url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'report_url': {'key': 'reportUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrationReportResult, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.report_url = kwargs.get('report_url', None) + + +class MigrationTableMetadata(Model): + """Metadata for tables selected in migration project. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar source_table_name: Source table name + :vartype source_table_name: str + :ivar target_table_name: Target table name + :vartype target_table_name: str + """ + + _validation = { + 'source_table_name': {'readonly': True}, + 'target_table_name': {'readonly': True}, + } + + _attribute_map = { + 'source_table_name': {'key': 'sourceTableName', 'type': 'str'}, + 'target_table_name': {'key': 'targetTableName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrationTableMetadata, self).__init__(**kwargs) + self.source_table_name = None + self.target_table_name = None + + +class MigrationValidationDatabaseLevelResult(Model): + """Database level validation results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar migration_id: Migration Identifier + :vartype migration_id: str + :ivar source_database_name: Name of the source database + :vartype source_database_name: str + :ivar target_database_name: Name of the target database + :vartype target_database_name: str + :ivar started_on: Validation start time + :vartype started_on: datetime + :ivar ended_on: Validation end time + :vartype ended_on: datetime + :ivar data_integrity_validation_result: Provides data integrity validation + result between the source and target tables that are migrated. + :vartype data_integrity_validation_result: + ~azure.mgmt.datamigration.models.DataIntegrityValidationResult + :ivar schema_validation_result: Provides schema comparison result between + source and target database + :vartype schema_validation_result: + ~azure.mgmt.datamigration.models.SchemaComparisonValidationResult + :ivar query_analysis_validation_result: Results of some of the query + execution result between source and target database + :vartype query_analysis_validation_result: + ~azure.mgmt.datamigration.models.QueryAnalysisValidationResult + :ivar status: Current status of validation at the database level. Possible + values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', + 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'migration_id': {'readonly': True}, + 'source_database_name': {'readonly': True}, + 'target_database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'data_integrity_validation_result': {'readonly': True}, + 'schema_validation_result': {'readonly': True}, + 'query_analysis_validation_result': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'migration_id': {'key': 'migrationId', 'type': 'str'}, + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'data_integrity_validation_result': {'key': 'dataIntegrityValidationResult', 'type': 'DataIntegrityValidationResult'}, + 'schema_validation_result': {'key': 'schemaValidationResult', 'type': 'SchemaComparisonValidationResult'}, + 'query_analysis_validation_result': {'key': 'queryAnalysisValidationResult', 'type': 'QueryAnalysisValidationResult'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrationValidationDatabaseLevelResult, self).__init__(**kwargs) + self.id = None + self.migration_id = None + self.source_database_name = None + self.target_database_name = None + self.started_on = None + self.ended_on = None + self.data_integrity_validation_result = None + self.schema_validation_result = None + self.query_analysis_validation_result = None + self.status = None + + +class MigrationValidationDatabaseSummaryResult(Model): + """Migration Validation Database level summary result. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar migration_id: Migration Identifier + :vartype migration_id: str + :ivar source_database_name: Name of the source database + :vartype source_database_name: str + :ivar target_database_name: Name of the target database + :vartype target_database_name: str + :ivar started_on: Validation start time + :vartype started_on: datetime + :ivar ended_on: Validation end time + :vartype ended_on: datetime + :ivar status: Current status of validation at the database level. Possible + values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', + 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'migration_id': {'readonly': True}, + 'source_database_name': {'readonly': True}, + 'target_database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'migration_id': {'key': 'migrationId', 'type': 'str'}, + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrationValidationDatabaseSummaryResult, self).__init__(**kwargs) + self.id = None + self.migration_id = None + self.source_database_name = None + self.target_database_name = None + self.started_on = None + self.ended_on = None + self.status = None + + +class MigrationValidationOptions(Model): + """Types of validations to run after the migration. + + :param enable_schema_validation: Allows to compare the schema information + between source and target. + :type enable_schema_validation: bool + :param enable_data_integrity_validation: Allows to perform a checksum + based data integrity validation between source and target for the selected + database / tables . + :type enable_data_integrity_validation: bool + :param enable_query_analysis_validation: Allows to perform a quick and + intelligent query analysis by retrieving queries from the source database + and executes them in the target. The result will have execution statistics + for executions in source and target databases for the extracted queries. + :type enable_query_analysis_validation: bool + """ + + _attribute_map = { + 'enable_schema_validation': {'key': 'enableSchemaValidation', 'type': 'bool'}, + 'enable_data_integrity_validation': {'key': 'enableDataIntegrityValidation', 'type': 'bool'}, + 'enable_query_analysis_validation': {'key': 'enableQueryAnalysisValidation', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MigrationValidationOptions, self).__init__(**kwargs) + self.enable_schema_validation = kwargs.get('enable_schema_validation', None) + self.enable_data_integrity_validation = kwargs.get('enable_data_integrity_validation', None) + self.enable_query_analysis_validation = kwargs.get('enable_query_analysis_validation', None) + + +class MigrationValidationResult(Model): + """Migration Validation Result. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Migration validation result identifier + :vartype id: str + :ivar migration_id: Migration Identifier + :vartype migration_id: str + :param summary_results: Validation summary results for each database + :type summary_results: dict[str, + ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] + :ivar status: Current status of validation at the migration level. Status + from the database validation result status will be aggregated here. + Possible values include: 'Default', 'NotStarted', 'Initialized', + 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'migration_id': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'migration_id': {'key': 'migrationId', 'type': 'str'}, + 'summary_results': {'key': 'summaryResults', 'type': '{MigrationValidationDatabaseSummaryResult}'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MigrationValidationResult, self).__init__(**kwargs) + self.id = None + self.migration_id = None + self.summary_results = kwargs.get('summary_results', None) + self.status = None + + +class MiSqlConnectionInfo(ConnectionInfo): + """Properties required to create a connection to Azure SQL database Managed + instance. + + 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 managed_instance_resource_id: Required. Resource id for Azure SQL + database Managed instance + :type managed_instance_resource_id: str + """ + + _validation = { + 'type': {'required': True}, + 'managed_instance_resource_id': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'managed_instance_resource_id': {'key': 'managedInstanceResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MiSqlConnectionInfo, self).__init__(**kwargs) + self.managed_instance_resource_id = kwargs.get('managed_instance_resource_id', None) + self.type = 'MiSqlConnectionInfo' + + +class MongoDbCancelCommand(CommandProperties): + """Properties for the command that cancels a migration in whole or in part. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, + } + + def __init__(self, **kwargs): + super(MongoDbCancelCommand, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.command_type = 'cancel' + + +class MongoDbClusterInfo(Model): + """Describes a MongoDB data source. + + All required parameters must be populated in order to send to Azure. + + :param databases: Required. A list of non-system databases in the cluster + :type databases: + list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] + :param supports_sharding: Required. Whether the cluster supports sharded + collections + :type supports_sharding: bool + :param type: Required. The type of data source. Possible values include: + 'BlobContainer', 'CosmosDb', 'MongoDb' + :type type: str or ~azure.mgmt.datamigration.models.MongoDbClusterType + :param version: Required. The version of the data source in the form x.y.z + (e.g. 3.6.7). Not used if Type is BlobContainer. + :type version: str + """ + + _validation = { + 'databases': {'required': True}, + 'supports_sharding': {'required': True}, + 'type': {'required': True}, + 'version': {'required': True}, + } + + _attribute_map = { + 'databases': {'key': 'databases', 'type': '[MongoDbDatabaseInfo]'}, + 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MongoDbClusterInfo, self).__init__(**kwargs) + self.databases = kwargs.get('databases', None) + self.supports_sharding = kwargs.get('supports_sharding', None) + self.type = kwargs.get('type', None) + self.version = kwargs.get('version', None) + + +class MongoDbObjectInfo(Model): + """Describes a database or collection within a MongoDB data source. + + All required parameters must be populated in order to send to Azure. + + :param average_document_size: Required. The average document size, or -1 + if the average size is unknown + :type average_document_size: long + :param data_size: Required. The estimated total data size, in bytes, or -1 + if the size is unknown. + :type data_size: long + :param document_count: Required. The estimated total number of documents, + or -1 if the document count is unknown + :type document_count: long + :param name: Required. The unqualified name of the database or collection + :type name: str + :param qualified_name: Required. The qualified name of the database or + collection. For a collection, this is the database-qualified name. + :type qualified_name: str + """ + + _validation = { + 'average_document_size': {'required': True}, + 'data_size': {'required': True}, + 'document_count': {'required': True}, + 'name': {'required': True}, + 'qualified_name': {'required': True}, + } + + _attribute_map = { + 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, + 'data_size': {'key': 'dataSize', 'type': 'long'}, + 'document_count': {'key': 'documentCount', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MongoDbObjectInfo, self).__init__(**kwargs) + self.average_document_size = kwargs.get('average_document_size', None) + self.data_size = kwargs.get('data_size', None) + self.document_count = kwargs.get('document_count', None) + self.name = kwargs.get('name', None) + self.qualified_name = kwargs.get('qualified_name', None) + + +class MongoDbCollectionInfo(MongoDbObjectInfo): + """Describes a supported collection within a MongoDB database. + + All required parameters must be populated in order to send to Azure. + + :param average_document_size: Required. The average document size, or -1 + if the average size is unknown + :type average_document_size: long + :param data_size: Required. The estimated total data size, in bytes, or -1 + if the size is unknown. + :type data_size: long + :param document_count: Required. The estimated total number of documents, + or -1 if the document count is unknown + :type document_count: long + :param name: Required. The unqualified name of the database or collection + :type name: str + :param qualified_name: Required. The qualified name of the database or + collection. For a collection, this is the database-qualified name. + :type qualified_name: str + :param database_name: Required. The name of the database containing the + collection + :type database_name: str + :param is_capped: Required. Whether the collection is a capped collection + (i.e. whether it has a fixed size and acts like a circular buffer) + :type is_capped: bool + :param is_system_collection: Required. Whether the collection is system + collection + :type is_system_collection: bool + :param is_view: Required. Whether the collection is a view of another + collection + :type is_view: bool + :param shard_key: The shard key on the collection, or null if the + collection is not sharded + :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeyInfo + :param supports_sharding: Required. Whether the database has sharding + enabled. Note that the migration task will enable sharding on the target + if necessary. + :type supports_sharding: bool + :param view_of: The name of the collection that this is a view of, if + IsView is true + :type view_of: str + """ + + _validation = { + 'average_document_size': {'required': True}, + 'data_size': {'required': True}, + 'document_count': {'required': True}, + 'name': {'required': True}, + 'qualified_name': {'required': True}, + 'database_name': {'required': True}, + 'is_capped': {'required': True}, + 'is_system_collection': {'required': True}, + 'is_view': {'required': True}, + 'supports_sharding': {'required': True}, + } + + _attribute_map = { + 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, + 'data_size': {'key': 'dataSize', 'type': 'long'}, + 'document_count': {'key': 'documentCount', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'is_capped': {'key': 'isCapped', 'type': 'bool'}, + 'is_system_collection': {'key': 'isSystemCollection', 'type': 'bool'}, + 'is_view': {'key': 'isView', 'type': 'bool'}, + 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeyInfo'}, + 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, + 'view_of': {'key': 'viewOf', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MongoDbCollectionInfo, self).__init__(**kwargs) + self.database_name = kwargs.get('database_name', None) + self.is_capped = kwargs.get('is_capped', None) + self.is_system_collection = kwargs.get('is_system_collection', None) + self.is_view = kwargs.get('is_view', None) + self.shard_key = kwargs.get('shard_key', None) + self.supports_sharding = kwargs.get('supports_sharding', None) + self.view_of = kwargs.get('view_of', None) + + +class MongoDbProgress(Model): + """Base class for MongoDB migration outputs. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(MongoDbProgress, self).__init__(**kwargs) + self.bytes_copied = kwargs.get('bytes_copied', None) + self.documents_copied = kwargs.get('documents_copied', None) + self.elapsed_time = kwargs.get('elapsed_time', None) + self.errors = kwargs.get('errors', None) + self.events_pending = kwargs.get('events_pending', None) + self.events_replayed = kwargs.get('events_replayed', None) + self.last_event_time = kwargs.get('last_event_time', None) + self.last_replay_time = kwargs.get('last_replay_time', None) + self.name = kwargs.get('name', None) + self.qualified_name = kwargs.get('qualified_name', None) + self.result_type = kwargs.get('result_type', None) + self.state = kwargs.get('state', None) + self.total_bytes = kwargs.get('total_bytes', None) + self.total_documents = kwargs.get('total_documents', None) + + +class MongoDbCollectionProgress(MongoDbProgress): + """Describes the progress of a collection. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(MongoDbCollectionProgress, self).__init__(**kwargs) + + +class MongoDbCollectionSettings(Model): + """Describes how an individual MongoDB collection should be migrated. + + :param can_delete: Whether the migrator is allowed to drop the target + collection in the course of performing a migration. The default is true. + :type can_delete: bool + :param shard_key: + :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting + :param target_rus: The RUs that should be configured on a CosmosDB target, + or null to use the default. This has no effect on non-CosmosDB targets. + :type target_rus: int + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeySetting'}, + 'target_rus': {'key': 'targetRUs', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MongoDbCollectionSettings, self).__init__(**kwargs) + self.can_delete = kwargs.get('can_delete', None) + self.shard_key = kwargs.get('shard_key', None) + self.target_rus = kwargs.get('target_rus', None) + + +class MongoDbCommandInput(Model): + """Describes the input to the 'cancel' and 'restart' MongoDB migration + commands. + + :param object_name: The qualified name of a database or collection to act + upon, or null to act upon the entire migration + :type object_name: str + """ + + _attribute_map = { + 'object_name': {'key': 'objectName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MongoDbCommandInput, self).__init__(**kwargs) + self.object_name = kwargs.get('object_name', None) + + +class MongoDbConnectionInfo(ConnectionInfo): + """Describes a connection to a MongoDB data source. + + 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 connection_string: Required. A MongoDB connection string or blob + container URL. The user name and password can be specified here or in the + userName and password properties + :type connection_string: str + """ + + _validation = { + 'type': {'required': True}, + 'connection_string': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'connection_string': {'key': 'connectionString', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MongoDbConnectionInfo, self).__init__(**kwargs) + self.connection_string = kwargs.get('connection_string', None) + self.type = 'MongoDbConnectionInfo' + + +class MongoDbDatabaseInfo(MongoDbObjectInfo): + """Describes a database within a MongoDB data source. + + All required parameters must be populated in order to send to Azure. + + :param average_document_size: Required. The average document size, or -1 + if the average size is unknown + :type average_document_size: long + :param data_size: Required. The estimated total data size, in bytes, or -1 + if the size is unknown. + :type data_size: long + :param document_count: Required. The estimated total number of documents, + or -1 if the document count is unknown + :type document_count: long + :param name: Required. The unqualified name of the database or collection + :type name: str + :param qualified_name: Required. The qualified name of the database or + collection. For a collection, this is the database-qualified name. + :type qualified_name: str + :param collections: Required. A list of supported collections in a MongoDB + database + :type collections: + list[~azure.mgmt.datamigration.models.MongoDbCollectionInfo] + :param supports_sharding: Required. Whether the database has sharding + enabled. Note that the migration task will enable sharding on the target + if necessary. + :type supports_sharding: bool + """ + + _validation = { + 'average_document_size': {'required': True}, + 'data_size': {'required': True}, + 'document_count': {'required': True}, + 'name': {'required': True}, + 'qualified_name': {'required': True}, + 'collections': {'required': True}, + 'supports_sharding': {'required': True}, + } + + _attribute_map = { + 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, + 'data_size': {'key': 'dataSize', 'type': 'long'}, + 'document_count': {'key': 'documentCount', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'collections': {'key': 'collections', 'type': '[MongoDbCollectionInfo]'}, + 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MongoDbDatabaseInfo, self).__init__(**kwargs) + self.collections = kwargs.get('collections', None) + self.supports_sharding = kwargs.get('supports_sharding', None) + + +class MongoDbDatabaseProgress(MongoDbProgress): + """Describes the progress of a database. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + :param collections: The progress of the collections in the database. The + keys are the unqualified names of the collections + :type collections: dict[str, + ~azure.mgmt.datamigration.models.MongoDbCollectionProgress] + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + 'collections': {'key': 'collections', 'type': '{MongoDbCollectionProgress}'}, + } + + def __init__(self, **kwargs): + super(MongoDbDatabaseProgress, self).__init__(**kwargs) + self.collections = kwargs.get('collections', None) + + +class MongoDbDatabaseSettings(Model): + """Describes how an individual MongoDB database should be migrated. + + All required parameters must be populated in order to send to Azure. + + :param collections: Required. The collections on the source database to + migrate to the target. The keys are the unqualified names of the + collections. + :type collections: dict[str, + ~azure.mgmt.datamigration.models.MongoDbCollectionSettings] + :param target_rus: The RUs that should be configured on a CosmosDB target, + or null to use the default, or 0 if throughput should not be provisioned + for the database. This has no effect on non-CosmosDB targets. + :type target_rus: int + """ + + _validation = { + 'collections': {'required': True}, + } + + _attribute_map = { + 'collections': {'key': 'collections', 'type': '{MongoDbCollectionSettings}'}, + 'target_rus': {'key': 'targetRUs', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MongoDbDatabaseSettings, self).__init__(**kwargs) + self.collections = kwargs.get('collections', None) + self.target_rus = kwargs.get('target_rus', None) + + +class MongoDbError(Model): + """Describes an error or warning that occurred during a MongoDB migration. + + :param code: The non-localized, machine-readable code that describes the + error or warning + :type code: str + :param count: The number of times the error or warning has occurred + :type count: int + :param message: The localized, human-readable message that describes the + error or warning + :type message: str + :param type: The type of error or warning. Possible values include: + 'Error', 'ValidationError', 'Warning' + :type type: str or ~azure.mgmt.datamigration.models.MongoDbErrorType + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MongoDbError, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.count = kwargs.get('count', None) + self.message = kwargs.get('message', None) + self.type = kwargs.get('type', None) + + +class MongoDbFinishCommand(CommandProperties): + """Properties for the command that finishes a migration in whole or in part. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MongoDbFinishCommandInput'}, + } + + def __init__(self, **kwargs): + super(MongoDbFinishCommand, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.command_type = 'finish' + + +class MongoDbFinishCommandInput(MongoDbCommandInput): + """Describes the input to the 'finish' MongoDB migration command. + + All required parameters must be populated in order to send to Azure. + + :param object_name: The qualified name of a database or collection to act + upon, or null to act upon the entire migration + :type object_name: str + :param immediate: Required. If true, replication for the affected objects + will be stopped immediately. If false, the migrator will finish replaying + queued events before finishing the replication. + :type immediate: bool + """ + + _validation = { + 'immediate': {'required': True}, + } + + _attribute_map = { + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'immediate': {'key': 'immediate', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MongoDbFinishCommandInput, self).__init__(**kwargs) + self.immediate = kwargs.get('immediate', None) + + +class MongoDbMigrationProgress(MongoDbProgress): + """Describes the progress of the overall migration. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + :param databases: The progress of the databases in the migration. The keys + are the names of the databases + :type databases: dict[str, + ~azure.mgmt.datamigration.models.MongoDbDatabaseProgress] + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseProgress}'}, + } + + def __init__(self, **kwargs): + super(MongoDbMigrationProgress, self).__init__(**kwargs) + self.databases = kwargs.get('databases', None) + + +class MongoDbMigrationSettings(Model): + """Describes how a MongoDB data migration should be performed. + + All required parameters must be populated in order to send to Azure. + + :param boost_rus: The RU limit on a CosmosDB target that collections will + be temporarily increased to (if lower) during the initial copy of a + migration, from 10,000 to 1,000,000, or 0 to use the default boost (which + is generally the maximum), or null to not boost the RUs. This setting has + no effect on non-CosmosDB targets. + :type boost_rus: int + :param databases: Required. The databases on the source cluster to migrate + to the target. The keys are the names of the databases. + :type databases: dict[str, + ~azure.mgmt.datamigration.models.MongoDbDatabaseSettings] + :param replication: Describes how changes will be replicated from the + source to the target. The default is OneTime. Possible values include: + 'Disabled', 'OneTime', 'Continuous' + :type replication: str or + ~azure.mgmt.datamigration.models.MongoDbReplication + :param source: Required. Settings used to connect to the source cluster + :type source: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo + :param target: Required. Settings used to connect to the target cluster + :type target: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo + :param throttling: Settings used to limit the resource usage of the + migration + :type throttling: + ~azure.mgmt.datamigration.models.MongoDbThrottlingSettings + """ + + _validation = { + 'databases': {'required': True}, + 'source': {'required': True}, + 'target': {'required': True}, + } + + _attribute_map = { + 'boost_rus': {'key': 'boostRUs', 'type': 'int'}, + 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseSettings}'}, + 'replication': {'key': 'replication', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'MongoDbConnectionInfo'}, + 'target': {'key': 'target', 'type': 'MongoDbConnectionInfo'}, + 'throttling': {'key': 'throttling', 'type': 'MongoDbThrottlingSettings'}, + } + + def __init__(self, **kwargs): + super(MongoDbMigrationSettings, self).__init__(**kwargs) + self.boost_rus = kwargs.get('boost_rus', None) + self.databases = kwargs.get('databases', None) + self.replication = kwargs.get('replication', None) + self.source = kwargs.get('source', None) + self.target = kwargs.get('target', None) + self.throttling = kwargs.get('throttling', None) + + +class MongoDbRestartCommand(CommandProperties): + """Properties for the command that restarts a migration in whole or in part. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, + } + + def __init__(self, **kwargs): + super(MongoDbRestartCommand, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.command_type = 'restart' + + +class MongoDbShardKeyField(Model): + """Describes a field reference within a MongoDB shard key. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the field + :type name: str + :param order: Required. The field ordering. Possible values include: + 'Forward', 'Reverse', 'Hashed' + :type order: str or ~azure.mgmt.datamigration.models.MongoDbShardKeyOrder + """ + + _validation = { + 'name': {'required': True}, + 'order': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MongoDbShardKeyField, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.order = kwargs.get('order', None) + + +class MongoDbShardKeyInfo(Model): + """Describes a MongoDB shard key. + + All required parameters must be populated in order to send to Azure. + + :param fields: Required. The fields within the shard key + :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] + :param is_unique: Required. Whether the shard key is unique + :type is_unique: bool + """ + + _validation = { + 'fields': {'required': True}, + 'is_unique': {'required': True}, + } + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, + 'is_unique': {'key': 'isUnique', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MongoDbShardKeyInfo, self).__init__(**kwargs) + self.fields = kwargs.get('fields', None) + self.is_unique = kwargs.get('is_unique', None) + + +class MongoDbShardKeySetting(Model): + """Describes a MongoDB shard key. + + All required parameters must be populated in order to send to Azure. + + :param fields: Required. The fields within the shard key + :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] + :param is_unique: Required. Whether the shard key is unique + :type is_unique: bool + """ + + _validation = { + 'fields': {'required': True}, + 'is_unique': {'required': True}, + } + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, + 'is_unique': {'key': 'isUnique', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MongoDbShardKeySetting, self).__init__(**kwargs) + self.fields = kwargs.get('fields', None) + self.is_unique = kwargs.get('is_unique', None) + + +class MongoDbThrottlingSettings(Model): + """Specifies resource limits for the migration. + + :param min_free_cpu: The percentage of CPU time that the migrator will try + to avoid using, from 0 to 100 + :type min_free_cpu: int + :param min_free_memory_mb: The number of megabytes of RAM that the + migrator will try to avoid using + :type min_free_memory_mb: int + :param max_parallelism: The maximum number of work items (e.g. collection + copies) that will be processed in parallel + :type max_parallelism: int + """ + + _attribute_map = { + 'min_free_cpu': {'key': 'minFreeCpu', 'type': 'int'}, + 'min_free_memory_mb': {'key': 'minFreeMemoryMb', 'type': 'int'}, + 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MongoDbThrottlingSettings, self).__init__(**kwargs) + self.min_free_cpu = kwargs.get('min_free_cpu', None) + self.min_free_memory_mb = kwargs.get('min_free_memory_mb', None) + self.max_parallelism = kwargs.get('max_parallelism', None) + + +class MySqlConnectionInfo(ConnectionInfo): + """Information for connecting to MySQL 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 server_name: Required. Name of the server + :type server_name: str + :param port: Required. Port for Server + :type port: int + """ + + _validation = { + 'type': {'required': True}, + 'server_name': {'required': True}, + 'port': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MySqlConnectionInfo, self).__init__(**kwargs) + self.server_name = kwargs.get('server_name', None) + self.port = kwargs.get('port', None) + self.type = 'MySqlConnectionInfo' + + +class NameAvailabilityRequest(Model): + """A resource type and proposed name. + + :param name: The proposed resource name + :type name: str + :param type: The resource type chain (e.g. virtualMachines/extensions) + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NameAvailabilityRequest, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + + +class NameAvailabilityResponse(Model): + """Indicates whether a proposed resource name is available. + + :param name_available: If true, the name is valid and available. If false, + 'reason' describes why not. + :type name_available: bool + :param reason: The reason why the name is not available, if nameAvailable + is false. Possible values include: 'AlreadyExists', 'Invalid' + :type reason: str or + ~azure.mgmt.datamigration.models.NameCheckFailureReason + :param message: The localized reason why the name is not available, if + nameAvailable is false + :type message: str + """ + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NameAvailabilityResponse, self).__init__(**kwargs) + self.name_available = kwargs.get('name_available', None) + self.reason = kwargs.get('reason', None) + self.message = kwargs.get('message', None) + + +class NonSqlDataMigrationTable(Model): + """Defines metadata for table to be migrated. + + :param source_name: Source table name + :type source_name: str + """ + + _attribute_map = { + 'source_name': {'key': 'sourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NonSqlDataMigrationTable, self).__init__(**kwargs) + self.source_name = kwargs.get('source_name', None) + + +class NonSqlDataMigrationTableResult(Model): + """Object used to report the data migration results of a table. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar result_code: Result code of the data migration. Possible values + include: 'Initial', 'Completed', 'ObjectNotExistsInSource', + 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' + :vartype result_code: str or + ~azure.mgmt.datamigration.models.DataMigrationResultCode + :ivar source_name: Name of the source table + :vartype source_name: str + :ivar target_name: Name of the target table + :vartype target_name: str + :ivar source_row_count: Number of rows in the source table + :vartype source_row_count: long + :ivar target_row_count: Number of rows in the target table + :vartype target_row_count: long + :ivar elapsed_time_in_miliseconds: Time taken to migrate the data + :vartype elapsed_time_in_miliseconds: float + :ivar errors: List of errors, if any, during migration + :vartype errors: list[~azure.mgmt.datamigration.models.DataMigrationError] + """ + + _validation = { + 'result_code': {'readonly': True}, + 'source_name': {'readonly': True}, + 'target_name': {'readonly': True}, + 'source_row_count': {'readonly': True}, + 'target_row_count': {'readonly': True}, + 'elapsed_time_in_miliseconds': {'readonly': True}, + 'errors': {'readonly': True}, + } + + _attribute_map = { + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'source_name': {'key': 'sourceName', 'type': 'str'}, + 'target_name': {'key': 'targetName', 'type': 'str'}, + 'source_row_count': {'key': 'sourceRowCount', 'type': 'long'}, + 'target_row_count': {'key': 'targetRowCount', 'type': 'long'}, + 'elapsed_time_in_miliseconds': {'key': 'elapsedTimeInMiliseconds', 'type': 'float'}, + 'errors': {'key': 'errors', 'type': '[DataMigrationError]'}, + } + + def __init__(self, **kwargs): + super(NonSqlDataMigrationTableResult, self).__init__(**kwargs) + self.result_code = None + self.source_name = None + self.target_name = None + self.source_row_count = None + self.target_row_count = None + self.elapsed_time_in_miliseconds = None + self.errors = None + + +class NonSqlMigrationTaskInput(Model): + """Base class for non sql migration task input. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_database_name: Required. Target database name + :type target_database_name: str + :param project_name: Required. Name of the migration project + :type project_name: str + :param project_location: Required. A URL that points to the drop location + to access project artifacts + :type project_location: str + :param selected_tables: Required. Metadata of the tables selected for + migration + :type selected_tables: + list[~azure.mgmt.datamigration.models.NonSqlDataMigrationTable] + """ + + _validation = { + 'target_connection_info': {'required': True}, + 'target_database_name': {'required': True}, + 'project_name': {'required': True}, + 'project_location': {'required': True}, + 'selected_tables': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'project_location': {'key': 'projectLocation', 'type': 'str'}, + 'selected_tables': {'key': 'selectedTables', 'type': '[NonSqlDataMigrationTable]'}, + } + + def __init__(self, **kwargs): + super(NonSqlMigrationTaskInput, self).__init__(**kwargs) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.target_database_name = kwargs.get('target_database_name', None) + self.project_name = kwargs.get('project_name', None) + self.project_location = kwargs.get('project_location', None) + self.selected_tables = kwargs.get('selected_tables', None) + + +class NonSqlMigrationTaskOutput(Model): + """Base class for non sql migration task output. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar status: Current state of migration. Possible values include: + 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + 'CompletedWithWarnings' + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar data_migration_table_results: Results of the migration. The key + contains the table name and the value the table result object + :vartype data_migration_table_results: dict[str, + ~azure.mgmt.datamigration.models.NonSqlDataMigrationTableResult] + :ivar progress_message: Message about the progress of the migration + :vartype progress_message: str + :ivar source_server_name: Name of source server + :vartype source_server_name: str + :ivar target_server_name: Name of target server + :vartype target_server_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'status': {'readonly': True}, + 'data_migration_table_results': {'readonly': True}, + 'progress_message': {'readonly': True}, + 'source_server_name': {'readonly': True}, + 'target_server_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'data_migration_table_results': {'key': 'dataMigrationTableResults', 'type': '{NonSqlDataMigrationTableResult}'}, + 'progress_message': {'key': 'progressMessage', 'type': 'str'}, + 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, + 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NonSqlMigrationTaskOutput, self).__init__(**kwargs) + self.id = None + self.started_on = None + self.ended_on = None + self.status = None + self.data_migration_table_results = None + self.progress_message = None + self.source_server_name = None + self.target_server_name = None + + +class ODataError(Model): + """Error information in OData format. + + :param code: The machine-readable description of the error, such as + 'InvalidRequest' or 'InternalServerError' + :type code: str + :param message: The human-readable description of the error + :type message: str + :param details: Inner errors that caused this error + :type details: list[~azure.mgmt.datamigration.models.ODataError] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ODataError]'}, + } + + def __init__(self, **kwargs): + super(ODataError, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.details = kwargs.get('details', None) + + +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' + + +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 + + +class OrphanedUserInfo(Model): + """Information of orphaned users on the SQL server database. + + :param name: Name of the orphaned user + :type name: str + :param database_name: Parent database of the user + :type database_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OrphanedUserInfo, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.database_name = kwargs.get('database_name', None) + + +class PostgreSqlConnectionInfo(ConnectionInfo): + """Information for connecting to PostgreSQL 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 server_name: Required. Name of the server + :type server_name: str + :param database_name: Name of the database + :type database_name: str + :param port: Required. Port for Server + :type port: int + """ + + _validation = { + 'type': {'required': True}, + 'server_name': {'required': True}, + 'port': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(PostgreSqlConnectionInfo, self).__init__(**kwargs) + self.server_name = kwargs.get('server_name', None) + self.database_name = kwargs.get('database_name', None) + self.port = kwargs.get('port', None) + self.type = 'PostgreSqlConnectionInfo' + + +class Project(TrackedResource): + """A project resource. + + 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: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. Resource location. + :type location: str + :param source_platform: Required. Source platform for the project. + Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', + 'Unknown' + :type source_platform: str or + ~azure.mgmt.datamigration.models.ProjectSourcePlatform + :param target_platform: Required. Target platform for the project. + Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', + 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + :type target_platform: str or + ~azure.mgmt.datamigration.models.ProjectTargetPlatform + :ivar creation_time: UTC Date and time when project was created + :vartype creation_time: datetime + :param source_connection_info: Information for connecting to source + :type source_connection_info: + ~azure.mgmt.datamigration.models.ConnectionInfo + :param target_connection_info: Information for connecting to target + :type target_connection_info: + ~azure.mgmt.datamigration.models.ConnectionInfo + :param databases_info: List of DatabaseInfo + :type databases_info: list[~azure.mgmt.datamigration.models.DatabaseInfo] + :ivar provisioning_state: The project's provisioning state. Possible + values include: 'Deleting', 'Succeeded' + :vartype provisioning_state: str or + ~azure.mgmt.datamigration.models.ProjectProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'source_platform': {'required': True}, + 'target_platform': {'required': True}, + 'creation_time': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'source_platform': {'key': 'properties.sourcePlatform', 'type': 'str'}, + 'target_platform': {'key': 'properties.targetPlatform', 'type': 'str'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'source_connection_info': {'key': 'properties.sourceConnectionInfo', 'type': 'ConnectionInfo'}, + 'target_connection_info': {'key': 'properties.targetConnectionInfo', 'type': 'ConnectionInfo'}, + 'databases_info': {'key': 'properties.databasesInfo', 'type': '[DatabaseInfo]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Project, self).__init__(**kwargs) + self.source_platform = kwargs.get('source_platform', None) + self.target_platform = kwargs.get('target_platform', None) + self.creation_time = None + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.databases_info = kwargs.get('databases_info', None) + self.provisioning_state = None + + +class ProjectFile(Resource): + """A file resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param etag: HTTP strong entity tag value. This is ignored if submitted. + :type etag: str + :param properties: Custom file properties + :type properties: ~azure.mgmt.datamigration.models.ProjectFileProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProjectFileProperties'}, + } + + def __init__(self, **kwargs): + super(ProjectFile, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.properties = kwargs.get('properties', None) + + +class ProjectFileProperties(Model): + """Base class for file properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param extension: Optional File extension. If submitted it should not have + a leading period and must match the extension from filePath. + :type extension: str + :param file_path: Relative path of this file resource. This property can + be set when creating or updating the file resource. + :type file_path: str + :ivar last_modified: Modification DateTime. + :vartype last_modified: datetime + :param media_type: File content type. This property can be modified to + reflect the file content type. + :type media_type: str + :ivar size: File size. + :vartype size: long + """ + + _validation = { + 'last_modified': {'readonly': True}, + 'size': {'readonly': True}, + } + + _attribute_map = { + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'media_type': {'key': 'mediaType', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ProjectFileProperties, self).__init__(**kwargs) + self.extension = kwargs.get('extension', None) + self.file_path = kwargs.get('file_path', None) + self.last_modified = None + self.media_type = kwargs.get('media_type', None) + self.size = None + + +class ProjectTask(Resource): + """A task resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProjectTaskProperties'}, + } + + def __init__(self, **kwargs): + super(ProjectTask, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.properties = kwargs.get('properties', None) + + +class QueryAnalysisValidationResult(Model): + """Results for query analysis comparison between the source and target. + + :param query_results: List of queries executed and it's execution results + in source and target + :type query_results: ~azure.mgmt.datamigration.models.QueryExecutionResult + :param validation_errors: Errors that are part of the execution + :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError + """ + + _attribute_map = { + 'query_results': {'key': 'queryResults', 'type': 'QueryExecutionResult'}, + 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, + } + + def __init__(self, **kwargs): + super(QueryAnalysisValidationResult, self).__init__(**kwargs) + self.query_results = kwargs.get('query_results', None) + self.validation_errors = kwargs.get('validation_errors', None) + + +class QueryExecutionResult(Model): + """Describes query analysis results for execution in source and target. + + :param query_text: Query text retrieved from the source server + :type query_text: str + :param statements_in_batch: Total no. of statements in the batch + :type statements_in_batch: long + :param source_result: Query analysis result from the source + :type source_result: ~azure.mgmt.datamigration.models.ExecutionStatistics + :param target_result: Query analysis result from the target + :type target_result: ~azure.mgmt.datamigration.models.ExecutionStatistics + """ + + _attribute_map = { + 'query_text': {'key': 'queryText', 'type': 'str'}, + 'statements_in_batch': {'key': 'statementsInBatch', 'type': 'long'}, + 'source_result': {'key': 'sourceResult', 'type': 'ExecutionStatistics'}, + 'target_result': {'key': 'targetResult', 'type': 'ExecutionStatistics'}, + } + + def __init__(self, **kwargs): + super(QueryExecutionResult, self).__init__(**kwargs) + self.query_text = kwargs.get('query_text', None) + self.statements_in_batch = kwargs.get('statements_in_batch', None) + self.source_result = kwargs.get('source_result', None) + self.target_result = kwargs.get('target_result', None) + + +class Quota(Model): + """Describes a quota for or usage details about a resource. + + :param current_value: The current value of the quota. If null or missing, + the current value cannot be determined in the context of the request. + :type current_value: float + :param id: The resource ID of the quota object + :type id: str + :param limit: The maximum value of the quota. If null or missing, the + quota has no maximum, in which case it merely tracks usage. + :type limit: float + :param name: The name of the quota + :type name: ~azure.mgmt.datamigration.models.QuotaName + :param unit: The unit for the quota, such as Count, Bytes, BytesPerSecond, + etc. + :type unit: str + """ + + _attribute_map = { + 'current_value': {'key': 'currentValue', 'type': 'float'}, + 'id': {'key': 'id', 'type': 'str'}, + 'limit': {'key': 'limit', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'QuotaName'}, + 'unit': {'key': 'unit', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Quota, self).__init__(**kwargs) + self.current_value = kwargs.get('current_value', None) + self.id = kwargs.get('id', None) + self.limit = kwargs.get('limit', None) + self.name = kwargs.get('name', None) + self.unit = kwargs.get('unit', None) + + +class QuotaName(Model): + """The name of the quota. + + :param localized_value: The localized name of the quota + :type localized_value: str + :param value: The unlocalized name (or ID) of the quota + :type value: str + """ + + _attribute_map = { + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(QuotaName, self).__init__(**kwargs) + self.localized_value = kwargs.get('localized_value', None) + self.value = kwargs.get('value', None) + + +class ReportableException(Model): + """Exception object for all custom exceptions. + + :param message: Error message + :type message: str + :param actionable_message: Actionable steps for this exception + :type actionable_message: str + :param file_path: The path to the file where exception occurred + :type file_path: str + :param line_number: The line number where exception occurred + :type line_number: str + :param h_result: Coded numerical value that is assigned to a specific + exception + :type h_result: int + :param stack_trace: Stack trace + :type stack_trace: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'actionable_message': {'key': 'actionableMessage', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'line_number': {'key': 'lineNumber', 'type': 'str'}, + 'h_result': {'key': 'hResult', 'type': 'int'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ReportableException, self).__init__(**kwargs) + self.message = kwargs.get('message', None) + self.actionable_message = kwargs.get('actionable_message', None) + self.file_path = kwargs.get('file_path', None) + self.line_number = kwargs.get('line_number', None) + self.h_result = kwargs.get('h_result', None) + self.stack_trace = kwargs.get('stack_trace', None) + + +class ResourceSku(Model): + """Describes an available DMS SKU. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar resource_type: The type of resource the SKU applies to. + :vartype resource_type: str + :ivar name: The name of SKU. + :vartype name: str + :ivar tier: Specifies the tier of DMS in a scale set. + :vartype tier: str + :ivar size: The Size of the SKU. + :vartype size: str + :ivar family: The Family of this particular SKU. + :vartype family: str + :ivar kind: The Kind of resources that are supported in this SKU. + :vartype kind: str + :ivar capacity: Not used. + :vartype capacity: ~azure.mgmt.datamigration.models.ResourceSkuCapacity + :ivar locations: The set of locations that the SKU is available. + :vartype locations: list[str] + :ivar api_versions: The api versions that support this SKU. + :vartype api_versions: list[str] + :ivar costs: Metadata for retrieving price info. + :vartype costs: list[~azure.mgmt.datamigration.models.ResourceSkuCosts] + :ivar capabilities: A name value pair to describe the capability. + :vartype capabilities: + list[~azure.mgmt.datamigration.models.ResourceSkuCapabilities] + :ivar restrictions: The restrictions because of which SKU cannot be used. + This is empty if there are no restrictions. + :vartype restrictions: + list[~azure.mgmt.datamigration.models.ResourceSkuRestrictions] + """ + + _validation = { + 'resource_type': {'readonly': True}, + 'name': {'readonly': True}, + 'tier': {'readonly': True}, + 'size': {'readonly': True}, + 'family': {'readonly': True}, + 'kind': {'readonly': True}, + 'capacity': {'readonly': True}, + 'locations': {'readonly': True}, + 'api_versions': {'readonly': True}, + 'costs': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'restrictions': {'readonly': True}, + } + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'ResourceSkuCapacity'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'costs': {'key': 'costs', 'type': '[ResourceSkuCosts]'}, + 'capabilities': {'key': 'capabilities', 'type': '[ResourceSkuCapabilities]'}, + 'restrictions': {'key': 'restrictions', 'type': '[ResourceSkuRestrictions]'}, + } + + def __init__(self, **kwargs): + super(ResourceSku, self).__init__(**kwargs) + self.resource_type = None + self.name = None + self.tier = None + self.size = None + self.family = None + self.kind = None + self.capacity = None + self.locations = None + self.api_versions = None + self.costs = None + self.capabilities = None + self.restrictions = None + + +class ResourceSkuCapabilities(Model): + """Describes The SKU capabilities object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: An invariant to describe the feature. + :vartype name: str + :ivar value: An invariant if the feature is measured by quantity. + :vartype value: str + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuCapabilities, self).__init__(**kwargs) + self.name = None + self.value = None + + +class ResourceSkuCapacity(Model): + """Describes scaling information of a SKU. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar minimum: The minimum capacity. + :vartype minimum: long + :ivar maximum: The maximum capacity. + :vartype maximum: long + :ivar default: The default capacity. + :vartype default: long + :ivar scale_type: The scale type applicable to the SKU. Possible values + include: 'Automatic', 'Manual', 'None' + :vartype scale_type: str or + ~azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType + """ + + _validation = { + 'minimum': {'readonly': True}, + 'maximum': {'readonly': True}, + 'default': {'readonly': True}, + 'scale_type': {'readonly': True}, + } + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'long'}, + 'maximum': {'key': 'maximum', 'type': 'long'}, + 'default': {'key': 'default', 'type': 'long'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuCapacity, self).__init__(**kwargs) + self.minimum = None + self.maximum = None + self.default = None + self.scale_type = None + + +class ResourceSkuCosts(Model): + """Describes metadata for retrieving price info. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar meter_id: Used for querying price from commerce. + :vartype meter_id: str + :ivar quantity: The multiplier is needed to extend the base metered cost. + :vartype quantity: long + :ivar extended_unit: An invariant to show the extended unit. + :vartype extended_unit: str + """ + + _validation = { + 'meter_id': {'readonly': True}, + 'quantity': {'readonly': True}, + 'extended_unit': {'readonly': True}, + } + + _attribute_map = { + 'meter_id': {'key': 'meterID', 'type': 'str'}, + 'quantity': {'key': 'quantity', 'type': 'long'}, + 'extended_unit': {'key': 'extendedUnit', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuCosts, self).__init__(**kwargs) + self.meter_id = None + self.quantity = None + self.extended_unit = None + + +class ResourceSkuRestrictions(Model): + """Describes scaling information of a SKU. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The type of restrictions. Possible values include: 'location' + :vartype type: str or + ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsType + :ivar values: The value of restrictions. If the restriction type is set to + location. This would be different locations where the SKU is restricted. + :vartype values: list[str] + :ivar reason_code: The reason code for restriction. Possible values + include: 'QuotaId', 'NotAvailableForSubscription' + :vartype reason_code: str or + ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode + """ + + _validation = { + 'type': {'readonly': True}, + 'values': {'readonly': True}, + 'reason_code': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + 'reason_code': {'key': 'reasonCode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuRestrictions, self).__init__(**kwargs) + self.type = None + self.values = None + self.reason_code = None + + +class SchemaComparisonValidationResult(Model): + """Results for schema comparison between the source and target. + + :param schema_differences: List of schema differences between the source + and target databases + :type schema_differences: + ~azure.mgmt.datamigration.models.SchemaComparisonValidationResultType + :param validation_errors: List of errors that happened while performing + schema compare validation + :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError + :param source_database_object_count: Count of source database objects + :type source_database_object_count: dict[str, long] + :param target_database_object_count: Count of target database objects + :type target_database_object_count: dict[str, long] + """ + + _attribute_map = { + 'schema_differences': {'key': 'schemaDifferences', 'type': 'SchemaComparisonValidationResultType'}, + 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, + 'source_database_object_count': {'key': 'sourceDatabaseObjectCount', 'type': '{long}'}, + 'target_database_object_count': {'key': 'targetDatabaseObjectCount', 'type': '{long}'}, + } + + def __init__(self, **kwargs): + super(SchemaComparisonValidationResult, self).__init__(**kwargs) + self.schema_differences = kwargs.get('schema_differences', None) + self.validation_errors = kwargs.get('validation_errors', None) + self.source_database_object_count = kwargs.get('source_database_object_count', None) + self.target_database_object_count = kwargs.get('target_database_object_count', None) + + +class SchemaComparisonValidationResultType(Model): + """Description about the errors happen while performing migration validation. + + :param object_name: Name of the object that has the difference + :type object_name: str + :param object_type: Type of the object that has the difference. e.g + (Table/View/StoredProcedure). Possible values include: 'StoredProcedures', + 'Table', 'User', 'View', 'Function' + :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType + :param update_action: Update action type with respect to target. Possible + values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' + :type update_action: str or + ~azure.mgmt.datamigration.models.UpdateActionType + """ + + _attribute_map = { + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'update_action': {'key': 'updateAction', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SchemaComparisonValidationResultType, self).__init__(**kwargs) + self.object_name = kwargs.get('object_name', None) + self.object_type = kwargs.get('object_type', None) + self.update_action = kwargs.get('update_action', None) + + +class SchemaMigrationSetting(Model): + """Settings for migrating schema from source to target. + + :param schema_option: Option on how to migrate the schema. Possible values + include: 'None', 'ExtractFromSource', 'UseStorageFile' + :type schema_option: str or + ~azure.mgmt.datamigration.models.SchemaMigrationOption + :param file_id: Resource Identifier of a file resource containing the + uploaded schema file + :type file_id: str + """ + + _attribute_map = { + 'schema_option': {'key': 'schemaOption', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SchemaMigrationSetting, self).__init__(**kwargs) + self.schema_option = kwargs.get('schema_option', None) + self.file_id = kwargs.get('file_id', None) + + +class SelectedCertificateInput(Model): + """Info for certificate to be exported for TDE enabled databases. + + All required parameters must be populated in order to send to Azure. + + :param certificate_name: Required. Name of certificate to be exported. + :type certificate_name: str + :param password: Required. Password to use for encrypting the exported + certificate. + :type password: str + """ + + _validation = { + 'certificate_name': {'required': True}, + 'password': {'required': True}, + } + + _attribute_map = { + 'certificate_name': {'key': 'certificateName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SelectedCertificateInput, self).__init__(**kwargs) + self.certificate_name = kwargs.get('certificate_name', None) + self.password = kwargs.get('password', None) + + +class ServerProperties(Model): + """Server properties for MySQL type source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar server_platform: Name of the server platform + :vartype server_platform: str + :ivar server_name: Name of the server + :vartype server_name: str + :ivar server_version: Version of the database server + :vartype server_version: str + :ivar server_edition: Edition of the database server + :vartype server_edition: str + :ivar server_operating_system_version: Version of the operating system + :vartype server_operating_system_version: str + :ivar server_database_count: Number of databases in the server + :vartype server_database_count: int + """ + + _validation = { + 'server_platform': {'readonly': True}, + 'server_name': {'readonly': True}, + 'server_version': {'readonly': True}, + 'server_edition': {'readonly': True}, + 'server_operating_system_version': {'readonly': True}, + 'server_database_count': {'readonly': True}, + } + + _attribute_map = { + 'server_platform': {'key': 'serverPlatform', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + 'server_edition': {'key': 'serverEdition', 'type': 'str'}, + 'server_operating_system_version': {'key': 'serverOperatingSystemVersion', 'type': 'str'}, + 'server_database_count': {'key': 'serverDatabaseCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ServerProperties, self).__init__(**kwargs) + self.server_platform = None + self.server_name = None + self.server_version = None + self.server_edition = None + self.server_operating_system_version = None + self.server_database_count = None + + +class ServiceOperation(Model): + """Description of an action supported by the Database Migration Service. + + :param name: The fully qualified action name, e.g. + Microsoft.DataMigration/services/read + :type name: str + :param display: Localized display text + :type display: ~azure.mgmt.datamigration.models.ServiceOperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'ServiceOperationDisplay'}, + } + + def __init__(self, **kwargs): + super(ServiceOperation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class ServiceOperationDisplay(Model): + """Localized display text. + + :param provider: The localized resource provider name + :type provider: str + :param resource: The localized resource type name + :type resource: str + :param operation: The localized operation name + :type operation: str + :param description: The localized operation description + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceOperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ServiceSku(Model): + """An Azure SKU instance. + + :param name: The unique name of the SKU, such as 'P3' + :type name: str + :param tier: The tier of the SKU, such as 'Basic', 'General Purpose', or + 'Business Critical' + :type tier: str + :param family: The SKU family, used when the service has multiple + performance classes within a tier, such as 'A', 'D', etc. for virtual + machines + :type family: str + :param size: The size of the SKU, used when the name alone does not denote + a service size or when a SKU has multiple performance classes within a + family, e.g. 'A1' for virtual machines + :type size: str + :param capacity: The capacity of the SKU, if it supports scaling + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ServiceSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.family = kwargs.get('family', None) + self.size = kwargs.get('size', None) + self.capacity = kwargs.get('capacity', None) + + +class SqlConnectionInfo(ConnectionInfo): + """Information for connecting to SQL database 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. Data source in the format + Protocol:MachineName\\SQLServerInstanceName,PortNumber + :type data_source: str + :param authentication: Authentication type to use for connection. Possible + values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', + 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + :type authentication: str or + ~azure.mgmt.datamigration.models.AuthenticationType + :param encrypt_connection: Whether to encrypt the connection. Default + value: True . + :type encrypt_connection: bool + :param additional_settings: Additional connection settings + :type additional_settings: str + :param trust_server_certificate: Whether to trust the server certificate. + Default value: False . + :type trust_server_certificate: bool + :param platform: Server platform type for connection. Possible values + include: 'SqlOnPrem' + :type platform: str or ~azure.mgmt.datamigration.models.SqlSourcePlatform + """ + + _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'}, + 'authentication': {'key': 'authentication', 'type': 'str'}, + 'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'}, + 'additional_settings': {'key': 'additionalSettings', 'type': 'str'}, + 'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'}, + 'platform': {'key': 'platform', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SqlConnectionInfo, self).__init__(**kwargs) + self.data_source = kwargs.get('data_source', None) + self.authentication = kwargs.get('authentication', None) + self.encrypt_connection = kwargs.get('encrypt_connection', True) + self.additional_settings = kwargs.get('additional_settings', None) + self.trust_server_certificate = kwargs.get('trust_server_certificate', False) + self.platform = kwargs.get('platform', None) + self.type = 'SqlConnectionInfo' + + +class StartMigrationScenarioServerRoleResult(Model): + """Server role migration result. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of server role. + :vartype name: str + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'name': {'readonly': True}, + 'state': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(StartMigrationScenarioServerRoleResult, self).__init__(**kwargs) + self.name = None + self.state = None + self.exceptions_and_warnings = None + + +class SyncMigrationDatabaseErrorEvent(Model): + """Database migration errors for online migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar timestamp_string: String value of timestamp. + :vartype timestamp_string: str + :ivar event_type_string: Event type. + :vartype event_type_string: str + :ivar event_text: Event text. + :vartype event_text: str + """ + + _validation = { + 'timestamp_string': {'readonly': True}, + 'event_type_string': {'readonly': True}, + 'event_text': {'readonly': True}, + } + + _attribute_map = { + 'timestamp_string': {'key': 'timestampString', 'type': 'str'}, + 'event_type_string': {'key': 'eventTypeString', 'type': 'str'}, + 'event_text': {'key': 'eventText', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SyncMigrationDatabaseErrorEvent, self).__init__(**kwargs) + self.timestamp_string = None + self.event_type_string = None + self.event_text = None + + +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) + + +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 + + +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' + + +class ValidateMigrationInputSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): + """Properties for task that validates migration input for SQL to Azure SQL DB + sync 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.ValidateSyncMigrationInputSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput] + """ + + _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': 'ValidateSyncMigrationInputSqlServerTaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateSyncMigrationInputSqlServerTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ValidateMigrationInput.SqlServer.SqlDb.Sync' + + +class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance online scenario. + + 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.MigrateSqlServerSqlMIDatabaseInput] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param storage_resource_id: Required. Fully qualified resourceId of + storage + :type storage_resource_id: str + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'selected_databases': {'required': True}, + 'storage_resource_id': {'required': True}, + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, **kwargs): + super(ValidateMigrationInputSqlServerSqlMISyncTaskInput, self).__init__(**kwargs) + + +class ValidateMigrationInputSqlServerSqlMISyncTaskOutput(Model): + """Output for task that validates migration input for Azure SQL Database + Managed Instance online migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Database identifier + :vartype id: str + :ivar name: Name of database + :vartype name: str + :ivar validation_errors: Errors associated with a selected database object + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ValidateMigrationInputSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.name = None + self.validation_errors = None + + +class ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): + """Properties for task that validates migration input for SQL to Azure SQL + Database Managed Instance sync scenario. + + 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.ValidateMigrationInputSqlServerSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput] + """ + + _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': 'ValidateMigrationInputSqlServerSqlMISyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMISyncTaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ValidateMigrationInputSqlServerSqlMISyncTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS' + + +class ValidateMigrationInputSqlServerSqlMITaskInput(Model): + """Input for task that validates migration input for SQL to Azure SQL Managed + Instance. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :param selected_logins: Logins to migrate + :type selected_logins: list[str] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param backup_blob_share: Required. SAS URI of Azure Storage Account + Container to be used for storing backup files. + :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare + :param backup_mode: Backup Mode to specify whether to use existing backup + or create new backup. Possible values include: 'CreateBackup', + 'ExistingBackup' + :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + 'backup_blob_share': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, + 'backup_mode': {'key': 'backupMode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ValidateMigrationInputSqlServerSqlMITaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.selected_databases = kwargs.get('selected_databases', None) + self.selected_logins = kwargs.get('selected_logins', None) + self.backup_file_share = kwargs.get('backup_file_share', None) + self.backup_blob_share = kwargs.get('backup_blob_share', None) + self.backup_mode = kwargs.get('backup_mode', None) + + +class ValidateMigrationInputSqlServerSqlMITaskOutput(Model): + """Output for task that validates migration input for SQL to Azure SQL Managed + Instance migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar name: Name of database + :vartype name: str + :ivar restore_database_name_errors: Errors associated with the + RestoreDatabaseName + :vartype restore_database_name_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_folder_errors: Errors associated with the BackupFolder path + :vartype backup_folder_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_share_credentials_errors: Errors associated with backup share + user name and password credentials + :vartype backup_share_credentials_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_storage_account_errors: Errors associated with the storage + account provided. + :vartype backup_storage_account_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar existing_backup_errors: Errors associated with existing backup + files. + :vartype existing_backup_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :param database_backup_info: Information about backup files when existing + backup mode is used. + :type database_backup_info: + ~azure.mgmt.datamigration.models.DatabaseBackupInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'restore_database_name_errors': {'readonly': True}, + 'backup_folder_errors': {'readonly': True}, + 'backup_share_credentials_errors': {'readonly': True}, + 'backup_storage_account_errors': {'readonly': True}, + 'existing_backup_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'restore_database_name_errors': {'key': 'restoreDatabaseNameErrors', 'type': '[ReportableException]'}, + 'backup_folder_errors': {'key': 'backupFolderErrors', 'type': '[ReportableException]'}, + 'backup_share_credentials_errors': {'key': 'backupShareCredentialsErrors', 'type': '[ReportableException]'}, + 'backup_storage_account_errors': {'key': 'backupStorageAccountErrors', 'type': '[ReportableException]'}, + 'existing_backup_errors': {'key': 'existingBackupErrors', 'type': '[ReportableException]'}, + 'database_backup_info': {'key': 'databaseBackupInfo', 'type': 'DatabaseBackupInfo'}, + } + + def __init__(self, **kwargs): + super(ValidateMigrationInputSqlServerSqlMITaskOutput, self).__init__(**kwargs) + self.id = None + self.name = None + self.restore_database_name_errors = None + self.backup_folder_errors = None + self.backup_share_credentials_errors = None + self.backup_storage_account_errors = None + self.existing_backup_errors = None + self.database_backup_info = kwargs.get('database_backup_info', None) + + +class ValidateMigrationInputSqlServerSqlMITaskProperties(ProjectTaskProperties): + """Properties for task that validates migration input for SQL to Azure SQL + Database Managed Instance. + + 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.ValidateMigrationInputSqlServerSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput] + """ + + _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': 'ValidateMigrationInputSqlServerSqlMITaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMITaskOutput]'}, + } + + def __init__(self, **kwargs): + super(ValidateMigrationInputSqlServerSqlMITaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI' + + +class ValidateMongoDbTaskProperties(ProjectTaskProperties): + """Properties for the task that validates a migration between MongoDB data + sources. + + 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.MongoDbMigrationSettings + :ivar output: An array containing a single MongoDbMigrationProgress object + :vartype output: + list[~azure.mgmt.datamigration.models.MongoDbMigrationProgress] + """ + + _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': 'MongoDbMigrationSettings'}, + 'output': {'key': 'output', 'type': '[MongoDbMigrationProgress]'}, + } + + def __init__(self, **kwargs): + super(ValidateMongoDbTaskProperties, self).__init__(**kwargs) + self.input = kwargs.get('input', None) + self.output = None + self.task_type = 'Validate.MongoDb' + + +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' + + +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 + + +class ValidateSyncMigrationInputSqlServerTaskInput(Model): + """Input for task that validates migration input for SQL sync migrations. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source SQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, + } + + def __init__(self, **kwargs): + super(ValidateSyncMigrationInputSqlServerTaskInput, self).__init__(**kwargs) + self.source_connection_info = kwargs.get('source_connection_info', None) + self.target_connection_info = kwargs.get('target_connection_info', None) + self.selected_databases = kwargs.get('selected_databases', None) + + +class ValidateSyncMigrationInputSqlServerTaskOutput(Model): + """Output for task that validates migration input for SQL sync migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Database identifier + :vartype id: str + :ivar name: Name of database + :vartype name: str + :ivar validation_errors: Errors associated with a selected database object + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs): + super(ValidateSyncMigrationInputSqlServerTaskOutput, self).__init__(**kwargs) + self.id = None + self.name = None + self.validation_errors = None + + +class ValidationError(Model): + """Description about the errors happen while performing migration validation. + + :param text: Error Text + :type text: str + :param severity: Severity of the error. Possible values include: + 'Message', 'Warning', 'Error' + :type severity: str or ~azure.mgmt.datamigration.models.Severity + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ValidationError, self).__init__(**kwargs) + self.text = kwargs.get('text', None) + self.severity = kwargs.get('severity', None) + + +class WaitStatistics(Model): + """Wait statistics gathered during query batch execution. + + :param wait_type: Type of the Wait + :type wait_type: str + :param wait_time_ms: Total wait time in millisecond(s) . Default value: 0 + . + :type wait_time_ms: float + :param wait_count: Total no. of waits + :type wait_count: long + """ + + _attribute_map = { + 'wait_type': {'key': 'waitType', 'type': 'str'}, + 'wait_time_ms': {'key': 'waitTimeMs', 'type': 'float'}, + 'wait_count': {'key': 'waitCount', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(WaitStatistics, self).__init__(**kwargs) + self.wait_type = kwargs.get('wait_type', None) + self.wait_time_ms = kwargs.get('wait_time_ms', 0) + self.wait_count = kwargs.get('wait_count', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py new file mode 100644 index 000000000000..ff64cc07545c --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py @@ -0,0 +1,11596 @@ +# 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 +from msrest.exceptions import HttpOperationError + + +class ApiError(Model): + """Error information. + + :param error: Error information in OData format + :type error: ~azure.mgmt.datamigration.models.ODataError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ODataError'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(ApiError, self).__init__(**kwargs) + self.error = error + + +class ApiErrorException(HttpOperationError): + """Server responsed with exception of type: 'ApiError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) + + +class AvailableServiceSku(Model): + """Describes the available service SKU. + + :param resource_type: The resource type, including the provider namespace + :type resource_type: str + :param sku: SKU name, tier, etc. + :type sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku + :param capacity: A description of the scaling capacities of the SKU + :type capacity: + ~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'AvailableServiceSkuSku'}, + 'capacity': {'key': 'capacity', 'type': 'AvailableServiceSkuCapacity'}, + } + + def __init__(self, *, resource_type: str=None, sku=None, capacity=None, **kwargs) -> None: + super(AvailableServiceSku, self).__init__(**kwargs) + self.resource_type = resource_type + self.sku = sku + self.capacity = capacity + + +class AvailableServiceSkuCapacity(Model): + """A description of the scaling capacities of the SKU. + + :param minimum: The minimum capacity, usually 0 or 1. + :type minimum: int + :param maximum: The maximum capacity + :type maximum: int + :param default: The default capacity + :type default: int + :param scale_type: The scalability approach. Possible values include: + 'none', 'manual', 'automatic' + :type scale_type: str or + ~azure.mgmt.datamigration.models.ServiceScalability + """ + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__(self, *, minimum: int=None, maximum: int=None, default: int=None, scale_type=None, **kwargs) -> None: + super(AvailableServiceSkuCapacity, self).__init__(**kwargs) + self.minimum = minimum + self.maximum = maximum + self.default = default + self.scale_type = scale_type + + +class AvailableServiceSkuSku(Model): + """SKU name, tier, etc. + + :param name: The name of the SKU + :type name: str + :param family: SKU family + :type family: str + :param size: SKU size + :type size: str + :param tier: The tier of the SKU, such as "Basic", "General Purpose", or + "Business Critical" + :type tier: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, family: str=None, size: str=None, tier: str=None, **kwargs) -> None: + super(AvailableServiceSkuSku, self).__init__(**kwargs) + self.name = name + self.family = family + self.size = size + self.tier = tier + + +class AzureActiveDirectoryApp(Model): + """Azure Active Directory Application. + + All required parameters must be populated in order to send to Azure. + + :param application_id: Required. Application ID of the Azure Active + Directory Application + :type application_id: str + :param app_key: Required. Key used to authenticate to the Azure Active + Directory Application + :type app_key: str + :param tenant_id: Required. Tenant id of the customer + :type tenant_id: str + """ + + _validation = { + 'application_id': {'required': True}, + 'app_key': {'required': True}, + 'tenant_id': {'required': True}, + } + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + 'app_key': {'key': 'appKey', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, *, application_id: str, app_key: str, tenant_id: str, **kwargs) -> None: + super(AzureActiveDirectoryApp, self).__init__(**kwargs) + self.application_id = application_id + self.app_key = app_key + self.tenant_id = tenant_id + + +class BackupFileInfo(Model): + """Information of the backup file. + + :param file_location: Location of the backup file in shared folder + :type file_location: str + :param family_sequence_number: Sequence number of the backup file in the + backup set + :type family_sequence_number: int + :param status: Status of the backup file during migration. Possible values + include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', + 'Restored', 'Cancelled' + :type status: str or ~azure.mgmt.datamigration.models.BackupFileStatus + """ + + _attribute_map = { + 'file_location': {'key': 'fileLocation', 'type': 'str'}, + 'family_sequence_number': {'key': 'familySequenceNumber', 'type': 'int'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, file_location: str=None, family_sequence_number: int=None, status=None, **kwargs) -> None: + super(BackupFileInfo, self).__init__(**kwargs) + self.file_location = file_location + self.family_sequence_number = family_sequence_number + self.status = status + + +class BackupSetInfo(Model): + """Information of backup set. + + :param backup_set_id: Id for the set of backup files + :type backup_set_id: str + :param first_lsn: First log sequence number of the backup file + :type first_lsn: str + :param last_lsn: Last log sequence number of the backup file + :type last_lsn: str + :param last_modified_time: Last modified time of the backup file in share + location + :type last_modified_time: datetime + :param backup_type: Enum of the different backup types. Possible values + include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', + 'DifferentialFile', 'Partial', 'DifferentialPartial' + :type backup_type: str or ~azure.mgmt.datamigration.models.BackupType + :param list_of_backup_files: List of files in the backup set + :type list_of_backup_files: + list[~azure.mgmt.datamigration.models.BackupFileInfo] + :param database_name: Name of the database to which the backup set belongs + :type database_name: str + :param backup_start_date: Date and time that the backup operation began + :type backup_start_date: datetime + :param backup_finished_date: Date and time that the backup operation + finished + :type backup_finished_date: datetime + :param is_backup_restored: Whether the backup set is restored or not + :type is_backup_restored: bool + """ + + _attribute_map = { + 'backup_set_id': {'key': 'backupSetId', 'type': 'str'}, + 'first_lsn': {'key': 'firstLsn', 'type': 'str'}, + 'last_lsn': {'key': 'lastLsn', 'type': 'str'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'backup_type': {'key': 'backupType', 'type': 'str'}, + 'list_of_backup_files': {'key': 'listOfBackupFiles', 'type': '[BackupFileInfo]'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'backup_start_date': {'key': 'backupStartDate', 'type': 'iso-8601'}, + 'backup_finished_date': {'key': 'backupFinishedDate', 'type': 'iso-8601'}, + 'is_backup_restored': {'key': 'isBackupRestored', 'type': 'bool'}, + } + + def __init__(self, *, backup_set_id: str=None, first_lsn: str=None, last_lsn: str=None, last_modified_time=None, backup_type=None, list_of_backup_files=None, database_name: str=None, backup_start_date=None, backup_finished_date=None, is_backup_restored: bool=None, **kwargs) -> None: + super(BackupSetInfo, self).__init__(**kwargs) + self.backup_set_id = backup_set_id + self.first_lsn = first_lsn + self.last_lsn = last_lsn + self.last_modified_time = last_modified_time + self.backup_type = backup_type + self.list_of_backup_files = list_of_backup_files + self.database_name = database_name + self.backup_start_date = backup_start_date + self.backup_finished_date = backup_finished_date + self.is_backup_restored = is_backup_restored + + +class BlobShare(Model): + """Blob container storage information. + + All required parameters must be populated in order to send to Azure. + + :param sas_uri: Required. SAS URI of Azure Storage Account Container. + :type sas_uri: str + """ + + _validation = { + 'sas_uri': {'required': True}, + } + + _attribute_map = { + 'sas_uri': {'key': 'sasUri', 'type': 'str'}, + } + + def __init__(self, *, sas_uri: str, **kwargs) -> None: + super(BlobShare, self).__init__(**kwargs) + self.sas_uri = sas_uri + + +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 + + +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 + + +class ProjectTaskProperties(Model): + """Base class for all types of DMS task properties. If task is not supported + by current client, this object is returned. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: GetTdeCertificatesSqlTaskProperties, + ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, + ValidateMongoDbTaskProperties, + ValidateMigrationInputSqlServerSqlMISyncTaskProperties, + ValidateMigrationInputSqlServerSqlMITaskProperties, + ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, + MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, + MigrateMySqlAzureDbForMySqlSyncTaskProperties, + MigrateSqlServerSqlDbSyncTaskProperties, + MigrateSqlServerSqlDbTaskProperties, + MigrateSqlServerSqlMISyncTaskProperties, + MigrateSqlServerSqlMITaskProperties, MigrateMongoDbTaskProperties, + ConnectToTargetAzureDbForMySqlTaskProperties, + ConnectToTargetSqlMISyncTaskProperties, ConnectToTargetSqlMITaskProperties, + GetUserTablesPostgreSqlTaskProperties, GetUserTablesOracleTaskProperties, + GetUserTablesSqlSyncTaskProperties, GetUserTablesSqlTaskProperties, + ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetSqlSqlDbSyncTaskProperties, + ConnectToTargetSqlDbTaskProperties, + ConnectToSourceOracleSyncTaskProperties, + ConnectToSourcePostgreSqlSyncTaskProperties, + ConnectToSourceSqlServerSyncTaskProperties, + ConnectToSourceSqlServerTaskProperties, ConnectToMongoDbTaskProperties, + ConnectToSourceMySqlTaskProperties, + MigrateSchemaSqlServerSqlDbTaskProperties, CheckOCIDriverTaskProperties, + UploadOCIDriverTaskProperties, InstallOCIDriverTaskProperties + + 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 + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': 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'}, + } + + _subtype_map = { + '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', 'GetUserTablesPostgreSql': 'GetUserTablesPostgreSqlTaskProperties', 'GetUserTablesOracle': 'GetUserTablesOracleTaskProperties', '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: + super(ProjectTaskProperties, self).__init__(**kwargs) + self.errors = None + self.state = None + self.commands = None + self.client_data = client_data + self.task_type = None + + +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' + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CommandProperties(Model): + """Base class for all types of DMS command properties. If command is not + supported by current client, this object is returned. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateMISyncCompleteCommandProperties, + MigrateSyncCompleteCommandProperties, MongoDbCancelCommand, + MongoDbFinishCommand, MongoDbRestartCommand + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + } + + _subtype_map = { + 'command_type': {'Migrate.SqlServer.AzureDbSqlMi.Complete': 'MigrateMISyncCompleteCommandProperties', 'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'} + } + + def __init__(self, **kwargs) -> None: + super(CommandProperties, self).__init__(**kwargs) + self.errors = None + self.state = None + self.command_type = None + + +class ConnectionInfo(Model): + """Defines the connection properties of a server. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MiSqlConnectionInfo, PostgreSqlConnectionInfo, + OracleConnectionInfo, MySqlConnectionInfo, MongoDbConnectionInfo, + SqlConnectionInfo + + 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 + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + '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: + super(ConnectionInfo, self).__init__(**kwargs) + self.user_name = user_name + self.password = password + self.type = None + + +class ConnectToMongoDbTaskProperties(ProjectTaskProperties): + """Properties for the task that validates the connection to and provides + information about a MongoDB server. + + 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.MongoDbConnectionInfo + :ivar output: An array containing a single MongoDbClusterInfo object + :vartype output: list[~azure.mgmt.datamigration.models.MongoDbClusterInfo] + """ + + _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': 'MongoDbConnectionInfo'}, + 'output': {'key': 'output', 'type': '[MongoDbClusterInfo]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToMongoDbTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Connect.MongoDb' + + +class ConnectToSourceMySqlTaskInput(Model): + """Input for the task that validates MySQL database connection. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + MySQL source + :type source_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param target_platform: Target Platform for the migration. Possible values + include: 'SqlServer', 'AzureDbForMySQL' + :type target_platform: str or + ~azure.mgmt.datamigration.models.MySqlTargetPlatformType + :param check_permissions_group: Permission group for validations. Possible + values include: 'Default', 'MigrationFromSqlServerToAzureDB', + 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + :type check_permissions_group: str or + ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'target_platform': {'key': 'targetPlatform', 'type': 'str'}, + 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, + } + + def __init__(self, *, source_connection_info, target_platform=None, check_permissions_group=None, **kwargs) -> None: + super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_platform = target_platform + self.check_permissions_group = check_permissions_group + + +class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): + """Properties for the task that validates MySQL database connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Possible + values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', + 'Failed', 'FailedInputValidation', 'Faulted' + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: + list[~azure.mgmt.datamigration.models.CommandProperties] + :param 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.ConnectToSourceMySqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'commands': {'readonly': True}, + 'task_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, + 'client_data': {'key': 'clientData', 'type': '{str}'}, + 'task_type': {'key': 'taskType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'ConnectToSourceMySqlTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceNonSqlTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToSourceMySqlTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToSource.MySql' + + +class ConnectToSourceNonSqlTaskOutput(Model): + """Output for connect to MySQL type source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar source_server_brand_version: Server brand version + :vartype source_server_brand_version: str + :ivar server_properties: Server properties + :vartype server_properties: + ~azure.mgmt.datamigration.models.ServerProperties + :ivar databases: List of databases on the server + :vartype databases: list[str] + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'server_properties': {'readonly': True}, + 'databases': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'server_properties': {'key': 'serverProperties', 'type': 'ServerProperties'}, + 'databases': {'key': 'databases', 'type': '[str]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceNonSqlTaskOutput, self).__init__(**kwargs) + self.id = None + self.source_server_brand_version = None + self.server_properties = None + self.databases = None + self.validation_errors = None + + +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 + + +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 + + +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' + + +class ConnectToSourcePostgreSqlSyncTaskInput(Model): + """Input for the task that validates connection to PostgreSQL and source + server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + PostgreSQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, *, source_connection_info, **kwargs) -> None: + super(ConnectToSourcePostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + + +class ConnectToSourcePostgreSqlSyncTaskOutput(Model): + """Output for the task that validates connection to PostgreSQL and source + server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar source_server_version: Version of the source server + :vartype source_server_version: str + :ivar databases: List of databases 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 = { + 'id': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + '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(ConnectToSourcePostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.source_server_version = None + self.databases = None + self.source_server_brand_version = None + self.validation_errors = None + + +class ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to PostgreSQL server and + source server requirements for online migration. + + 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.ConnectToSourcePostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput] + """ + + _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': 'ConnectToSourcePostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourcePostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToSourcePostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToSource.PostgreSql.Sync' + + +class ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL Server and source + server requirements for online migration. + + 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.ConnectToSourceSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] + """ + + _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': 'ConnectToSourceSqlServerTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToSourceSqlServerSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToSource.SqlServer.Sync' + + +class ConnectToSourceSqlServerTaskInput(Model): + """Input for the task that validates connection to SQL Server and also + validates source server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for Source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param check_permissions_group: Permission group for validations. Possible + values include: 'Default', 'MigrationFromSqlServerToAzureDB', + 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' + :type check_permissions_group: str or + ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + :param collect_logins: Flag for whether to collect logins from source + server. Default value: False . + :type collect_logins: bool + :param collect_agent_jobs: Flag for whether to collect agent jobs from + source server. Default value: False . + :type collect_agent_jobs: bool + :param collect_tde_certificate_info: Flag for whether to collect TDE + Certificate names from source server. Default value: False . + :type collect_tde_certificate_info: bool + """ + + _validation = { + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, + 'collect_logins': {'key': 'collectLogins', 'type': 'bool'}, + 'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'}, + 'collect_tde_certificate_info': {'key': 'collectTdeCertificateInfo', 'type': 'bool'}, + } + + def __init__(self, *, source_connection_info, check_permissions_group=None, collect_logins: bool=False, collect_agent_jobs: bool=False, collect_tde_certificate_info: bool=False, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.check_permissions_group = check_permissions_group + self.collect_logins = collect_logins + self.collect_agent_jobs = collect_agent_jobs + self.collect_tde_certificate_info = collect_tde_certificate_info + + +class ConnectToSourceSqlServerTaskOutput(Model): + """Output for the task that validates connection to SQL Server and also + validates source server requirements. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ConnectToSourceSqlServerTaskOutputAgentJobLevel, + ConnectToSourceSqlServerTaskOutputLoginLevel, + ConnectToSourceSqlServerTaskOutputDatabaseLevel, + ConnectToSourceSqlServerTaskOutputTaskLevel + + 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': {'AgentJobLevelOutput': 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', 'LoginLevelOutput': 'ConnectToSourceSqlServerTaskOutputLoginLevel', 'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTaskOutput): + """Agent Job level output for the task that validates connection to SQL Server + and also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Agent Job name + :vartype name: str + :ivar job_category: The type of Agent Job. + :vartype job_category: str + :ivar is_enabled: The state of the original Agent Job. + :vartype is_enabled: bool + :ivar job_owner: The owner of the Agent Job + :vartype job_owner: str + :ivar last_executed_on: UTC Date and time when the Agent Job was last + executed. + :vartype last_executed_on: datetime + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar migration_eligibility: Information about eligibility of agent job + for migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'job_category': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'job_owner': {'readonly': True}, + 'last_executed_on': {'readonly': True}, + 'validation_errors': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'job_category': {'key': 'jobCategory', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'job_owner': {'key': 'jobOwner', 'type': 'str'}, + 'last_executed_on': {'key': 'lastExecutedOn', 'type': 'iso-8601'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskOutputAgentJobLevel, self).__init__(**kwargs) + self.name = None + self.job_category = None + self.is_enabled = None + self.job_owner = None + self.last_executed_on = None + self.validation_errors = None + self.migration_eligibility = None + self.result_type = 'AgentJobLevelOutput' + + +class ConnectToSourceSqlServerTaskOutputDatabaseLevel(ConnectToSourceSqlServerTaskOutput): + """Database level output for the task that validates connection to SQL Server + and also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Database name + :vartype name: str + :ivar size_mb: Size of the file in megabytes + :vartype size_mb: float + :ivar database_files: The list of database files + :vartype database_files: + list[~azure.mgmt.datamigration.models.DatabaseFileInfo] + :ivar compatibility_level: SQL Server compatibility level of database. + Possible values include: 'CompatLevel80', 'CompatLevel90', + 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', + 'CompatLevel140' + :vartype compatibility_level: str or + ~azure.mgmt.datamigration.models.DatabaseCompatLevel + :ivar database_state: State of the database. Possible values include: + 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + :vartype database_state: str or + ~azure.mgmt.datamigration.models.DatabaseState + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'size_mb': {'readonly': True}, + 'database_files': {'readonly': True}, + 'compatibility_level': {'readonly': True}, + 'database_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInfo]'}, + 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, + 'database_state': {'key': 'databaseState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.name = None + self.size_mb = None + self.database_files = None + self.compatibility_level = None + self.database_state = None + self.result_type = 'DatabaseLevelOutput' + + +class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): + """Login level output for the task that validates connection to SQL Server and + also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Login name. + :vartype name: str + :ivar login_type: The type of login. Possible values include: + 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', 'AsymmetricKey', + 'ExternalUser', 'ExternalGroup' + :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType + :ivar default_database: The default database for the login. + :vartype default_database: str + :ivar is_enabled: The state of the login. + :vartype is_enabled: bool + :ivar migration_eligibility: Information about eligibility of login for + migration. + :vartype migration_eligibility: + ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'login_type': {'readonly': True}, + 'default_database': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'migration_eligibility': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'login_type': {'key': 'loginType', 'type': 'str'}, + 'default_database': {'key': 'defaultDatabase', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskOutputLoginLevel, self).__init__(**kwargs) + self.name = None + self.login_type = None + self.default_database = None + self.is_enabled = None + self.migration_eligibility = None + self.result_type = 'LoginLevelOutput' + + +class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOutput): + """Task level output for the task that validates connection to SQL Server and + also validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar databases: Source databases as a map from database name to database + id + :vartype databases: dict[str, str] + :ivar logins: Source logins as a map from login name to login id. + :vartype logins: dict[str, str] + :ivar agent_jobs: Source agent jobs as a map from agent job name to id. + :vartype agent_jobs: dict[str, str] + :ivar database_tde_certificate_mapping: Mapping from database name to TDE + certificate name, if applicable + :vartype database_tde_certificate_mapping: dict[str, str] + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'databases': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'database_tde_certificate_mapping': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'logins': {'key': 'logins', 'type': '{str}'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, + 'database_tde_certificate_mapping': {'key': 'databaseTdeCertificateMapping', 'type': '{str}'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskOutputTaskLevel, self).__init__(**kwargs) + self.databases = None + self.logins = None + self.agent_jobs = None + self.database_tde_certificate_mapping = None + self.source_server_version = None + self.source_server_brand_version = None + self.validation_errors = None + self.result_type = 'TaskLevelOutput' + + +class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL Server and also + validates source server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar 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.ConnectToSourceSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] + """ + + _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': 'ConnectToSourceSqlServerTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToSourceSqlServerTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToSource.SqlServer' + + +class ConnectToTargetAzureDbForMySqlTaskInput(Model): + """Input for the task that validates connection to Azure Database for MySQL + and target server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + MySQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param target_connection_info: Required. Connection information for target + Azure Database for MySQL server + :type target_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: + super(ConnectToTargetAzureDbForMySqlTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + + +class ConnectToTargetAzureDbForMySqlTaskOutput(Model): + """Output for the task that validates connection to Azure Database for MySQL + and target server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar server_version: Version of the target server + :vartype 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 = { + 'id': {'readonly': True}, + 'server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'server_version': {'key': 'serverVersion', '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(ConnectToTargetAzureDbForMySqlTaskOutput, self).__init__(**kwargs) + self.id = None + self.server_version = None + self.databases = None + self.target_server_brand_version = None + self.validation_errors = None + + +class ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure Database for + MySQL and target server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar 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.ConnectToTargetAzureDbForMySqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput] + """ + + _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': 'ConnectToTargetAzureDbForMySqlTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForMySqlTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToTargetAzureDbForMySqlTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToTarget.AzureDbForMySql' + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(Model): + """Input for the task that validates connection to Azure Database for + PostgreSQL and target server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + PostgreSQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :param target_connection_info: Required. Connection information for target + Azure Database for PostgreSQL server + :type target_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: + super(ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(Model): + """Output for the task that validates connection to Azure Database for + PostgreSQL and target server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :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 = { + 'id': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + '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(ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.target_server_version = None + self.databases = None + self.target_server_brand_version = None + self.validation_errors = None + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure Database For + PostgreSQL server and target server requirements for online migration. + + 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.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput] + """ + + _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': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToTarget.AzureDbForPostgreSql.Sync' + + +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 + + +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] + :param database_schema_map: Mapping of schemas per database + :type database_schema_map: + list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem] + """ + + _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]'}, + 'database_schema_map': {'key': 'databaseSchemaMap', 'type': '[ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem]'}, + } + + def __init__(self, *, database_schema_map=None, **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 + self.database_schema_map = database_schema_map + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem(Model): + """ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem. + + :param database: + :type database: str + :param schemas: + :type schemas: list[str] + """ + + _attribute_map = { + 'database': {'key': 'database', 'type': 'str'}, + 'schemas': {'key': 'schemas', 'type': '[str]'}, + } + + def __init__(self, *, database: str=None, schemas=None, **kwargs) -> None: + super(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem, self).__init__(**kwargs) + self.database = database + self.schemas = schemas + + +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' + + +class ConnectToTargetSqlDbTaskInput(Model): + """Input for the task that validates connection to SQL DB and target server + requirements. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for target + SQL DB + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, *, target_connection_info, **kwargs) -> None: + super(ConnectToTargetSqlDbTaskInput, self).__init__(**kwargs) + self.target_connection_info = target_connection_info + + +class ConnectToTargetSqlDbTaskOutput(Model): + """Output for the task that validates connection to SQL DB and target server + requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar databases: Source databases as a map from database name to database + id + :vartype databases: dict[str, str] + :ivar target_server_version: Version of the target server + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'databases': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToTargetSqlDbTaskOutput, self).__init__(**kwargs) + self.id = None + self.databases = None + self.target_server_version = None + self.target_server_brand_version = None + + +class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL DB and target + server requirements. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar 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.ConnectToTargetSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] + """ + + _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': 'ConnectToTargetSqlDbTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToTargetSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToTarget.SqlDb' + + +class ConnectToTargetSqlMISyncTaskInput(Model): + """Input for the task that validates connection to Azure SQL Database Managed + Instance online scenario. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, *, target_connection_info, azure_app, **kwargs) -> None: + super(ConnectToTargetSqlMISyncTaskInput, self).__init__(**kwargs) + self.target_connection_info = target_connection_info + self.azure_app = azure_app + + +class ConnectToTargetSqlMISyncTaskOutput(Model): + """Output for the task that validates connection to Azure SQL Database Managed + Instance. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToTargetSqlMISyncTaskOutput, self).__init__(**kwargs) + self.target_server_version = None + self.target_server_brand_version = None + self.validation_errors = None + + +class ConnectToTargetSqlMISyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure SQL Database + Managed Instance. + + 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.ConnectToTargetSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput] + """ + + _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': 'ConnectToTargetSqlMISyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMISyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToTargetSqlMISyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToTarget.AzureSqlDbMI.Sync.LRS' + + +class ConnectToTargetSqlMITaskInput(Model): + """Input for the task that validates connection to Azure SQL Database Managed + Instance. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Connection information for target + SQL Server + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, *, target_connection_info, **kwargs) -> None: + super(ConnectToTargetSqlMITaskInput, self).__init__(**kwargs) + self.target_connection_info = target_connection_info + + +class ConnectToTargetSqlMITaskOutput(Model): + """Output for the task that validates connection to Azure SQL Database Managed + Instance. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar logins: List of logins on the target server. + :vartype logins: list[str] + :ivar agent_jobs: List of agent jobs on the target server. + :vartype agent_jobs: list[str] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'logins': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'logins': {'key': 'logins', 'type': '[str]'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '[str]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectToTargetSqlMITaskOutput, self).__init__(**kwargs) + self.id = None + self.target_server_version = None + self.target_server_brand_version = None + self.logins = None + self.agent_jobs = None + self.validation_errors = None + + +class ConnectToTargetSqlMITaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to Azure SQL Database + Managed Instance. + + 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.ConnectToTargetSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput] + """ + + _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': 'ConnectToTargetSqlMITaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMITaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToTargetSqlMITaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToTarget.AzureSqlDbMI' + + +class ConnectToTargetSqlSqlDbSyncTaskInput(Model): + """Input for the task that validates connection to Azure SQL DB and target + server requirements. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for target + SQL DB + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: + super(ConnectToTargetSqlSqlDbSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + + +class ConnectToTargetSqlSqlDbSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that validates connection to SQL DB and target + server requirements for online migration. + + 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.ConnectToTargetSqlSqlDbSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] + """ + + _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': 'ConnectToTargetSqlSqlDbSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ConnectToTargetSqlSqlDbSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ConnectToTarget.SqlDb.Sync' + + +class Database(Model): + """Information about a single database. + + :param id: Unique identifier for the database + :type id: str + :param name: Name of the database + :type name: str + :param compatibility_level: SQL Server compatibility level of database. + Possible values include: 'CompatLevel80', 'CompatLevel90', + 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', + 'CompatLevel140' + :type compatibility_level: str or + ~azure.mgmt.datamigration.models.DatabaseCompatLevel + :param collation: Collation name of the database + :type collation: str + :param server_name: Name of the server + :type server_name: str + :param fqdn: Fully qualified name + :type fqdn: str + :param install_id: Install id of the database + :type install_id: str + :param server_version: Version of the server + :type server_version: str + :param server_edition: Edition of the server + :type server_edition: str + :param server_level: Product level of the server (RTM, SP, CTP). + :type server_level: str + :param server_default_data_path: Default path of the data files + :type server_default_data_path: str + :param server_default_log_path: Default path of the log files + :type server_default_log_path: str + :param server_default_backup_path: Default path of the backup folder + :type server_default_backup_path: str + :param server_core_count: Number of cores on the server + :type server_core_count: int + :param server_visible_online_core_count: Number of cores on the server + that have VISIBLE ONLINE status + :type server_visible_online_core_count: int + :param database_state: State of the database. Possible values include: + 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' + :type database_state: str or + ~azure.mgmt.datamigration.models.DatabaseState + :param server_id: The unique Server Id + :type server_id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, + 'collation': {'key': 'collation', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'install_id': {'key': 'installId', 'type': 'str'}, + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + 'server_edition': {'key': 'serverEdition', 'type': 'str'}, + 'server_level': {'key': 'serverLevel', 'type': 'str'}, + 'server_default_data_path': {'key': 'serverDefaultDataPath', 'type': 'str'}, + 'server_default_log_path': {'key': 'serverDefaultLogPath', 'type': 'str'}, + 'server_default_backup_path': {'key': 'serverDefaultBackupPath', 'type': 'str'}, + 'server_core_count': {'key': 'serverCoreCount', 'type': 'int'}, + 'server_visible_online_core_count': {'key': 'serverVisibleOnlineCoreCount', 'type': 'int'}, + 'database_state': {'key': 'databaseState', 'type': 'str'}, + 'server_id': {'key': 'serverId', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, name: str=None, compatibility_level=None, collation: str=None, server_name: str=None, fqdn: str=None, install_id: str=None, server_version: str=None, server_edition: str=None, server_level: str=None, server_default_data_path: str=None, server_default_log_path: str=None, server_default_backup_path: str=None, server_core_count: int=None, server_visible_online_core_count: int=None, database_state=None, server_id: str=None, **kwargs) -> None: + super(Database, self).__init__(**kwargs) + self.id = id + self.name = name + self.compatibility_level = compatibility_level + self.collation = collation + self.server_name = server_name + self.fqdn = fqdn + self.install_id = install_id + self.server_version = server_version + self.server_edition = server_edition + self.server_level = server_level + self.server_default_data_path = server_default_data_path + self.server_default_log_path = server_default_log_path + self.server_default_backup_path = server_default_backup_path + self.server_core_count = server_core_count + self.server_visible_online_core_count = server_visible_online_core_count + self.database_state = database_state + self.server_id = server_id + + +class DatabaseBackupInfo(Model): + """Information about backup files when existing backup mode is used. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar database_name: Database name. + :vartype database_name: str + :ivar backup_type: Backup Type. Possible values include: 'Database', + 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', + 'Partial', 'DifferentialPartial' + :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType + :ivar backup_files: The list of backup files for the current database. + :vartype backup_files: list[str] + :ivar position: Position of current database backup in the file. + :vartype position: int + :ivar is_damaged: Database was damaged when backed up, but the backup + operation was requested to continue despite errors. + :vartype is_damaged: bool + :ivar is_compressed: Whether the backup set is compressed + :vartype is_compressed: bool + :ivar family_count: Number of files in the backup set. + :vartype family_count: int + :ivar backup_finish_date: Date and time when the backup operation + finished. + :vartype backup_finish_date: datetime + """ + + _validation = { + 'database_name': {'readonly': True}, + 'backup_type': {'readonly': True}, + 'backup_files': {'readonly': True}, + 'position': {'readonly': True}, + 'is_damaged': {'readonly': True}, + 'is_compressed': {'readonly': True}, + 'family_count': {'readonly': True}, + 'backup_finish_date': {'readonly': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'backup_type': {'key': 'backupType', 'type': 'str'}, + 'backup_files': {'key': 'backupFiles', 'type': '[str]'}, + 'position': {'key': 'position', 'type': 'int'}, + 'is_damaged': {'key': 'isDamaged', 'type': 'bool'}, + 'is_compressed': {'key': 'isCompressed', 'type': 'bool'}, + 'family_count': {'key': 'familyCount', 'type': 'int'}, + 'backup_finish_date': {'key': 'backupFinishDate', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs) -> None: + super(DatabaseBackupInfo, self).__init__(**kwargs) + self.database_name = None + self.backup_type = None + self.backup_files = None + self.position = None + self.is_damaged = None + self.is_compressed = None + self.family_count = None + self.backup_finish_date = None + + +class DatabaseFileInfo(Model): + """Database file specific information. + + :param database_name: Name of the database + :type database_name: str + :param id: Unique identifier for database file + :type id: str + :param logical_name: Logical name of the file + :type logical_name: str + :param physical_full_name: Operating-system full path of the file + :type physical_full_name: str + :param restore_full_name: Suggested full path of the file for restoring + :type restore_full_name: str + :param file_type: Database file type. Possible values include: 'Rows', + 'Log', 'Filestream', 'NotSupported', 'Fulltext' + :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType + :param size_mb: Size of the file in megabytes + :type size_mb: float + """ + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'logical_name': {'key': 'logicalName', 'type': 'str'}, + 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, + 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, + 'file_type': {'key': 'fileType', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + } + + def __init__(self, *, database_name: str=None, id: str=None, logical_name: str=None, physical_full_name: str=None, restore_full_name: str=None, file_type=None, size_mb: float=None, **kwargs) -> None: + super(DatabaseFileInfo, self).__init__(**kwargs) + self.database_name = database_name + self.id = id + self.logical_name = logical_name + self.physical_full_name = physical_full_name + self.restore_full_name = restore_full_name + self.file_type = file_type + self.size_mb = size_mb + + +class DatabaseFileInput(Model): + """Database file specific information for input. + + :param id: Unique identifier for database file + :type id: str + :param logical_name: Logical name of the file + :type logical_name: str + :param physical_full_name: Operating-system full path of the file + :type physical_full_name: str + :param restore_full_name: Suggested full path of the file for restoring + :type restore_full_name: str + :param file_type: Database file type. Possible values include: 'Rows', + 'Log', 'Filestream', 'NotSupported', 'Fulltext' + :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'logical_name': {'key': 'logicalName', 'type': 'str'}, + 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, + 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, + 'file_type': {'key': 'fileType', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, logical_name: str=None, physical_full_name: str=None, restore_full_name: str=None, file_type=None, **kwargs) -> None: + super(DatabaseFileInput, self).__init__(**kwargs) + self.id = id + self.logical_name = logical_name + self.physical_full_name = physical_full_name + self.restore_full_name = restore_full_name + self.file_type = file_type + + +class DatabaseInfo(Model): + """Project Database Details. + + All required parameters must be populated in order to send to Azure. + + :param source_database_name: Required. Name of the database + :type source_database_name: str + """ + + _validation = { + 'source_database_name': {'required': True}, + } + + _attribute_map = { + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + } + + def __init__(self, *, source_database_name: str, **kwargs) -> None: + super(DatabaseInfo, self).__init__(**kwargs) + self.source_database_name = source_database_name + + +class DatabaseObjectName(Model): + """A representation of the name of an object in a database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar database_name: The unescaped name of the database containing the + object + :vartype database_name: str + :ivar object_name: The unescaped name of the object + :vartype object_name: str + :ivar schema_name: The unescaped name of the schema containing the object + :vartype schema_name: str + :param object_type: Type of the object in the database. Possible values + include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' + :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType + """ + + _validation = { + 'database_name': {'readonly': True}, + 'object_name': {'readonly': True}, + 'schema_name': {'readonly': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + } + + def __init__(self, *, object_type=None, **kwargs) -> None: + super(DatabaseObjectName, self).__init__(**kwargs) + self.database_name = None + self.object_name = None + self.schema_name = None + self.object_type = object_type + + +class DataItemMigrationSummaryResult(Model): + """Basic summary of a data item migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the item + :vartype name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message + :vartype status_message: str + :ivar items_count: Number of items + :vartype items_count: long + :ivar items_completed_count: Number of successfully completed items + :vartype items_completed_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + """ + + _validation = { + 'name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'items_count': {'readonly': True}, + 'items_completed_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'items_count': {'key': 'itemsCount', 'type': 'long'}, + 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(DataItemMigrationSummaryResult, self).__init__(**kwargs) + self.name = None + self.started_on = None + self.ended_on = None + self.state = None + self.status_message = None + self.items_count = None + self.items_completed_count = None + self.error_prefix = None + self.result_prefix = None + + +class DatabaseSummaryResult(DataItemMigrationSummaryResult): + """Summary of database results in the migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the item + :vartype name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message + :vartype status_message: str + :ivar items_count: Number of items + :vartype items_count: long + :ivar items_completed_count: Number of successfully completed items + :vartype items_completed_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + :ivar size_mb: Size of the database in megabytes + :vartype size_mb: float + """ + + _validation = { + 'name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'items_count': {'readonly': True}, + 'items_completed_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + 'size_mb': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'items_count': {'key': 'itemsCount', 'type': 'long'}, + 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + } + + def __init__(self, **kwargs) -> None: + super(DatabaseSummaryResult, self).__init__(**kwargs) + self.size_mb = None + + +class DatabaseTable(Model): + """Table properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar has_rows: Indicates whether table is empty or not + :vartype has_rows: bool + :ivar name: Schema-qualified name of the table + :vartype name: str + """ + + _validation = { + 'has_rows': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'has_rows': {'key': 'hasRows', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(DatabaseTable, self).__init__(**kwargs) + self.has_rows = None + self.name = None + + +class DataIntegrityValidationResult(Model): + """Results for checksum based Data Integrity validation results. + + :param failed_objects: List of failed table names of source and target + pair + :type failed_objects: dict[str, str] + :param validation_errors: List of errors that happened while performing + data integrity validation + :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError + """ + + _attribute_map = { + 'failed_objects': {'key': 'failedObjects', 'type': '{str}'}, + 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, + } + + def __init__(self, *, failed_objects=None, validation_errors=None, **kwargs) -> None: + super(DataIntegrityValidationResult, self).__init__(**kwargs) + self.failed_objects = failed_objects + self.validation_errors = validation_errors + + +class DataMigrationError(Model): + """Migration Task errors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar message: Error description + :vartype message: str + :param type: Possible values include: 'Default', 'Warning', 'Error' + :type type: str or ~azure.mgmt.datamigration.models.ErrorType + """ + + _validation = { + 'message': {'readonly': True}, + } + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(DataMigrationError, self).__init__(**kwargs) + self.message = None + self.type = type + + +class DataMigrationProjectMetadata(Model): + """Common metadata for migration projects. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar source_server_name: Source server name + :vartype source_server_name: str + :ivar source_server_port: Source server port number + :vartype source_server_port: str + :ivar source_username: Source username + :vartype source_username: str + :ivar target_server_name: Target server name + :vartype target_server_name: str + :ivar target_username: Target username + :vartype target_username: str + :ivar target_db_name: Target database name + :vartype target_db_name: str + :ivar target_using_win_auth: Whether target connection is Windows + authentication + :vartype target_using_win_auth: bool + :ivar selected_migration_tables: List of tables selected for migration + :vartype selected_migration_tables: + list[~azure.mgmt.datamigration.models.MigrationTableMetadata] + """ + + _validation = { + 'source_server_name': {'readonly': True}, + 'source_server_port': {'readonly': True}, + 'source_username': {'readonly': True}, + 'target_server_name': {'readonly': True}, + 'target_username': {'readonly': True}, + 'target_db_name': {'readonly': True}, + 'target_using_win_auth': {'readonly': True}, + 'selected_migration_tables': {'readonly': True}, + } + + _attribute_map = { + 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, + 'source_server_port': {'key': 'sourceServerPort', 'type': 'str'}, + 'source_username': {'key': 'sourceUsername', 'type': 'str'}, + 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, + 'target_username': {'key': 'targetUsername', 'type': 'str'}, + 'target_db_name': {'key': 'targetDbName', 'type': 'str'}, + 'target_using_win_auth': {'key': 'targetUsingWinAuth', 'type': 'bool'}, + 'selected_migration_tables': {'key': 'selectedMigrationTables', 'type': '[MigrationTableMetadata]'}, + } + + def __init__(self, **kwargs) -> None: + super(DataMigrationProjectMetadata, self).__init__(**kwargs) + self.source_server_name = None + self.source_server_port = None + self.source_username = None + self.target_server_name = None + self.target_username = None + self.target_db_name = None + self.target_using_win_auth = None + self.selected_migration_tables = None + + +class Resource(Model): + """ARM resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """ARM tracked top level resource. + + 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: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. Resource location. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class DataMigrationService(TrackedResource): + """A Database Migration Service resource. + + 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: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. Resource location. + :type location: str + :param etag: HTTP strong entity tag value. Ignored if submitted + :type etag: str + :param kind: The resource kind. Only 'vm' (the default) is supported. + :type kind: str + :ivar provisioning_state: The resource's provisioning state. Possible + values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', + 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', + 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.datamigration.models.ServiceProvisioningState + :param public_key: The public key of the service, used to encrypt secrets + sent to the service + :type public_key: str + :param virtual_subnet_id: Required. The ID of the + Microsoft.Network/virtualNetworks/subnets resource to which the service + should be joined + :type virtual_subnet_id: str + :param sku: Service SKU + :type sku: ~azure.mgmt.datamigration.models.ServiceSku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_subnet_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, + 'virtual_subnet_id': {'key': 'properties.virtualSubnetId', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'ServiceSku'}, + } + + def __init__(self, *, location: str, virtual_subnet_id: str, tags=None, etag: str=None, kind: str=None, public_key: str=None, sku=None, **kwargs) -> None: + super(DataMigrationService, self).__init__(tags=tags, location=location, **kwargs) + self.etag = etag + self.kind = kind + self.provisioning_state = None + self.public_key = public_key + self.virtual_subnet_id = virtual_subnet_id + self.sku = sku + + +class DataMigrationServiceStatusResponse(Model): + """Service health status. + + :param agent_version: The DMS instance agent version + :type agent_version: str + :param status: The machine-readable status, such as 'Initializing', + 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', + 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed' + :type status: str + :param vm_size: The services virtual machine size, such as + 'Standard_D2_v2' + :type vm_size: str + :param supported_task_types: The list of supported task types + :type supported_task_types: list[str] + """ + + _attribute_map = { + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'supported_task_types': {'key': 'supportedTaskTypes', 'type': '[str]'}, + } + + def __init__(self, *, agent_version: str=None, status: str=None, vm_size: str=None, supported_task_types=None, **kwargs) -> None: + super(DataMigrationServiceStatusResponse, self).__init__(**kwargs) + self.agent_version = agent_version + self.status = status + self.vm_size = vm_size + self.supported_task_types = supported_task_types + + +class ExecutionStatistics(Model): + """Description about the errors happen while performing migration validation. + + :param execution_count: No. of query executions + :type execution_count: long + :param cpu_time_ms: CPU Time in millisecond(s) for the query execution + :type cpu_time_ms: float + :param elapsed_time_ms: Time taken in millisecond(s) for executing the + query + :type elapsed_time_ms: float + :param wait_stats: Dictionary of sql query execution wait types and the + respective statistics + :type wait_stats: dict[str, + ~azure.mgmt.datamigration.models.WaitStatistics] + :param has_errors: Indicates whether the query resulted in an error + :type has_errors: bool + :param sql_errors: List of sql Errors + :type sql_errors: list[str] + """ + + _attribute_map = { + 'execution_count': {'key': 'executionCount', 'type': 'long'}, + 'cpu_time_ms': {'key': 'cpuTimeMs', 'type': 'float'}, + 'elapsed_time_ms': {'key': 'elapsedTimeMs', 'type': 'float'}, + 'wait_stats': {'key': 'waitStats', 'type': '{WaitStatistics}'}, + 'has_errors': {'key': 'hasErrors', 'type': 'bool'}, + 'sql_errors': {'key': 'sqlErrors', 'type': '[str]'}, + } + + def __init__(self, *, execution_count: int=None, cpu_time_ms: float=None, elapsed_time_ms: float=None, wait_stats=None, has_errors: bool=None, sql_errors=None, **kwargs) -> None: + super(ExecutionStatistics, self).__init__(**kwargs) + self.execution_count = execution_count + self.cpu_time_ms = cpu_time_ms + self.elapsed_time_ms = elapsed_time_ms + self.wait_stats = wait_stats + self.has_errors = has_errors + self.sql_errors = sql_errors + + +class FileShare(Model): + """File share information with Path, Username, and Password. + + All required parameters must be populated in order to send to Azure. + + :param user_name: User name credential to connect to the share location + :type user_name: str + :param password: Password credential used to connect to the share + location. + :type password: str + :param path: Required. The folder path for this share. + :type path: str + """ + + _validation = { + 'path': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__(self, *, path: str, user_name: str=None, password: str=None, **kwargs) -> None: + super(FileShare, self).__init__(**kwargs) + self.user_name = user_name + self.password = password + self.path = path + + +class FileStorageInfo(Model): + """File storage information. + + :param uri: A URI that can be used to access the file content. + :type uri: str + :param headers: + :type headers: dict[str, str] + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '{str}'}, + } + + def __init__(self, *, uri: str=None, headers=None, **kwargs) -> None: + super(FileStorageInfo, self).__init__(**kwargs) + self.uri = uri + self.headers = headers + + +class GetProjectDetailsNonSqlTaskInput(Model): + """Input for the task that reads configuration from project artifacts. + + All required parameters must be populated in order to send to Azure. + + :param project_name: Required. Name of the migration project + :type project_name: str + :param project_location: Required. A URL that points to the location to + access project artifacts + :type project_location: str + """ + + _validation = { + 'project_name': {'required': True}, + 'project_location': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'project_location': {'key': 'projectLocation', 'type': 'str'}, + } + + def __init__(self, *, project_name: str, project_location: str, **kwargs) -> None: + super(GetProjectDetailsNonSqlTaskInput, self).__init__(**kwargs) + self.project_name = project_name + self.project_location = project_location + + +class GetTdeCertificatesSqlTaskInput(Model): + """Input for the task that gets TDE certificates in Base64 encoded format. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Connection information for SQL Server + :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param backup_file_share: Required. Backup file share information for file + share to be used for temporarily storing files. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param selected_certificates: Required. List containing certificate names + and corresponding password to use for encrypting the exported certificate. + :type selected_certificates: + list[~azure.mgmt.datamigration.models.SelectedCertificateInput] + """ + + _validation = { + 'connection_info': {'required': True}, + 'backup_file_share': {'required': True}, + 'selected_certificates': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'selected_certificates': {'key': 'selectedCertificates', 'type': '[SelectedCertificateInput]'}, + } + + def __init__(self, *, connection_info, backup_file_share, selected_certificates, **kwargs) -> None: + super(GetTdeCertificatesSqlTaskInput, self).__init__(**kwargs) + self.connection_info = connection_info + self.backup_file_share = backup_file_share + self.selected_certificates = selected_certificates + + +class GetTdeCertificatesSqlTaskOutput(Model): + """Output of the task that gets TDE certificates in Base64 encoded format. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar base64_encoded_certificates: Mapping from certificate name to base + 64 encoded format. + :vartype base64_encoded_certificates: dict[str, list[str]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'base64_encoded_certificates': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'base64_encoded_certificates': {'key': 'base64EncodedCertificates', 'type': '{[str]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(GetTdeCertificatesSqlTaskOutput, self).__init__(**kwargs) + self.base64_encoded_certificates = None + self.validation_errors = None + + +class GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties): + """Properties for the task that gets TDE certificates in Base64 encoded + format. + + 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.GetTdeCertificatesSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput] + """ + + _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': 'GetTdeCertificatesSqlTaskInput'}, + 'output': {'key': 'output', 'type': '[GetTdeCertificatesSqlTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(GetTdeCertificatesSqlTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'GetTDECertificates.Sql' + + +class GetUserTablesOracleTaskInput(Model): + """Input for the task that gets the list of tables contained within a provided + list of Oracle schemas. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Information for connecting to Oracle + source + :type connection_info: + ~azure.mgmt.datamigration.models.OracleConnectionInfo + :param selected_schemas: Required. List of Oracle schemas for which to + collect tables + :type selected_schemas: list[str] + """ + + _validation = { + 'connection_info': {'required': True}, + 'selected_schemas': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'OracleConnectionInfo'}, + 'selected_schemas': {'key': 'selectedSchemas', 'type': '[str]'}, + } + + def __init__(self, *, connection_info, selected_schemas, **kwargs) -> None: + super(GetUserTablesOracleTaskInput, self).__init__(**kwargs) + self.connection_info = connection_info + self.selected_schemas = selected_schemas + + +class GetUserTablesOracleTaskOutput(Model): + """Output for the task that gets the list of tables contained within a + provided list of Oracle schemas. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar schema_name: The schema this result is for + :vartype schema_name: str + :ivar tables: List of valid tables found for this schema + :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'schema_name': {'readonly': True}, + 'tables': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'tables': {'key': 'tables', 'type': '[DatabaseTable]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(GetUserTablesOracleTaskOutput, self).__init__(**kwargs) + self.schema_name = None + self.tables = None + self.validation_errors = None + + +class GetUserTablesOracleTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + Oracle schemas. + + 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.GetUserTablesOracleTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesOracleTaskOutput] + """ + + _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': 'GetUserTablesOracleTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesOracleTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(GetUserTablesOracleTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'GetUserTablesOracle' + + +class GetUserTablesPostgreSqlTaskInput(Model): + """Input for the task that gets the list of tables for a provided list of + PostgreSQL databases. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Information for connecting to PostgreSQL + source + :type connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :param selected_databases: Required. List of PostgreSQL databases for + which to collect tables + :type selected_databases: list[str] + """ + + _validation = { + 'connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'}, + } + + def __init__(self, *, connection_info, selected_databases, **kwargs) -> None: + super(GetUserTablesPostgreSqlTaskInput, self).__init__(**kwargs) + self.connection_info = connection_info + self.selected_databases = selected_databases + + +class GetUserTablesPostgreSqlTaskOutput(Model): + """Output for the task that gets the list of tables for a provided list of + PostgreSQL databases. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar database_name: The database this result is for + :vartype database_name: str + :ivar tables: List of valid tables found for this database + :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] + :ivar validation_errors: Validation errors associated with the task + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'database_name': {'readonly': True}, + 'tables': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'tables': {'key': 'tables', 'type': '[DatabaseTable]'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(GetUserTablesPostgreSqlTaskOutput, self).__init__(**kwargs) + self.database_name = None + self.tables = None + self.validation_errors = None + + +class GetUserTablesPostgreSqlTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + databases. + + 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.GetUserTablesPostgreSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskOutput] + """ + + _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': 'GetUserTablesPostgreSqlTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesPostgreSqlTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(GetUserTablesPostgreSqlTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'GetUserTablesPostgreSql' + + +class GetUserTablesSqlSyncTaskInput(Model): + """Input for the task that collects user tables for the given list of + databases. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for SQL + Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for SQL DB + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_source_databases: Required. List of source database names + to collect tables for + :type selected_source_databases: list[str] + :param selected_target_databases: Required. List of target database names + to collect tables for + :type selected_target_databases: list[str] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_source_databases': {'required': True}, + 'selected_target_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_source_databases': {'key': 'selectedSourceDatabases', 'type': '[str]'}, + 'selected_target_databases': {'key': 'selectedTargetDatabases', 'type': '[str]'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_source_databases, selected_target_databases, **kwargs) -> None: + super(GetUserTablesSqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + self.selected_source_databases = selected_source_databases + self.selected_target_databases = selected_target_databases + + +class GetUserTablesSqlSyncTaskOutput(Model): + """Output of the task that collects user tables for the given list of + databases. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar databases_to_source_tables: Mapping from database name to list of + source tables + :vartype databases_to_source_tables: dict[str, + list[~azure.mgmt.datamigration.models.DatabaseTable]] + :ivar databases_to_target_tables: Mapping from database name to list of + target tables + :vartype databases_to_target_tables: dict[str, + list[~azure.mgmt.datamigration.models.DatabaseTable]] + :ivar table_validation_errors: Mapping from database name to list of + validation errors + :vartype table_validation_errors: dict[str, list[str]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'databases_to_source_tables': {'readonly': True}, + 'databases_to_target_tables': {'readonly': True}, + 'table_validation_errors': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'databases_to_source_tables': {'key': 'databasesToSourceTables', 'type': '{[DatabaseTable]}'}, + 'databases_to_target_tables': {'key': 'databasesToTargetTables', 'type': '{[DatabaseTable]}'}, + 'table_validation_errors': {'key': 'tableValidationErrors', 'type': '{[str]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(GetUserTablesSqlSyncTaskOutput, self).__init__(**kwargs) + self.databases_to_source_tables = None + self.databases_to_target_tables = None + self.table_validation_errors = None + self.validation_errors = None + + +class GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + databases. + + 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.GetUserTablesSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput] + """ + + _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': 'GetUserTablesSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesSqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(GetUserTablesSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'GetUserTables.AzureSqlDb.Sync' + + +class GetUserTablesSqlTaskInput(Model): + """Input for the task that collects user tables for the given list of + databases. + + All required parameters must be populated in order to send to Azure. + + :param connection_info: Required. Connection information for SQL Server + :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. List of database names to collect + tables for + :type selected_databases: list[str] + """ + + _validation = { + 'connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'}, + } + + def __init__(self, *, connection_info, selected_databases, **kwargs) -> None: + super(GetUserTablesSqlTaskInput, self).__init__(**kwargs) + self.connection_info = connection_info + self.selected_databases = selected_databases + + +class GetUserTablesSqlTaskOutput(Model): + """Output of the task that collects user tables for the given list of + databases. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar databases_to_tables: Mapping from database name to list of tables + :vartype databases_to_tables: dict[str, + list[~azure.mgmt.datamigration.models.DatabaseTable]] + :ivar validation_errors: Validation errors + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'databases_to_tables': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'databases_to_tables': {'key': 'databasesToTables', 'type': '{[DatabaseTable]}'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(GetUserTablesSqlTaskOutput, self).__init__(**kwargs) + self.id = None + self.databases_to_tables = None + self.validation_errors = None + + +class GetUserTablesSqlTaskProperties(ProjectTaskProperties): + """Properties for the task that collects user tables for the given list of + databases. + + 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.GetUserTablesSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput] + """ + + _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': 'GetUserTablesSqlTaskInput'}, + 'output': {'key': 'output', 'type': '[GetUserTablesSqlTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(GetUserTablesSqlTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'GetUserTables.Sql' + + +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 + + +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 + + +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' + + +class MigrateMISyncCompleteCommandInput(Model): + """Input for command that completes online migration for an Azure SQL Database + Managed Instance. + + All required parameters must be populated in order to send to Azure. + + :param source_database_name: Required. Name of managed instance database + :type source_database_name: str + """ + + _validation = { + 'source_database_name': {'required': True}, + } + + _attribute_map = { + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + } + + def __init__(self, *, source_database_name: str, **kwargs) -> None: + super(MigrateMISyncCompleteCommandInput, self).__init__(**kwargs) + self.source_database_name = source_database_name + + +class MigrateMISyncCompleteCommandOutput(Model): + """Output for command that completes online migration for an Azure SQL + Database Managed Instance. + + :param errors: List of errors that happened during the command execution + :type errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ReportableException]'}, + } + + def __init__(self, *, errors=None, **kwargs) -> None: + super(MigrateMISyncCompleteCommandOutput, self).__init__(**kwargs) + self.errors = errors + + +class MigrateMISyncCompleteCommandProperties(CommandProperties): + """Properties for the command that completes online migration for an Azure SQL + Database Managed Instance. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: + ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput + :ivar output: Command output. This is ignored if submitted. + :vartype output: + ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateMISyncCompleteCommandInput'}, + 'output': {'key': 'output', 'type': 'MigrateMISyncCompleteCommandOutput'}, + } + + def __init__(self, *, input=None, **kwargs) -> None: + super(MigrateMISyncCompleteCommandProperties, self).__init__(**kwargs) + self.input = input + self.output = None + self.command_type = 'Migrate.SqlServer.AzureDbSqlMi.Complete' + + +class MigrateMongoDbTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates data between MongoDB data sources. + + 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.MongoDbMigrationSettings + :ivar output: + :vartype output: list[~azure.mgmt.datamigration.models.MongoDbProgress] + """ + + _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': 'MongoDbMigrationSettings'}, + 'output': {'key': 'output', 'type': '[MongoDbProgress]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateMongoDbTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.MongoDb' + + +class MigrateMySqlAzureDbForMySqlSyncDatabaseInput(Model): + """Database specific information for MySQL to Azure Database for MySQL + migration task inputs. + + :param name: Name of the database + :type name: 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'}, + '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, target_database_name: str=None, migration_setting=None, source_setting=None, target_setting=None, **kwargs) -> None: + super(MigrateMySqlAzureDbForMySqlSyncDatabaseInput, self).__init__(**kwargs) + self.name = name + self.target_database_name = target_database_name + self.migration_setting = migration_setting + self.source_setting = source_setting + self.target_setting = target_setting + + +class MigrateMySqlAzureDbForMySqlSyncTaskInput(Model): + """Input for the task that migrates MySQL databases to Azure Database for + MySQL for online migrations. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Connection information for source + MySQL + :type source_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param target_connection_info: Required. Connection information for target + Azure Database for MySQL + :type target_connection_info: + ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateMySqlAzureDbForMySqlSyncDatabaseInput]'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None: + super(MigrateMySqlAzureDbForMySqlSyncTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + self.selected_databases = selected_databases + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutput(Model): + """Output for the task that migrates MySQL databases to Azure Database for + MySQL for online migrations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, + MigrateMySqlAzureDbForMySqlSyncTaskOutputError, + MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel + + 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': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputError', 'TableLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs) -> None: + super(MigrateMySqlAzureDbForMySqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = error_message + self.events = events + self.result_type = 'DatabaseLevelErrorOutput' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, 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' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputError. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel. + + 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel, 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' + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): + """MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel. + + 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: str + :ivar cdc_update_counter: Number of applied updates + :vartype cdc_update_counter: str + :ivar cdc_delete_counter: Number of applied deletes + :vartype cdc_delete_counter: str + :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': 'str'}, + 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'str'}, + 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'str'}, + '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(MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, 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' + + +class MigrateMySqlAzureDbForMySqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates MySQL databases to Azure Database for + MySQL 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.MigrateMySqlAzureDbForMySqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput] + """ + + _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': 'MigrateMySqlAzureDbForMySqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateMySqlAzureDbForMySqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateMySqlAzureDbForMySqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.MySql.AzureDbForMySql.Sync' + + +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' + + +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 + + +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 + + +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 + + +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' + + +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' + + +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' + + +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' + + +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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(Model): + """Database specific information for PostgreSQL to Azure Database for + PostgreSQL migration task inputs. + + :param name: Name of the database + :type name: 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'}, + '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, target_database_name: str=None, migration_setting=None, source_setting=None, target_setting=None, **kwargs) -> None: + super(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, self).__init__(**kwargs) + self.name = name + self.target_database_name = target_database_name + self.migration_setting = migration_setting + self.source_setting = source_setting + self.target_setting = target_setting + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(Model): + """Input for the task that migrates PostgreSQL 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.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] + :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 + PostgreSQL + :type source_connection_info: + ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + _validation = { + 'selected_databases': {'required': True}, + 'target_connection_info': {'required': True}, + 'source_connection_info': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput]'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, + } + + def __init__(self, *, selected_databases, target_connection_info, source_connection_info, **kwargs) -> None: + super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) + self.selected_databases = selected_databases + self.target_connection_info = target_connection_info + self.source_connection_info = source_connection_info + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(Model): + """Output for the task that migrates PostgreSQL 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: + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel + + 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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError', 'TableLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs) -> None: + super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = error_message + self.events = events + self.result_type = 'DatabaseLevelErrorOutput' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, 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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, 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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel. + + 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, 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' + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates PostgreSQL databases 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.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput] + """ + + _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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync' + + +class MigrateSchemaSqlServerSqlDbDatabaseInput(Model): + """Database input for migrate schema Sql Server to Azure SQL Server scenario. + + :param name: Name of source database + :type name: str + :param target_database_name: Name of target database + :type target_database_name: str + :param schema_setting: Database schema migration settings + :type schema_setting: + ~azure.mgmt.datamigration.models.SchemaMigrationSetting + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'schema_setting': {'key': 'schemaSetting', 'type': 'SchemaMigrationSetting'}, + } + + def __init__(self, *, name: str=None, target_database_name: str=None, schema_setting=None, **kwargs) -> None: + super(MigrateSchemaSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) + self.name = name + self.target_database_name = target_database_name + self.schema_setting = schema_setting + + +class SqlMigrationTaskInput(Model): + """Base class for migration task input. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: + super(SqlMigrationTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + + +class MigrateSchemaSqlServerSqlDbTaskInput(SqlMigrationTaskInput): + """Input for task that migrates Schema for SQL Server databases to Azure SQL + databases. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSchemaSqlServerSqlDbDatabaseInput]'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None: + super(MigrateSchemaSqlServerSqlDbTaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) + self.selected_databases = selected_databases + + +class MigrateSchemaSqlServerSqlDbTaskOutput(Model): + """Output for the task that migrates Schema for SQL Server databases to Azure + SQL databases. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, + MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, + MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError + + 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': {'MigrationLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel', 'DatabaseLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel', 'SchemaErrorOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputError', 'ErrorOutput': 'MigrateSchemaSqlTaskOutputError'} + } + + def __init__(self, **kwargs) -> None: + super(MigrateSchemaSqlServerSqlDbTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel. + + 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: The name of the database + :vartype database_name: str + :ivar state: State of the schema migration for this database. Possible + values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', + 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Schema migration stage for this database. Possible values + include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', + 'DownloadingScript', 'GeneratingScript', 'UploadingScript', + 'DeployingSchema', 'Completed', 'CompletedWithWarnings', 'Failed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.SchemaMigrationStage + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar database_error_result_prefix: Prefix string to use for querying + errors for this database + :vartype database_error_result_prefix: str + :ivar schema_error_result_prefix: Prefix string to use for querying schema + errors for this database + :vartype schema_error_result_prefix: str + :ivar number_of_successful_operations: Number of successful operations for + this database + :vartype number_of_successful_operations: long + :ivar number_of_failed_operations: Number of failed operations for this + database + :vartype number_of_failed_operations: long + :ivar file_id: Identifier for the file resource containing the schema of + this database + :vartype file_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'database_error_result_prefix': {'readonly': True}, + 'schema_error_result_prefix': {'readonly': True}, + 'number_of_successful_operations': {'readonly': True}, + 'number_of_failed_operations': {'readonly': True}, + 'file_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'database_error_result_prefix': {'key': 'databaseErrorResultPrefix', 'type': 'str'}, + 'schema_error_result_prefix': {'key': 'schemaErrorResultPrefix', 'type': 'str'}, + 'number_of_successful_operations': {'key': 'numberOfSuccessfulOperations', 'type': 'long'}, + 'number_of_failed_operations': {'key': 'numberOfFailedOperations', 'type': 'long'}, + 'file_id': {'key': 'fileId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.database_error_result_prefix = None + self.schema_error_result_prefix = None + self.number_of_successful_operations = None + self.number_of_failed_operations = None + self.file_id = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSchemaSqlServerSqlDbTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlServerSqlDbTaskOutputError. + + 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 command_text: Schema command which failed + :vartype command_text: str + :ivar error_text: Reason of failure + :vartype error_text: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'command_text': {'readonly': True}, + 'error_text': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'command_text': {'key': 'commandText', 'type': 'str'}, + 'error_text': {'key': 'errorText', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSchemaSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) + self.command_text = None + self.error_text = None + self.result_type = 'SchemaErrorOutput' + + +class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel. + + 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 state: Overall state of the schema migration. Possible values + include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', + 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', '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_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) + self.state = None + self.started_on = None + self.ended_on = None + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_version = None + self.target_server_brand_version = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties): + """Properties for task that migrates Schema for SQL Server databases to Azure + SQL databases. + + 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.MigrateSchemaSqlServerSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput] + """ + + _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': 'MigrateSchemaSqlServerSqlDbTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSchemaSqlServerSqlDbTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateSchemaSqlServerSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'MigrateSchemaSqlServerSqlDb' + + +class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): + """MigrateSchemaSqlTaskOutputError. + + 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(MigrateSchemaSqlTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlDbDatabaseInput(Model): + """Database specific information for SQL to Azure SQL DB migration task + inputs. + + :param name: Name of the database + :type name: str + :param target_database_name: Name of target database. Note: Target + database will be truncated before starting migration. + :type target_database_name: str + :param make_source_db_read_only: Whether to set database read only before + migration + :type make_source_db_read_only: bool + :param table_map: Mapping of source to target tables + :type table_map: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'make_source_db_read_only': {'key': 'makeSourceDbReadOnly', 'type': 'bool'}, + 'table_map': {'key': 'tableMap', 'type': '{str}'}, + } + + def __init__(self, *, name: str=None, target_database_name: str=None, make_source_db_read_only: bool=None, table_map=None, **kwargs) -> None: + super(MigrateSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) + self.name = name + self.target_database_name = target_database_name + self.make_source_db_read_only = make_source_db_read_only + self.table_map = table_map + + +class MigrateSqlServerSqlDbSyncDatabaseInput(Model): + """Database specific information for SQL to Azure SQL DB sync migration task + inputs. + + :param id: Unique identifier for database + :type id: str + :param name: Name of database + :type name: str + :param target_database_name: Target database name + :type target_database_name: str + :param schema_name: Schema name to be migrated + :type schema_name: str + :param table_map: Mapping of source to target tables + :type table_map: dict[str, 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 = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'table_map': {'key': 'tableMap', 'type': '{str}'}, + 'migration_setting': {'key': 'migrationSetting', 'type': '{str}'}, + 'source_setting': {'key': 'sourceSetting', 'type': '{str}'}, + 'target_setting': {'key': 'targetSetting', 'type': '{str}'}, + } + + def __init__(self, *, id: str=None, name: str=None, target_database_name: str=None, schema_name: str=None, table_map=None, migration_setting=None, source_setting=None, target_setting=None, **kwargs) -> None: + super(MigrateSqlServerSqlDbSyncDatabaseInput, self).__init__(**kwargs) + self.id = id + self.name = name + self.target_database_name = target_database_name + self.schema_name = schema_name + self.table_map = table_map + self.migration_setting = migration_setting + self.source_setting = source_setting + self.target_setting = target_setting + + +class MigrateSqlServerSqlDbSyncTaskInput(SqlMigrationTaskInput): + """Input for the task that migrates on-prem SQL Server databases to Azure SQL + Database for online migrations. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] + :param validation_options: Validation options + :type validation_options: + ~azure.mgmt.datamigration.models.MigrationValidationOptions + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, + 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, validation_options=None, **kwargs) -> None: + super(MigrateSqlServerSqlDbSyncTaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) + self.selected_databases = selected_databases + self.validation_options = validation_options + + +class MigrateSqlServerSqlDbSyncTaskOutput(Model): + """Output for the task that migrates on-prem SQL Server databases to Azure SQL + Database for online migrations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, + MigrateSqlServerSqlDbSyncTaskOutputError, + MigrateSqlServerSqlDbSyncTaskOutputTableLevel, + MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, + MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel + + 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': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateSqlServerSqlDbSyncTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlDbSyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputDatabaseError. + + 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, self).__init__(**kwargs) + self.error_message = error_message + self.events = events + self.result_type = 'DatabaseLevelErrorOutput' + + +class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel. + + 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, 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' + + +class MigrateSqlServerSqlDbSyncTaskOutputError(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputError. + + 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(MigrateSqlServerSqlDbSyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel. + + 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 + :ivar database_count: Count of databases + :vartype database_count: int + """ + + _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}, + 'database_count': {'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'}, + 'database_count': {'key': 'databaseCount', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel, 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.database_count = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlDbSyncTaskOutputTableLevel(MigrateSqlServerSqlDbSyncTaskOutput): + """MigrateSqlServerSqlDbSyncTaskOutputTableLevel. + + 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(MigrateSqlServerSqlDbSyncTaskOutputTableLevel, 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' + + +class MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates on-prem SQL Server databases to Azure + SQL Database 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.MigrateSqlServerSqlDbSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput] + """ + + _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': 'MigrateSqlServerSqlDbSyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbSyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateSqlServerSqlDbSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.SqlServer.AzureSqlDb.Sync' + + +class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): + """Input for the task that migrates on-prem SQL Server databases to Azure SQL + Database. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] + :param validation_options: Options for enabling various post migration + validations. Available options, + 1.) Data Integrity Check: Performs a checksum based comparison on source + and target tables after the migration to ensure the correctness of the + data. + 2.) Schema Validation: Performs a thorough schema comparison between the + source and target tables and provides a list of differences between the + source and target database, 3.) Query Analysis: Executes a set of queries + picked up automatically either from the Query Plan Cache or Query Store + and execute them and compares the execution time between the source and + target database. + :type validation_options: + ~azure.mgmt.datamigration.models.MigrationValidationOptions + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbDatabaseInput]'}, + 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, validation_options=None, **kwargs) -> None: + super(MigrateSqlServerSqlDbTaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) + self.selected_databases = selected_databases + self.validation_options = validation_options + + +class MigrateSqlServerSqlDbTaskOutput(Model): + """Output for the task that migrates on-prem SQL Server databases to Azure SQL + Database. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlDbTaskOutputError, + MigrateSqlServerSqlDbTaskOutputTableLevel, + MigrateSqlServerSqlDbTaskOutputDatabaseLevel, + MigrateSqlServerSqlDbTaskOutputMigrationLevel + + 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': {'ErrorOutput': 'MigrateSqlServerSqlDbTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlDbTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputDatabaseLevel. + + 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 item + :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 state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Migration stage that this database is in. Possible values + include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', + 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.DatabaseMigrationStage + :ivar status_message: Status message + :vartype status_message: str + :ivar message: Migration progress message + :vartype message: str + :ivar number_of_objects: Number of objects + :vartype number_of_objects: long + :ivar number_of_objects_completed: Number of successfully completed + objects + :vartype number_of_objects_completed: long + :ivar error_count: Number of database/object errors. + :vartype error_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar object_summary: Summary of object results in the migration + :vartype object_summary: dict[str, + ~azure.mgmt.datamigration.models.DataItemMigrationSummaryResult] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'status_message': {'readonly': True}, + 'message': {'readonly': True}, + 'number_of_objects': {'readonly': True}, + 'number_of_objects_completed': {'readonly': True}, + 'error_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + 'object_summary': {'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'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'number_of_objects': {'key': 'numberOfObjects', 'type': 'long'}, + 'number_of_objects_completed': {'key': 'numberOfObjectsCompleted', 'type': 'long'}, + 'error_count': {'key': 'errorCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + 'object_summary': {'key': 'objectSummary', 'type': '{DataItemMigrationSummaryResult}'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.started_on = None + self.ended_on = None + self.state = None + self.stage = None + self.status_message = None + self.message = None + self.number_of_objects = None + self.number_of_objects_completed = None + self.error_count = None + self.error_prefix = None + self.result_prefix = None + self.exceptions_and_warnings = None + self.object_summary = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSqlServerSqlDbTaskOutputError(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputError. + + 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(MigrateSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlDbTaskOutputMigrationLevel(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputMigrationLevel. + + 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 duration_in_seconds: Duration of task execution in seconds. + :vartype duration_in_seconds: long + :ivar status: Current status of migration. Possible values include: + 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + 'CompletedWithWarnings' + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar status_message: Migration status message + :vartype status_message: str + :ivar message: Migration progress message + :vartype message: str + :ivar databases: Selected databases as a map from database name to + database id + :vartype databases: dict[str, str] + :ivar database_summary: Summary of database results in the migration + :vartype database_summary: dict[str, + ~azure.mgmt.datamigration.models.DatabaseSummaryResult] + :param migration_validation_result: Migration Validation Results + :type migration_validation_result: + ~azure.mgmt.datamigration.models.MigrationValidationResult + :param migration_report_result: Migration Report Result, provides unique + url for downloading your migration report. + :type migration_report_result: + ~azure.mgmt.datamigration.models.MigrationReportResult + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'duration_in_seconds': {'readonly': True}, + 'status': {'readonly': True}, + 'status_message': {'readonly': True}, + 'message': {'readonly': True}, + 'databases': {'readonly': True}, + 'database_summary': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'exceptions_and_warnings': {'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'}, + 'duration_in_seconds': {'key': 'durationInSeconds', 'type': 'long'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'database_summary': {'key': 'databaseSummary', 'type': '{DatabaseSummaryResult}'}, + 'migration_validation_result': {'key': 'migrationValidationResult', 'type': 'MigrationValidationResult'}, + 'migration_report_result': {'key': 'migrationReportResult', 'type': 'MigrationReportResult'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, *, migration_validation_result=None, migration_report_result=None, **kwargs) -> None: + super(MigrateSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) + self.started_on = None + self.ended_on = None + self.duration_in_seconds = None + self.status = None + self.status_message = None + self.message = None + self.databases = None + self.database_summary = None + self.migration_validation_result = migration_validation_result + self.migration_report_result = migration_report_result + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_version = None + self.target_server_brand_version = None + self.exceptions_and_warnings = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlDbTaskOutputTableLevel(MigrateSqlServerSqlDbTaskOutput): + """MigrateSqlServerSqlDbTaskOutputTableLevel. + + 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 object_name: Name of the item + :vartype object_name: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message + :vartype status_message: str + :ivar items_count: Number of items + :vartype items_count: long + :ivar items_completed_count: Number of successfully completed items + :vartype items_completed_count: long + :ivar error_prefix: Wildcard string prefix to use for querying all errors + of the item + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all + sub-tem results of the item + :vartype result_prefix: str + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'object_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'items_count': {'readonly': True}, + 'items_completed_count': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'result_prefix': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'items_count': {'key': 'itemsCount', 'type': 'long'}, + 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlDbTaskOutputTableLevel, self).__init__(**kwargs) + self.object_name = None + self.started_on = None + self.ended_on = None + self.state = None + self.status_message = None + self.items_count = None + self.items_completed_count = None + self.error_prefix = None + self.result_prefix = None + self.result_type = 'TableLevelOutput' + + +class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties): + """Properties for the task that migrates on-prem SQL Server databases to Azure + SQL Database. + + 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.MigrateSqlServerSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput] + """ + + _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': 'MigrateSqlServerSqlDbTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateSqlServerSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.SqlServer.SqlDb' + + +class MigrateSqlServerSqlMIDatabaseInput(Model): + """Database specific information for SQL to Azure SQL DB Managed Instance + migration task inputs. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the database + :type name: str + :param restore_database_name: Required. Name of the database at + destination + :type restore_database_name: str + :param backup_file_share: Backup file share information for backing up + this database. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param backup_file_paths: The list of backup files to be used in case of + existing backups. + :type backup_file_paths: list[str] + """ + + _validation = { + 'name': {'required': True}, + 'restore_database_name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'backup_file_paths': {'key': 'backupFilePaths', 'type': '[str]'}, + } + + def __init__(self, *, name: str, restore_database_name: str, backup_file_share=None, backup_file_paths=None, **kwargs) -> None: + super(MigrateSqlServerSqlMIDatabaseInput, self).__init__(**kwargs) + self.name = name + self.restore_database_name = restore_database_name + self.backup_file_share = backup_file_share + self.backup_file_paths = backup_file_paths + + +class SqlServerSqlMISyncTaskInput(Model): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance online scenario. + + 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.MigrateSqlServerSqlMIDatabaseInput] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param storage_resource_id: Required. Fully qualified resourceId of + storage + :type storage_resource_id: str + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'selected_databases': {'required': True}, + 'storage_resource_id': {'required': True}, + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, *, selected_databases, storage_resource_id: str, source_connection_info, target_connection_info, azure_app, backup_file_share=None, **kwargs) -> None: + super(SqlServerSqlMISyncTaskInput, self).__init__(**kwargs) + self.selected_databases = selected_databases + self.backup_file_share = backup_file_share + self.storage_resource_id = storage_resource_id + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + self.azure_app = azure_app + + +class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance online scenario. + + 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.MigrateSqlServerSqlMIDatabaseInput] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param storage_resource_id: Required. Fully qualified resourceId of + storage + :type storage_resource_id: str + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'selected_databases': {'required': True}, + 'storage_resource_id': {'required': True}, + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, *, selected_databases, storage_resource_id: str, source_connection_info, target_connection_info, azure_app, backup_file_share=None, **kwargs) -> None: + super(MigrateSqlServerSqlMISyncTaskInput, self).__init__(selected_databases=selected_databases, backup_file_share=backup_file_share, storage_resource_id=storage_resource_id, source_connection_info=source_connection_info, target_connection_info=target_connection_info, azure_app=azure_app, **kwargs) + + +class MigrateSqlServerSqlMISyncTaskOutput(Model): + """Output for task that migrates SQL Server databases to Azure SQL Database + Managed Instance using Log Replay Service. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlMISyncTaskOutputError, + MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, + MigrateSqlServerSqlMISyncTaskOutputMigrationLevel + + 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': {'ErrorOutput': 'MigrateSqlServerSqlMISyncTaskOutputError', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(MigrateSqlServerSqlMISyncTaskOutput): + """MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. + + 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 source_database_name: Name of the database + :vartype source_database_name: str + :ivar migration_state: Current state of database. Possible values include: + 'UNDEFINED', 'INITIAL', 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', + 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', + 'COMPLETED', 'CANCELLED', 'FAILED' + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.DatabaseMigrationState + :ivar started_on: Database migration start time + :vartype started_on: datetime + :ivar ended_on: Database migration end time + :vartype ended_on: datetime + :ivar full_backup_set_info: Details of full backup set + :vartype full_backup_set_info: + ~azure.mgmt.datamigration.models.BackupSetInfo + :ivar last_restored_backup_set_info: Last applied backup set information + :vartype last_restored_backup_set_info: + ~azure.mgmt.datamigration.models.BackupSetInfo + :ivar active_backup_sets: Backup sets that are currently active (Either + being uploaded or getting restored) + :vartype active_backup_sets: + list[~azure.mgmt.datamigration.models.BackupSetInfo] + :ivar container_name: Name of container created in the Azure Storage + account where backups are copied to + :vartype container_name: str + :ivar error_prefix: prefix string to use for querying errors for this + database + :vartype error_prefix: str + :ivar is_full_backup_restored: Whether full backup has been applied to the + target database or not + :vartype is_full_backup_restored: bool + :ivar exceptions_and_warnings: Migration exceptions and warnings + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'source_database_name': {'readonly': True}, + 'migration_state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'full_backup_set_info': {'readonly': True}, + 'last_restored_backup_set_info': {'readonly': True}, + 'active_backup_sets': {'readonly': True}, + 'container_name': {'readonly': True}, + 'error_prefix': {'readonly': True}, + 'is_full_backup_restored': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'full_backup_set_info': {'key': 'fullBackupSetInfo', 'type': 'BackupSetInfo'}, + 'last_restored_backup_set_info': {'key': 'lastRestoredBackupSetInfo', 'type': 'BackupSetInfo'}, + 'active_backup_sets': {'key': 'activeBackupSets', 'type': '[BackupSetInfo]'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, + 'is_full_backup_restored': {'key': 'isFullBackupRestored', 'type': 'bool'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, self).__init__(**kwargs) + self.source_database_name = None + self.migration_state = None + self.started_on = None + self.ended_on = None + self.full_backup_set_info = None + self.last_restored_backup_set_info = None + self.active_backup_sets = None + self.container_name = None + self.error_prefix = None + self.is_full_backup_restored = None + self.exceptions_and_warnings = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutput): + """MigrateSqlServerSqlMISyncTaskOutputError. + + 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(MigrateSqlServerSqlMISyncTaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(MigrateSqlServerSqlMISyncTaskOutput): + """MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. + + 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_count: Count of databases + :vartype database_count: int + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar source_server_name: Source server name + :vartype source_server_name: str + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_name: Target server name + :vartype target_server_name: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar database_error_count: Number of database level errors + :vartype database_error_count: int + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_count': {'readonly': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'source_server_name': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_name': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'database_error_count': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_count': {'key': 'databaseCount', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'database_error_count': {'key': 'databaseErrorCount', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, self).__init__(**kwargs) + self.database_count = None + self.state = None + self.started_on = None + self.ended_on = None + self.source_server_name = None + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_name = None + self.target_server_version = None + self.target_server_brand_version = None + self.database_error_count = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): + """Properties for task that migrates SQL Server databases to Azure SQL + Database Managed Instance sync scenario. + + 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.MigrateSqlServerSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput] + """ + + _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': 'MigrateSqlServerSqlMISyncTaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMISyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateSqlServerSqlMISyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS' + + +class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :param selected_logins: Logins to migrate. + :type selected_logins: list[str] + :param selected_agent_jobs: Agent Jobs to migrate. + :type selected_agent_jobs: list[str] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param backup_blob_share: Required. SAS URI of Azure Storage Account + Container to be used for storing backup files. + :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare + :param backup_mode: Backup Mode to specify whether to use existing backup + or create new backup. If using existing backups, backup file paths are + required to be provided in selectedDatabases. Possible values include: + 'CreateBackup', 'ExistingBackup' + :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + 'backup_blob_share': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, + 'selected_agent_jobs': {'key': 'selectedAgentJobs', 'type': '[str]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, + 'backup_mode': {'key': 'backupMode', 'type': 'str'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, backup_blob_share, selected_logins=None, selected_agent_jobs=None, backup_file_share=None, backup_mode=None, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) + self.selected_databases = selected_databases + self.selected_logins = selected_logins + self.selected_agent_jobs = selected_agent_jobs + self.backup_file_share = backup_file_share + self.backup_blob_share = backup_blob_share + self.backup_mode = backup_mode + + +class MigrateSqlServerSqlMITaskOutput(Model): + """Output for task that migrates SQL Server databases to Azure SQL Database + Managed Instance. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MigrateSqlServerSqlMITaskOutputError, + MigrateSqlServerSqlMITaskOutputLoginLevel, + MigrateSqlServerSqlMITaskOutputAgentJobLevel, + MigrateSqlServerSqlMITaskOutputDatabaseLevel, + MigrateSqlServerSqlMITaskOutputMigrationLevel + + 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': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'LoginLevelOutput': 'MigrateSqlServerSqlMITaskOutputLoginLevel', 'AgentJobLevelOutput': 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskOutput, self).__init__(**kwargs) + self.id = None + self.result_type = None + + +class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputAgentJobLevel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar name: Agent Job name. + :vartype name: str + :ivar is_enabled: The state of the original Agent Job. + :vartype is_enabled: bool + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar message: Migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Migration errors and warnings per job + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'name': {'readonly': True}, + 'is_enabled': {'readonly': True}, + 'state': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'state': {'key': 'state', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskOutputAgentJobLevel, self).__init__(**kwargs) + self.name = None + self.is_enabled = None + self.state = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'AgentJobLevelOutput' + + +class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputDatabaseLevel. + + 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 size_mb: Size of the database in megabytes + :vartype size_mb: float + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of migration. Possible values include: 'None', + 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.DatabaseMigrationStage + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar message: Migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Migration exceptions and warnings + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'database_name': {'readonly': True}, + 'size_mb': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'size_mb': {'key': 'sizeMB', 'type': 'float'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskOutputDatabaseLevel, self).__init__(**kwargs) + self.database_name = None + self.size_mb = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'DatabaseLevelOutput' + + +class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputError. + + 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(MigrateSqlServerSqlMITaskOutputError, self).__init__(**kwargs) + self.error = None + self.result_type = 'ErrorOutput' + + +class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputLoginLevel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Result identifier + :vartype id: str + :param result_type: Required. Constant filled by server. + :type result_type: str + :ivar login_name: Login name. + :vartype login_name: str + :ivar state: Current state of login. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of login. Possible values include: 'None', + 'Initialize', 'LoginMigration', 'EstablishUserMapping', + 'AssignRoleMembership', 'AssignRoleOwnership', + 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' + :vartype stage: str or + ~azure.mgmt.datamigration.models.LoginMigrationStage + :ivar started_on: Login migration start time + :vartype started_on: datetime + :ivar ended_on: Login migration end time + :vartype ended_on: datetime + :ivar message: Login migration progress message + :vartype message: str + :ivar exceptions_and_warnings: Login migration errors and warnings per + login + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'login_name': {'readonly': True}, + 'state': {'readonly': True}, + 'stage': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'message': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'login_name': {'key': 'loginName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'stage': {'key': 'stage', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskOutputLoginLevel, self).__init__(**kwargs) + self.login_name = None + self.state = None + self.stage = None + self.started_on = None + self.ended_on = None + self.message = None + self.exceptions_and_warnings = None + self.result_type = 'LoginLevelOutput' + + +class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOutput): + """MigrateSqlServerSqlMITaskOutputMigrationLevel. + + 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 status: Current status of migration. Possible values include: + 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + 'CompletedWithWarnings' + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar agent_jobs: Selected agent jobs as a map from name to id + :vartype agent_jobs: dict[str, str] + :ivar logins: Selected logins as a map from name to id + :vartype logins: dict[str, str] + :ivar message: Migration progress message + :vartype message: str + :ivar server_role_results: Map of server role migration results. + :vartype server_role_results: dict[str, + ~azure.mgmt.datamigration.models.StartMigrationScenarioServerRoleResult] + :ivar orphaned_users_info: List of orphaned users. + :vartype orphaned_users_info: + list[~azure.mgmt.datamigration.models.OrphanedUserInfo] + :ivar databases: Selected databases as a map from database name to + database id + :vartype databases: dict[str, str] + :ivar source_server_version: Source server version + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'result_type': {'required': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'status': {'readonly': True}, + 'state': {'readonly': True}, + 'agent_jobs': {'readonly': True}, + 'logins': {'readonly': True}, + 'message': {'readonly': True}, + 'server_role_results': {'readonly': True}, + 'orphaned_users_info': {'readonly': True}, + 'databases': {'readonly': True}, + 'source_server_version': {'readonly': True}, + 'source_server_brand_version': {'readonly': True}, + 'target_server_version': {'readonly': True}, + 'target_server_brand_version': {'readonly': True}, + 'exceptions_and_warnings': {'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'}, + 'status': {'key': 'status', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, + 'logins': {'key': 'logins', 'type': '{str}'}, + 'message': {'key': 'message', 'type': 'str'}, + 'server_role_results': {'key': 'serverRoleResults', 'type': '{StartMigrationScenarioServerRoleResult}'}, + 'orphaned_users_info': {'key': 'orphanedUsersInfo', 'type': '[OrphanedUserInfo]'}, + 'databases': {'key': 'databases', 'type': '{str}'}, + 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, + 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, + 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, + 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskOutputMigrationLevel, self).__init__(**kwargs) + self.started_on = None + self.ended_on = None + self.status = None + self.state = None + self.agent_jobs = None + self.logins = None + self.message = None + self.server_role_results = None + self.orphaned_users_info = None + self.databases = None + self.source_server_version = None + self.source_server_brand_version = None + self.target_server_version = None + self.target_server_brand_version = None + self.exceptions_and_warnings = None + self.result_type = 'MigrationLevelOutput' + + +class MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties): + """Properties for task that migrates SQL Server databases to Azure SQL + Database Managed Instance. + + 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.MigrateSqlServerSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput] + """ + + _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': 'MigrateSqlServerSqlMITaskInput'}, + 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMITaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(MigrateSqlServerSqlMITaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Migrate.SqlServer.AzureSqlDbMI' + + +class MigrateSqlServerSqlServerDatabaseInput(Model): + """Database specific information for SQL to SQL migration task inputs. + + :param name: Name of the database + :type name: str + :param restore_database_name: Name of the database at destination + :type restore_database_name: str + :param backup_and_restore_folder: The backup and restore folder + :type backup_and_restore_folder: str + :param database_files: The list of database files + :type database_files: + list[~azure.mgmt.datamigration.models.DatabaseFileInput] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, + 'backup_and_restore_folder': {'key': 'backupAndRestoreFolder', 'type': 'str'}, + 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInput]'}, + } + + def __init__(self, *, name: str=None, restore_database_name: str=None, backup_and_restore_folder: str=None, database_files=None, **kwargs) -> None: + super(MigrateSqlServerSqlServerDatabaseInput, self).__init__(**kwargs) + self.name = name + self.restore_database_name = restore_database_name + self.backup_and_restore_folder = backup_and_restore_folder + self.database_files = database_files + + +class MigrateSyncCompleteCommandInput(Model): + """Input for command that completes sync migration for a database. + + All required parameters must be populated in order to send to Azure. + + :param database_name: Required. Name of database + :type database_name: str + :param commit_time_stamp: Time stamp to complete + :type commit_time_stamp: datetime + """ + + _validation = { + 'database_name': {'required': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'commit_time_stamp': {'key': 'commitTimeStamp', 'type': 'iso-8601'}, + } + + def __init__(self, *, database_name: str, commit_time_stamp=None, **kwargs) -> None: + super(MigrateSyncCompleteCommandInput, self).__init__(**kwargs) + self.database_name = database_name + self.commit_time_stamp = commit_time_stamp + + +class MigrateSyncCompleteCommandOutput(Model): + """Output for command that completes sync migration for a database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar errors: List of errors that happened during the command execution + :vartype errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrateSyncCompleteCommandOutput, self).__init__(**kwargs) + self.id = None + self.errors = None + + +class MigrateSyncCompleteCommandProperties(CommandProperties): + """Properties for the command that completes sync migration for a database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: + ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput + :ivar output: Command output. This is ignored if submitted. + :vartype output: + ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + 'output': {'readonly': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MigrateSyncCompleteCommandInput'}, + 'output': {'key': 'output', 'type': 'MigrateSyncCompleteCommandOutput'}, + } + + def __init__(self, *, input=None, **kwargs) -> None: + super(MigrateSyncCompleteCommandProperties, self).__init__(**kwargs) + self.input = input + self.output = None + self.command_type = 'Migrate.Sync.Complete.Database' + + +class MigrationEligibilityInfo(Model): + """Information about migration eligibility of a server object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar is_eligibile_for_migration: Whether object is eligible for migration + or not. + :vartype is_eligibile_for_migration: bool + :ivar validation_messages: Information about eligibility failure for the + server object. + :vartype validation_messages: list[str] + """ + + _validation = { + 'is_eligibile_for_migration': {'readonly': True}, + 'validation_messages': {'readonly': True}, + } + + _attribute_map = { + 'is_eligibile_for_migration': {'key': 'isEligibileForMigration', 'type': 'bool'}, + 'validation_messages': {'key': 'validationMessages', 'type': '[str]'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrationEligibilityInfo, self).__init__(**kwargs) + self.is_eligibile_for_migration = None + self.validation_messages = None + + +class MigrationReportResult(Model): + """Migration validation report result, contains the url for downloading the + generated report. + + :param id: Migration validation result identifier + :type id: str + :param report_url: The url of the report. + :type report_url: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'report_url': {'key': 'reportUrl', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, report_url: str=None, **kwargs) -> None: + super(MigrationReportResult, self).__init__(**kwargs) + self.id = id + self.report_url = report_url + + +class MigrationTableMetadata(Model): + """Metadata for tables selected in migration project. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar source_table_name: Source table name + :vartype source_table_name: str + :ivar target_table_name: Target table name + :vartype target_table_name: str + """ + + _validation = { + 'source_table_name': {'readonly': True}, + 'target_table_name': {'readonly': True}, + } + + _attribute_map = { + 'source_table_name': {'key': 'sourceTableName', 'type': 'str'}, + 'target_table_name': {'key': 'targetTableName', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrationTableMetadata, self).__init__(**kwargs) + self.source_table_name = None + self.target_table_name = None + + +class MigrationValidationDatabaseLevelResult(Model): + """Database level validation results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar migration_id: Migration Identifier + :vartype migration_id: str + :ivar source_database_name: Name of the source database + :vartype source_database_name: str + :ivar target_database_name: Name of the target database + :vartype target_database_name: str + :ivar started_on: Validation start time + :vartype started_on: datetime + :ivar ended_on: Validation end time + :vartype ended_on: datetime + :ivar data_integrity_validation_result: Provides data integrity validation + result between the source and target tables that are migrated. + :vartype data_integrity_validation_result: + ~azure.mgmt.datamigration.models.DataIntegrityValidationResult + :ivar schema_validation_result: Provides schema comparison result between + source and target database + :vartype schema_validation_result: + ~azure.mgmt.datamigration.models.SchemaComparisonValidationResult + :ivar query_analysis_validation_result: Results of some of the query + execution result between source and target database + :vartype query_analysis_validation_result: + ~azure.mgmt.datamigration.models.QueryAnalysisValidationResult + :ivar status: Current status of validation at the database level. Possible + values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', + 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'migration_id': {'readonly': True}, + 'source_database_name': {'readonly': True}, + 'target_database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'data_integrity_validation_result': {'readonly': True}, + 'schema_validation_result': {'readonly': True}, + 'query_analysis_validation_result': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'migration_id': {'key': 'migrationId', 'type': 'str'}, + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'data_integrity_validation_result': {'key': 'dataIntegrityValidationResult', 'type': 'DataIntegrityValidationResult'}, + 'schema_validation_result': {'key': 'schemaValidationResult', 'type': 'SchemaComparisonValidationResult'}, + 'query_analysis_validation_result': {'key': 'queryAnalysisValidationResult', 'type': 'QueryAnalysisValidationResult'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrationValidationDatabaseLevelResult, self).__init__(**kwargs) + self.id = None + self.migration_id = None + self.source_database_name = None + self.target_database_name = None + self.started_on = None + self.ended_on = None + self.data_integrity_validation_result = None + self.schema_validation_result = None + self.query_analysis_validation_result = None + self.status = None + + +class MigrationValidationDatabaseSummaryResult(Model): + """Migration Validation Database level summary result. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar migration_id: Migration Identifier + :vartype migration_id: str + :ivar source_database_name: Name of the source database + :vartype source_database_name: str + :ivar target_database_name: Name of the target database + :vartype target_database_name: str + :ivar started_on: Validation start time + :vartype started_on: datetime + :ivar ended_on: Validation end time + :vartype ended_on: datetime + :ivar status: Current status of validation at the database level. Possible + values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', + 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'migration_id': {'readonly': True}, + 'source_database_name': {'readonly': True}, + 'target_database_name': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'migration_id': {'key': 'migrationId', 'type': 'str'}, + 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MigrationValidationDatabaseSummaryResult, self).__init__(**kwargs) + self.id = None + self.migration_id = None + self.source_database_name = None + self.target_database_name = None + self.started_on = None + self.ended_on = None + self.status = None + + +class MigrationValidationOptions(Model): + """Types of validations to run after the migration. + + :param enable_schema_validation: Allows to compare the schema information + between source and target. + :type enable_schema_validation: bool + :param enable_data_integrity_validation: Allows to perform a checksum + based data integrity validation between source and target for the selected + database / tables . + :type enable_data_integrity_validation: bool + :param enable_query_analysis_validation: Allows to perform a quick and + intelligent query analysis by retrieving queries from the source database + and executes them in the target. The result will have execution statistics + for executions in source and target databases for the extracted queries. + :type enable_query_analysis_validation: bool + """ + + _attribute_map = { + 'enable_schema_validation': {'key': 'enableSchemaValidation', 'type': 'bool'}, + 'enable_data_integrity_validation': {'key': 'enableDataIntegrityValidation', 'type': 'bool'}, + 'enable_query_analysis_validation': {'key': 'enableQueryAnalysisValidation', 'type': 'bool'}, + } + + def __init__(self, *, enable_schema_validation: bool=None, enable_data_integrity_validation: bool=None, enable_query_analysis_validation: bool=None, **kwargs) -> None: + super(MigrationValidationOptions, self).__init__(**kwargs) + self.enable_schema_validation = enable_schema_validation + self.enable_data_integrity_validation = enable_data_integrity_validation + self.enable_query_analysis_validation = enable_query_analysis_validation + + +class MigrationValidationResult(Model): + """Migration Validation Result. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Migration validation result identifier + :vartype id: str + :ivar migration_id: Migration Identifier + :vartype migration_id: str + :param summary_results: Validation summary results for each database + :type summary_results: dict[str, + ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] + :ivar status: Current status of validation at the migration level. Status + from the database validation result status will be aggregated here. + Possible values include: 'Default', 'NotStarted', 'Initialized', + 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'migration_id': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'migration_id': {'key': 'migrationId', 'type': 'str'}, + 'summary_results': {'key': 'summaryResults', 'type': '{MigrationValidationDatabaseSummaryResult}'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, summary_results=None, **kwargs) -> None: + super(MigrationValidationResult, self).__init__(**kwargs) + self.id = None + self.migration_id = None + self.summary_results = summary_results + self.status = None + + +class MiSqlConnectionInfo(ConnectionInfo): + """Properties required to create a connection to Azure SQL database Managed + instance. + + 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 managed_instance_resource_id: Required. Resource id for Azure SQL + database Managed instance + :type managed_instance_resource_id: str + """ + + _validation = { + 'type': {'required': True}, + 'managed_instance_resource_id': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'managed_instance_resource_id': {'key': 'managedInstanceResourceId', 'type': 'str'}, + } + + def __init__(self, *, managed_instance_resource_id: str, user_name: str=None, password: str=None, **kwargs) -> None: + super(MiSqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) + self.managed_instance_resource_id = managed_instance_resource_id + self.type = 'MiSqlConnectionInfo' + + +class MongoDbCancelCommand(CommandProperties): + """Properties for the command that cancels a migration in whole or in part. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, + } + + def __init__(self, *, input=None, **kwargs) -> None: + super(MongoDbCancelCommand, self).__init__(**kwargs) + self.input = input + self.command_type = 'cancel' + + +class MongoDbClusterInfo(Model): + """Describes a MongoDB data source. + + All required parameters must be populated in order to send to Azure. + + :param databases: Required. A list of non-system databases in the cluster + :type databases: + list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] + :param supports_sharding: Required. Whether the cluster supports sharded + collections + :type supports_sharding: bool + :param type: Required. The type of data source. Possible values include: + 'BlobContainer', 'CosmosDb', 'MongoDb' + :type type: str or ~azure.mgmt.datamigration.models.MongoDbClusterType + :param version: Required. The version of the data source in the form x.y.z + (e.g. 3.6.7). Not used if Type is BlobContainer. + :type version: str + """ + + _validation = { + 'databases': {'required': True}, + 'supports_sharding': {'required': True}, + 'type': {'required': True}, + 'version': {'required': True}, + } + + _attribute_map = { + 'databases': {'key': 'databases', 'type': '[MongoDbDatabaseInfo]'}, + 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, databases, supports_sharding: bool, type, version: str, **kwargs) -> None: + super(MongoDbClusterInfo, self).__init__(**kwargs) + self.databases = databases + self.supports_sharding = supports_sharding + self.type = type + self.version = version + + +class MongoDbObjectInfo(Model): + """Describes a database or collection within a MongoDB data source. + + All required parameters must be populated in order to send to Azure. + + :param average_document_size: Required. The average document size, or -1 + if the average size is unknown + :type average_document_size: long + :param data_size: Required. The estimated total data size, in bytes, or -1 + if the size is unknown. + :type data_size: long + :param document_count: Required. The estimated total number of documents, + or -1 if the document count is unknown + :type document_count: long + :param name: Required. The unqualified name of the database or collection + :type name: str + :param qualified_name: Required. The qualified name of the database or + collection. For a collection, this is the database-qualified name. + :type qualified_name: str + """ + + _validation = { + 'average_document_size': {'required': True}, + 'data_size': {'required': True}, + 'document_count': {'required': True}, + 'name': {'required': True}, + 'qualified_name': {'required': True}, + } + + _attribute_map = { + 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, + 'data_size': {'key': 'dataSize', 'type': 'long'}, + 'document_count': {'key': 'documentCount', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + } + + def __init__(self, *, average_document_size: int, data_size: int, document_count: int, name: str, qualified_name: str, **kwargs) -> None: + super(MongoDbObjectInfo, self).__init__(**kwargs) + self.average_document_size = average_document_size + self.data_size = data_size + self.document_count = document_count + self.name = name + self.qualified_name = qualified_name + + +class MongoDbCollectionInfo(MongoDbObjectInfo): + """Describes a supported collection within a MongoDB database. + + All required parameters must be populated in order to send to Azure. + + :param average_document_size: Required. The average document size, or -1 + if the average size is unknown + :type average_document_size: long + :param data_size: Required. The estimated total data size, in bytes, or -1 + if the size is unknown. + :type data_size: long + :param document_count: Required. The estimated total number of documents, + or -1 if the document count is unknown + :type document_count: long + :param name: Required. The unqualified name of the database or collection + :type name: str + :param qualified_name: Required. The qualified name of the database or + collection. For a collection, this is the database-qualified name. + :type qualified_name: str + :param database_name: Required. The name of the database containing the + collection + :type database_name: str + :param is_capped: Required. Whether the collection is a capped collection + (i.e. whether it has a fixed size and acts like a circular buffer) + :type is_capped: bool + :param is_system_collection: Required. Whether the collection is system + collection + :type is_system_collection: bool + :param is_view: Required. Whether the collection is a view of another + collection + :type is_view: bool + :param shard_key: The shard key on the collection, or null if the + collection is not sharded + :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeyInfo + :param supports_sharding: Required. Whether the database has sharding + enabled. Note that the migration task will enable sharding on the target + if necessary. + :type supports_sharding: bool + :param view_of: The name of the collection that this is a view of, if + IsView is true + :type view_of: str + """ + + _validation = { + 'average_document_size': {'required': True}, + 'data_size': {'required': True}, + 'document_count': {'required': True}, + 'name': {'required': True}, + 'qualified_name': {'required': True}, + 'database_name': {'required': True}, + 'is_capped': {'required': True}, + 'is_system_collection': {'required': True}, + 'is_view': {'required': True}, + 'supports_sharding': {'required': True}, + } + + _attribute_map = { + 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, + 'data_size': {'key': 'dataSize', 'type': 'long'}, + 'document_count': {'key': 'documentCount', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'is_capped': {'key': 'isCapped', 'type': 'bool'}, + 'is_system_collection': {'key': 'isSystemCollection', 'type': 'bool'}, + 'is_view': {'key': 'isView', 'type': 'bool'}, + 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeyInfo'}, + 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, + 'view_of': {'key': 'viewOf', 'type': 'str'}, + } + + def __init__(self, *, average_document_size: int, data_size: int, document_count: int, name: str, qualified_name: str, database_name: str, is_capped: bool, is_system_collection: bool, is_view: bool, supports_sharding: bool, shard_key=None, view_of: str=None, **kwargs) -> None: + super(MongoDbCollectionInfo, self).__init__(average_document_size=average_document_size, data_size=data_size, document_count=document_count, name=name, qualified_name=qualified_name, **kwargs) + self.database_name = database_name + self.is_capped = is_capped + self.is_system_collection = is_system_collection + self.is_view = is_view + self.shard_key = shard_key + self.supports_sharding = supports_sharding + self.view_of = view_of + + +class MongoDbProgress(Model): + """Base class for MongoDB migration outputs. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + } + + def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, **kwargs) -> None: + super(MongoDbProgress, self).__init__(**kwargs) + self.bytes_copied = bytes_copied + self.documents_copied = documents_copied + self.elapsed_time = elapsed_time + self.errors = errors + self.events_pending = events_pending + self.events_replayed = events_replayed + self.last_event_time = last_event_time + self.last_replay_time = last_replay_time + self.name = name + self.qualified_name = qualified_name + self.result_type = result_type + self.state = state + self.total_bytes = total_bytes + self.total_documents = total_documents + + +class MongoDbCollectionProgress(MongoDbProgress): + """Describes the progress of a collection. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + } + + def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, **kwargs) -> None: + super(MongoDbCollectionProgress, self).__init__(bytes_copied=bytes_copied, documents_copied=documents_copied, elapsed_time=elapsed_time, errors=errors, events_pending=events_pending, events_replayed=events_replayed, last_event_time=last_event_time, last_replay_time=last_replay_time, name=name, qualified_name=qualified_name, result_type=result_type, state=state, total_bytes=total_bytes, total_documents=total_documents, **kwargs) + + +class MongoDbCollectionSettings(Model): + """Describes how an individual MongoDB collection should be migrated. + + :param can_delete: Whether the migrator is allowed to drop the target + collection in the course of performing a migration. The default is true. + :type can_delete: bool + :param shard_key: + :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting + :param target_rus: The RUs that should be configured on a CosmosDB target, + or null to use the default. This has no effect on non-CosmosDB targets. + :type target_rus: int + """ + + _attribute_map = { + 'can_delete': {'key': 'canDelete', 'type': 'bool'}, + 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeySetting'}, + 'target_rus': {'key': 'targetRUs', 'type': 'int'}, + } + + def __init__(self, *, can_delete: bool=None, shard_key=None, target_rus: int=None, **kwargs) -> None: + super(MongoDbCollectionSettings, self).__init__(**kwargs) + self.can_delete = can_delete + self.shard_key = shard_key + self.target_rus = target_rus + + +class MongoDbCommandInput(Model): + """Describes the input to the 'cancel' and 'restart' MongoDB migration + commands. + + :param object_name: The qualified name of a database or collection to act + upon, or null to act upon the entire migration + :type object_name: str + """ + + _attribute_map = { + 'object_name': {'key': 'objectName', 'type': 'str'}, + } + + def __init__(self, *, object_name: str=None, **kwargs) -> None: + super(MongoDbCommandInput, self).__init__(**kwargs) + self.object_name = object_name + + +class MongoDbConnectionInfo(ConnectionInfo): + """Describes a connection to a MongoDB data source. + + 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 connection_string: Required. A MongoDB connection string or blob + container URL. The user name and password can be specified here or in the + userName and password properties + :type connection_string: str + """ + + _validation = { + 'type': {'required': True}, + 'connection_string': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'connection_string': {'key': 'connectionString', 'type': 'str'}, + } + + def __init__(self, *, connection_string: str, user_name: str=None, password: str=None, **kwargs) -> None: + super(MongoDbConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) + self.connection_string = connection_string + self.type = 'MongoDbConnectionInfo' + + +class MongoDbDatabaseInfo(MongoDbObjectInfo): + """Describes a database within a MongoDB data source. + + All required parameters must be populated in order to send to Azure. + + :param average_document_size: Required. The average document size, or -1 + if the average size is unknown + :type average_document_size: long + :param data_size: Required. The estimated total data size, in bytes, or -1 + if the size is unknown. + :type data_size: long + :param document_count: Required. The estimated total number of documents, + or -1 if the document count is unknown + :type document_count: long + :param name: Required. The unqualified name of the database or collection + :type name: str + :param qualified_name: Required. The qualified name of the database or + collection. For a collection, this is the database-qualified name. + :type qualified_name: str + :param collections: Required. A list of supported collections in a MongoDB + database + :type collections: + list[~azure.mgmt.datamigration.models.MongoDbCollectionInfo] + :param supports_sharding: Required. Whether the database has sharding + enabled. Note that the migration task will enable sharding on the target + if necessary. + :type supports_sharding: bool + """ + + _validation = { + 'average_document_size': {'required': True}, + 'data_size': {'required': True}, + 'document_count': {'required': True}, + 'name': {'required': True}, + 'qualified_name': {'required': True}, + 'collections': {'required': True}, + 'supports_sharding': {'required': True}, + } + + _attribute_map = { + 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, + 'data_size': {'key': 'dataSize', 'type': 'long'}, + 'document_count': {'key': 'documentCount', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'collections': {'key': 'collections', 'type': '[MongoDbCollectionInfo]'}, + 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, + } + + def __init__(self, *, average_document_size: int, data_size: int, document_count: int, name: str, qualified_name: str, collections, supports_sharding: bool, **kwargs) -> None: + super(MongoDbDatabaseInfo, self).__init__(average_document_size=average_document_size, data_size=data_size, document_count=document_count, name=name, qualified_name=qualified_name, **kwargs) + self.collections = collections + self.supports_sharding = supports_sharding + + +class MongoDbDatabaseProgress(MongoDbProgress): + """Describes the progress of a database. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + :param collections: The progress of the collections in the database. The + keys are the unqualified names of the collections + :type collections: dict[str, + ~azure.mgmt.datamigration.models.MongoDbCollectionProgress] + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + 'collections': {'key': 'collections', 'type': '{MongoDbCollectionProgress}'}, + } + + def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, collections=None, **kwargs) -> None: + super(MongoDbDatabaseProgress, self).__init__(bytes_copied=bytes_copied, documents_copied=documents_copied, elapsed_time=elapsed_time, errors=errors, events_pending=events_pending, events_replayed=events_replayed, last_event_time=last_event_time, last_replay_time=last_replay_time, name=name, qualified_name=qualified_name, result_type=result_type, state=state, total_bytes=total_bytes, total_documents=total_documents, **kwargs) + self.collections = collections + + +class MongoDbDatabaseSettings(Model): + """Describes how an individual MongoDB database should be migrated. + + All required parameters must be populated in order to send to Azure. + + :param collections: Required. The collections on the source database to + migrate to the target. The keys are the unqualified names of the + collections. + :type collections: dict[str, + ~azure.mgmt.datamigration.models.MongoDbCollectionSettings] + :param target_rus: The RUs that should be configured on a CosmosDB target, + or null to use the default, or 0 if throughput should not be provisioned + for the database. This has no effect on non-CosmosDB targets. + :type target_rus: int + """ + + _validation = { + 'collections': {'required': True}, + } + + _attribute_map = { + 'collections': {'key': 'collections', 'type': '{MongoDbCollectionSettings}'}, + 'target_rus': {'key': 'targetRUs', 'type': 'int'}, + } + + def __init__(self, *, collections, target_rus: int=None, **kwargs) -> None: + super(MongoDbDatabaseSettings, self).__init__(**kwargs) + self.collections = collections + self.target_rus = target_rus + + +class MongoDbError(Model): + """Describes an error or warning that occurred during a MongoDB migration. + + :param code: The non-localized, machine-readable code that describes the + error or warning + :type code: str + :param count: The number of times the error or warning has occurred + :type count: int + :param message: The localized, human-readable message that describes the + error or warning + :type message: str + :param type: The type of error or warning. Possible values include: + 'Error', 'ValidationError', 'Warning' + :type type: str or ~azure.mgmt.datamigration.models.MongoDbErrorType + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, count: int=None, message: str=None, type=None, **kwargs) -> None: + super(MongoDbError, self).__init__(**kwargs) + self.code = code + self.count = count + self.message = message + self.type = type + + +class MongoDbFinishCommand(CommandProperties): + """Properties for the command that finishes a migration in whole or in part. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MongoDbFinishCommandInput'}, + } + + def __init__(self, *, input=None, **kwargs) -> None: + super(MongoDbFinishCommand, self).__init__(**kwargs) + self.input = input + self.command_type = 'finish' + + +class MongoDbFinishCommandInput(MongoDbCommandInput): + """Describes the input to the 'finish' MongoDB migration command. + + All required parameters must be populated in order to send to Azure. + + :param object_name: The qualified name of a database or collection to act + upon, or null to act upon the entire migration + :type object_name: str + :param immediate: Required. If true, replication for the affected objects + will be stopped immediately. If false, the migrator will finish replaying + queued events before finishing the replication. + :type immediate: bool + """ + + _validation = { + 'immediate': {'required': True}, + } + + _attribute_map = { + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'immediate': {'key': 'immediate', 'type': 'bool'}, + } + + def __init__(self, *, immediate: bool, object_name: str=None, **kwargs) -> None: + super(MongoDbFinishCommandInput, self).__init__(object_name=object_name, **kwargs) + self.immediate = immediate + + +class MongoDbMigrationProgress(MongoDbProgress): + """Describes the progress of the overall migration. + + All required parameters must be populated in order to send to Azure. + + :param bytes_copied: Required. The number of document bytes copied during + the Copying stage + :type bytes_copied: long + :param documents_copied: Required. The number of documents copied during + the Copying stage + :type documents_copied: long + :param elapsed_time: Required. The elapsed time in the format + [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + :type elapsed_time: str + :param errors: Required. The errors and warnings that have occurred for + the current object. The keys are the error codes. + :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :param events_pending: Required. The number of oplog events awaiting + replay + :type events_pending: long + :param events_replayed: Required. The number of oplog events replayed so + far + :type events_replayed: long + :param last_event_time: The timestamp of the last oplog event received, or + null if no oplog event has been received yet + :type last_event_time: datetime + :param last_replay_time: The timestamp of the last oplog event replayed, + or null if no oplog event has been replayed yet + :type last_replay_time: datetime + :param name: The name of the progress object. For a collection, this is + the unqualified collection name. For a database, this is the database + name. For the overall migration, this is null. + :type name: str + :param qualified_name: The qualified name of the progress object. For a + collection, this is the database-qualified name. For a database, this is + the database name. For the overall migration, this is null. + :type qualified_name: str + :param result_type: Required. The type of progress object. Possible values + include: 'Migration', 'Database', 'Collection' + :type result_type: str or ~azure.mgmt.datamigration.models.enum + :param state: Required. Possible values include: 'NotStarted', + 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', + 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', + 'Failed' + :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :param total_bytes: Required. The total number of document bytes on the + source at the beginning of the Copying stage, or -1 if the total size was + unknown + :type total_bytes: long + :param total_documents: Required. The total number of documents on the + source at the beginning of the Copying stage, or -1 if the total count was + unknown + :type total_documents: long + :param databases: The progress of the databases in the migration. The keys + are the names of the databases + :type databases: dict[str, + ~azure.mgmt.datamigration.models.MongoDbDatabaseProgress] + """ + + _validation = { + 'bytes_copied': {'required': True}, + 'documents_copied': {'required': True}, + 'elapsed_time': {'required': True}, + 'errors': {'required': True}, + 'events_pending': {'required': True}, + 'events_replayed': {'required': True}, + 'result_type': {'required': True}, + 'state': {'required': True}, + 'total_bytes': {'required': True}, + 'total_documents': {'required': True}, + } + + _attribute_map = { + 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, + 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, + 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, + 'events_pending': {'key': 'eventsPending', 'type': 'long'}, + 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, + 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, + 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, + 'name': {'key': 'name', 'type': 'str'}, + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'result_type': {'key': 'resultType', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, + 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, + 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseProgress}'}, + } + + def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, databases=None, **kwargs) -> None: + super(MongoDbMigrationProgress, self).__init__(bytes_copied=bytes_copied, documents_copied=documents_copied, elapsed_time=elapsed_time, errors=errors, events_pending=events_pending, events_replayed=events_replayed, last_event_time=last_event_time, last_replay_time=last_replay_time, name=name, qualified_name=qualified_name, result_type=result_type, state=state, total_bytes=total_bytes, total_documents=total_documents, **kwargs) + self.databases = databases + + +class MongoDbMigrationSettings(Model): + """Describes how a MongoDB data migration should be performed. + + All required parameters must be populated in order to send to Azure. + + :param boost_rus: The RU limit on a CosmosDB target that collections will + be temporarily increased to (if lower) during the initial copy of a + migration, from 10,000 to 1,000,000, or 0 to use the default boost (which + is generally the maximum), or null to not boost the RUs. This setting has + no effect on non-CosmosDB targets. + :type boost_rus: int + :param databases: Required. The databases on the source cluster to migrate + to the target. The keys are the names of the databases. + :type databases: dict[str, + ~azure.mgmt.datamigration.models.MongoDbDatabaseSettings] + :param replication: Describes how changes will be replicated from the + source to the target. The default is OneTime. Possible values include: + 'Disabled', 'OneTime', 'Continuous' + :type replication: str or + ~azure.mgmt.datamigration.models.MongoDbReplication + :param source: Required. Settings used to connect to the source cluster + :type source: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo + :param target: Required. Settings used to connect to the target cluster + :type target: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo + :param throttling: Settings used to limit the resource usage of the + migration + :type throttling: + ~azure.mgmt.datamigration.models.MongoDbThrottlingSettings + """ + + _validation = { + 'databases': {'required': True}, + 'source': {'required': True}, + 'target': {'required': True}, + } + + _attribute_map = { + 'boost_rus': {'key': 'boostRUs', 'type': 'int'}, + 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseSettings}'}, + 'replication': {'key': 'replication', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'MongoDbConnectionInfo'}, + 'target': {'key': 'target', 'type': 'MongoDbConnectionInfo'}, + 'throttling': {'key': 'throttling', 'type': 'MongoDbThrottlingSettings'}, + } + + def __init__(self, *, databases, source, target, boost_rus: int=None, replication=None, throttling=None, **kwargs) -> None: + super(MongoDbMigrationSettings, self).__init__(**kwargs) + self.boost_rus = boost_rus + self.databases = databases + self.replication = replication + self.source = source + self.target = target + self.throttling = throttling + + +class MongoDbRestartCommand(CommandProperties): + """Properties for the command that restarts a migration in whole or in part. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. + Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', + 'Failed' + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :param command_type: Required. Constant filled by server. + :type command_type: str + :param input: Command input + :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput + """ + + _validation = { + 'errors': {'readonly': True}, + 'state': {'readonly': True}, + 'command_type': {'required': True}, + } + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[ODataError]'}, + 'state': {'key': 'state', 'type': 'str'}, + 'command_type': {'key': 'commandType', 'type': 'str'}, + 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, + } + + def __init__(self, *, input=None, **kwargs) -> None: + super(MongoDbRestartCommand, self).__init__(**kwargs) + self.input = input + self.command_type = 'restart' + + +class MongoDbShardKeyField(Model): + """Describes a field reference within a MongoDB shard key. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the field + :type name: str + :param order: Required. The field ordering. Possible values include: + 'Forward', 'Reverse', 'Hashed' + :type order: str or ~azure.mgmt.datamigration.models.MongoDbShardKeyOrder + """ + + _validation = { + 'name': {'required': True}, + 'order': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'order': {'key': 'order', 'type': 'str'}, + } + + def __init__(self, *, name: str, order, **kwargs) -> None: + super(MongoDbShardKeyField, self).__init__(**kwargs) + self.name = name + self.order = order + + +class MongoDbShardKeyInfo(Model): + """Describes a MongoDB shard key. + + All required parameters must be populated in order to send to Azure. + + :param fields: Required. The fields within the shard key + :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] + :param is_unique: Required. Whether the shard key is unique + :type is_unique: bool + """ + + _validation = { + 'fields': {'required': True}, + 'is_unique': {'required': True}, + } + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, + 'is_unique': {'key': 'isUnique', 'type': 'bool'}, + } + + def __init__(self, *, fields, is_unique: bool, **kwargs) -> None: + super(MongoDbShardKeyInfo, self).__init__(**kwargs) + self.fields = fields + self.is_unique = is_unique + + +class MongoDbShardKeySetting(Model): + """Describes a MongoDB shard key. + + All required parameters must be populated in order to send to Azure. + + :param fields: Required. The fields within the shard key + :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] + :param is_unique: Required. Whether the shard key is unique + :type is_unique: bool + """ + + _validation = { + 'fields': {'required': True}, + 'is_unique': {'required': True}, + } + + _attribute_map = { + 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, + 'is_unique': {'key': 'isUnique', 'type': 'bool'}, + } + + def __init__(self, *, fields, is_unique: bool, **kwargs) -> None: + super(MongoDbShardKeySetting, self).__init__(**kwargs) + self.fields = fields + self.is_unique = is_unique + + +class MongoDbThrottlingSettings(Model): + """Specifies resource limits for the migration. + + :param min_free_cpu: The percentage of CPU time that the migrator will try + to avoid using, from 0 to 100 + :type min_free_cpu: int + :param min_free_memory_mb: The number of megabytes of RAM that the + migrator will try to avoid using + :type min_free_memory_mb: int + :param max_parallelism: The maximum number of work items (e.g. collection + copies) that will be processed in parallel + :type max_parallelism: int + """ + + _attribute_map = { + 'min_free_cpu': {'key': 'minFreeCpu', 'type': 'int'}, + 'min_free_memory_mb': {'key': 'minFreeMemoryMb', 'type': 'int'}, + 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, + } + + def __init__(self, *, min_free_cpu: int=None, min_free_memory_mb: int=None, max_parallelism: int=None, **kwargs) -> None: + super(MongoDbThrottlingSettings, self).__init__(**kwargs) + self.min_free_cpu = min_free_cpu + self.min_free_memory_mb = min_free_memory_mb + self.max_parallelism = max_parallelism + + +class MySqlConnectionInfo(ConnectionInfo): + """Information for connecting to MySQL 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 server_name: Required. Name of the server + :type server_name: str + :param port: Required. Port for Server + :type port: int + """ + + _validation = { + 'type': {'required': True}, + 'server_name': {'required': True}, + 'port': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, server_name: str, port: int, user_name: str=None, password: str=None, **kwargs) -> None: + super(MySqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) + self.server_name = server_name + self.port = port + self.type = 'MySqlConnectionInfo' + + +class NameAvailabilityRequest(Model): + """A resource type and proposed name. + + :param name: The proposed resource name + :type name: str + :param type: The resource type chain (e.g. virtualMachines/extensions) + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None: + super(NameAvailabilityRequest, self).__init__(**kwargs) + self.name = name + self.type = type + + +class NameAvailabilityResponse(Model): + """Indicates whether a proposed resource name is available. + + :param name_available: If true, the name is valid and available. If false, + 'reason' describes why not. + :type name_available: bool + :param reason: The reason why the name is not available, if nameAvailable + is false. Possible values include: 'AlreadyExists', 'Invalid' + :type reason: str or + ~azure.mgmt.datamigration.models.NameCheckFailureReason + :param message: The localized reason why the name is not available, if + nameAvailable is false + :type message: str + """ + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, name_available: bool=None, reason=None, message: str=None, **kwargs) -> None: + super(NameAvailabilityResponse, self).__init__(**kwargs) + self.name_available = name_available + self.reason = reason + self.message = message + + +class NonSqlDataMigrationTable(Model): + """Defines metadata for table to be migrated. + + :param source_name: Source table name + :type source_name: str + """ + + _attribute_map = { + 'source_name': {'key': 'sourceName', 'type': 'str'}, + } + + def __init__(self, *, source_name: str=None, **kwargs) -> None: + super(NonSqlDataMigrationTable, self).__init__(**kwargs) + self.source_name = source_name + + +class NonSqlDataMigrationTableResult(Model): + """Object used to report the data migration results of a table. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar result_code: Result code of the data migration. Possible values + include: 'Initial', 'Completed', 'ObjectNotExistsInSource', + 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' + :vartype result_code: str or + ~azure.mgmt.datamigration.models.DataMigrationResultCode + :ivar source_name: Name of the source table + :vartype source_name: str + :ivar target_name: Name of the target table + :vartype target_name: str + :ivar source_row_count: Number of rows in the source table + :vartype source_row_count: long + :ivar target_row_count: Number of rows in the target table + :vartype target_row_count: long + :ivar elapsed_time_in_miliseconds: Time taken to migrate the data + :vartype elapsed_time_in_miliseconds: float + :ivar errors: List of errors, if any, during migration + :vartype errors: list[~azure.mgmt.datamigration.models.DataMigrationError] + """ + + _validation = { + 'result_code': {'readonly': True}, + 'source_name': {'readonly': True}, + 'target_name': {'readonly': True}, + 'source_row_count': {'readonly': True}, + 'target_row_count': {'readonly': True}, + 'elapsed_time_in_miliseconds': {'readonly': True}, + 'errors': {'readonly': True}, + } + + _attribute_map = { + 'result_code': {'key': 'resultCode', 'type': 'str'}, + 'source_name': {'key': 'sourceName', 'type': 'str'}, + 'target_name': {'key': 'targetName', 'type': 'str'}, + 'source_row_count': {'key': 'sourceRowCount', 'type': 'long'}, + 'target_row_count': {'key': 'targetRowCount', 'type': 'long'}, + 'elapsed_time_in_miliseconds': {'key': 'elapsedTimeInMiliseconds', 'type': 'float'}, + 'errors': {'key': 'errors', 'type': '[DataMigrationError]'}, + } + + def __init__(self, **kwargs) -> None: + super(NonSqlDataMigrationTableResult, self).__init__(**kwargs) + self.result_code = None + self.source_name = None + self.target_name = None + self.source_row_count = None + self.target_row_count = None + self.elapsed_time_in_miliseconds = None + self.errors = None + + +class NonSqlMigrationTaskInput(Model): + """Base class for non sql migration task input. + + All required parameters must be populated in order to send to Azure. + + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_database_name: Required. Target database name + :type target_database_name: str + :param project_name: Required. Name of the migration project + :type project_name: str + :param project_location: Required. A URL that points to the drop location + to access project artifacts + :type project_location: str + :param selected_tables: Required. Metadata of the tables selected for + migration + :type selected_tables: + list[~azure.mgmt.datamigration.models.NonSqlDataMigrationTable] + """ + + _validation = { + 'target_connection_info': {'required': True}, + 'target_database_name': {'required': True}, + 'project_name': {'required': True}, + 'project_location': {'required': True}, + 'selected_tables': {'required': True}, + } + + _attribute_map = { + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'project_location': {'key': 'projectLocation', 'type': 'str'}, + 'selected_tables': {'key': 'selectedTables', 'type': '[NonSqlDataMigrationTable]'}, + } + + def __init__(self, *, target_connection_info, target_database_name: str, project_name: str, project_location: str, selected_tables, **kwargs) -> None: + super(NonSqlMigrationTaskInput, self).__init__(**kwargs) + self.target_connection_info = target_connection_info + self.target_database_name = target_database_name + self.project_name = project_name + self.project_location = project_location + self.selected_tables = selected_tables + + +class NonSqlMigrationTaskOutput(Model): + """Base class for non sql migration task output. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar started_on: Migration start time + :vartype started_on: datetime + :ivar ended_on: Migration end time + :vartype ended_on: datetime + :ivar status: Current state of migration. Possible values include: + 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + 'Configured', 'Running', 'Error', 'Stopped', 'Completed', + 'CompletedWithWarnings' + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar data_migration_table_results: Results of the migration. The key + contains the table name and the value the table result object + :vartype data_migration_table_results: dict[str, + ~azure.mgmt.datamigration.models.NonSqlDataMigrationTableResult] + :ivar progress_message: Message about the progress of the migration + :vartype progress_message: str + :ivar source_server_name: Name of source server + :vartype source_server_name: str + :ivar target_server_name: Name of target server + :vartype target_server_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'started_on': {'readonly': True}, + 'ended_on': {'readonly': True}, + 'status': {'readonly': True}, + 'data_migration_table_results': {'readonly': True}, + 'progress_message': {'readonly': True}, + 'source_server_name': {'readonly': True}, + 'target_server_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, + 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'data_migration_table_results': {'key': 'dataMigrationTableResults', 'type': '{NonSqlDataMigrationTableResult}'}, + 'progress_message': {'key': 'progressMessage', 'type': 'str'}, + 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, + 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(NonSqlMigrationTaskOutput, self).__init__(**kwargs) + self.id = None + self.started_on = None + self.ended_on = None + self.status = None + self.data_migration_table_results = None + self.progress_message = None + self.source_server_name = None + self.target_server_name = None + + +class ODataError(Model): + """Error information in OData format. + + :param code: The machine-readable description of the error, such as + 'InvalidRequest' or 'InternalServerError' + :type code: str + :param message: The human-readable description of the error + :type message: str + :param details: Inner errors that caused this error + :type details: list[~azure.mgmt.datamigration.models.ODataError] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ODataError]'}, + } + + def __init__(self, *, code: str=None, message: str=None, details=None, **kwargs) -> None: + super(ODataError, self).__init__(**kwargs) + self.code = code + self.message = message + self.details = details + + +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' + + +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 + + +class OrphanedUserInfo(Model): + """Information of orphaned users on the SQL server database. + + :param name: Name of the orphaned user + :type name: str + :param database_name: Parent database of the user + :type database_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, database_name: str=None, **kwargs) -> None: + super(OrphanedUserInfo, self).__init__(**kwargs) + self.name = name + self.database_name = database_name + + +class PostgreSqlConnectionInfo(ConnectionInfo): + """Information for connecting to PostgreSQL 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 server_name: Required. Name of the server + :type server_name: str + :param database_name: Name of the database + :type database_name: str + :param port: Required. Port for Server + :type port: int + """ + + _validation = { + 'type': {'required': True}, + 'server_name': {'required': True}, + 'port': {'required': True}, + } + + _attribute_map = { + 'user_name': {'key': 'userName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, server_name: str, port: int, user_name: str=None, password: str=None, database_name: str=None, **kwargs) -> None: + super(PostgreSqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) + self.server_name = server_name + self.database_name = database_name + self.port = port + self.type = 'PostgreSqlConnectionInfo' + + +class Project(TrackedResource): + """A project resource. + + 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: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. Resource location. + :type location: str + :param source_platform: Required. Source platform for the project. + Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', + 'Unknown' + :type source_platform: str or + ~azure.mgmt.datamigration.models.ProjectSourcePlatform + :param target_platform: Required. Target platform for the project. + Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', + 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' + :type target_platform: str or + ~azure.mgmt.datamigration.models.ProjectTargetPlatform + :ivar creation_time: UTC Date and time when project was created + :vartype creation_time: datetime + :param source_connection_info: Information for connecting to source + :type source_connection_info: + ~azure.mgmt.datamigration.models.ConnectionInfo + :param target_connection_info: Information for connecting to target + :type target_connection_info: + ~azure.mgmt.datamigration.models.ConnectionInfo + :param databases_info: List of DatabaseInfo + :type databases_info: list[~azure.mgmt.datamigration.models.DatabaseInfo] + :ivar provisioning_state: The project's provisioning state. Possible + values include: 'Deleting', 'Succeeded' + :vartype provisioning_state: str or + ~azure.mgmt.datamigration.models.ProjectProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'source_platform': {'required': True}, + 'target_platform': {'required': True}, + 'creation_time': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'source_platform': {'key': 'properties.sourcePlatform', 'type': 'str'}, + 'target_platform': {'key': 'properties.targetPlatform', 'type': 'str'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'source_connection_info': {'key': 'properties.sourceConnectionInfo', 'type': 'ConnectionInfo'}, + 'target_connection_info': {'key': 'properties.targetConnectionInfo', 'type': 'ConnectionInfo'}, + 'databases_info': {'key': 'properties.databasesInfo', 'type': '[DatabaseInfo]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, location: str, source_platform, target_platform, tags=None, source_connection_info=None, target_connection_info=None, databases_info=None, **kwargs) -> None: + super(Project, self).__init__(tags=tags, location=location, **kwargs) + self.source_platform = source_platform + self.target_platform = target_platform + self.creation_time = None + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + self.databases_info = databases_info + self.provisioning_state = None + + +class ProjectFile(Resource): + """A file resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param etag: HTTP strong entity tag value. This is ignored if submitted. + :type etag: str + :param properties: Custom file properties + :type properties: ~azure.mgmt.datamigration.models.ProjectFileProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProjectFileProperties'}, + } + + def __init__(self, *, etag: str=None, properties=None, **kwargs) -> None: + super(ProjectFile, self).__init__(**kwargs) + self.etag = etag + self.properties = properties + + +class ProjectFileProperties(Model): + """Base class for file properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param extension: Optional File extension. If submitted it should not have + a leading period and must match the extension from filePath. + :type extension: str + :param file_path: Relative path of this file resource. This property can + be set when creating or updating the file resource. + :type file_path: str + :ivar last_modified: Modification DateTime. + :vartype last_modified: datetime + :param media_type: File content type. This property can be modified to + reflect the file content type. + :type media_type: str + :ivar size: File size. + :vartype size: long + """ + + _validation = { + 'last_modified': {'readonly': True}, + 'size': {'readonly': True}, + } + + _attribute_map = { + 'extension': {'key': 'extension', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'media_type': {'key': 'mediaType', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'long'}, + } + + def __init__(self, *, extension: str=None, file_path: str=None, media_type: str=None, **kwargs) -> None: + super(ProjectFileProperties, self).__init__(**kwargs) + self.extension = extension + self.file_path = file_path + self.last_modified = None + self.media_type = media_type + self.size = None + + +class ProjectTask(Resource): + """A task resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: 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 + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProjectTaskProperties'}, + } + + def __init__(self, *, etag: str=None, properties=None, **kwargs) -> None: + super(ProjectTask, self).__init__(**kwargs) + self.etag = etag + self.properties = properties + + +class QueryAnalysisValidationResult(Model): + """Results for query analysis comparison between the source and target. + + :param query_results: List of queries executed and it's execution results + in source and target + :type query_results: ~azure.mgmt.datamigration.models.QueryExecutionResult + :param validation_errors: Errors that are part of the execution + :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError + """ + + _attribute_map = { + 'query_results': {'key': 'queryResults', 'type': 'QueryExecutionResult'}, + 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, + } + + def __init__(self, *, query_results=None, validation_errors=None, **kwargs) -> None: + super(QueryAnalysisValidationResult, self).__init__(**kwargs) + self.query_results = query_results + self.validation_errors = validation_errors + + +class QueryExecutionResult(Model): + """Describes query analysis results for execution in source and target. + + :param query_text: Query text retrieved from the source server + :type query_text: str + :param statements_in_batch: Total no. of statements in the batch + :type statements_in_batch: long + :param source_result: Query analysis result from the source + :type source_result: ~azure.mgmt.datamigration.models.ExecutionStatistics + :param target_result: Query analysis result from the target + :type target_result: ~azure.mgmt.datamigration.models.ExecutionStatistics + """ + + _attribute_map = { + 'query_text': {'key': 'queryText', 'type': 'str'}, + 'statements_in_batch': {'key': 'statementsInBatch', 'type': 'long'}, + 'source_result': {'key': 'sourceResult', 'type': 'ExecutionStatistics'}, + 'target_result': {'key': 'targetResult', 'type': 'ExecutionStatistics'}, + } + + def __init__(self, *, query_text: str=None, statements_in_batch: int=None, source_result=None, target_result=None, **kwargs) -> None: + super(QueryExecutionResult, self).__init__(**kwargs) + self.query_text = query_text + self.statements_in_batch = statements_in_batch + self.source_result = source_result + self.target_result = target_result + + +class Quota(Model): + """Describes a quota for or usage details about a resource. + + :param current_value: The current value of the quota. If null or missing, + the current value cannot be determined in the context of the request. + :type current_value: float + :param id: The resource ID of the quota object + :type id: str + :param limit: The maximum value of the quota. If null or missing, the + quota has no maximum, in which case it merely tracks usage. + :type limit: float + :param name: The name of the quota + :type name: ~azure.mgmt.datamigration.models.QuotaName + :param unit: The unit for the quota, such as Count, Bytes, BytesPerSecond, + etc. + :type unit: str + """ + + _attribute_map = { + 'current_value': {'key': 'currentValue', 'type': 'float'}, + 'id': {'key': 'id', 'type': 'str'}, + 'limit': {'key': 'limit', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'QuotaName'}, + 'unit': {'key': 'unit', 'type': 'str'}, + } + + def __init__(self, *, current_value: float=None, id: str=None, limit: float=None, name=None, unit: str=None, **kwargs) -> None: + super(Quota, self).__init__(**kwargs) + self.current_value = current_value + self.id = id + self.limit = limit + self.name = name + self.unit = unit + + +class QuotaName(Model): + """The name of the quota. + + :param localized_value: The localized name of the quota + :type localized_value: str + :param value: The unlocalized name (or ID) of the quota + :type value: str + """ + + _attribute_map = { + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, localized_value: str=None, value: str=None, **kwargs) -> None: + super(QuotaName, self).__init__(**kwargs) + self.localized_value = localized_value + self.value = value + + +class ReportableException(Model): + """Exception object for all custom exceptions. + + :param message: Error message + :type message: str + :param actionable_message: Actionable steps for this exception + :type actionable_message: str + :param file_path: The path to the file where exception occurred + :type file_path: str + :param line_number: The line number where exception occurred + :type line_number: str + :param h_result: Coded numerical value that is assigned to a specific + exception + :type h_result: int + :param stack_trace: Stack trace + :type stack_trace: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'actionable_message': {'key': 'actionableMessage', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'line_number': {'key': 'lineNumber', 'type': 'str'}, + 'h_result': {'key': 'hResult', 'type': 'int'}, + 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, + } + + def __init__(self, *, message: str=None, actionable_message: str=None, file_path: str=None, line_number: str=None, h_result: int=None, stack_trace: str=None, **kwargs) -> None: + super(ReportableException, self).__init__(**kwargs) + self.message = message + self.actionable_message = actionable_message + self.file_path = file_path + self.line_number = line_number + self.h_result = h_result + self.stack_trace = stack_trace + + +class ResourceSku(Model): + """Describes an available DMS SKU. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar resource_type: The type of resource the SKU applies to. + :vartype resource_type: str + :ivar name: The name of SKU. + :vartype name: str + :ivar tier: Specifies the tier of DMS in a scale set. + :vartype tier: str + :ivar size: The Size of the SKU. + :vartype size: str + :ivar family: The Family of this particular SKU. + :vartype family: str + :ivar kind: The Kind of resources that are supported in this SKU. + :vartype kind: str + :ivar capacity: Not used. + :vartype capacity: ~azure.mgmt.datamigration.models.ResourceSkuCapacity + :ivar locations: The set of locations that the SKU is available. + :vartype locations: list[str] + :ivar api_versions: The api versions that support this SKU. + :vartype api_versions: list[str] + :ivar costs: Metadata for retrieving price info. + :vartype costs: list[~azure.mgmt.datamigration.models.ResourceSkuCosts] + :ivar capabilities: A name value pair to describe the capability. + :vartype capabilities: + list[~azure.mgmt.datamigration.models.ResourceSkuCapabilities] + :ivar restrictions: The restrictions because of which SKU cannot be used. + This is empty if there are no restrictions. + :vartype restrictions: + list[~azure.mgmt.datamigration.models.ResourceSkuRestrictions] + """ + + _validation = { + 'resource_type': {'readonly': True}, + 'name': {'readonly': True}, + 'tier': {'readonly': True}, + 'size': {'readonly': True}, + 'family': {'readonly': True}, + 'kind': {'readonly': True}, + 'capacity': {'readonly': True}, + 'locations': {'readonly': True}, + 'api_versions': {'readonly': True}, + 'costs': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'restrictions': {'readonly': True}, + } + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'ResourceSkuCapacity'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'costs': {'key': 'costs', 'type': '[ResourceSkuCosts]'}, + 'capabilities': {'key': 'capabilities', 'type': '[ResourceSkuCapabilities]'}, + 'restrictions': {'key': 'restrictions', 'type': '[ResourceSkuRestrictions]'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceSku, self).__init__(**kwargs) + self.resource_type = None + self.name = None + self.tier = None + self.size = None + self.family = None + self.kind = None + self.capacity = None + self.locations = None + self.api_versions = None + self.costs = None + self.capabilities = None + self.restrictions = None + + +class ResourceSkuCapabilities(Model): + """Describes The SKU capabilities object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: An invariant to describe the feature. + :vartype name: str + :ivar value: An invariant if the feature is measured by quantity. + :vartype value: str + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceSkuCapabilities, self).__init__(**kwargs) + self.name = None + self.value = None + + +class ResourceSkuCapacity(Model): + """Describes scaling information of a SKU. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar minimum: The minimum capacity. + :vartype minimum: long + :ivar maximum: The maximum capacity. + :vartype maximum: long + :ivar default: The default capacity. + :vartype default: long + :ivar scale_type: The scale type applicable to the SKU. Possible values + include: 'Automatic', 'Manual', 'None' + :vartype scale_type: str or + ~azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType + """ + + _validation = { + 'minimum': {'readonly': True}, + 'maximum': {'readonly': True}, + 'default': {'readonly': True}, + 'scale_type': {'readonly': True}, + } + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'long'}, + 'maximum': {'key': 'maximum', 'type': 'long'}, + 'default': {'key': 'default', 'type': 'long'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceSkuCapacity, self).__init__(**kwargs) + self.minimum = None + self.maximum = None + self.default = None + self.scale_type = None + + +class ResourceSkuCosts(Model): + """Describes metadata for retrieving price info. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar meter_id: Used for querying price from commerce. + :vartype meter_id: str + :ivar quantity: The multiplier is needed to extend the base metered cost. + :vartype quantity: long + :ivar extended_unit: An invariant to show the extended unit. + :vartype extended_unit: str + """ + + _validation = { + 'meter_id': {'readonly': True}, + 'quantity': {'readonly': True}, + 'extended_unit': {'readonly': True}, + } + + _attribute_map = { + 'meter_id': {'key': 'meterID', 'type': 'str'}, + 'quantity': {'key': 'quantity', 'type': 'long'}, + 'extended_unit': {'key': 'extendedUnit', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceSkuCosts, self).__init__(**kwargs) + self.meter_id = None + self.quantity = None + self.extended_unit = None + + +class ResourceSkuRestrictions(Model): + """Describes scaling information of a SKU. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The type of restrictions. Possible values include: 'location' + :vartype type: str or + ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsType + :ivar values: The value of restrictions. If the restriction type is set to + location. This would be different locations where the SKU is restricted. + :vartype values: list[str] + :ivar reason_code: The reason code for restriction. Possible values + include: 'QuotaId', 'NotAvailableForSubscription' + :vartype reason_code: str or + ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode + """ + + _validation = { + 'type': {'readonly': True}, + 'values': {'readonly': True}, + 'reason_code': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + 'reason_code': {'key': 'reasonCode', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceSkuRestrictions, self).__init__(**kwargs) + self.type = None + self.values = None + self.reason_code = None + + +class SchemaComparisonValidationResult(Model): + """Results for schema comparison between the source and target. + + :param schema_differences: List of schema differences between the source + and target databases + :type schema_differences: + ~azure.mgmt.datamigration.models.SchemaComparisonValidationResultType + :param validation_errors: List of errors that happened while performing + schema compare validation + :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError + :param source_database_object_count: Count of source database objects + :type source_database_object_count: dict[str, long] + :param target_database_object_count: Count of target database objects + :type target_database_object_count: dict[str, long] + """ + + _attribute_map = { + 'schema_differences': {'key': 'schemaDifferences', 'type': 'SchemaComparisonValidationResultType'}, + 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, + 'source_database_object_count': {'key': 'sourceDatabaseObjectCount', 'type': '{long}'}, + 'target_database_object_count': {'key': 'targetDatabaseObjectCount', 'type': '{long}'}, + } + + def __init__(self, *, schema_differences=None, validation_errors=None, source_database_object_count=None, target_database_object_count=None, **kwargs) -> None: + super(SchemaComparisonValidationResult, self).__init__(**kwargs) + self.schema_differences = schema_differences + self.validation_errors = validation_errors + self.source_database_object_count = source_database_object_count + self.target_database_object_count = target_database_object_count + + +class SchemaComparisonValidationResultType(Model): + """Description about the errors happen while performing migration validation. + + :param object_name: Name of the object that has the difference + :type object_name: str + :param object_type: Type of the object that has the difference. e.g + (Table/View/StoredProcedure). Possible values include: 'StoredProcedures', + 'Table', 'User', 'View', 'Function' + :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType + :param update_action: Update action type with respect to target. Possible + values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' + :type update_action: str or + ~azure.mgmt.datamigration.models.UpdateActionType + """ + + _attribute_map = { + 'object_name': {'key': 'objectName', 'type': 'str'}, + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'update_action': {'key': 'updateAction', 'type': 'str'}, + } + + def __init__(self, *, object_name: str=None, object_type=None, update_action=None, **kwargs) -> None: + super(SchemaComparisonValidationResultType, self).__init__(**kwargs) + self.object_name = object_name + self.object_type = object_type + self.update_action = update_action + + +class SchemaMigrationSetting(Model): + """Settings for migrating schema from source to target. + + :param schema_option: Option on how to migrate the schema. Possible values + include: 'None', 'ExtractFromSource', 'UseStorageFile' + :type schema_option: str or + ~azure.mgmt.datamigration.models.SchemaMigrationOption + :param file_id: Resource Identifier of a file resource containing the + uploaded schema file + :type file_id: str + """ + + _attribute_map = { + 'schema_option': {'key': 'schemaOption', 'type': 'str'}, + 'file_id': {'key': 'fileId', 'type': 'str'}, + } + + def __init__(self, *, schema_option=None, file_id: str=None, **kwargs) -> None: + super(SchemaMigrationSetting, self).__init__(**kwargs) + self.schema_option = schema_option + self.file_id = file_id + + +class SelectedCertificateInput(Model): + """Info for certificate to be exported for TDE enabled databases. + + All required parameters must be populated in order to send to Azure. + + :param certificate_name: Required. Name of certificate to be exported. + :type certificate_name: str + :param password: Required. Password to use for encrypting the exported + certificate. + :type password: str + """ + + _validation = { + 'certificate_name': {'required': True}, + 'password': {'required': True}, + } + + _attribute_map = { + 'certificate_name': {'key': 'certificateName', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, *, certificate_name: str, password: str, **kwargs) -> None: + super(SelectedCertificateInput, self).__init__(**kwargs) + self.certificate_name = certificate_name + self.password = password + + +class ServerProperties(Model): + """Server properties for MySQL type source. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar server_platform: Name of the server platform + :vartype server_platform: str + :ivar server_name: Name of the server + :vartype server_name: str + :ivar server_version: Version of the database server + :vartype server_version: str + :ivar server_edition: Edition of the database server + :vartype server_edition: str + :ivar server_operating_system_version: Version of the operating system + :vartype server_operating_system_version: str + :ivar server_database_count: Number of databases in the server + :vartype server_database_count: int + """ + + _validation = { + 'server_platform': {'readonly': True}, + 'server_name': {'readonly': True}, + 'server_version': {'readonly': True}, + 'server_edition': {'readonly': True}, + 'server_operating_system_version': {'readonly': True}, + 'server_database_count': {'readonly': True}, + } + + _attribute_map = { + 'server_platform': {'key': 'serverPlatform', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + 'server_edition': {'key': 'serverEdition', 'type': 'str'}, + 'server_operating_system_version': {'key': 'serverOperatingSystemVersion', 'type': 'str'}, + 'server_database_count': {'key': 'serverDatabaseCount', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(ServerProperties, self).__init__(**kwargs) + self.server_platform = None + self.server_name = None + self.server_version = None + self.server_edition = None + self.server_operating_system_version = None + self.server_database_count = None + + +class ServiceOperation(Model): + """Description of an action supported by the Database Migration Service. + + :param name: The fully qualified action name, e.g. + Microsoft.DataMigration/services/read + :type name: str + :param display: Localized display text + :type display: ~azure.mgmt.datamigration.models.ServiceOperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'ServiceOperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(ServiceOperation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class ServiceOperationDisplay(Model): + """Localized display text. + + :param provider: The localized resource provider name + :type provider: str + :param resource: The localized resource type name + :type resource: str + :param operation: The localized operation name + :type operation: str + :param description: The localized operation description + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ServiceOperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ServiceSku(Model): + """An Azure SKU instance. + + :param name: The unique name of the SKU, such as 'P3' + :type name: str + :param tier: The tier of the SKU, such as 'Basic', 'General Purpose', or + 'Business Critical' + :type tier: str + :param family: The SKU family, used when the service has multiple + performance classes within a tier, such as 'A', 'D', etc. for virtual + machines + :type family: str + :param size: The size of the SKU, used when the name alone does not denote + a service size or when a SKU has multiple performance classes within a + family, e.g. 'A1' for virtual machines + :type size: str + :param capacity: The capacity of the SKU, if it supports scaling + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, tier: str=None, family: str=None, size: str=None, capacity: int=None, **kwargs) -> None: + super(ServiceSku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.family = family + self.size = size + self.capacity = capacity + + +class SqlConnectionInfo(ConnectionInfo): + """Information for connecting to SQL database 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. Data source in the format + Protocol:MachineName\\SQLServerInstanceName,PortNumber + :type data_source: str + :param authentication: Authentication type to use for connection. Possible + values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', + 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' + :type authentication: str or + ~azure.mgmt.datamigration.models.AuthenticationType + :param encrypt_connection: Whether to encrypt the connection. Default + value: True . + :type encrypt_connection: bool + :param additional_settings: Additional connection settings + :type additional_settings: str + :param trust_server_certificate: Whether to trust the server certificate. + Default value: False . + :type trust_server_certificate: bool + :param platform: Server platform type for connection. Possible values + include: 'SqlOnPrem' + :type platform: str or ~azure.mgmt.datamigration.models.SqlSourcePlatform + """ + + _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'}, + 'authentication': {'key': 'authentication', 'type': 'str'}, + 'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'}, + 'additional_settings': {'key': 'additionalSettings', 'type': 'str'}, + 'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'}, + 'platform': {'key': 'platform', 'type': 'str'}, + } + + def __init__(self, *, data_source: str, user_name: str=None, password: str=None, authentication=None, encrypt_connection: bool=True, additional_settings: str=None, trust_server_certificate: bool=False, platform=None, **kwargs) -> None: + super(SqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) + self.data_source = data_source + self.authentication = authentication + self.encrypt_connection = encrypt_connection + self.additional_settings = additional_settings + self.trust_server_certificate = trust_server_certificate + self.platform = platform + self.type = 'SqlConnectionInfo' + + +class StartMigrationScenarioServerRoleResult(Model): + """Server role migration result. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of server role. + :vartype name: str + :ivar state: Current state of migration. Possible values include: 'None', + 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'name': {'readonly': True}, + 'state': {'readonly': True}, + 'exceptions_and_warnings': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(StartMigrationScenarioServerRoleResult, self).__init__(**kwargs) + self.name = None + self.state = None + self.exceptions_and_warnings = None + + +class SyncMigrationDatabaseErrorEvent(Model): + """Database migration errors for online migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar timestamp_string: String value of timestamp. + :vartype timestamp_string: str + :ivar event_type_string: Event type. + :vartype event_type_string: str + :ivar event_text: Event text. + :vartype event_text: str + """ + + _validation = { + 'timestamp_string': {'readonly': True}, + 'event_type_string': {'readonly': True}, + 'event_text': {'readonly': True}, + } + + _attribute_map = { + 'timestamp_string': {'key': 'timestampString', 'type': 'str'}, + 'event_type_string': {'key': 'eventTypeString', 'type': 'str'}, + 'event_text': {'key': 'eventText', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(SyncMigrationDatabaseErrorEvent, self).__init__(**kwargs) + self.timestamp_string = None + self.event_type_string = None + self.event_text = None + + +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 + + +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 + + +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' + + +class ValidateMigrationInputSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): + """Properties for task that validates migration input for SQL to Azure SQL DB + sync 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.ValidateSyncMigrationInputSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput] + """ + + _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': 'ValidateSyncMigrationInputSqlServerTaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateSyncMigrationInputSqlServerTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ValidateMigrationInput.SqlServer.SqlDb.Sync' + + +class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database + Managed Instance online scenario. + + 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.MigrateSqlServerSqlMIDatabaseInput] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param storage_resource_id: Required. Fully qualified resourceId of + storage + :type storage_resource_id: str + :param source_connection_info: Required. Connection information for source + SQL Server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Connection information for Azure + SQL Database Managed Instance + :type target_connection_info: + ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :param azure_app: Required. Azure Active Directory Application the DMS + instance will use to connect to the target instance of Azure SQL Database + Managed Instance and the Azure Storage Account + :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + _validation = { + 'selected_databases': {'required': True}, + 'storage_resource_id': {'required': True}, + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'azure_app': {'required': True}, + } + + _attribute_map = { + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, + 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, + } + + def __init__(self, *, selected_databases, storage_resource_id: str, source_connection_info, target_connection_info, azure_app, backup_file_share=None, **kwargs) -> None: + super(ValidateMigrationInputSqlServerSqlMISyncTaskInput, self).__init__(selected_databases=selected_databases, backup_file_share=backup_file_share, storage_resource_id=storage_resource_id, source_connection_info=source_connection_info, target_connection_info=target_connection_info, azure_app=azure_app, **kwargs) + + +class ValidateMigrationInputSqlServerSqlMISyncTaskOutput(Model): + """Output for task that validates migration input for Azure SQL Database + Managed Instance online migration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Database identifier + :vartype id: str + :ivar name: Name of database + :vartype name: str + :ivar validation_errors: Errors associated with a selected database object + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ValidateMigrationInputSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) + self.id = None + self.name = None + self.validation_errors = None + + +class ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): + """Properties for task that validates migration input for SQL to Azure SQL + Database Managed Instance sync scenario. + + 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.ValidateMigrationInputSqlServerSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput] + """ + + _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': 'ValidateMigrationInputSqlServerSqlMISyncTaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMISyncTaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ValidateMigrationInputSqlServerSqlMISyncTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS' + + +class ValidateMigrationInputSqlServerSqlMITaskInput(Model): + """Input for task that validates migration input for SQL to Azure SQL Managed + Instance. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :param selected_logins: Logins to migrate + :type selected_logins: list[str] + :param backup_file_share: Backup file share information for all selected + databases. + :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :param backup_blob_share: Required. SAS URI of Azure Storage Account + Container to be used for storing backup files. + :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare + :param backup_mode: Backup Mode to specify whether to use existing backup + or create new backup. Possible values include: 'CreateBackup', + 'ExistingBackup' + :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + 'backup_blob_share': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, + 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, + 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, + 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, + 'backup_mode': {'key': 'backupMode', 'type': 'str'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, backup_blob_share, selected_logins=None, backup_file_share=None, backup_mode=None, **kwargs) -> None: + super(ValidateMigrationInputSqlServerSqlMITaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + self.selected_databases = selected_databases + self.selected_logins = selected_logins + self.backup_file_share = backup_file_share + self.backup_blob_share = backup_blob_share + self.backup_mode = backup_mode + + +class ValidateMigrationInputSqlServerSqlMITaskOutput(Model): + """Output for task that validates migration input for SQL to Azure SQL Managed + Instance migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Result identifier + :vartype id: str + :ivar name: Name of database + :vartype name: str + :ivar restore_database_name_errors: Errors associated with the + RestoreDatabaseName + :vartype restore_database_name_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_folder_errors: Errors associated with the BackupFolder path + :vartype backup_folder_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_share_credentials_errors: Errors associated with backup share + user name and password credentials + :vartype backup_share_credentials_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_storage_account_errors: Errors associated with the storage + account provided. + :vartype backup_storage_account_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar existing_backup_errors: Errors associated with existing backup + files. + :vartype existing_backup_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :param database_backup_info: Information about backup files when existing + backup mode is used. + :type database_backup_info: + ~azure.mgmt.datamigration.models.DatabaseBackupInfo + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'restore_database_name_errors': {'readonly': True}, + 'backup_folder_errors': {'readonly': True}, + 'backup_share_credentials_errors': {'readonly': True}, + 'backup_storage_account_errors': {'readonly': True}, + 'existing_backup_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'restore_database_name_errors': {'key': 'restoreDatabaseNameErrors', 'type': '[ReportableException]'}, + 'backup_folder_errors': {'key': 'backupFolderErrors', 'type': '[ReportableException]'}, + 'backup_share_credentials_errors': {'key': 'backupShareCredentialsErrors', 'type': '[ReportableException]'}, + 'backup_storage_account_errors': {'key': 'backupStorageAccountErrors', 'type': '[ReportableException]'}, + 'existing_backup_errors': {'key': 'existingBackupErrors', 'type': '[ReportableException]'}, + 'database_backup_info': {'key': 'databaseBackupInfo', 'type': 'DatabaseBackupInfo'}, + } + + def __init__(self, *, database_backup_info=None, **kwargs) -> None: + super(ValidateMigrationInputSqlServerSqlMITaskOutput, self).__init__(**kwargs) + self.id = None + self.name = None + self.restore_database_name_errors = None + self.backup_folder_errors = None + self.backup_share_credentials_errors = None + self.backup_storage_account_errors = None + self.existing_backup_errors = None + self.database_backup_info = database_backup_info + + +class ValidateMigrationInputSqlServerSqlMITaskProperties(ProjectTaskProperties): + """Properties for task that validates migration input for SQL to Azure SQL + Database Managed Instance. + + 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.ValidateMigrationInputSqlServerSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput] + """ + + _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': 'ValidateMigrationInputSqlServerSqlMITaskInput'}, + 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMITaskOutput]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ValidateMigrationInputSqlServerSqlMITaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI' + + +class ValidateMongoDbTaskProperties(ProjectTaskProperties): + """Properties for the task that validates a migration between MongoDB data + sources. + + 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.MongoDbMigrationSettings + :ivar output: An array containing a single MongoDbMigrationProgress object + :vartype output: + list[~azure.mgmt.datamigration.models.MongoDbMigrationProgress] + """ + + _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': 'MongoDbMigrationSettings'}, + 'output': {'key': 'output', 'type': '[MongoDbMigrationProgress]'}, + } + + def __init__(self, *, client_data=None, input=None, **kwargs) -> None: + super(ValidateMongoDbTaskProperties, self).__init__(client_data=client_data, **kwargs) + self.input = input + self.output = None + self.task_type = 'Validate.MongoDb' + + +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' + + +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 + + +class ValidateSyncMigrationInputSqlServerTaskInput(Model): + """Input for task that validates migration input for SQL sync migrations. + + All required parameters must be populated in order to send to Azure. + + :param source_connection_info: Required. Information for connecting to + source SQL server + :type source_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param target_connection_info: Required. Information for connecting to + target + :type target_connection_info: + ~azure.mgmt.datamigration.models.SqlConnectionInfo + :param selected_databases: Required. Databases to migrate + :type selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] + """ + + _validation = { + 'source_connection_info': {'required': True}, + 'target_connection_info': {'required': True}, + 'selected_databases': {'required': True}, + } + + _attribute_map = { + 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, + 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, + } + + def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None: + super(ValidateSyncMigrationInputSqlServerTaskInput, self).__init__(**kwargs) + self.source_connection_info = source_connection_info + self.target_connection_info = target_connection_info + self.selected_databases = selected_databases + + +class ValidateSyncMigrationInputSqlServerTaskOutput(Model): + """Output for task that validates migration input for SQL sync migrations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Database identifier + :vartype id: str + :ivar name: Name of database + :vartype name: str + :ivar validation_errors: Errors associated with a selected database object + :vartype validation_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'validation_errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, + } + + def __init__(self, **kwargs) -> None: + super(ValidateSyncMigrationInputSqlServerTaskOutput, self).__init__(**kwargs) + self.id = None + self.name = None + self.validation_errors = None + + +class ValidationError(Model): + """Description about the errors happen while performing migration validation. + + :param text: Error Text + :type text: str + :param severity: Severity of the error. Possible values include: + 'Message', 'Warning', 'Error' + :type severity: str or ~azure.mgmt.datamigration.models.Severity + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + } + + def __init__(self, *, text: str=None, severity=None, **kwargs) -> None: + super(ValidationError, self).__init__(**kwargs) + self.text = text + self.severity = severity + + +class WaitStatistics(Model): + """Wait statistics gathered during query batch execution. + + :param wait_type: Type of the Wait + :type wait_type: str + :param wait_time_ms: Total wait time in millisecond(s) . Default value: 0 + . + :type wait_time_ms: float + :param wait_count: Total no. of waits + :type wait_count: long + """ + + _attribute_map = { + 'wait_type': {'key': 'waitType', 'type': 'str'}, + 'wait_time_ms': {'key': 'waitTimeMs', 'type': 'float'}, + 'wait_count': {'key': 'waitCount', 'type': 'long'}, + } + + def __init__(self, *, wait_type: str=None, wait_time_ms: float=0, wait_count: int=None, **kwargs) -> None: + super(WaitStatistics, self).__init__(**kwargs) + self.wait_type = wait_type + self.wait_time_ms = wait_time_ms + self.wait_count = wait_count diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_paged_models.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_paged_models.py new file mode 100644 index 000000000000..4d6ecdca2dd4 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_paged_models.py @@ -0,0 +1,118 @@ +# 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.paging import Paged + + +class ResourceSkuPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceSku ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceSku]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceSkuPaged, self).__init__(*args, **kwargs) +class AvailableServiceSkuPaged(Paged): + """ + A paging container for iterating over a list of :class:`AvailableServiceSku ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AvailableServiceSku]'} + } + + def __init__(self, *args, **kwargs): + + super(AvailableServiceSkuPaged, self).__init__(*args, **kwargs) +class DataMigrationServicePaged(Paged): + """ + A paging container for iterating over a list of :class:`DataMigrationService ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DataMigrationService]'} + } + + def __init__(self, *args, **kwargs): + + super(DataMigrationServicePaged, self).__init__(*args, **kwargs) +class ProjectTaskPaged(Paged): + """ + A paging container for iterating over a list of :class:`ProjectTask ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ProjectTask]'} + } + + def __init__(self, *args, **kwargs): + + super(ProjectTaskPaged, self).__init__(*args, **kwargs) +class ProjectPaged(Paged): + """ + A paging container for iterating over a list of :class:`Project ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Project]'} + } + + def __init__(self, *args, **kwargs): + + super(ProjectPaged, self).__init__(*args, **kwargs) +class QuotaPaged(Paged): + """ + A paging container for iterating over a list of :class:`Quota ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Quota]'} + } + + def __init__(self, *args, **kwargs): + + super(QuotaPaged, self).__init__(*args, **kwargs) +class ServiceOperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceOperation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceOperation]'} + } + + def __init__(self, *args, **kwargs): + + super(ServiceOperationPaged, self).__init__(*args, **kwargs) +class ProjectFilePaged(Paged): + """ + A paging container for iterating over a list of :class:`ProjectFile ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ProjectFile]'} + } + + def __init__(self, *args, **kwargs): + + super(ProjectFilePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error.py deleted file mode 100644 index 3ba9d952d40c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class ApiError(Model): - """Error information. - - :param error: Error information in OData format - :type error: ~azure.mgmt.datamigration.models.ODataError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ODataError'}, - } - - def __init__(self, **kwargs): - super(ApiError, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ApiErrorException(HttpOperationError): - """Server responsed with exception of type: 'ApiError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error_py3.py deleted file mode 100644 index b928f5da5c38..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/api_error_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class ApiError(Model): - """Error information. - - :param error: Error information in OData format - :type error: ~azure.mgmt.datamigration.models.ODataError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ODataError'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(ApiError, self).__init__(**kwargs) - self.error = error - - -class ApiErrorException(HttpOperationError): - """Server responsed with exception of type: 'ApiError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku.py deleted file mode 100644 index fc55513de08a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 AvailableServiceSku(Model): - """Describes the available service SKU. - - :param resource_type: The resource type, including the provider namespace - :type resource_type: str - :param sku: SKU name, tier, etc. - :type sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku - :param capacity: A description of the scaling capacities of the SKU - :type capacity: - ~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'AvailableServiceSkuSku'}, - 'capacity': {'key': 'capacity', 'type': 'AvailableServiceSkuCapacity'}, - } - - def __init__(self, **kwargs): - super(AvailableServiceSku, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.sku = kwargs.get('sku', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity.py deleted file mode 100644 index f89354433cae..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 AvailableServiceSkuCapacity(Model): - """A description of the scaling capacities of the SKU. - - :param minimum: The minimum capacity, usually 0 or 1. - :type minimum: int - :param maximum: The maximum capacity - :type maximum: int - :param default: The default capacity - :type default: int - :param scale_type: The scalability approach. Possible values include: - 'none', 'manual', 'automatic' - :type scale_type: str or - ~azure.mgmt.datamigration.models.ServiceScalability - """ - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AvailableServiceSkuCapacity, self).__init__(**kwargs) - self.minimum = kwargs.get('minimum', None) - self.maximum = kwargs.get('maximum', None) - self.default = kwargs.get('default', None) - self.scale_type = kwargs.get('scale_type', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity_py3.py deleted file mode 100644 index 6dc3be80745d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_capacity_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 AvailableServiceSkuCapacity(Model): - """A description of the scaling capacities of the SKU. - - :param minimum: The minimum capacity, usually 0 or 1. - :type minimum: int - :param maximum: The maximum capacity - :type maximum: int - :param default: The default capacity - :type default: int - :param scale_type: The scalability approach. Possible values include: - 'none', 'manual', 'automatic' - :type scale_type: str or - ~azure.mgmt.datamigration.models.ServiceScalability - """ - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__(self, *, minimum: int=None, maximum: int=None, default: int=None, scale_type=None, **kwargs) -> None: - super(AvailableServiceSkuCapacity, self).__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_paged.py deleted file mode 100644 index 9f2cc2633422..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class AvailableServiceSkuPaged(Paged): - """ - A paging container for iterating over a list of :class:`AvailableServiceSku ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[AvailableServiceSku]'} - } - - def __init__(self, *args, **kwargs): - - super(AvailableServiceSkuPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_py3.py deleted file mode 100644 index 50e04c3ae8b3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 AvailableServiceSku(Model): - """Describes the available service SKU. - - :param resource_type: The resource type, including the provider namespace - :type resource_type: str - :param sku: SKU name, tier, etc. - :type sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku - :param capacity: A description of the scaling capacities of the SKU - :type capacity: - ~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'AvailableServiceSkuSku'}, - 'capacity': {'key': 'capacity', 'type': 'AvailableServiceSkuCapacity'}, - } - - def __init__(self, *, resource_type: str=None, sku=None, capacity=None, **kwargs) -> None: - super(AvailableServiceSku, self).__init__(**kwargs) - self.resource_type = resource_type - self.sku = sku - self.capacity = capacity diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku.py deleted file mode 100644 index dd2a4c97f593..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 AvailableServiceSkuSku(Model): - """SKU name, tier, etc. - - :param name: The name of the SKU - :type name: str - :param family: SKU family - :type family: str - :param size: SKU size - :type size: str - :param tier: The tier of the SKU, such as "Basic", "General Purpose", or - "Business Critical" - :type tier: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AvailableServiceSkuSku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.family = kwargs.get('family', None) - self.size = kwargs.get('size', None) - self.tier = kwargs.get('tier', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku_py3.py deleted file mode 100644 index 6051099d109a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/available_service_sku_sku_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 AvailableServiceSkuSku(Model): - """SKU name, tier, etc. - - :param name: The name of the SKU - :type name: str - :param family: SKU family - :type family: str - :param size: SKU size - :type size: str - :param tier: The tier of the SKU, such as "Basic", "General Purpose", or - "Business Critical" - :type tier: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, family: str=None, size: str=None, tier: str=None, **kwargs) -> None: - super(AvailableServiceSkuSku, self).__init__(**kwargs) - self.name = name - self.family = family - self.size = size - self.tier = tier diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app.py deleted file mode 100644 index 2b5b0006fb70..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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 AzureActiveDirectoryApp(Model): - """Azure Active Directory Application. - - All required parameters must be populated in order to send to Azure. - - :param application_id: Required. Application ID of the Azure Active - Directory Application - :type application_id: str - :param app_key: Required. Key used to authenticate to the Azure Active - Directory Application - :type app_key: str - :param tenant_id: Required. Tenant id of the customer - :type tenant_id: str - """ - - _validation = { - 'application_id': {'required': True}, - 'app_key': {'required': True}, - 'tenant_id': {'required': True}, - } - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - 'app_key': {'key': 'appKey', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureActiveDirectoryApp, self).__init__(**kwargs) - self.application_id = kwargs.get('application_id', None) - self.app_key = kwargs.get('app_key', None) - self.tenant_id = kwargs.get('tenant_id', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app_py3.py deleted file mode 100644 index 48b7a9c96ea1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/azure_active_directory_app_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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 AzureActiveDirectoryApp(Model): - """Azure Active Directory Application. - - All required parameters must be populated in order to send to Azure. - - :param application_id: Required. Application ID of the Azure Active - Directory Application - :type application_id: str - :param app_key: Required. Key used to authenticate to the Azure Active - Directory Application - :type app_key: str - :param tenant_id: Required. Tenant id of the customer - :type tenant_id: str - """ - - _validation = { - 'application_id': {'required': True}, - 'app_key': {'required': True}, - 'tenant_id': {'required': True}, - } - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - 'app_key': {'key': 'appKey', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, *, application_id: str, app_key: str, tenant_id: str, **kwargs) -> None: - super(AzureActiveDirectoryApp, self).__init__(**kwargs) - self.application_id = application_id - self.app_key = app_key - self.tenant_id = tenant_id diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info.py deleted file mode 100644 index 7a91bb78af41..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 BackupFileInfo(Model): - """Information of the backup file. - - :param file_location: Location of the backup file in shared folder - :type file_location: str - :param family_sequence_number: Sequence number of the backup file in the - backup set - :type family_sequence_number: int - :param status: Status of the backup file during migration. Possible values - include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', - 'Restored', 'Cancelled' - :type status: str or ~azure.mgmt.datamigration.models.BackupFileStatus - """ - - _attribute_map = { - 'file_location': {'key': 'fileLocation', 'type': 'str'}, - 'family_sequence_number': {'key': 'familySequenceNumber', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupFileInfo, self).__init__(**kwargs) - self.file_location = kwargs.get('file_location', None) - self.family_sequence_number = kwargs.get('family_sequence_number', None) - self.status = kwargs.get('status', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info_py3.py deleted file mode 100644 index 0c0efd068f22..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_file_info_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 BackupFileInfo(Model): - """Information of the backup file. - - :param file_location: Location of the backup file in shared folder - :type file_location: str - :param family_sequence_number: Sequence number of the backup file in the - backup set - :type family_sequence_number: int - :param status: Status of the backup file during migration. Possible values - include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', - 'Restored', 'Cancelled' - :type status: str or ~azure.mgmt.datamigration.models.BackupFileStatus - """ - - _attribute_map = { - 'file_location': {'key': 'fileLocation', 'type': 'str'}, - 'family_sequence_number': {'key': 'familySequenceNumber', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, file_location: str=None, family_sequence_number: int=None, status=None, **kwargs) -> None: - super(BackupFileInfo, self).__init__(**kwargs) - self.file_location = file_location - self.family_sequence_number = family_sequence_number - self.status = status diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info.py deleted file mode 100644 index c037c96febe2..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 BackupSetInfo(Model): - """Information of backup set. - - :param backup_set_id: Id for the set of backup files - :type backup_set_id: str - :param first_lsn: First log sequence number of the backup file - :type first_lsn: str - :param last_lsn: Last log sequence number of the backup file - :type last_lsn: str - :param last_modified_time: Last modified time of the backup file in share - location - :type last_modified_time: datetime - :param backup_type: Enum of the different backup types. Possible values - include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', - 'DifferentialFile', 'Partial', 'DifferentialPartial' - :type backup_type: str or ~azure.mgmt.datamigration.models.BackupType - :param list_of_backup_files: List of files in the backup set - :type list_of_backup_files: - list[~azure.mgmt.datamigration.models.BackupFileInfo] - :param database_name: Name of the database to which the backup set belongs - :type database_name: str - :param backup_start_date: Date and time that the backup operation began - :type backup_start_date: datetime - :param backup_finished_date: Date and time that the backup operation - finished - :type backup_finished_date: datetime - :param is_backup_restored: Whether the backup set is restored or not - :type is_backup_restored: bool - """ - - _attribute_map = { - 'backup_set_id': {'key': 'backupSetId', 'type': 'str'}, - 'first_lsn': {'key': 'firstLsn', 'type': 'str'}, - 'last_lsn': {'key': 'lastLsn', 'type': 'str'}, - 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'list_of_backup_files': {'key': 'listOfBackupFiles', 'type': '[BackupFileInfo]'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'backup_start_date': {'key': 'backupStartDate', 'type': 'iso-8601'}, - 'backup_finished_date': {'key': 'backupFinishedDate', 'type': 'iso-8601'}, - 'is_backup_restored': {'key': 'isBackupRestored', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(BackupSetInfo, self).__init__(**kwargs) - self.backup_set_id = kwargs.get('backup_set_id', None) - self.first_lsn = kwargs.get('first_lsn', None) - self.last_lsn = kwargs.get('last_lsn', None) - self.last_modified_time = kwargs.get('last_modified_time', None) - self.backup_type = kwargs.get('backup_type', None) - self.list_of_backup_files = kwargs.get('list_of_backup_files', None) - self.database_name = kwargs.get('database_name', None) - self.backup_start_date = kwargs.get('backup_start_date', None) - self.backup_finished_date = kwargs.get('backup_finished_date', None) - self.is_backup_restored = kwargs.get('is_backup_restored', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info_py3.py deleted file mode 100644 index f2c1376c9413..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/backup_set_info_py3.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 BackupSetInfo(Model): - """Information of backup set. - - :param backup_set_id: Id for the set of backup files - :type backup_set_id: str - :param first_lsn: First log sequence number of the backup file - :type first_lsn: str - :param last_lsn: Last log sequence number of the backup file - :type last_lsn: str - :param last_modified_time: Last modified time of the backup file in share - location - :type last_modified_time: datetime - :param backup_type: Enum of the different backup types. Possible values - include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', - 'DifferentialFile', 'Partial', 'DifferentialPartial' - :type backup_type: str or ~azure.mgmt.datamigration.models.BackupType - :param list_of_backup_files: List of files in the backup set - :type list_of_backup_files: - list[~azure.mgmt.datamigration.models.BackupFileInfo] - :param database_name: Name of the database to which the backup set belongs - :type database_name: str - :param backup_start_date: Date and time that the backup operation began - :type backup_start_date: datetime - :param backup_finished_date: Date and time that the backup operation - finished - :type backup_finished_date: datetime - :param is_backup_restored: Whether the backup set is restored or not - :type is_backup_restored: bool - """ - - _attribute_map = { - 'backup_set_id': {'key': 'backupSetId', 'type': 'str'}, - 'first_lsn': {'key': 'firstLsn', 'type': 'str'}, - 'last_lsn': {'key': 'lastLsn', 'type': 'str'}, - 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'list_of_backup_files': {'key': 'listOfBackupFiles', 'type': '[BackupFileInfo]'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'backup_start_date': {'key': 'backupStartDate', 'type': 'iso-8601'}, - 'backup_finished_date': {'key': 'backupFinishedDate', 'type': 'iso-8601'}, - 'is_backup_restored': {'key': 'isBackupRestored', 'type': 'bool'}, - } - - def __init__(self, *, backup_set_id: str=None, first_lsn: str=None, last_lsn: str=None, last_modified_time=None, backup_type=None, list_of_backup_files=None, database_name: str=None, backup_start_date=None, backup_finished_date=None, is_backup_restored: bool=None, **kwargs) -> None: - super(BackupSetInfo, self).__init__(**kwargs) - self.backup_set_id = backup_set_id - self.first_lsn = first_lsn - self.last_lsn = last_lsn - self.last_modified_time = last_modified_time - self.backup_type = backup_type - self.list_of_backup_files = list_of_backup_files - self.database_name = database_name - self.backup_start_date = backup_start_date - self.backup_finished_date = backup_finished_date - self.is_backup_restored = is_backup_restored diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share.py deleted file mode 100644 index d5ace7c41a44..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 BlobShare(Model): - """Blob container storage information. - - All required parameters must be populated in order to send to Azure. - - :param sas_uri: Required. SAS URI of Azure Storage Account Container. - :type sas_uri: str - """ - - _validation = { - 'sas_uri': {'required': True}, - } - - _attribute_map = { - 'sas_uri': {'key': 'sasUri', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BlobShare, self).__init__(**kwargs) - self.sas_uri = kwargs.get('sas_uri', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share_py3.py deleted file mode 100644 index 29431383c52f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/blob_share_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 BlobShare(Model): - """Blob container storage information. - - All required parameters must be populated in order to send to Azure. - - :param sas_uri: Required. SAS URI of Azure Storage Account Container. - :type sas_uri: str - """ - - _validation = { - 'sas_uri': {'required': True}, - } - - _attribute_map = { - 'sas_uri': {'key': 'sasUri', 'type': 'str'}, - } - - def __init__(self, *, sas_uri: str, **kwargs) -> None: - super(BlobShare, self).__init__(**kwargs) - self.sas_uri = sas_uri diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties.py deleted file mode 100644 index 0790a59f9acc..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CommandProperties(Model): - """Base class for all types of DMS command properties. If command is not - supported by current client, this object is returned. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateMISyncCompleteCommandProperties, - MigrateSyncCompleteCommandProperties, MongoDbCancelCommand, - MongoDbFinishCommand, MongoDbRestartCommand - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - } - - _subtype_map = { - 'command_type': {'Migrate.SqlServer.AzureDbSqlMi.Complete': 'MigrateMISyncCompleteCommandProperties', 'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'} - } - - def __init__(self, **kwargs): - super(CommandProperties, self).__init__(**kwargs) - self.errors = None - self.state = None - self.command_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties_py3.py deleted file mode 100644 index f68be653b03d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/command_properties_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CommandProperties(Model): - """Base class for all types of DMS command properties. If command is not - supported by current client, this object is returned. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateMISyncCompleteCommandProperties, - MigrateSyncCompleteCommandProperties, MongoDbCancelCommand, - MongoDbFinishCommand, MongoDbRestartCommand - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - } - - _subtype_map = { - 'command_type': {'Migrate.SqlServer.AzureDbSqlMi.Complete': 'MigrateMISyncCompleteCommandProperties', 'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'} - } - - def __init__(self, **kwargs) -> None: - super(CommandProperties, self).__init__(**kwargs) - self.errors = None - self.state = None - self.command_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties.py deleted file mode 100644 index 3124c13dd1af..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 ConnectToMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates the connection to and provides - information about a MongoDB server. - - 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.MongoDbConnectionInfo - :ivar output: An array containing a single MongoDbClusterInfo object - :vartype output: list[~azure.mgmt.datamigration.models.MongoDbClusterInfo] - """ - - _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': 'MongoDbConnectionInfo'}, - 'output': {'key': 'output', 'type': '[MongoDbClusterInfo]'}, - } - - def __init__(self, **kwargs): - super(ConnectToMongoDbTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Connect.MongoDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties_py3.py deleted file mode 100644 index 55c960686f82..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_mongo_db_task_properties_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 ConnectToMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates the connection to and provides - information about a MongoDB server. - - 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.MongoDbConnectionInfo - :ivar output: An array containing a single MongoDbClusterInfo object - :vartype output: list[~azure.mgmt.datamigration.models.MongoDbClusterInfo] - """ - - _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': 'MongoDbConnectionInfo'}, - 'output': {'key': 'output', 'type': '[MongoDbClusterInfo]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToMongoDbTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Connect.MongoDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input.py deleted file mode 100644 index 22d6c1ad147d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectToSourceMySqlTaskInput(Model): - """Input for the task that validates MySQL database connection. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - MySQL source - :type source_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param target_platform: Target Platform for the migration. Possible values - include: 'SqlServer', 'AzureDbForMySQL' - :type target_platform: str or - ~azure.mgmt.datamigration.models.MySqlTargetPlatformType - :param check_permissions_group: Permission group for validations. Possible - values include: 'Default', 'MigrationFromSqlServerToAzureDB', - 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - :type check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - """ - - _validation = { - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'target_platform': {'key': 'targetPlatform', 'type': 'str'}, - 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_platform = kwargs.get('target_platform', None) - self.check_permissions_group = kwargs.get('check_permissions_group', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input_py3.py deleted file mode 100644 index 4c927f32b395..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_input_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConnectToSourceMySqlTaskInput(Model): - """Input for the task that validates MySQL database connection. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - MySQL source - :type source_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param target_platform: Target Platform for the migration. Possible values - include: 'SqlServer', 'AzureDbForMySQL' - :type target_platform: str or - ~azure.mgmt.datamigration.models.MySqlTargetPlatformType - :param check_permissions_group: Permission group for validations. Possible - values include: 'Default', 'MigrationFromSqlServerToAzureDB', - 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - :type check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - """ - - _validation = { - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'target_platform': {'key': 'targetPlatform', 'type': 'str'}, - 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, - } - - def __init__(self, *, source_connection_info, target_platform=None, check_permissions_group=None, **kwargs) -> None: - super(ConnectToSourceMySqlTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_platform = target_platform - self.check_permissions_group = check_permissions_group diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties.py deleted file mode 100644 index 7ee4d2ec08aa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .project_task_properties import ProjectTaskProperties - - -class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): - """Properties for the task that validates MySQL database connection. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Possible - values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', - 'Failed', 'FailedInputValidation', 'Faulted' - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: - list[~azure.mgmt.datamigration.models.CommandProperties] - :param 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.ConnectToSourceMySqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'commands': {'readonly': True}, - 'task_type': {'required': True}, - 'output': {'readonly': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, - 'client_data': {'key': 'clientData', 'type': '{str}'}, - 'task_type': {'key': 'taskType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'ConnectToSourceMySqlTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourceNonSqlTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceMySqlTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToSource.MySql' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties_py3.py deleted file mode 100644 index bb5f2b8bbbdd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_my_sql_task_properties_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): - """Properties for the task that validates MySQL database connection. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Possible - values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', - 'Failed', 'FailedInputValidation', 'Faulted' - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: - list[~azure.mgmt.datamigration.models.CommandProperties] - :param 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.ConnectToSourceMySqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'commands': {'readonly': True}, - 'task_type': {'required': True}, - 'output': {'readonly': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'commands': {'key': 'commands', 'type': '[CommandProperties]'}, - 'client_data': {'key': 'clientData', 'type': '{str}'}, - 'task_type': {'key': 'taskType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'ConnectToSourceMySqlTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourceNonSqlTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToSourceMySqlTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToSource.MySql' 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 deleted file mode 100644 index 9cf392d2263a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToSourceNonSqlTaskOutput(Model): - """Output for connect to Oracle, MySQL type source. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar source_server_brand_version: Server brand version - :vartype source_server_brand_version: str - :ivar server_properties: Server properties - :vartype server_properties: - ~azure.mgmt.datamigration.models.ServerProperties - :ivar databases: List of databases on the server - :vartype databases: list[str] - :ivar validation_errors: Validation errors associated with the task - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'server_properties': {'readonly': True}, - 'databases': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'server_properties': {'key': 'serverProperties', 'type': 'ServerProperties'}, - 'databases': {'key': 'databases', 'type': '[str]'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceNonSqlTaskOutput, self).__init__(**kwargs) - self.id = None - self.source_server_brand_version = None - self.server_properties = None - self.databases = None - self.validation_errors = None 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 deleted file mode 100644 index c29eaeef1cc8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_non_sql_task_output_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToSourceNonSqlTaskOutput(Model): - """Output for connect to Oracle, MySQL type source. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar source_server_brand_version: Server brand version - :vartype source_server_brand_version: str - :ivar server_properties: Server properties - :vartype server_properties: - ~azure.mgmt.datamigration.models.ServerProperties - :ivar databases: List of databases on the server - :vartype databases: list[str] - :ivar validation_errors: Validation errors associated with the task - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'server_properties': {'readonly': True}, - 'databases': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'server_properties': {'key': 'serverProperties', 'type': 'ServerProperties'}, - 'databases': {'key': 'databases', 'type': '[str]'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToSourceNonSqlTaskOutput, self).__init__(**kwargs) - self.id = None - self.source_server_brand_version = None - self.server_properties = None - self.databases = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_input.py deleted file mode 100644 index 61b2536ce195..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_input.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ConnectToSourcePostgreSqlSyncTaskInput(Model): - """Input for the task that validates connection to PostgreSQL and source - server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - PostgreSQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourcePostgreSqlSyncTaskInput, 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_postgre_sql_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_input_py3.py deleted file mode 100644 index 69d222387451..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_input_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ConnectToSourcePostgreSqlSyncTaskInput(Model): - """Input for the task that validates connection to PostgreSQL and source - server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - PostgreSQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - } - - def __init__(self, *, source_connection_info, **kwargs) -> None: - super(ConnectToSourcePostgreSqlSyncTaskInput, 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_postgre_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_output.py deleted file mode 100644 index c370ad3d0c64..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_output.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToSourcePostgreSqlSyncTaskOutput(Model): - """Output for the task that validates connection to PostgreSQL and source - server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar source_server_version: Version of the source server - :vartype source_server_version: str - :ivar databases: List of databases 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 = { - 'id': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'databases': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - '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(ConnectToSourcePostgreSqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - 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_postgre_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_output_py3.py deleted file mode 100644 index a31d7a2d5989..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_output_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToSourcePostgreSqlSyncTaskOutput(Model): - """Output for the task that validates connection to PostgreSQL and source - server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar source_server_version: Version of the source server - :vartype source_server_version: str - :ivar databases: List of databases 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 = { - 'id': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'databases': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - '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(ConnectToSourcePostgreSqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - 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_postgre_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_properties.py deleted file mode 100644 index 82e669a50644..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to PostgreSQL server and - source server requirements for online migration. - - 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.ConnectToSourcePostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput] - """ - - _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': 'ConnectToSourcePostgreSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourcePostgreSqlSyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourcePostgreSqlSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToSource.PostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_properties_py3.py deleted file mode 100644 index b3b37ee22081..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_postgre_sql_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to PostgreSQL server and - source server requirements for online migration. - - 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.ConnectToSourcePostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput] - """ - - _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': 'ConnectToSourcePostgreSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourcePostgreSqlSyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToSourcePostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToSource.PostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties.py deleted file mode 100644 index 9c1e82e04835..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL Server and source - server requirements for online migration. - - 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.ConnectToSourceSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] - """ - - _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': 'ConnectToSourceSqlServerTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToSource.SqlServer.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties_py3.py deleted file mode 100644 index 3ca0d067a026..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL Server and source - server requirements for online migration. - - 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.ConnectToSourceSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] - """ - - _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': 'ConnectToSourceSqlServerTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToSourceSqlServerSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToSource.SqlServer.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py deleted file mode 100644 index 0cad7087dfa0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 ConnectToSourceSqlServerTaskInput(Model): - """Input for the task that validates connection to SQL Server and also - validates source server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for Source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param check_permissions_group: Permission group for validations. Possible - values include: 'Default', 'MigrationFromSqlServerToAzureDB', - 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - :type check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - :param collect_logins: Flag for whether to collect logins from source - server. Default value: False . - :type collect_logins: bool - :param collect_agent_jobs: Flag for whether to collect agent jobs from - source server. Default value: False . - :type collect_agent_jobs: bool - :param collect_tde_certificate_info: Flag for whether to collect TDE - Certificate names from source server. Default value: False . - :type collect_tde_certificate_info: bool - """ - - _validation = { - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, - 'collect_logins': {'key': 'collectLogins', 'type': 'bool'}, - 'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'}, - 'collect_tde_certificate_info': {'key': 'collectTdeCertificateInfo', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.check_permissions_group = kwargs.get('check_permissions_group', None) - self.collect_logins = kwargs.get('collect_logins', False) - self.collect_agent_jobs = kwargs.get('collect_agent_jobs', False) - self.collect_tde_certificate_info = kwargs.get('collect_tde_certificate_info', False) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py deleted file mode 100644 index 692831eebe73..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_input_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 ConnectToSourceSqlServerTaskInput(Model): - """Input for the task that validates connection to SQL Server and also - validates source server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for Source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param check_permissions_group: Permission group for validations. Possible - values include: 'Default', 'MigrationFromSqlServerToAzureDB', - 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - :type check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - :param collect_logins: Flag for whether to collect logins from source - server. Default value: False . - :type collect_logins: bool - :param collect_agent_jobs: Flag for whether to collect agent jobs from - source server. Default value: False . - :type collect_agent_jobs: bool - :param collect_tde_certificate_info: Flag for whether to collect TDE - Certificate names from source server. Default value: False . - :type collect_tde_certificate_info: bool - """ - - _validation = { - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'}, - 'collect_logins': {'key': 'collectLogins', 'type': 'bool'}, - 'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'}, - 'collect_tde_certificate_info': {'key': 'collectTdeCertificateInfo', 'type': 'bool'}, - } - - def __init__(self, *, source_connection_info, check_permissions_group=None, collect_logins: bool=False, collect_agent_jobs: bool=False, collect_tde_certificate_info: bool=False, **kwargs) -> None: - super(ConnectToSourceSqlServerTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.check_permissions_group = check_permissions_group - self.collect_logins = collect_logins - self.collect_agent_jobs = collect_agent_jobs - self.collect_tde_certificate_info = collect_tde_certificate_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py deleted file mode 100644 index 471833f6ee3b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 ConnectToSourceSqlServerTaskOutput(Model): - """Output for the task that validates connection to SQL Server and also - validates source server requirements. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ConnectToSourceSqlServerTaskOutputAgentJobLevel, - ConnectToSourceSqlServerTaskOutputLoginLevel, - ConnectToSourceSqlServerTaskOutputDatabaseLevel, - ConnectToSourceSqlServerTaskOutputTaskLevel - - 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': {'AgentJobLevelOutput': 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', 'LoginLevelOutput': 'ConnectToSourceSqlServerTaskOutputLoginLevel', 'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level.py deleted file mode 100644 index 5583f2046858..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTaskOutput): - """Agent Job level output for the task that validates connection to SQL Server - and also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Agent Job name - :vartype name: str - :ivar job_category: The type of Agent Job. - :vartype job_category: str - :ivar is_enabled: The state of the original Agent Job. - :vartype is_enabled: bool - :ivar job_owner: The owner of the Agent Job - :vartype job_owner: str - :ivar last_executed_on: UTC Date and time when the Agent Job was last - executed. - :vartype last_executed_on: datetime - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar migration_eligibility: Information about eligibility of agent job - for migration. - :vartype migration_eligibility: - ~azure.mgmt.datamigration.models.MigrationEligibilityInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'job_category': {'readonly': True}, - 'is_enabled': {'readonly': True}, - 'job_owner': {'readonly': True}, - 'last_executed_on': {'readonly': True}, - 'validation_errors': {'readonly': True}, - 'migration_eligibility': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'job_category': {'key': 'jobCategory', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'job_owner': {'key': 'jobOwner', 'type': 'str'}, - 'last_executed_on': {'key': 'lastExecutedOn', 'type': 'iso-8601'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerTaskOutputAgentJobLevel, self).__init__(**kwargs) - self.name = None - self.job_category = None - self.is_enabled = None - self.job_owner = None - self.last_executed_on = None - self.validation_errors = None - self.migration_eligibility = None - self.result_type = 'AgentJobLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level_py3.py deleted file mode 100644 index fc78c83aca6f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_agent_job_level_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output_py3 import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTaskOutput): - """Agent Job level output for the task that validates connection to SQL Server - and also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Agent Job name - :vartype name: str - :ivar job_category: The type of Agent Job. - :vartype job_category: str - :ivar is_enabled: The state of the original Agent Job. - :vartype is_enabled: bool - :ivar job_owner: The owner of the Agent Job - :vartype job_owner: str - :ivar last_executed_on: UTC Date and time when the Agent Job was last - executed. - :vartype last_executed_on: datetime - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar migration_eligibility: Information about eligibility of agent job - for migration. - :vartype migration_eligibility: - ~azure.mgmt.datamigration.models.MigrationEligibilityInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'job_category': {'readonly': True}, - 'is_enabled': {'readonly': True}, - 'job_owner': {'readonly': True}, - 'last_executed_on': {'readonly': True}, - 'validation_errors': {'readonly': True}, - 'migration_eligibility': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'job_category': {'key': 'jobCategory', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'job_owner': {'key': 'jobOwner', 'type': 'str'}, - 'last_executed_on': {'key': 'lastExecutedOn', 'type': 'iso-8601'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToSourceSqlServerTaskOutputAgentJobLevel, self).__init__(**kwargs) - self.name = None - self.job_category = None - self.is_enabled = None - self.job_owner = None - self.last_executed_on = None - self.validation_errors = None - self.migration_eligibility = None - self.result_type = 'AgentJobLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level.py deleted file mode 100644 index 7bb620e2d804..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputDatabaseLevel(ConnectToSourceSqlServerTaskOutput): - """Database level output for the task that validates connection to SQL Server - and also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Database name - :vartype name: str - :ivar size_mb: Size of the file in megabytes - :vartype size_mb: float - :ivar database_files: The list of database files - :vartype database_files: - list[~azure.mgmt.datamigration.models.DatabaseFileInfo] - :ivar compatibility_level: SQL Server compatibility level of database. - Possible values include: 'CompatLevel80', 'CompatLevel90', - 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', - 'CompatLevel140' - :vartype compatibility_level: str or - ~azure.mgmt.datamigration.models.DatabaseCompatLevel - :ivar database_state: State of the database. Possible values include: - 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', - 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' - :vartype database_state: str or - ~azure.mgmt.datamigration.models.DatabaseState - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'size_mb': {'readonly': True}, - 'database_files': {'readonly': True}, - 'compatibility_level': {'readonly': True}, - 'database_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInfo]'}, - 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, - 'database_state': {'key': 'databaseState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.name = None - self.size_mb = None - self.database_files = None - self.compatibility_level = None - self.database_state = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level_py3.py deleted file mode 100644 index 86308636fb90..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_database_level_py3.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output_py3 import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputDatabaseLevel(ConnectToSourceSqlServerTaskOutput): - """Database level output for the task that validates connection to SQL Server - and also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Database name - :vartype name: str - :ivar size_mb: Size of the file in megabytes - :vartype size_mb: float - :ivar database_files: The list of database files - :vartype database_files: - list[~azure.mgmt.datamigration.models.DatabaseFileInfo] - :ivar compatibility_level: SQL Server compatibility level of database. - Possible values include: 'CompatLevel80', 'CompatLevel90', - 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', - 'CompatLevel140' - :vartype compatibility_level: str or - ~azure.mgmt.datamigration.models.DatabaseCompatLevel - :ivar database_state: State of the database. Possible values include: - 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', - 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' - :vartype database_state: str or - ~azure.mgmt.datamigration.models.DatabaseState - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'size_mb': {'readonly': True}, - 'database_files': {'readonly': True}, - 'compatibility_level': {'readonly': True}, - 'database_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInfo]'}, - 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, - 'database_state': {'key': 'databaseState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToSourceSqlServerTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.name = None - self.size_mb = None - self.database_files = None - self.compatibility_level = None - self.database_state = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level.py deleted file mode 100644 index c155b4638ff5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): - """Login level output for the task that validates connection to SQL Server and - also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Login name. - :vartype name: str - :ivar login_type: The type of login. Possible values include: - 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', 'AsymmetricKey', - 'ExternalUser', 'ExternalGroup' - :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType - :ivar default_database: The default database for the login. - :vartype default_database: str - :ivar is_enabled: The state of the login. - :vartype is_enabled: bool - :ivar migration_eligibility: Information about eligibility of login for - migration. - :vartype migration_eligibility: - ~azure.mgmt.datamigration.models.MigrationEligibilityInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'login_type': {'readonly': True}, - 'default_database': {'readonly': True}, - 'is_enabled': {'readonly': True}, - 'migration_eligibility': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'login_type': {'key': 'loginType', 'type': 'str'}, - 'default_database': {'key': 'defaultDatabase', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerTaskOutputLoginLevel, self).__init__(**kwargs) - self.name = None - self.login_type = None - self.default_database = None - self.is_enabled = None - self.migration_eligibility = None - self.result_type = 'LoginLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level_py3.py deleted file mode 100644 index aeedd25a7f51..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_login_level_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output_py3 import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): - """Login level output for the task that validates connection to SQL Server and - also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Login name. - :vartype name: str - :ivar login_type: The type of login. Possible values include: - 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', 'AsymmetricKey', - 'ExternalUser', 'ExternalGroup' - :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType - :ivar default_database: The default database for the login. - :vartype default_database: str - :ivar is_enabled: The state of the login. - :vartype is_enabled: bool - :ivar migration_eligibility: Information about eligibility of login for - migration. - :vartype migration_eligibility: - ~azure.mgmt.datamigration.models.MigrationEligibilityInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'login_type': {'readonly': True}, - 'default_database': {'readonly': True}, - 'is_enabled': {'readonly': True}, - 'migration_eligibility': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'login_type': {'key': 'loginType', 'type': 'str'}, - 'default_database': {'key': 'defaultDatabase', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'migration_eligibility': {'key': 'migrationEligibility', 'type': 'MigrationEligibilityInfo'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToSourceSqlServerTaskOutputLoginLevel, self).__init__(**kwargs) - self.name = None - self.login_type = None - self.default_database = None - self.is_enabled = None - self.migration_eligibility = None - self.result_type = 'LoginLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py deleted file mode 100644 index c43bab371cf8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 ConnectToSourceSqlServerTaskOutput(Model): - """Output for the task that validates connection to SQL Server and also - validates source server requirements. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ConnectToSourceSqlServerTaskOutputAgentJobLevel, - ConnectToSourceSqlServerTaskOutputLoginLevel, - ConnectToSourceSqlServerTaskOutputDatabaseLevel, - ConnectToSourceSqlServerTaskOutputTaskLevel - - 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': {'AgentJobLevelOutput': 'ConnectToSourceSqlServerTaskOutputAgentJobLevel', 'LoginLevelOutput': 'ConnectToSourceSqlServerTaskOutputLoginLevel', 'DatabaseLevelOutput': 'ConnectToSourceSqlServerTaskOutputDatabaseLevel', 'TaskLevelOutput': 'ConnectToSourceSqlServerTaskOutputTaskLevel'} - } - - def __init__(self, **kwargs) -> None: - super(ConnectToSourceSqlServerTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py deleted file mode 100644 index 387bb04e7ab1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOutput): - """Task level output for the task that validates connection to SQL Server and - also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar databases: Source databases as a map from database name to database - id - :vartype databases: dict[str, str] - :ivar logins: Source logins as a map from login name to login id. - :vartype logins: dict[str, str] - :ivar agent_jobs: Source agent jobs as a map from agent job name to id. - :vartype agent_jobs: dict[str, str] - :ivar database_tde_certificate_mapping: Mapping from database name to TDE - certificate name, if applicable - :vartype database_tde_certificate_mapping: dict[str, str] - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'databases': {'readonly': True}, - 'logins': {'readonly': True}, - 'agent_jobs': {'readonly': True}, - 'database_tde_certificate_mapping': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'logins': {'key': 'logins', 'type': '{str}'}, - 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, - 'database_tde_certificate_mapping': {'key': 'databaseTdeCertificateMapping', 'type': '{str}'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerTaskOutputTaskLevel, self).__init__(**kwargs) - self.databases = None - self.logins = None - self.agent_jobs = None - self.database_tde_certificate_mapping = None - self.source_server_version = None - self.source_server_brand_version = None - self.validation_errors = None - self.result_type = 'TaskLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py deleted file mode 100644 index c5576f17315f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_output_task_level_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .connect_to_source_sql_server_task_output_py3 import ConnectToSourceSqlServerTaskOutput - - -class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOutput): - """Task level output for the task that validates connection to SQL Server and - also validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar databases: Source databases as a map from database name to database - id - :vartype databases: dict[str, str] - :ivar logins: Source logins as a map from login name to login id. - :vartype logins: dict[str, str] - :ivar agent_jobs: Source agent jobs as a map from agent job name to id. - :vartype agent_jobs: dict[str, str] - :ivar database_tde_certificate_mapping: Mapping from database name to TDE - certificate name, if applicable - :vartype database_tde_certificate_mapping: dict[str, str] - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'databases': {'readonly': True}, - 'logins': {'readonly': True}, - 'agent_jobs': {'readonly': True}, - 'database_tde_certificate_mapping': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'logins': {'key': 'logins', 'type': '{str}'}, - 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, - 'database_tde_certificate_mapping': {'key': 'databaseTdeCertificateMapping', 'type': '{str}'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToSourceSqlServerTaskOutputTaskLevel, self).__init__(**kwargs) - self.databases = None - self.logins = None - self.agent_jobs = None - self.database_tde_certificate_mapping = None - self.source_server_version = None - self.source_server_brand_version = None - self.validation_errors = None - self.result_type = 'TaskLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties.py deleted file mode 100644 index 277312e4fc09..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL Server and also - validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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.ConnectToSourceSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] - """ - - _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': 'ConnectToSourceSqlServerTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToSourceSqlServerTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToSource.SqlServer' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties_py3.py deleted file mode 100644 index abbd00feb229..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_source_sql_server_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL Server and also - validates source server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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.ConnectToSourceSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] - """ - - _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': 'ConnectToSourceSqlServerTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToSourceSqlServerTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToSource.SqlServer' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_input.py deleted file mode 100644 index 3a68faf64099..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_input.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetAzureDbForMySqlTaskInput(Model): - """Input for the task that validates connection to Azure Database for MySQL - and target server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - MySQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param target_connection_info: Required. Connection information for target - Azure Database for MySQL server - :type target_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetAzureDbForMySqlTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - 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_azure_db_for_my_sql_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_input_py3.py deleted file mode 100644 index e8c5c825fde4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_input_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetAzureDbForMySqlTaskInput(Model): - """Input for the task that validates connection to Azure Database for MySQL - and target server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - MySQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param target_connection_info: Required. Connection information for target - Azure Database for MySQL server - :type target_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: - super(ConnectToTargetAzureDbForMySqlTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_output.py deleted file mode 100644 index d8422e1ce711..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_output.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToTargetAzureDbForMySqlTaskOutput(Model): - """Output for the task that validates connection to Azure Database for MySQL - and target server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar server_version: Version of the target server - :vartype 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 = { - 'id': {'readonly': True}, - 'server_version': {'readonly': True}, - 'databases': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'server_version': {'key': 'serverVersion', '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(ConnectToTargetAzureDbForMySqlTaskOutput, self).__init__(**kwargs) - self.id = None - self.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_azure_db_for_my_sql_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_output_py3.py deleted file mode 100644 index 2d061985a741..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_output_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToTargetAzureDbForMySqlTaskOutput(Model): - """Output for the task that validates connection to Azure Database for MySQL - and target server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar server_version: Version of the target server - :vartype 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 = { - 'id': {'readonly': True}, - 'server_version': {'readonly': True}, - 'databases': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'server_version': {'key': 'serverVersion', '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(ConnectToTargetAzureDbForMySqlTaskOutput, self).__init__(**kwargs) - self.id = None - self.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_azure_db_for_my_sql_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_properties.py deleted file mode 100644 index 6fd2ef3d5cd7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure Database for - MySQL and target server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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.ConnectToTargetAzureDbForMySqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput] - """ - - _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': 'ConnectToTargetAzureDbForMySqlTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForMySqlTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetAzureDbForMySqlTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToTarget.AzureDbForMySql' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_properties_py3.py deleted file mode 100644 index b5a4cc60b297..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_my_sql_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure Database for - MySQL and target server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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.ConnectToTargetAzureDbForMySqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput] - """ - - _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': 'ConnectToTargetAzureDbForMySqlTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForMySqlTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToTargetAzureDbForMySqlTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToTarget.AzureDbForMySql' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_input.py deleted file mode 100644 index b078f2195ede..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_input.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(Model): - """Input for the task that validates connection to Azure Database for - PostgreSQL and target server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - PostgreSQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :param target_connection_info: Required. Connection information for target - Azure Database for PostgreSQL server - :type target_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - 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_azure_db_for_postgre_sql_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_input_py3.py deleted file mode 100644 index 742947c0b488..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_input_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(Model): - """Input for the task that validates connection to Azure Database for - PostgreSQL and target server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - PostgreSQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :param target_connection_info: Required. Connection information for target - Azure Database for PostgreSQL server - :type target_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: - super(ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_output.py deleted file mode 100644 index 29818187d99e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_output.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(Model): - """Output for the task that validates connection to Azure Database for - PostgreSQL and target server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :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 = { - 'id': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'databases': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - '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(ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - 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_azure_db_for_postgre_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_output_py3.py deleted file mode 100644 index 2551602600f8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_output_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(Model): - """Output for the task that validates connection to Azure Database for - PostgreSQL and target server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :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 = { - 'id': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'databases': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - '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(ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - 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_azure_db_for_postgre_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_properties.py deleted file mode 100644 index 9d99ef21a309..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure Database For - PostgreSQL server and target server requirements for online migration. - - 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.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput] - """ - - _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': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToTarget.AzureDbForPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_properties_py3.py deleted file mode 100644 index 9e152ed8018f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_azure_db_for_postgre_sql_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure Database For - PostgreSQL server and target server requirements for online migration. - - 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.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput] - """ - - _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': 'ConnectToTargetAzureDbForPostgreSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToTarget.AzureDbForPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_input.py deleted file mode 100644 index 1f61c5902a6e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_input.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ConnectToTargetSqlDbTaskInput(Model): - """Input for the task that validates connection to SQL DB and target server - requirements. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Connection information for target - SQL DB - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlDbTaskInput, 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_sql_db_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_input_py3.py deleted file mode 100644 index a0942411b68e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_input_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ConnectToTargetSqlDbTaskInput(Model): - """Input for the task that validates connection to SQL DB and target server - requirements. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Connection information for target - SQL DB - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, *, target_connection_info, **kwargs) -> None: - super(ConnectToTargetSqlDbTaskInput, 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_sql_db_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_output.py deleted file mode 100644 index 1162add8b2fe..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_output.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ConnectToTargetSqlDbTaskOutput(Model): - """Output for the task that validates connection to SQL DB and target server - requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar databases: Source databases as a map from database name to database - id - :vartype databases: dict[str, str] - :ivar target_server_version: Version of the target server - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - """ - - _validation = { - 'id': {'readonly': True}, - 'databases': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlDbTaskOutput, self).__init__(**kwargs) - self.id = None - self.databases = None - self.target_server_version = None - self.target_server_brand_version = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_output_py3.py deleted file mode 100644 index df0b53aeaaad..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_output_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ConnectToTargetSqlDbTaskOutput(Model): - """Output for the task that validates connection to SQL DB and target server - requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar databases: Source databases as a map from database name to database - id - :vartype databases: dict[str, str] - :ivar target_server_version: Version of the target server - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - """ - - _validation = { - 'id': {'readonly': True}, - 'databases': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToTargetSqlDbTaskOutput, self).__init__(**kwargs) - self.id = None - self.databases = None - self.target_server_version = None - self.target_server_brand_version = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties.py deleted file mode 100644 index 259644ad0a5f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL DB and target - server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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.ConnectToTargetSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] - """ - - _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': 'ConnectToTargetSqlDbTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlDbTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToTarget.SqlDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties_py3.py deleted file mode 100644 index dcfca46ef805..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_db_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL DB and target - server requirements. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar 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.ConnectToTargetSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] - """ - - _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': 'ConnectToTargetSqlDbTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToTargetSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToTarget.SqlDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input.py deleted file mode 100644 index 676621c605b8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetSqlMISyncTaskInput(Model): - """Input for the task that validates connection to Azure SQL Database Managed - Instance online scenario. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlMISyncTaskInput, self).__init__(**kwargs) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.azure_app = kwargs.get('azure_app', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input_py3.py deleted file mode 100644 index 2efa16b4022a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_input_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetSqlMISyncTaskInput(Model): - """Input for the task that validates connection to Azure SQL Database Managed - Instance online scenario. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, *, target_connection_info, azure_app, **kwargs) -> None: - super(ConnectToTargetSqlMISyncTaskInput, self).__init__(**kwargs) - self.target_connection_info = target_connection_info - self.azure_app = azure_app diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_output.py deleted file mode 100644 index 60b02e044cf0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_output.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 ConnectToTargetSqlMISyncTaskOutput(Model): - """Output for the task that validates connection to Azure SQL Database Managed - Instance. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlMISyncTaskOutput, self).__init__(**kwargs) - self.target_server_version = 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_sql_mi_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_output_py3.py deleted file mode 100644 index a6d29373f6a3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_output_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 ConnectToTargetSqlMISyncTaskOutput(Model): - """Output for the task that validates connection to Azure SQL Database Managed - Instance. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToTargetSqlMISyncTaskOutput, self).__init__(**kwargs) - self.target_server_version = 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_sql_mi_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties.py deleted file mode 100644 index 8e65375be210..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure SQL Database - Managed Instance. - - 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.ConnectToTargetSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput] - """ - - _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': 'ConnectToTargetSqlMISyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMISyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlMISyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToTarget.AzureSqlDbMI.Sync.LRS' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties_py3.py deleted file mode 100644 index 732d3e1feb08..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure SQL Database - Managed Instance. - - 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.ConnectToTargetSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput] - """ - - _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': 'ConnectToTargetSqlMISyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMISyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToTargetSqlMISyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToTarget.AzureSqlDbMI.Sync.LRS' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_input.py deleted file mode 100644 index 5c4a175938d9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_input.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ConnectToTargetSqlMITaskInput(Model): - """Input for the task that validates connection to Azure SQL Database Managed - Instance. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Connection information for target - SQL Server - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlMITaskInput, 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_sql_mi_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_input_py3.py deleted file mode 100644 index 873c751e9c5c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_input_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ConnectToTargetSqlMITaskInput(Model): - """Input for the task that validates connection to Azure SQL Database Managed - Instance. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Connection information for target - SQL Server - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, *, target_connection_info, **kwargs) -> None: - super(ConnectToTargetSqlMITaskInput, 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_sql_mi_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output.py deleted file mode 100644 index e57a86874315..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 ConnectToTargetSqlMITaskOutput(Model): - """Output for the task that validates connection to Azure SQL Database Managed - Instance. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar logins: List of logins on the target server. - :vartype logins: list[str] - :ivar agent_jobs: List of agent jobs on the target server. - :vartype agent_jobs: list[str] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'logins': {'readonly': True}, - 'agent_jobs': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'logins': {'key': 'logins', 'type': '[str]'}, - 'agent_jobs': {'key': 'agentJobs', 'type': '[str]'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlMITaskOutput, self).__init__(**kwargs) - self.id = None - self.target_server_version = None - self.target_server_brand_version = None - self.logins = None - self.agent_jobs = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py deleted file mode 100644 index 1bb59fabd44f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_output_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 ConnectToTargetSqlMITaskOutput(Model): - """Output for the task that validates connection to Azure SQL Database Managed - Instance. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar logins: List of logins on the target server. - :vartype logins: list[str] - :ivar agent_jobs: List of agent jobs on the target server. - :vartype agent_jobs: list[str] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'logins': {'readonly': True}, - 'agent_jobs': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'logins': {'key': 'logins', 'type': '[str]'}, - 'agent_jobs': {'key': 'agentJobs', 'type': '[str]'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(ConnectToTargetSqlMITaskOutput, self).__init__(**kwargs) - self.id = None - self.target_server_version = None - self.target_server_brand_version = None - self.logins = None - self.agent_jobs = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties.py deleted file mode 100644 index 9f276c183979..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlMITaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure SQL Database - Managed Instance. - - 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.ConnectToTargetSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput] - """ - - _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': 'ConnectToTargetSqlMITaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMITaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlMITaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToTarget.AzureSqlDbMI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties_py3.py deleted file mode 100644 index ec178b712772..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlMITaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure SQL Database - Managed Instance. - - 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.ConnectToTargetSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput] - """ - - _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': 'ConnectToTargetSqlMITaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlMITaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToTargetSqlMITaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToTarget.AzureSqlDbMI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_input.py deleted file mode 100644 index 625ee797c116..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_input.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetSqlSqlDbSyncTaskInput(Model): - """Input for the task that validates connection to Azure SQL DB and target - server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for target - SQL DB - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlSqlDbSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - 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_sql_sql_db_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_input_py3.py deleted file mode 100644 index ae6bbdaac350..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_input_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ConnectToTargetSqlSqlDbSyncTaskInput(Model): - """Input for the task that validates connection to Azure SQL DB and target - server requirements. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for target - SQL DB - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: - super(ConnectToTargetSqlSqlDbSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties.py deleted file mode 100644 index a5a4fe213383..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL DB and target - server requirements for online migration. - - 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.ConnectToTargetSqlSqlDbSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] - """ - - _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': 'ConnectToTargetSqlSqlDbSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ConnectToTargetSqlSqlDbSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ConnectToTarget.SqlDb.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties_py3.py deleted file mode 100644 index 6281a5bd3aaa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ConnectToTargetSqlSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL DB and target - server requirements for online migration. - - 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.ConnectToTargetSqlSqlDbSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] - """ - - _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': 'ConnectToTargetSqlSqlDbSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ConnectToTargetSqlDbTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ConnectToTargetSqlSqlDbSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ConnectToTarget.SqlDb.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 deleted file mode 100644 index ff8c5bb041ed..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 ConnectionInfo(Model): - """Defines the connection properties of a server. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MiSqlConnectionInfo, PostgreSqlConnectionInfo, - MySqlConnectionInfo, MongoDbConnectionInfo, SqlConnectionInfo - - 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 - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'type': {'MiSqlConnectionInfo': 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo': 'PostgreSqlConnectionInfo', 'MySqlConnectionInfo': 'MySqlConnectionInfo', 'MongoDbConnectionInfo': 'MongoDbConnectionInfo', 'SqlConnectionInfo': 'SqlConnectionInfo'} - } - - def __init__(self, **kwargs): - super(ConnectionInfo, self).__init__(**kwargs) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) - self.type = None 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 deleted file mode 100644 index d634cf8af560..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connection_info_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 ConnectionInfo(Model): - """Defines the connection properties of a server. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MiSqlConnectionInfo, PostgreSqlConnectionInfo, - MySqlConnectionInfo, MongoDbConnectionInfo, SqlConnectionInfo - - 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 - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'type': {'MiSqlConnectionInfo': 'MiSqlConnectionInfo', 'PostgreSqlConnectionInfo': 'PostgreSqlConnectionInfo', 'MySqlConnectionInfo': 'MySqlConnectionInfo', 'MongoDbConnectionInfo': 'MongoDbConnectionInfo', 'SqlConnectionInfo': 'SqlConnectionInfo'} - } - - def __init__(self, *, user_name: str=None, password: str=None, **kwargs) -> None: - super(ConnectionInfo, self).__init__(**kwargs) - self.user_name = user_name - self.password = password - self.type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result.py deleted file mode 100644 index 7b82ac28cc97..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 DataIntegrityValidationResult(Model): - """Results for checksum based Data Integrity validation results. - - :param failed_objects: List of failed table names of source and target - pair - :type failed_objects: dict[str, str] - :param validation_errors: List of errors that happened while performing - data integrity validation - :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - - _attribute_map = { - 'failed_objects': {'key': 'failedObjects', 'type': '{str}'}, - 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, - } - - def __init__(self, **kwargs): - super(DataIntegrityValidationResult, self).__init__(**kwargs) - self.failed_objects = kwargs.get('failed_objects', None) - self.validation_errors = kwargs.get('validation_errors', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result_py3.py deleted file mode 100644 index 026a2b642eb8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_integrity_validation_result_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 DataIntegrityValidationResult(Model): - """Results for checksum based Data Integrity validation results. - - :param failed_objects: List of failed table names of source and target - pair - :type failed_objects: dict[str, str] - :param validation_errors: List of errors that happened while performing - data integrity validation - :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - - _attribute_map = { - 'failed_objects': {'key': 'failedObjects', 'type': '{str}'}, - 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, - } - - def __init__(self, *, failed_objects=None, validation_errors=None, **kwargs) -> None: - super(DataIntegrityValidationResult, self).__init__(**kwargs) - self.failed_objects = failed_objects - self.validation_errors = validation_errors diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result.py deleted file mode 100644 index 6af5382bfe55..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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 DataItemMigrationSummaryResult(Model): - """Basic summary of a data item migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the item - :vartype name: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message - :vartype status_message: str - :ivar items_count: Number of items - :vartype items_count: long - :ivar items_completed_count: Number of successfully completed items - :vartype items_completed_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - """ - - _validation = { - 'name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'items_count': {'readonly': True}, - 'items_completed_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'items_count': {'key': 'itemsCount', 'type': 'long'}, - 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataItemMigrationSummaryResult, self).__init__(**kwargs) - self.name = None - self.started_on = None - self.ended_on = None - self.state = None - self.status_message = None - self.items_count = None - self.items_completed_count = None - self.error_prefix = None - self.result_prefix = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result_py3.py deleted file mode 100644 index f8bde53072b6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_item_migration_summary_result_py3.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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 DataItemMigrationSummaryResult(Model): - """Basic summary of a data item migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the item - :vartype name: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message - :vartype status_message: str - :ivar items_count: Number of items - :vartype items_count: long - :ivar items_completed_count: Number of successfully completed items - :vartype items_completed_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - """ - - _validation = { - 'name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'items_count': {'readonly': True}, - 'items_completed_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'items_count': {'key': 'itemsCount', 'type': 'long'}, - 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(DataItemMigrationSummaryResult, self).__init__(**kwargs) - self.name = None - self.started_on = None - self.ended_on = None - self.state = None - self.status_message = None - self.items_count = None - self.items_completed_count = None - self.error_prefix = None - self.result_prefix = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error.py deleted file mode 100644 index 110159c5b509..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 DataMigrationError(Model): - """Migration Task errors. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar message: Error description - :vartype message: str - :param type: Possible values include: 'Default', 'Warning', 'Error' - :type type: str or ~azure.mgmt.datamigration.models.ErrorType - """ - - _validation = { - 'message': {'readonly': True}, - } - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataMigrationError, self).__init__(**kwargs) - self.message = None - self.type = kwargs.get('type', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error_py3.py deleted file mode 100644 index 9cb1fa6fc5cb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_error_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 DataMigrationError(Model): - """Migration Task errors. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar message: Error description - :vartype message: str - :param type: Possible values include: 'Default', 'Warning', 'Error' - :type type: str or ~azure.mgmt.datamigration.models.ErrorType - """ - - _validation = { - 'message': {'readonly': True}, - } - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(DataMigrationError, self).__init__(**kwargs) - self.message = None - self.type = type diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata.py deleted file mode 100644 index d27aa73f38fa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 DataMigrationProjectMetadata(Model): - """Common metadata for migration projects. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar source_server_name: Source server name - :vartype source_server_name: str - :ivar source_server_port: Source server port number - :vartype source_server_port: str - :ivar source_username: Source username - :vartype source_username: str - :ivar target_server_name: Target server name - :vartype target_server_name: str - :ivar target_username: Target username - :vartype target_username: str - :ivar target_db_name: Target database name - :vartype target_db_name: str - :ivar target_using_win_auth: Whether target connection is Windows - authentication - :vartype target_using_win_auth: bool - :ivar selected_migration_tables: List of tables selected for migration - :vartype selected_migration_tables: - list[~azure.mgmt.datamigration.models.MigrationTableMetadata] - """ - - _validation = { - 'source_server_name': {'readonly': True}, - 'source_server_port': {'readonly': True}, - 'source_username': {'readonly': True}, - 'target_server_name': {'readonly': True}, - 'target_username': {'readonly': True}, - 'target_db_name': {'readonly': True}, - 'target_using_win_auth': {'readonly': True}, - 'selected_migration_tables': {'readonly': True}, - } - - _attribute_map = { - 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, - 'source_server_port': {'key': 'sourceServerPort', 'type': 'str'}, - 'source_username': {'key': 'sourceUsername', 'type': 'str'}, - 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, - 'target_username': {'key': 'targetUsername', 'type': 'str'}, - 'target_db_name': {'key': 'targetDbName', 'type': 'str'}, - 'target_using_win_auth': {'key': 'targetUsingWinAuth', 'type': 'bool'}, - 'selected_migration_tables': {'key': 'selectedMigrationTables', 'type': '[MigrationTableMetadata]'}, - } - - def __init__(self, **kwargs): - super(DataMigrationProjectMetadata, self).__init__(**kwargs) - self.source_server_name = None - self.source_server_port = None - self.source_username = None - self.target_server_name = None - self.target_username = None - self.target_db_name = None - self.target_using_win_auth = None - self.selected_migration_tables = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata_py3.py deleted file mode 100644 index 58a5c0dccd4c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_project_metadata_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 DataMigrationProjectMetadata(Model): - """Common metadata for migration projects. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar source_server_name: Source server name - :vartype source_server_name: str - :ivar source_server_port: Source server port number - :vartype source_server_port: str - :ivar source_username: Source username - :vartype source_username: str - :ivar target_server_name: Target server name - :vartype target_server_name: str - :ivar target_username: Target username - :vartype target_username: str - :ivar target_db_name: Target database name - :vartype target_db_name: str - :ivar target_using_win_auth: Whether target connection is Windows - authentication - :vartype target_using_win_auth: bool - :ivar selected_migration_tables: List of tables selected for migration - :vartype selected_migration_tables: - list[~azure.mgmt.datamigration.models.MigrationTableMetadata] - """ - - _validation = { - 'source_server_name': {'readonly': True}, - 'source_server_port': {'readonly': True}, - 'source_username': {'readonly': True}, - 'target_server_name': {'readonly': True}, - 'target_username': {'readonly': True}, - 'target_db_name': {'readonly': True}, - 'target_using_win_auth': {'readonly': True}, - 'selected_migration_tables': {'readonly': True}, - } - - _attribute_map = { - 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, - 'source_server_port': {'key': 'sourceServerPort', 'type': 'str'}, - 'source_username': {'key': 'sourceUsername', 'type': 'str'}, - 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, - 'target_username': {'key': 'targetUsername', 'type': 'str'}, - 'target_db_name': {'key': 'targetDbName', 'type': 'str'}, - 'target_using_win_auth': {'key': 'targetUsingWinAuth', 'type': 'bool'}, - 'selected_migration_tables': {'key': 'selectedMigrationTables', 'type': '[MigrationTableMetadata]'}, - } - - def __init__(self, **kwargs) -> None: - super(DataMigrationProjectMetadata, self).__init__(**kwargs) - self.source_server_name = None - self.source_server_port = None - self.source_username = None - self.target_server_name = None - self.target_username = None - self.target_db_name = None - self.target_using_win_auth = None - self.selected_migration_tables = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service.py deleted file mode 100644 index 9524dabd3b16..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service.py +++ /dev/null @@ -1,84 +0,0 @@ -# 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 .tracked_resource import TrackedResource - - -class DataMigrationService(TrackedResource): - """A Database Migration Service resource. - - 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: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. Resource location. - :type location: str - :param etag: HTTP strong entity tag value. Ignored if submitted - :type etag: str - :param kind: The resource kind. Only 'vm' (the default) is supported. - :type kind: str - :ivar provisioning_state: The resource's provisioning state. Possible - values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', - 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', - 'Failed' - :vartype provisioning_state: str or - ~azure.mgmt.datamigration.models.ServiceProvisioningState - :param public_key: The public key of the service, used to encrypt secrets - sent to the service - :type public_key: str - :param virtual_subnet_id: Required. The ID of the - Microsoft.Network/virtualNetworks/subnets resource to which the service - should be joined - :type virtual_subnet_id: str - :param sku: Service SKU - :type sku: ~azure.mgmt.datamigration.models.ServiceSku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'virtual_subnet_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, - 'virtual_subnet_id': {'key': 'properties.virtualSubnetId', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'ServiceSku'}, - } - - def __init__(self, **kwargs): - super(DataMigrationService, self).__init__(**kwargs) - self.etag = kwargs.get('etag', None) - self.kind = kwargs.get('kind', None) - self.provisioning_state = None - self.public_key = kwargs.get('public_key', None) - self.virtual_subnet_id = kwargs.get('virtual_subnet_id', None) - self.sku = kwargs.get('sku', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_paged.py deleted file mode 100644 index c49a03551cb3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class DataMigrationServicePaged(Paged): - """ - A paging container for iterating over a list of :class:`DataMigrationService ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DataMigrationService]'} - } - - def __init__(self, *args, **kwargs): - - super(DataMigrationServicePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_py3.py deleted file mode 100644 index 126c1bc99cce..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_py3.py +++ /dev/null @@ -1,84 +0,0 @@ -# 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 .tracked_resource_py3 import TrackedResource - - -class DataMigrationService(TrackedResource): - """A Database Migration Service resource. - - 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: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. Resource location. - :type location: str - :param etag: HTTP strong entity tag value. Ignored if submitted - :type etag: str - :param kind: The resource kind. Only 'vm' (the default) is supported. - :type kind: str - :ivar provisioning_state: The resource's provisioning state. Possible - values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', - 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', - 'Failed' - :vartype provisioning_state: str or - ~azure.mgmt.datamigration.models.ServiceProvisioningState - :param public_key: The public key of the service, used to encrypt secrets - sent to the service - :type public_key: str - :param virtual_subnet_id: Required. The ID of the - Microsoft.Network/virtualNetworks/subnets resource to which the service - should be joined - :type virtual_subnet_id: str - :param sku: Service SKU - :type sku: ~azure.mgmt.datamigration.models.ServiceSku - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'virtual_subnet_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, - 'virtual_subnet_id': {'key': 'properties.virtualSubnetId', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'ServiceSku'}, - } - - def __init__(self, *, location: str, virtual_subnet_id: str, tags=None, etag: str=None, kind: str=None, public_key: str=None, sku=None, **kwargs) -> None: - super(DataMigrationService, self).__init__(tags=tags, location=location, **kwargs) - self.etag = etag - self.kind = kind - self.provisioning_state = None - self.public_key = public_key - self.virtual_subnet_id = virtual_subnet_id - self.sku = sku diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response.py deleted file mode 100644 index 5e8eb867051a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 DataMigrationServiceStatusResponse(Model): - """Service health status. - - :param agent_version: The DMS instance agent version - :type agent_version: str - :param status: The machine-readable status, such as 'Initializing', - 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', - 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed' - :type status: str - :param vm_size: The services virtual machine size, such as - 'Standard_D2_v2' - :type vm_size: str - :param supported_task_types: The list of supported task types - :type supported_task_types: list[str] - """ - - _attribute_map = { - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'supported_task_types': {'key': 'supportedTaskTypes', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(DataMigrationServiceStatusResponse, self).__init__(**kwargs) - self.agent_version = kwargs.get('agent_version', None) - self.status = kwargs.get('status', None) - self.vm_size = kwargs.get('vm_size', None) - self.supported_task_types = kwargs.get('supported_task_types', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response_py3.py deleted file mode 100644 index ada02bdc6b32..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/data_migration_service_status_response_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 DataMigrationServiceStatusResponse(Model): - """Service health status. - - :param agent_version: The DMS instance agent version - :type agent_version: str - :param status: The machine-readable status, such as 'Initializing', - 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', - 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed' - :type status: str - :param vm_size: The services virtual machine size, such as - 'Standard_D2_v2' - :type vm_size: str - :param supported_task_types: The list of supported task types - :type supported_task_types: list[str] - """ - - _attribute_map = { - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'supported_task_types': {'key': 'supportedTaskTypes', 'type': '[str]'}, - } - - def __init__(self, *, agent_version: str=None, status: str=None, vm_size: str=None, supported_task_types=None, **kwargs) -> None: - super(DataMigrationServiceStatusResponse, self).__init__(**kwargs) - self.agent_version = agent_version - self.status = status - self.vm_size = vm_size - self.supported_task_types = supported_task_types diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database.py deleted file mode 100644 index 527ea44ee80c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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 Database(Model): - """Information about a single database. - - :param id: Unique identifier for the database - :type id: str - :param name: Name of the database - :type name: str - :param compatibility_level: SQL Server compatibility level of database. - Possible values include: 'CompatLevel80', 'CompatLevel90', - 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', - 'CompatLevel140' - :type compatibility_level: str or - ~azure.mgmt.datamigration.models.DatabaseCompatLevel - :param collation: Collation name of the database - :type collation: str - :param server_name: Name of the server - :type server_name: str - :param fqdn: Fully qualified name - :type fqdn: str - :param install_id: Install id of the database - :type install_id: str - :param server_version: Version of the server - :type server_version: str - :param server_edition: Edition of the server - :type server_edition: str - :param server_level: Product level of the server (RTM, SP, CTP). - :type server_level: str - :param server_default_data_path: Default path of the data files - :type server_default_data_path: str - :param server_default_log_path: Default path of the log files - :type server_default_log_path: str - :param server_default_backup_path: Default path of the backup folder - :type server_default_backup_path: str - :param server_core_count: Number of cores on the server - :type server_core_count: int - :param server_visible_online_core_count: Number of cores on the server - that have VISIBLE ONLINE status - :type server_visible_online_core_count: int - :param database_state: State of the database. Possible values include: - 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', - 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' - :type database_state: str or - ~azure.mgmt.datamigration.models.DatabaseState - :param server_id: The unique Server Id - :type server_id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, - 'collation': {'key': 'collation', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'fqdn': {'key': 'fqdn', 'type': 'str'}, - 'install_id': {'key': 'installId', 'type': 'str'}, - 'server_version': {'key': 'serverVersion', 'type': 'str'}, - 'server_edition': {'key': 'serverEdition', 'type': 'str'}, - 'server_level': {'key': 'serverLevel', 'type': 'str'}, - 'server_default_data_path': {'key': 'serverDefaultDataPath', 'type': 'str'}, - 'server_default_log_path': {'key': 'serverDefaultLogPath', 'type': 'str'}, - 'server_default_backup_path': {'key': 'serverDefaultBackupPath', 'type': 'str'}, - 'server_core_count': {'key': 'serverCoreCount', 'type': 'int'}, - 'server_visible_online_core_count': {'key': 'serverVisibleOnlineCoreCount', 'type': 'int'}, - 'database_state': {'key': 'databaseState', 'type': 'str'}, - 'server_id': {'key': 'serverId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Database, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.compatibility_level = kwargs.get('compatibility_level', None) - self.collation = kwargs.get('collation', None) - self.server_name = kwargs.get('server_name', None) - self.fqdn = kwargs.get('fqdn', None) - self.install_id = kwargs.get('install_id', None) - self.server_version = kwargs.get('server_version', None) - self.server_edition = kwargs.get('server_edition', None) - self.server_level = kwargs.get('server_level', None) - self.server_default_data_path = kwargs.get('server_default_data_path', None) - self.server_default_log_path = kwargs.get('server_default_log_path', None) - self.server_default_backup_path = kwargs.get('server_default_backup_path', None) - self.server_core_count = kwargs.get('server_core_count', None) - self.server_visible_online_core_count = kwargs.get('server_visible_online_core_count', None) - self.database_state = kwargs.get('database_state', None) - self.server_id = kwargs.get('server_id', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info.py deleted file mode 100644 index 781fd1c8aef8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 DatabaseBackupInfo(Model): - """Information about backup files when existing backup mode is used. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar database_name: Database name. - :vartype database_name: str - :ivar backup_type: Backup Type. Possible values include: 'Database', - 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', - 'Partial', 'DifferentialPartial' - :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType - :ivar backup_files: The list of backup files for the current database. - :vartype backup_files: list[str] - :ivar position: Position of current database backup in the file. - :vartype position: int - :ivar is_damaged: Database was damaged when backed up, but the backup - operation was requested to continue despite errors. - :vartype is_damaged: bool - :ivar is_compressed: Whether the backup set is compressed - :vartype is_compressed: bool - :ivar family_count: Number of files in the backup set. - :vartype family_count: int - :ivar backup_finish_date: Date and time when the backup operation - finished. - :vartype backup_finish_date: datetime - """ - - _validation = { - 'database_name': {'readonly': True}, - 'backup_type': {'readonly': True}, - 'backup_files': {'readonly': True}, - 'position': {'readonly': True}, - 'is_damaged': {'readonly': True}, - 'is_compressed': {'readonly': True}, - 'family_count': {'readonly': True}, - 'backup_finish_date': {'readonly': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'backup_files': {'key': 'backupFiles', 'type': '[str]'}, - 'position': {'key': 'position', 'type': 'int'}, - 'is_damaged': {'key': 'isDamaged', 'type': 'bool'}, - 'is_compressed': {'key': 'isCompressed', 'type': 'bool'}, - 'family_count': {'key': 'familyCount', 'type': 'int'}, - 'backup_finish_date': {'key': 'backupFinishDate', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(DatabaseBackupInfo, self).__init__(**kwargs) - self.database_name = None - self.backup_type = None - self.backup_files = None - self.position = None - self.is_damaged = None - self.is_compressed = None - self.family_count = None - self.backup_finish_date = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info_py3.py deleted file mode 100644 index dc4cb2780f2b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_backup_info_py3.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 DatabaseBackupInfo(Model): - """Information about backup files when existing backup mode is used. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar database_name: Database name. - :vartype database_name: str - :ivar backup_type: Backup Type. Possible values include: 'Database', - 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', - 'Partial', 'DifferentialPartial' - :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType - :ivar backup_files: The list of backup files for the current database. - :vartype backup_files: list[str] - :ivar position: Position of current database backup in the file. - :vartype position: int - :ivar is_damaged: Database was damaged when backed up, but the backup - operation was requested to continue despite errors. - :vartype is_damaged: bool - :ivar is_compressed: Whether the backup set is compressed - :vartype is_compressed: bool - :ivar family_count: Number of files in the backup set. - :vartype family_count: int - :ivar backup_finish_date: Date and time when the backup operation - finished. - :vartype backup_finish_date: datetime - """ - - _validation = { - 'database_name': {'readonly': True}, - 'backup_type': {'readonly': True}, - 'backup_files': {'readonly': True}, - 'position': {'readonly': True}, - 'is_damaged': {'readonly': True}, - 'is_compressed': {'readonly': True}, - 'family_count': {'readonly': True}, - 'backup_finish_date': {'readonly': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'backup_files': {'key': 'backupFiles', 'type': '[str]'}, - 'position': {'key': 'position', 'type': 'int'}, - 'is_damaged': {'key': 'isDamaged', 'type': 'bool'}, - 'is_compressed': {'key': 'isCompressed', 'type': 'bool'}, - 'family_count': {'key': 'familyCount', 'type': 'int'}, - 'backup_finish_date': {'key': 'backupFinishDate', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs) -> None: - super(DatabaseBackupInfo, self).__init__(**kwargs) - self.database_name = None - self.backup_type = None - self.backup_files = None - self.position = None - self.is_damaged = None - self.is_compressed = None - self.family_count = None - self.backup_finish_date = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info.py deleted file mode 100644 index f55c195ce18d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 DatabaseFileInfo(Model): - """Database file specific information. - - :param database_name: Name of the database - :type database_name: str - :param id: Unique identifier for database file - :type id: str - :param logical_name: Logical name of the file - :type logical_name: str - :param physical_full_name: Operating-system full path of the file - :type physical_full_name: str - :param restore_full_name: Suggested full path of the file for restoring - :type restore_full_name: str - :param file_type: Database file type. Possible values include: 'Rows', - 'Log', 'Filestream', 'NotSupported', 'Fulltext' - :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - :param size_mb: Size of the file in megabytes - :type size_mb: float - """ - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, - 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, - 'file_type': {'key': 'fileType', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - } - - def __init__(self, **kwargs): - super(DatabaseFileInfo, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.id = kwargs.get('id', None) - self.logical_name = kwargs.get('logical_name', None) - self.physical_full_name = kwargs.get('physical_full_name', None) - self.restore_full_name = kwargs.get('restore_full_name', None) - self.file_type = kwargs.get('file_type', None) - self.size_mb = kwargs.get('size_mb', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info_py3.py deleted file mode 100644 index 9879b051ffef..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_info_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 DatabaseFileInfo(Model): - """Database file specific information. - - :param database_name: Name of the database - :type database_name: str - :param id: Unique identifier for database file - :type id: str - :param logical_name: Logical name of the file - :type logical_name: str - :param physical_full_name: Operating-system full path of the file - :type physical_full_name: str - :param restore_full_name: Suggested full path of the file for restoring - :type restore_full_name: str - :param file_type: Database file type. Possible values include: 'Rows', - 'Log', 'Filestream', 'NotSupported', 'Fulltext' - :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - :param size_mb: Size of the file in megabytes - :type size_mb: float - """ - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, - 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, - 'file_type': {'key': 'fileType', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - } - - def __init__(self, *, database_name: str=None, id: str=None, logical_name: str=None, physical_full_name: str=None, restore_full_name: str=None, file_type=None, size_mb: float=None, **kwargs) -> None: - super(DatabaseFileInfo, self).__init__(**kwargs) - self.database_name = database_name - self.id = id - self.logical_name = logical_name - self.physical_full_name = physical_full_name - self.restore_full_name = restore_full_name - self.file_type = file_type - self.size_mb = size_mb diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input.py deleted file mode 100644 index 68a466d49582..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 DatabaseFileInput(Model): - """Database file specific information for input. - - :param id: Unique identifier for database file - :type id: str - :param logical_name: Logical name of the file - :type logical_name: str - :param physical_full_name: Operating-system full path of the file - :type physical_full_name: str - :param restore_full_name: Suggested full path of the file for restoring - :type restore_full_name: str - :param file_type: Database file type. Possible values include: 'Rows', - 'Log', 'Filestream', 'NotSupported', 'Fulltext' - :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, - 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, - 'file_type': {'key': 'fileType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DatabaseFileInput, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.logical_name = kwargs.get('logical_name', None) - self.physical_full_name = kwargs.get('physical_full_name', None) - self.restore_full_name = kwargs.get('restore_full_name', None) - self.file_type = kwargs.get('file_type', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input_py3.py deleted file mode 100644 index 73cfc26cc4b5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_file_input_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 DatabaseFileInput(Model): - """Database file specific information for input. - - :param id: Unique identifier for database file - :type id: str - :param logical_name: Logical name of the file - :type logical_name: str - :param physical_full_name: Operating-system full path of the file - :type physical_full_name: str - :param restore_full_name: Suggested full path of the file for restoring - :type restore_full_name: str - :param file_type: Database file type. Possible values include: 'Rows', - 'Log', 'Filestream', 'NotSupported', 'Fulltext' - :type file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - 'physical_full_name': {'key': 'physicalFullName', 'type': 'str'}, - 'restore_full_name': {'key': 'restoreFullName', 'type': 'str'}, - 'file_type': {'key': 'fileType', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, logical_name: str=None, physical_full_name: str=None, restore_full_name: str=None, file_type=None, **kwargs) -> None: - super(DatabaseFileInput, self).__init__(**kwargs) - self.id = id - self.logical_name = logical_name - self.physical_full_name = physical_full_name - self.restore_full_name = restore_full_name - self.file_type = file_type diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info.py deleted file mode 100644 index 128f2f30e39f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 DatabaseInfo(Model): - """Project Database Details. - - All required parameters must be populated in order to send to Azure. - - :param source_database_name: Required. Name of the database - :type source_database_name: str - """ - - _validation = { - 'source_database_name': {'required': True}, - } - - _attribute_map = { - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DatabaseInfo, self).__init__(**kwargs) - self.source_database_name = kwargs.get('source_database_name', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info_py3.py deleted file mode 100644 index 341deb01bd43..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_info_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 DatabaseInfo(Model): - """Project Database Details. - - All required parameters must be populated in order to send to Azure. - - :param source_database_name: Required. Name of the database - :type source_database_name: str - """ - - _validation = { - 'source_database_name': {'required': True}, - } - - _attribute_map = { - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - } - - def __init__(self, *, source_database_name: str, **kwargs) -> None: - super(DatabaseInfo, self).__init__(**kwargs) - self.source_database_name = source_database_name diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name.py deleted file mode 100644 index 757e36ad70a5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 DatabaseObjectName(Model): - """A representation of the name of an object in a database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar database_name: The unescaped name of the database containing the - object - :vartype database_name: str - :ivar object_name: The unescaped name of the object - :vartype object_name: str - :ivar schema_name: The unescaped name of the schema containing the object - :vartype schema_name: str - :param object_type: Type of the object in the database. Possible values - include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' - :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType - """ - - _validation = { - 'database_name': {'readonly': True}, - 'object_name': {'readonly': True}, - 'schema_name': {'readonly': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DatabaseObjectName, self).__init__(**kwargs) - self.database_name = None - self.object_name = None - self.schema_name = None - self.object_type = kwargs.get('object_type', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name_py3.py deleted file mode 100644 index 861f8a3bdf74..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_object_name_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 DatabaseObjectName(Model): - """A representation of the name of an object in a database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar database_name: The unescaped name of the database containing the - object - :vartype database_name: str - :ivar object_name: The unescaped name of the object - :vartype object_name: str - :ivar schema_name: The unescaped name of the schema containing the object - :vartype schema_name: str - :param object_type: Type of the object in the database. Possible values - include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' - :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType - """ - - _validation = { - 'database_name': {'readonly': True}, - 'object_name': {'readonly': True}, - 'schema_name': {'readonly': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - def __init__(self, *, object_type=None, **kwargs) -> None: - super(DatabaseObjectName, self).__init__(**kwargs) - self.database_name = None - self.object_name = None - self.schema_name = None - self.object_type = object_type diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_py3.py deleted file mode 100644 index 4f11b4f238c7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_py3.py +++ /dev/null @@ -1,100 +0,0 @@ -# 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 Database(Model): - """Information about a single database. - - :param id: Unique identifier for the database - :type id: str - :param name: Name of the database - :type name: str - :param compatibility_level: SQL Server compatibility level of database. - Possible values include: 'CompatLevel80', 'CompatLevel90', - 'CompatLevel100', 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', - 'CompatLevel140' - :type compatibility_level: str or - ~azure.mgmt.datamigration.models.DatabaseCompatLevel - :param collation: Collation name of the database - :type collation: str - :param server_name: Name of the server - :type server_name: str - :param fqdn: Fully qualified name - :type fqdn: str - :param install_id: Install id of the database - :type install_id: str - :param server_version: Version of the server - :type server_version: str - :param server_edition: Edition of the server - :type server_edition: str - :param server_level: Product level of the server (RTM, SP, CTP). - :type server_level: str - :param server_default_data_path: Default path of the data files - :type server_default_data_path: str - :param server_default_log_path: Default path of the log files - :type server_default_log_path: str - :param server_default_backup_path: Default path of the backup folder - :type server_default_backup_path: str - :param server_core_count: Number of cores on the server - :type server_core_count: int - :param server_visible_online_core_count: Number of cores on the server - that have VISIBLE ONLINE status - :type server_visible_online_core_count: int - :param database_state: State of the database. Possible values include: - 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', - 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' - :type database_state: str or - ~azure.mgmt.datamigration.models.DatabaseState - :param server_id: The unique Server Id - :type server_id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'str'}, - 'collation': {'key': 'collation', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'fqdn': {'key': 'fqdn', 'type': 'str'}, - 'install_id': {'key': 'installId', 'type': 'str'}, - 'server_version': {'key': 'serverVersion', 'type': 'str'}, - 'server_edition': {'key': 'serverEdition', 'type': 'str'}, - 'server_level': {'key': 'serverLevel', 'type': 'str'}, - 'server_default_data_path': {'key': 'serverDefaultDataPath', 'type': 'str'}, - 'server_default_log_path': {'key': 'serverDefaultLogPath', 'type': 'str'}, - 'server_default_backup_path': {'key': 'serverDefaultBackupPath', 'type': 'str'}, - 'server_core_count': {'key': 'serverCoreCount', 'type': 'int'}, - 'server_visible_online_core_count': {'key': 'serverVisibleOnlineCoreCount', 'type': 'int'}, - 'database_state': {'key': 'databaseState', 'type': 'str'}, - 'server_id': {'key': 'serverId', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, name: str=None, compatibility_level=None, collation: str=None, server_name: str=None, fqdn: str=None, install_id: str=None, server_version: str=None, server_edition: str=None, server_level: str=None, server_default_data_path: str=None, server_default_log_path: str=None, server_default_backup_path: str=None, server_core_count: int=None, server_visible_online_core_count: int=None, database_state=None, server_id: str=None, **kwargs) -> None: - super(Database, self).__init__(**kwargs) - self.id = id - self.name = name - self.compatibility_level = compatibility_level - self.collation = collation - self.server_name = server_name - self.fqdn = fqdn - self.install_id = install_id - self.server_version = server_version - self.server_edition = server_edition - self.server_level = server_level - self.server_default_data_path = server_default_data_path - self.server_default_log_path = server_default_log_path - self.server_default_backup_path = server_default_backup_path - self.server_core_count = server_core_count - self.server_visible_online_core_count = server_visible_online_core_count - self.database_state = database_state - self.server_id = server_id diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result.py deleted file mode 100644 index 4c518d5d0ac1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .data_item_migration_summary_result import DataItemMigrationSummaryResult - - -class DatabaseSummaryResult(DataItemMigrationSummaryResult): - """Summary of database results in the migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the item - :vartype name: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message - :vartype status_message: str - :ivar items_count: Number of items - :vartype items_count: long - :ivar items_completed_count: Number of successfully completed items - :vartype items_completed_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - :ivar size_mb: Size of the database in megabytes - :vartype size_mb: float - """ - - _validation = { - 'name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'items_count': {'readonly': True}, - 'items_completed_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - 'size_mb': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'items_count': {'key': 'itemsCount', 'type': 'long'}, - 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - } - - def __init__(self, **kwargs): - super(DatabaseSummaryResult, self).__init__(**kwargs) - self.size_mb = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result_py3.py deleted file mode 100644 index 57212a73673f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_summary_result_py3.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .data_item_migration_summary_result_py3 import DataItemMigrationSummaryResult - - -class DatabaseSummaryResult(DataItemMigrationSummaryResult): - """Summary of database results in the migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of the item - :vartype name: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message - :vartype status_message: str - :ivar items_count: Number of items - :vartype items_count: long - :ivar items_completed_count: Number of successfully completed items - :vartype items_completed_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - :ivar size_mb: Size of the database in megabytes - :vartype size_mb: float - """ - - _validation = { - 'name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'items_count': {'readonly': True}, - 'items_completed_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - 'size_mb': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'items_count': {'key': 'itemsCount', 'type': 'long'}, - 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - } - - def __init__(self, **kwargs) -> None: - super(DatabaseSummaryResult, self).__init__(**kwargs) - self.size_mb = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table.py deleted file mode 100644 index 49b0f9b53564..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 DatabaseTable(Model): - """Table properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar has_rows: Indicates whether table is empty or not - :vartype has_rows: bool - :ivar name: Schema-qualified name of the table - :vartype name: str - """ - - _validation = { - 'has_rows': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'has_rows': {'key': 'hasRows', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DatabaseTable, self).__init__(**kwargs) - self.has_rows = None - self.name = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table_py3.py deleted file mode 100644 index 91c16bad47fd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/database_table_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 DatabaseTable(Model): - """Table properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar has_rows: Indicates whether table is empty or not - :vartype has_rows: bool - :ivar name: Schema-qualified name of the table - :vartype name: str - """ - - _validation = { - 'has_rows': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'has_rows': {'key': 'hasRows', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(DatabaseTable, self).__init__(**kwargs) - self.has_rows = None - self.name = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics.py deleted file mode 100644 index eb2c318820a1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 ExecutionStatistics(Model): - """Description about the errors happen while performing migration validation. - - :param execution_count: No. of query executions - :type execution_count: long - :param cpu_time_ms: CPU Time in millisecond(s) for the query execution - :type cpu_time_ms: float - :param elapsed_time_ms: Time taken in millisecond(s) for executing the - query - :type elapsed_time_ms: float - :param wait_stats: Dictionary of sql query execution wait types and the - respective statistics - :type wait_stats: dict[str, - ~azure.mgmt.datamigration.models.WaitStatistics] - :param has_errors: Indicates whether the query resulted in an error - :type has_errors: bool - :param sql_errors: List of sql Errors - :type sql_errors: list[str] - """ - - _attribute_map = { - 'execution_count': {'key': 'executionCount', 'type': 'long'}, - 'cpu_time_ms': {'key': 'cpuTimeMs', 'type': 'float'}, - 'elapsed_time_ms': {'key': 'elapsedTimeMs', 'type': 'float'}, - 'wait_stats': {'key': 'waitStats', 'type': '{WaitStatistics}'}, - 'has_errors': {'key': 'hasErrors', 'type': 'bool'}, - 'sql_errors': {'key': 'sqlErrors', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(ExecutionStatistics, self).__init__(**kwargs) - self.execution_count = kwargs.get('execution_count', None) - self.cpu_time_ms = kwargs.get('cpu_time_ms', None) - self.elapsed_time_ms = kwargs.get('elapsed_time_ms', None) - self.wait_stats = kwargs.get('wait_stats', None) - self.has_errors = kwargs.get('has_errors', None) - self.sql_errors = kwargs.get('sql_errors', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics_py3.py deleted file mode 100644 index 7fefb7275b2a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/execution_statistics_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 ExecutionStatistics(Model): - """Description about the errors happen while performing migration validation. - - :param execution_count: No. of query executions - :type execution_count: long - :param cpu_time_ms: CPU Time in millisecond(s) for the query execution - :type cpu_time_ms: float - :param elapsed_time_ms: Time taken in millisecond(s) for executing the - query - :type elapsed_time_ms: float - :param wait_stats: Dictionary of sql query execution wait types and the - respective statistics - :type wait_stats: dict[str, - ~azure.mgmt.datamigration.models.WaitStatistics] - :param has_errors: Indicates whether the query resulted in an error - :type has_errors: bool - :param sql_errors: List of sql Errors - :type sql_errors: list[str] - """ - - _attribute_map = { - 'execution_count': {'key': 'executionCount', 'type': 'long'}, - 'cpu_time_ms': {'key': 'cpuTimeMs', 'type': 'float'}, - 'elapsed_time_ms': {'key': 'elapsedTimeMs', 'type': 'float'}, - 'wait_stats': {'key': 'waitStats', 'type': '{WaitStatistics}'}, - 'has_errors': {'key': 'hasErrors', 'type': 'bool'}, - 'sql_errors': {'key': 'sqlErrors', 'type': '[str]'}, - } - - def __init__(self, *, execution_count: int=None, cpu_time_ms: float=None, elapsed_time_ms: float=None, wait_stats=None, has_errors: bool=None, sql_errors=None, **kwargs) -> None: - super(ExecutionStatistics, self).__init__(**kwargs) - self.execution_count = execution_count - self.cpu_time_ms = cpu_time_ms - self.elapsed_time_ms = elapsed_time_ms - self.wait_stats = wait_stats - self.has_errors = has_errors - self.sql_errors = sql_errors diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share.py deleted file mode 100644 index f4d93db98ac5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 FileShare(Model): - """File share information with Path, Username, and Password. - - All required parameters must be populated in order to send to Azure. - - :param user_name: User name credential to connect to the share location - :type user_name: str - :param password: Password credential used to connect to the share - location. - :type password: str - :param path: Required. The folder path for this share. - :type path: str - """ - - _validation = { - 'path': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FileShare, self).__init__(**kwargs) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) - self.path = kwargs.get('path', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share_py3.py deleted file mode 100644 index 9493f08804fd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_share_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 FileShare(Model): - """File share information with Path, Username, and Password. - - All required parameters must be populated in order to send to Azure. - - :param user_name: User name credential to connect to the share location - :type user_name: str - :param password: Password credential used to connect to the share - location. - :type password: str - :param path: Required. The folder path for this share. - :type path: str - """ - - _validation = { - 'path': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - } - - def __init__(self, *, path: str, user_name: str=None, password: str=None, **kwargs) -> None: - super(FileShare, self).__init__(**kwargs) - self.user_name = user_name - self.password = password - self.path = path diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info.py deleted file mode 100644 index 2572d7ba461b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 FileStorageInfo(Model): - """File storage information. - - :param uri: A URI that can be used to access the file content. - :type uri: str - :param headers: - :type headers: dict[str, str] - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(FileStorageInfo, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.headers = kwargs.get('headers', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info_py3.py deleted file mode 100644 index c5723ce48949..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/file_storage_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 FileStorageInfo(Model): - """File storage information. - - :param uri: A URI that can be used to access the file content. - :type uri: str - :param headers: - :type headers: dict[str, str] - """ - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '{str}'}, - } - - def __init__(self, *, uri: str=None, headers=None, **kwargs) -> None: - super(FileStorageInfo, self).__init__(**kwargs) - self.uri = uri - self.headers = headers diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input.py deleted file mode 100644 index e1ff11953a80..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 GetProjectDetailsNonSqlTaskInput(Model): - """Input for the task that reads configuration from project artifacts. - - All required parameters must be populated in order to send to Azure. - - :param project_name: Required. Name of the migration project - :type project_name: str - :param project_location: Required. A URL that points to the location to - access project artifacts - :type project_location: str - """ - - _validation = { - 'project_name': {'required': True}, - 'project_location': {'required': True}, - } - - _attribute_map = { - 'project_name': {'key': 'projectName', 'type': 'str'}, - 'project_location': {'key': 'projectLocation', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GetProjectDetailsNonSqlTaskInput, self).__init__(**kwargs) - self.project_name = kwargs.get('project_name', None) - self.project_location = kwargs.get('project_location', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input_py3.py deleted file mode 100644 index 0c7ded3b33fb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_project_details_non_sql_task_input_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 GetProjectDetailsNonSqlTaskInput(Model): - """Input for the task that reads configuration from project artifacts. - - All required parameters must be populated in order to send to Azure. - - :param project_name: Required. Name of the migration project - :type project_name: str - :param project_location: Required. A URL that points to the location to - access project artifacts - :type project_location: str - """ - - _validation = { - 'project_name': {'required': True}, - 'project_location': {'required': True}, - } - - _attribute_map = { - 'project_name': {'key': 'projectName', 'type': 'str'}, - 'project_location': {'key': 'projectLocation', 'type': 'str'}, - } - - def __init__(self, *, project_name: str, project_location: str, **kwargs) -> None: - super(GetProjectDetailsNonSqlTaskInput, self).__init__(**kwargs) - self.project_name = project_name - self.project_location = project_location diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input.py deleted file mode 100644 index 9234e8617bd7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 GetTdeCertificatesSqlTaskInput(Model): - """Input for the task that gets TDE certificates in Base64 encoded format. - - All required parameters must be populated in order to send to Azure. - - :param connection_info: Required. Connection information for SQL Server - :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param backup_file_share: Required. Backup file share information for file - share to be used for temporarily storing files. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param selected_certificates: Required. List containing certificate names - and corresponding password to use for encrypting the exported certificate. - :type selected_certificates: - list[~azure.mgmt.datamigration.models.SelectedCertificateInput] - """ - - _validation = { - 'connection_info': {'required': True}, - 'backup_file_share': {'required': True}, - 'selected_certificates': {'required': True}, - } - - _attribute_map = { - 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'selected_certificates': {'key': 'selectedCertificates', 'type': '[SelectedCertificateInput]'}, - } - - def __init__(self, **kwargs): - super(GetTdeCertificatesSqlTaskInput, self).__init__(**kwargs) - self.connection_info = kwargs.get('connection_info', None) - self.backup_file_share = kwargs.get('backup_file_share', None) - self.selected_certificates = kwargs.get('selected_certificates', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input_py3.py deleted file mode 100644 index 90dbe44bac55..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_input_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 GetTdeCertificatesSqlTaskInput(Model): - """Input for the task that gets TDE certificates in Base64 encoded format. - - All required parameters must be populated in order to send to Azure. - - :param connection_info: Required. Connection information for SQL Server - :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param backup_file_share: Required. Backup file share information for file - share to be used for temporarily storing files. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param selected_certificates: Required. List containing certificate names - and corresponding password to use for encrypting the exported certificate. - :type selected_certificates: - list[~azure.mgmt.datamigration.models.SelectedCertificateInput] - """ - - _validation = { - 'connection_info': {'required': True}, - 'backup_file_share': {'required': True}, - 'selected_certificates': {'required': True}, - } - - _attribute_map = { - 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'selected_certificates': {'key': 'selectedCertificates', 'type': '[SelectedCertificateInput]'}, - } - - def __init__(self, *, connection_info, backup_file_share, selected_certificates, **kwargs) -> None: - super(GetTdeCertificatesSqlTaskInput, self).__init__(**kwargs) - self.connection_info = connection_info - self.backup_file_share = backup_file_share - self.selected_certificates = selected_certificates diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output.py deleted file mode 100644 index 723403ca1296..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 GetTdeCertificatesSqlTaskOutput(Model): - """Output of the task that gets TDE certificates in Base64 encoded format. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar base64_encoded_certificates: Mapping from certificate name to base - 64 encoded format. - :vartype base64_encoded_certificates: dict[str, list[str]] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'base64_encoded_certificates': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'base64_encoded_certificates': {'key': 'base64EncodedCertificates', 'type': '{[str]}'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(GetTdeCertificatesSqlTaskOutput, self).__init__(**kwargs) - self.base64_encoded_certificates = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output_py3.py deleted file mode 100644 index 16b09d215a62..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_output_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 GetTdeCertificatesSqlTaskOutput(Model): - """Output of the task that gets TDE certificates in Base64 encoded format. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar base64_encoded_certificates: Mapping from certificate name to base - 64 encoded format. - :vartype base64_encoded_certificates: dict[str, list[str]] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'base64_encoded_certificates': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'base64_encoded_certificates': {'key': 'base64EncodedCertificates', 'type': '{[str]}'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(GetTdeCertificatesSqlTaskOutput, self).__init__(**kwargs) - self.base64_encoded_certificates = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties.py deleted file mode 100644 index e4081b581178..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties): - """Properties for the task that gets TDE certificates in Base64 encoded - format. - - 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.GetTdeCertificatesSqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput] - """ - - _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': 'GetTdeCertificatesSqlTaskInput'}, - 'output': {'key': 'output', 'type': '[GetTdeCertificatesSqlTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(GetTdeCertificatesSqlTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'GetTDECertificates.Sql' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties_py3.py deleted file mode 100644 index e9ba1f1c2708..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_tde_certificates_sql_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties): - """Properties for the task that gets TDE certificates in Base64 encoded - format. - - 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.GetTdeCertificatesSqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput] - """ - - _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': 'GetTdeCertificatesSqlTaskInput'}, - 'output': {'key': 'output', 'type': '[GetTdeCertificatesSqlTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(GetTdeCertificatesSqlTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'GetTDECertificates.Sql' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input.py deleted file mode 100644 index edb3ff0086cf..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 GetUserTablesSqlSyncTaskInput(Model): - """Input for the task that collects user tables for the given list of - databases. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for SQL - Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for SQL DB - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_source_databases: Required. List of source database names - to collect tables for - :type selected_source_databases: list[str] - :param selected_target_databases: Required. List of target database names - to collect tables for - :type selected_target_databases: list[str] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_source_databases': {'required': True}, - 'selected_target_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_source_databases': {'key': 'selectedSourceDatabases', 'type': '[str]'}, - 'selected_target_databases': {'key': 'selectedTargetDatabases', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(GetUserTablesSqlSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.selected_source_databases = kwargs.get('selected_source_databases', None) - self.selected_target_databases = kwargs.get('selected_target_databases', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input_py3.py deleted file mode 100644 index d5d094e38618..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_input_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 GetUserTablesSqlSyncTaskInput(Model): - """Input for the task that collects user tables for the given list of - databases. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for SQL - Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for SQL DB - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_source_databases: Required. List of source database names - to collect tables for - :type selected_source_databases: list[str] - :param selected_target_databases: Required. List of target database names - to collect tables for - :type selected_target_databases: list[str] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_source_databases': {'required': True}, - 'selected_target_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_source_databases': {'key': 'selectedSourceDatabases', 'type': '[str]'}, - 'selected_target_databases': {'key': 'selectedTargetDatabases', 'type': '[str]'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_source_databases, selected_target_databases, **kwargs) -> None: - super(GetUserTablesSqlSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_source_databases = selected_source_databases - self.selected_target_databases = selected_target_databases diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output.py deleted file mode 100644 index d74132c96373..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 GetUserTablesSqlSyncTaskOutput(Model): - """Output of the task that collects user tables for the given list of - databases. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar databases_to_source_tables: Mapping from database name to list of - source tables - :vartype databases_to_source_tables: dict[str, - list[~azure.mgmt.datamigration.models.DatabaseTable]] - :ivar databases_to_target_tables: Mapping from database name to list of - target tables - :vartype databases_to_target_tables: dict[str, - list[~azure.mgmt.datamigration.models.DatabaseTable]] - :ivar table_validation_errors: Mapping from database name to list of - validation errors - :vartype table_validation_errors: dict[str, list[str]] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'databases_to_source_tables': {'readonly': True}, - 'databases_to_target_tables': {'readonly': True}, - 'table_validation_errors': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'databases_to_source_tables': {'key': 'databasesToSourceTables', 'type': '{[DatabaseTable]}'}, - 'databases_to_target_tables': {'key': 'databasesToTargetTables', 'type': '{[DatabaseTable]}'}, - 'table_validation_errors': {'key': 'tableValidationErrors', 'type': '{[str]}'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(GetUserTablesSqlSyncTaskOutput, self).__init__(**kwargs) - self.databases_to_source_tables = None - self.databases_to_target_tables = None - self.table_validation_errors = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output_py3.py deleted file mode 100644 index c5cc317b5991..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_output_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 GetUserTablesSqlSyncTaskOutput(Model): - """Output of the task that collects user tables for the given list of - databases. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar databases_to_source_tables: Mapping from database name to list of - source tables - :vartype databases_to_source_tables: dict[str, - list[~azure.mgmt.datamigration.models.DatabaseTable]] - :ivar databases_to_target_tables: Mapping from database name to list of - target tables - :vartype databases_to_target_tables: dict[str, - list[~azure.mgmt.datamigration.models.DatabaseTable]] - :ivar table_validation_errors: Mapping from database name to list of - validation errors - :vartype table_validation_errors: dict[str, list[str]] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'databases_to_source_tables': {'readonly': True}, - 'databases_to_target_tables': {'readonly': True}, - 'table_validation_errors': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'databases_to_source_tables': {'key': 'databasesToSourceTables', 'type': '{[DatabaseTable]}'}, - 'databases_to_target_tables': {'key': 'databasesToTargetTables', 'type': '{[DatabaseTable]}'}, - 'table_validation_errors': {'key': 'tableValidationErrors', 'type': '{[str]}'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(GetUserTablesSqlSyncTaskOutput, self).__init__(**kwargs) - self.databases_to_source_tables = None - self.databases_to_target_tables = None - self.table_validation_errors = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties.py deleted file mode 100644 index bbee639ad9eb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of - databases. - - 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.GetUserTablesSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput] - """ - - _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': 'GetUserTablesSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[GetUserTablesSqlSyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(GetUserTablesSqlSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'GetUserTables.AzureSqlDb.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties_py3.py deleted file mode 100644 index a2811ba0cfb4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of - databases. - - 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.GetUserTablesSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput] - """ - - _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': 'GetUserTablesSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[GetUserTablesSqlSyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(GetUserTablesSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'GetUserTables.AzureSqlDb.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input.py deleted file mode 100644 index dcc0ac9ede93..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 GetUserTablesSqlTaskInput(Model): - """Input for the task that collects user tables for the given list of - databases. - - All required parameters must be populated in order to send to Azure. - - :param connection_info: Required. Connection information for SQL Server - :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. List of database names to collect - tables for - :type selected_databases: list[str] - """ - - _validation = { - 'connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(GetUserTablesSqlTaskInput, self).__init__(**kwargs) - self.connection_info = kwargs.get('connection_info', None) - self.selected_databases = kwargs.get('selected_databases', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input_py3.py deleted file mode 100644 index 2d6fd65aa4ac..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_input_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 GetUserTablesSqlTaskInput(Model): - """Input for the task that collects user tables for the given list of - databases. - - All required parameters must be populated in order to send to Azure. - - :param connection_info: Required. Connection information for SQL Server - :type connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. List of database names to collect - tables for - :type selected_databases: list[str] - """ - - _validation = { - 'connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'connection_info': {'key': 'connectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[str]'}, - } - - def __init__(self, *, connection_info, selected_databases, **kwargs) -> None: - super(GetUserTablesSqlTaskInput, self).__init__(**kwargs) - self.connection_info = connection_info - self.selected_databases = selected_databases diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output.py deleted file mode 100644 index 219af23605af..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 GetUserTablesSqlTaskOutput(Model): - """Output of the task that collects user tables for the given list of - databases. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar databases_to_tables: Mapping from database name to list of tables - :vartype databases_to_tables: dict[str, - list[~azure.mgmt.datamigration.models.DatabaseTable]] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'databases_to_tables': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'databases_to_tables': {'key': 'databasesToTables', 'type': '{[DatabaseTable]}'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(GetUserTablesSqlTaskOutput, self).__init__(**kwargs) - self.id = None - self.databases_to_tables = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output_py3.py deleted file mode 100644 index ab86762acc74..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_output_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 GetUserTablesSqlTaskOutput(Model): - """Output of the task that collects user tables for the given list of - databases. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar databases_to_tables: Mapping from database name to list of tables - :vartype databases_to_tables: dict[str, - list[~azure.mgmt.datamigration.models.DatabaseTable]] - :ivar validation_errors: Validation errors - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'databases_to_tables': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'databases_to_tables': {'key': 'databasesToTables', 'type': '{[DatabaseTable]}'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(GetUserTablesSqlTaskOutput, self).__init__(**kwargs) - self.id = None - self.databases_to_tables = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties.py deleted file mode 100644 index 7c04b9f4f2c1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 GetUserTablesSqlTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of - databases. - - 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.GetUserTablesSqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput] - """ - - _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': 'GetUserTablesSqlTaskInput'}, - 'output': {'key': 'output', 'type': '[GetUserTablesSqlTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(GetUserTablesSqlTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'GetUserTables.Sql' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties_py3.py deleted file mode 100644 index 764ccc89dad5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/get_user_tables_sql_task_properties_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 GetUserTablesSqlTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of - databases. - - 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.GetUserTablesSqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput] - """ - - _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': 'GetUserTablesSqlTaskInput'}, - 'output': {'key': 'output', 'type': '[GetUserTablesSqlTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(GetUserTablesSqlTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'GetUserTables.Sql' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info.py deleted file mode 100644 index e2f92c8d7c55..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 MiSqlConnectionInfo(ConnectionInfo): - """Properties required to create a connection to Azure SQL database Managed - instance. - - 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 managed_instance_resource_id: Required. Resource id for Azure SQL - database Managed instance - :type managed_instance_resource_id: str - """ - - _validation = { - 'type': {'required': True}, - 'managed_instance_resource_id': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'managed_instance_resource_id': {'key': 'managedInstanceResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MiSqlConnectionInfo, self).__init__(**kwargs) - self.managed_instance_resource_id = kwargs.get('managed_instance_resource_id', None) - self.type = 'MiSqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info_py3.py deleted file mode 100644 index 3c8baaedd62a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mi_sql_connection_info_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 MiSqlConnectionInfo(ConnectionInfo): - """Properties required to create a connection to Azure SQL database Managed - instance. - - 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 managed_instance_resource_id: Required. Resource id for Azure SQL - database Managed instance - :type managed_instance_resource_id: str - """ - - _validation = { - 'type': {'required': True}, - 'managed_instance_resource_id': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'managed_instance_resource_id': {'key': 'managedInstanceResourceId', 'type': 'str'}, - } - - def __init__(self, *, managed_instance_resource_id: str, user_name: str=None, password: str=None, **kwargs) -> None: - super(MiSqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) - self.managed_instance_resource_id = managed_instance_resource_id - self.type = 'MiSqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input.py deleted file mode 100644 index 9826d19fbf64..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 MigrateMISyncCompleteCommandInput(Model): - """Input for command that completes online migration for an Azure SQL Database - Managed Instance. - - All required parameters must be populated in order to send to Azure. - - :param source_database_name: Required. Name of managed instance database - :type source_database_name: str - """ - - _validation = { - 'source_database_name': {'required': True}, - } - - _attribute_map = { - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrateMISyncCompleteCommandInput, self).__init__(**kwargs) - self.source_database_name = kwargs.get('source_database_name', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input_py3.py deleted file mode 100644 index 2dd9ea2dc6bc..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_input_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 MigrateMISyncCompleteCommandInput(Model): - """Input for command that completes online migration for an Azure SQL Database - Managed Instance. - - All required parameters must be populated in order to send to Azure. - - :param source_database_name: Required. Name of managed instance database - :type source_database_name: str - """ - - _validation = { - 'source_database_name': {'required': True}, - } - - _attribute_map = { - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - } - - def __init__(self, *, source_database_name: str, **kwargs) -> None: - super(MigrateMISyncCompleteCommandInput, self).__init__(**kwargs) - self.source_database_name = source_database_name diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output.py deleted file mode 100644 index 262bdd8aba73..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 MigrateMISyncCompleteCommandOutput(Model): - """Output for command that completes online migration for an Azure SQL - Database Managed Instance. - - :param errors: List of errors that happened during the command execution - :type errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateMISyncCompleteCommandOutput, self).__init__(**kwargs) - self.errors = kwargs.get('errors', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output_py3.py deleted file mode 100644 index 5af5d8ae331f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_output_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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 MigrateMISyncCompleteCommandOutput(Model): - """Output for command that completes online migration for an Azure SQL - Database Managed Instance. - - :param errors: List of errors that happened during the command execution - :type errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ReportableException]'}, - } - - def __init__(self, *, errors=None, **kwargs) -> None: - super(MigrateMISyncCompleteCommandOutput, self).__init__(**kwargs) - self.errors = errors diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties.py deleted file mode 100644 index 8ee61390e72d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 .command_properties import CommandProperties - - -class MigrateMISyncCompleteCommandProperties(CommandProperties): - """Properties for the command that completes online migration for an Azure SQL - Database Managed Instance. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: - ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput - :ivar output: Command output. This is ignored if submitted. - :vartype output: - ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - 'output': {'readonly': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MigrateMISyncCompleteCommandInput'}, - 'output': {'key': 'output', 'type': 'MigrateMISyncCompleteCommandOutput'}, - } - - def __init__(self, **kwargs): - super(MigrateMISyncCompleteCommandProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.command_type = 'Migrate.SqlServer.AzureDbSqlMi.Complete' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties_py3.py deleted file mode 100644 index b90ddded2c17..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mi_sync_complete_command_properties_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 .command_properties_py3 import CommandProperties - - -class MigrateMISyncCompleteCommandProperties(CommandProperties): - """Properties for the command that completes online migration for an Azure SQL - Database Managed Instance. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: - ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput - :ivar output: Command output. This is ignored if submitted. - :vartype output: - ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - 'output': {'readonly': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MigrateMISyncCompleteCommandInput'}, - 'output': {'key': 'output', 'type': 'MigrateMISyncCompleteCommandOutput'}, - } - - def __init__(self, *, input=None, **kwargs) -> None: - super(MigrateMISyncCompleteCommandProperties, self).__init__(**kwargs) - self.input = input - self.output = None - self.command_type = 'Migrate.SqlServer.AzureDbSqlMi.Complete' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties.py deleted file mode 100644 index eb486454e65e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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 MigrateMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates data between MongoDB data sources. - - 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.MongoDbMigrationSettings - :ivar output: - :vartype output: list[~azure.mgmt.datamigration.models.MongoDbProgress] - """ - - _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': 'MongoDbMigrationSettings'}, - 'output': {'key': 'output', 'type': '[MongoDbProgress]'}, - } - - def __init__(self, **kwargs): - super(MigrateMongoDbTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Migrate.MongoDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties_py3.py deleted file mode 100644 index 4616aa125b40..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_mongo_db_task_properties_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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 MigrateMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates data between MongoDB data sources. - - 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.MongoDbMigrationSettings - :ivar output: - :vartype output: list[~azure.mgmt.datamigration.models.MongoDbProgress] - """ - - _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': 'MongoDbMigrationSettings'}, - 'output': {'key': 'output', 'type': '[MongoDbProgress]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigrateMongoDbTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Migrate.MongoDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input.py deleted file mode 100644 index 5e7bbd034e3e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncDatabaseInput(Model): - """Database specific information for MySQL to Azure Database for MySQL - migration task inputs. - - :param name: Name of the database - :type name: 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'}, - '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(MigrateMySqlAzureDbForMySqlSyncDatabaseInput, self).__init__(**kwargs) - self.name = kwargs.get('name', 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_my_sql_azure_db_for_my_sql_sync_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input_py3.py deleted file mode 100644 index 68a0dc423803..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_database_input_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncDatabaseInput(Model): - """Database specific information for MySQL to Azure Database for MySQL - migration task inputs. - - :param name: Name of the database - :type name: 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'}, - '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, target_database_name: str=None, migration_setting=None, source_setting=None, target_setting=None, **kwargs) -> None: - super(MigrateMySqlAzureDbForMySqlSyncDatabaseInput, self).__init__(**kwargs) - self.name = name - 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_my_sql_azure_db_for_my_sql_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input.py deleted file mode 100644 index b248f0efb40d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncTaskInput(Model): - """Input for the task that migrates MySQL databases to Azure Database for - MySQL for online migrations. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - MySQL - :type source_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param target_connection_info: Required. Connection information for target - Azure Database for MySQL - :type target_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateMySqlAzureDbForMySqlSyncDatabaseInput]'}, - } - - def __init__(self, **kwargs): - super(MigrateMySqlAzureDbForMySqlSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.selected_databases = kwargs.get('selected_databases', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input_py3.py deleted file mode 100644 index ff72651a7ec1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_input_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncTaskInput(Model): - """Input for the task that migrates MySQL databases to Azure Database for - MySQL for online migrations. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Connection information for source - MySQL - :type source_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param target_connection_info: Required. Connection information for target - Azure Database for MySQL - :type target_connection_info: - ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MySqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateMySqlAzureDbForMySqlSyncDatabaseInput]'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None: - super(MigrateMySqlAzureDbForMySqlSyncTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_databases = selected_databases diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output.py deleted file mode 100644 index ce87413056b5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncTaskOutput(Model): - """Output for the task that migrates MySQL databases to Azure Database for - MySQL for online migrations. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, - MigrateMySqlAzureDbForMySqlSyncTaskOutputError, - MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, - MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, - MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel - - 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': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputError', 'TableLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs): - super(MigrateMySqlAzureDbForMySqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error.py deleted file mode 100644 index 19ea595d9431..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, 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_my_sql_azure_db_for_my_sql_sync_task_output_database_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error_py3.py deleted file mode 100644 index 0e9b50426d75..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_error_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, 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_my_sql_azure_db_for_my_sql_sync_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level.py deleted file mode 100644 index 05ef91f1fff4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, 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_my_sql_azure_db_for_my_sql_sync_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level_py3.py deleted file mode 100644 index 6d6af1e1cdaa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_database_level_py3.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, 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_my_sql_azure_db_for_my_sql_sync_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error.py deleted file mode 100644 index b545553163c3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputError. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error_py3.py deleted file mode 100644 index a250a71f53c6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_error_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputError(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputError. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level.py deleted file mode 100644 index e859a576d331..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel, 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_my_sql_azure_db_for_my_sql_sync_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level_py3.py deleted file mode 100644 index bd74827ef775..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_migration_level_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel. - - 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(MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel, 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_my_sql_azure_db_for_my_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_py3.py deleted file mode 100644 index 64d731ac887d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncTaskOutput(Model): - """Output for the task that migrates MySQL databases to Azure Database for - MySQL for online migrations. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, - MigrateMySqlAzureDbForMySqlSyncTaskOutputError, - MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, - MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, - MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel - - 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': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputError', 'TableLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs) -> None: - super(MigrateMySqlAzureDbForMySqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level.py deleted file mode 100644 index 2ec7f6dc726a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level.py +++ /dev/null @@ -1,109 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel. - - 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: str - :ivar cdc_update_counter: Number of applied updates - :vartype cdc_update_counter: str - :ivar cdc_delete_counter: Number of applied deletes - :vartype cdc_delete_counter: str - :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': 'str'}, - 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'str'}, - 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'str'}, - '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(MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, 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_my_sql_azure_db_for_my_sql_sync_task_output_table_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level_py3.py deleted file mode 100644 index 012b20615f83..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_output_table_level_py3.py +++ /dev/null @@ -1,109 +0,0 @@ -# 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_my_sql_azure_db_for_my_sql_sync_task_output_py3 import MigrateMySqlAzureDbForMySqlSyncTaskOutput - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel(MigrateMySqlAzureDbForMySqlSyncTaskOutput): - """MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel. - - 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: str - :ivar cdc_update_counter: Number of applied updates - :vartype cdc_update_counter: str - :ivar cdc_delete_counter: Number of applied deletes - :vartype cdc_delete_counter: str - :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': 'str'}, - 'cdc_update_counter': {'key': 'cdcUpdateCounter', 'type': 'str'}, - 'cdc_delete_counter': {'key': 'cdcDeleteCounter', 'type': 'str'}, - '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(MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, 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_my_sql_azure_db_for_my_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties.py deleted file mode 100644 index 8bb1ed0ebc05..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates MySQL databases to Azure Database for - MySQL 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.MigrateMySqlAzureDbForMySqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput] - """ - - _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': 'MigrateMySqlAzureDbForMySqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateMySqlAzureDbForMySqlSyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(MigrateMySqlAzureDbForMySqlSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Migrate.MySql.AzureDbForMySql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties_py3.py deleted file mode 100644 index 5f823d3eff0a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_my_sql_azure_db_for_my_sql_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateMySqlAzureDbForMySqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates MySQL databases to Azure Database for - MySQL 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.MigrateMySqlAzureDbForMySqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput] - """ - - _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': 'MigrateMySqlAzureDbForMySqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateMySqlAzureDbForMySqlSyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigrateMySqlAzureDbForMySqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Migrate.MySql.AzureDbForMySql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.py deleted file mode 100644 index 307b695e6d95..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(Model): - """Database specific information for PostgreSQL to Azure Database for - PostgreSQL migration task inputs. - - :param name: Name of the database - :type name: 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'}, - '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(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, self).__init__(**kwargs) - self.name = kwargs.get('name', 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_postgre_sql_azure_db_for_postgre_sql_sync_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input_py3.py deleted file mode 100644 index dea22f0412bd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(Model): - """Database specific information for PostgreSQL to Azure Database for - PostgreSQL migration task inputs. - - :param name: Name of the database - :type name: 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'}, - '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, target_database_name: str=None, migration_setting=None, source_setting=None, target_setting=None, **kwargs) -> None: - super(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, self).__init__(**kwargs) - self.name = name - 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_postgre_sql_azure_db_for_postgre_sql_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input.py deleted file mode 100644 index 34cdca4180fa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(Model): - """Input for the task that migrates PostgreSQL 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.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] - :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 - PostgreSQL - :type source_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - 'selected_databases': {'required': True}, - 'target_connection_info': {'required': True}, - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput]'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input_py3.py deleted file mode 100644 index edbcd964ea28..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(Model): - """Input for the task that migrates PostgreSQL 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.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] - :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 - PostgreSQL - :type source_connection_info: - ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - 'selected_databases': {'required': True}, - 'target_connection_info': {'required': True}, - 'source_connection_info': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput]'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'PostgreSqlConnectionInfo'}, - } - - def __init__(self, *, selected_databases, target_connection_info, source_connection_info, **kwargs) -> None: - super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output.py deleted file mode 100644 index 2e67ad72eea5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(Model): - """Output for the task that migrates PostgreSQL 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: - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel - - 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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError', 'TableLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs): - super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error.py deleted file mode 100644 index 2cf6c6f523e4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error_py3.py deleted file mode 100644 index 20d8350ca4d9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_error_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level.py deleted file mode 100644 index 6e6a904277da..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level_py3.py deleted file mode 100644 index b43b9c0f96c7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_database_level_py3.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error.py deleted file mode 100644 index 84d67be56cd5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error_py3.py deleted file mode 100644 index f3c0512f5767..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_error_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level.py deleted file mode 100644 index fdf53d082ab7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level_py3.py deleted file mode 100644 index b69704273b7c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_migration_level_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3.py deleted file mode 100644 index 79f5489e9e8e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(Model): - """Output for the task that migrates PostgreSQL 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: - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel - - 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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError', 'TableLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs) -> None: - super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level.py deleted file mode 100644 index d9bd66b4cc7c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level.py +++ /dev/null @@ -1,109 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level_py3.py deleted file mode 100644 index 3735d1b3a54d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output_table_level_py3.py +++ /dev/null @@ -1,109 +0,0 @@ -# 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_postgre_sql_azure_db_for_postgre_sql_sync_task_output_py3 import MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput): - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel. - - 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(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel, 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_postgre_sql_azure_db_for_postgre_sql_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties.py deleted file mode 100644 index f55b14e026fa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates PostgreSQL databases 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.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput] - """ - - _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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3.py deleted file mode 100644 index 21dadc2039e8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates PostgreSQL databases 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.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput] - """ - - _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': 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Migrate.PostgreSql.AzureDbForPostgreSql.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input.py deleted file mode 100644 index 0449ca9b6de5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 MigrateSchemaSqlServerSqlDbDatabaseInput(Model): - """Database input for migrate schema Sql Server to Azure SQL Server scenario. - - :param name: Name of source database - :type name: str - :param target_database_name: Name of target database - :type target_database_name: str - :param schema_setting: Database schema migration settings - :type schema_setting: - ~azure.mgmt.datamigration.models.SchemaMigrationSetting - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'schema_setting': {'key': 'schemaSetting', 'type': 'SchemaMigrationSetting'}, - } - - def __init__(self, **kwargs): - super(MigrateSchemaSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.target_database_name = kwargs.get('target_database_name', None) - self.schema_setting = kwargs.get('schema_setting', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input_py3.py deleted file mode 100644 index 25029f5cb5f6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_database_input_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 MigrateSchemaSqlServerSqlDbDatabaseInput(Model): - """Database input for migrate schema Sql Server to Azure SQL Server scenario. - - :param name: Name of source database - :type name: str - :param target_database_name: Name of target database - :type target_database_name: str - :param schema_setting: Database schema migration settings - :type schema_setting: - ~azure.mgmt.datamigration.models.SchemaMigrationSetting - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'schema_setting': {'key': 'schemaSetting', 'type': 'SchemaMigrationSetting'}, - } - - def __init__(self, *, name: str=None, target_database_name: str=None, schema_setting=None, **kwargs) -> None: - super(MigrateSchemaSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) - self.name = name - self.target_database_name = target_database_name - self.schema_setting = schema_setting diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input.py deleted file mode 100644 index 780840f12dd7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 .sql_migration_task_input import SqlMigrationTaskInput - - -class MigrateSchemaSqlServerSqlDbTaskInput(SqlMigrationTaskInput): - """Input for task that migrates Schema for SQL Server databases to Azure SQL - databases. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSchemaSqlServerSqlDbDatabaseInput]'}, - } - - def __init__(self, **kwargs): - super(MigrateSchemaSqlServerSqlDbTaskInput, self).__init__(**kwargs) - self.selected_databases = kwargs.get('selected_databases', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input_py3.py deleted file mode 100644 index 0af2ff8e749b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_input_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 .sql_migration_task_input_py3 import SqlMigrationTaskInput - - -class MigrateSchemaSqlServerSqlDbTaskInput(SqlMigrationTaskInput): - """Input for task that migrates Schema for SQL Server databases to Azure SQL - databases. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSchemaSqlServerSqlDbDatabaseInput]'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None: - super(MigrateSchemaSqlServerSqlDbTaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) - self.selected_databases = selected_databases diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output.py deleted file mode 100644 index cedc5073506a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 MigrateSchemaSqlServerSqlDbTaskOutput(Model): - """Output for the task that migrates Schema for SQL Server databases to Azure - SQL databases. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, - MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, - MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError - - 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': {'MigrationLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel', 'DatabaseLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel', 'SchemaErrorOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputError', 'ErrorOutput': 'MigrateSchemaSqlTaskOutputError'} - } - - def __init__(self, **kwargs): - super(MigrateSchemaSqlServerSqlDbTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level.py deleted file mode 100644 index bd79bf6e5bc1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel. - - 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: The name of the database - :vartype database_name: str - :ivar state: State of the schema migration for this database. Possible - values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', - 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Schema migration stage for this database. Possible values - include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', - 'DownloadingScript', 'GeneratingScript', 'UploadingScript', - 'DeployingSchema', 'Completed', 'CompletedWithWarnings', 'Failed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.SchemaMigrationStage - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar database_error_result_prefix: Prefix string to use for querying - errors for this database - :vartype database_error_result_prefix: str - :ivar schema_error_result_prefix: Prefix string to use for querying schema - errors for this database - :vartype schema_error_result_prefix: str - :ivar number_of_successful_operations: Number of successful operations for - this database - :vartype number_of_successful_operations: long - :ivar number_of_failed_operations: Number of failed operations for this - database - :vartype number_of_failed_operations: long - :ivar file_id: Identifier for the file resource containing the schema of - this database - :vartype file_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_name': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'database_error_result_prefix': {'readonly': True}, - 'schema_error_result_prefix': {'readonly': True}, - 'number_of_successful_operations': {'readonly': True}, - 'number_of_failed_operations': {'readonly': True}, - 'file_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'database_error_result_prefix': {'key': 'databaseErrorResultPrefix', 'type': 'str'}, - 'schema_error_result_prefix': {'key': 'schemaErrorResultPrefix', 'type': 'str'}, - 'number_of_successful_operations': {'key': 'numberOfSuccessfulOperations', 'type': 'long'}, - 'number_of_failed_operations': {'key': 'numberOfFailedOperations', 'type': 'long'}, - 'file_id': {'key': 'fileId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.database_name = None - self.state = None - self.stage = None - self.started_on = None - self.ended_on = None - self.database_error_result_prefix = None - self.schema_error_result_prefix = None - self.number_of_successful_operations = None - self.number_of_failed_operations = None - self.file_id = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level_py3.py deleted file mode 100644 index 40ca965b8ed3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_database_level_py3.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output_py3 import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel. - - 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: The name of the database - :vartype database_name: str - :ivar state: State of the schema migration for this database. Possible - values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', - 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Schema migration stage for this database. Possible values - include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', - 'DownloadingScript', 'GeneratingScript', 'UploadingScript', - 'DeployingSchema', 'Completed', 'CompletedWithWarnings', 'Failed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.SchemaMigrationStage - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar database_error_result_prefix: Prefix string to use for querying - errors for this database - :vartype database_error_result_prefix: str - :ivar schema_error_result_prefix: Prefix string to use for querying schema - errors for this database - :vartype schema_error_result_prefix: str - :ivar number_of_successful_operations: Number of successful operations for - this database - :vartype number_of_successful_operations: long - :ivar number_of_failed_operations: Number of failed operations for this - database - :vartype number_of_failed_operations: long - :ivar file_id: Identifier for the file resource containing the schema of - this database - :vartype file_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_name': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'database_error_result_prefix': {'readonly': True}, - 'schema_error_result_prefix': {'readonly': True}, - 'number_of_successful_operations': {'readonly': True}, - 'number_of_failed_operations': {'readonly': True}, - 'file_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'database_error_result_prefix': {'key': 'databaseErrorResultPrefix', 'type': 'str'}, - 'schema_error_result_prefix': {'key': 'schemaErrorResultPrefix', 'type': 'str'}, - 'number_of_successful_operations': {'key': 'numberOfSuccessfulOperations', 'type': 'long'}, - 'number_of_failed_operations': {'key': 'numberOfFailedOperations', 'type': 'long'}, - 'file_id': {'key': 'fileId', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.database_name = None - self.state = None - self.stage = None - self.started_on = None - self.ended_on = None - self.database_error_result_prefix = None - self.schema_error_result_prefix = None - self.number_of_successful_operations = None - self.number_of_failed_operations = None - self.file_id = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error.py deleted file mode 100644 index 3a6c16548eb7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlServerSqlDbTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlServerSqlDbTaskOutputError. - - 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 command_text: Schema command which failed - :vartype command_text: str - :ivar error_text: Reason of failure - :vartype error_text: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'command_text': {'readonly': True}, - 'error_text': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'command_text': {'key': 'commandText', 'type': 'str'}, - 'error_text': {'key': 'errorText', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrateSchemaSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) - self.command_text = None - self.error_text = None - self.result_type = 'SchemaErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error_py3.py deleted file mode 100644 index ba6d5386a5cd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_error_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output_py3 import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlServerSqlDbTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlServerSqlDbTaskOutputError. - - 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 command_text: Schema command which failed - :vartype command_text: str - :ivar error_text: Reason of failure - :vartype error_text: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'command_text': {'readonly': True}, - 'error_text': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'command_text': {'key': 'commandText', 'type': 'str'}, - 'error_text': {'key': 'errorText', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSchemaSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) - self.command_text = None - self.error_text = None - self.result_type = 'SchemaErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level.py deleted file mode 100644 index b1f960f98a77..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel. - - 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 state: Overall state of the schema migration. Possible values - include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', - 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', '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_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) - self.state = None - self.started_on = None - self.ended_on = None - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_version = None - self.target_server_brand_version = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level_py3.py deleted file mode 100644 index 7e5399871ed4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_migration_level_py3.py +++ /dev/null @@ -1,78 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output_py3 import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel. - - 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 state: Overall state of the schema migration. Possible values - include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', - 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', '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_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) - self.state = None - self.started_on = None - self.ended_on = None - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_version = None - self.target_server_brand_version = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_py3.py deleted file mode 100644 index 3db08cbd64c4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_output_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 MigrateSchemaSqlServerSqlDbTaskOutput(Model): - """Output for the task that migrates Schema for SQL Server databases to Azure - SQL databases. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, - MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, - MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError - - 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': {'MigrationLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel', 'DatabaseLevelOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel', 'SchemaErrorOutput': 'MigrateSchemaSqlServerSqlDbTaskOutputError', 'ErrorOutput': 'MigrateSchemaSqlTaskOutputError'} - } - - def __init__(self, **kwargs) -> None: - super(MigrateSchemaSqlServerSqlDbTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties.py deleted file mode 100644 index 7dddbafe3d77..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties): - """Properties for task that migrates Schema for SQL Server databases to Azure - SQL databases. - - 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.MigrateSchemaSqlServerSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput] - """ - - _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': 'MigrateSchemaSqlServerSqlDbTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSchemaSqlServerSqlDbTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(MigrateSchemaSqlServerSqlDbTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'MigrateSchemaSqlServerSqlDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties_py3.py deleted file mode 100644 index ed452a92a8c0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_server_sql_db_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties): - """Properties for task that migrates Schema for SQL Server databases to Azure - SQL databases. - - 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.MigrateSchemaSqlServerSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput] - """ - - _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': 'MigrateSchemaSqlServerSqlDbTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSchemaSqlServerSqlDbTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigrateSchemaSqlServerSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'MigrateSchemaSqlServerSqlDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error.py deleted file mode 100644 index 074885c0322b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlTaskOutputError. - - 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(MigrateSchemaSqlTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error_py3.py deleted file mode 100644 index 9afffc5b2aa0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_schema_sql_task_output_error_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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_schema_sql_server_sql_db_task_output_py3 import MigrateSchemaSqlServerSqlDbTaskOutput - - -class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlTaskOutputError. - - 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(MigrateSchemaSqlTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input.py deleted file mode 100644 index d249c75f59be..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 MigrateSqlServerSqlDbDatabaseInput(Model): - """Database specific information for SQL to Azure SQL DB migration task - inputs. - - :param name: Name of the database - :type name: str - :param target_database_name: Name of target database. Note: Target - database will be truncated before starting migration. - :type target_database_name: str - :param make_source_db_read_only: Whether to set database read only before - migration - :type make_source_db_read_only: bool - :param table_map: Mapping of source to target tables - :type table_map: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'make_source_db_read_only': {'key': 'makeSourceDbReadOnly', 'type': 'bool'}, - 'table_map': {'key': 'tableMap', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.target_database_name = kwargs.get('target_database_name', None) - self.make_source_db_read_only = kwargs.get('make_source_db_read_only', None) - self.table_map = kwargs.get('table_map', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input_py3.py deleted file mode 100644 index 3191362ee55a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_database_input_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 MigrateSqlServerSqlDbDatabaseInput(Model): - """Database specific information for SQL to Azure SQL DB migration task - inputs. - - :param name: Name of the database - :type name: str - :param target_database_name: Name of target database. Note: Target - database will be truncated before starting migration. - :type target_database_name: str - :param make_source_db_read_only: Whether to set database read only before - migration - :type make_source_db_read_only: bool - :param table_map: Mapping of source to target tables - :type table_map: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'make_source_db_read_only': {'key': 'makeSourceDbReadOnly', 'type': 'bool'}, - 'table_map': {'key': 'tableMap', 'type': '{str}'}, - } - - def __init__(self, *, name: str=None, target_database_name: str=None, make_source_db_read_only: bool=None, table_map=None, **kwargs) -> None: - super(MigrateSqlServerSqlDbDatabaseInput, self).__init__(**kwargs) - self.name = name - self.target_database_name = target_database_name - self.make_source_db_read_only = make_source_db_read_only - self.table_map = table_map diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_database_input.py deleted file mode 100644 index f088fb0680d6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_database_input.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 MigrateSqlServerSqlDbSyncDatabaseInput(Model): - """Database specific information for SQL to Azure SQL DB sync migration task - inputs. - - :param id: Unique identifier for database - :type id: str - :param name: Name of database - :type name: str - :param target_database_name: Target database name - :type target_database_name: str - :param schema_name: Schema name to be migrated - :type schema_name: str - :param table_map: Mapping of source to target tables - :type table_map: dict[str, 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 = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'table_map': {'key': 'tableMap', '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(MigrateSqlServerSqlDbSyncDatabaseInput, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.target_database_name = kwargs.get('target_database_name', None) - self.schema_name = kwargs.get('schema_name', None) - self.table_map = kwargs.get('table_map', 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_sql_server_sql_db_sync_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_database_input_py3.py deleted file mode 100644 index 1298fe296799..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_database_input_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 MigrateSqlServerSqlDbSyncDatabaseInput(Model): - """Database specific information for SQL to Azure SQL DB sync migration task - inputs. - - :param id: Unique identifier for database - :type id: str - :param name: Name of database - :type name: str - :param target_database_name: Target database name - :type target_database_name: str - :param schema_name: Schema name to be migrated - :type schema_name: str - :param table_map: Mapping of source to target tables - :type table_map: dict[str, 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 = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'table_map': {'key': 'tableMap', 'type': '{str}'}, - 'migration_setting': {'key': 'migrationSetting', 'type': '{str}'}, - 'source_setting': {'key': 'sourceSetting', 'type': '{str}'}, - 'target_setting': {'key': 'targetSetting', 'type': '{str}'}, - } - - def __init__(self, *, id: str=None, name: str=None, target_database_name: str=None, schema_name: str=None, table_map=None, migration_setting=None, source_setting=None, target_setting=None, **kwargs) -> None: - super(MigrateSqlServerSqlDbSyncDatabaseInput, self).__init__(**kwargs) - self.id = id - self.name = name - self.target_database_name = target_database_name - self.schema_name = schema_name - self.table_map = table_map - 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_sql_server_sql_db_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_input.py deleted file mode 100644 index be135f30d86d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_input.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .sql_migration_task_input import SqlMigrationTaskInput - - -class MigrateSqlServerSqlDbSyncTaskInput(SqlMigrationTaskInput): - """Input for the task that migrates on-prem SQL Server databases to Azure SQL - Database for online migrations. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - :param validation_options: Validation options - :type validation_options: - ~azure.mgmt.datamigration.models.MigrationValidationOptions - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, - 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbSyncTaskInput, self).__init__(**kwargs) - self.selected_databases = kwargs.get('selected_databases', None) - self.validation_options = kwargs.get('validation_options', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_input_py3.py deleted file mode 100644 index ae48ae6e3ad5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_input_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .sql_migration_task_input_py3 import SqlMigrationTaskInput - - -class MigrateSqlServerSqlDbSyncTaskInput(SqlMigrationTaskInput): - """Input for the task that migrates on-prem SQL Server databases to Azure SQL - Database for online migrations. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - :param validation_options: Validation options - :type validation_options: - ~azure.mgmt.datamigration.models.MigrationValidationOptions - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, - 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, validation_options=None, **kwargs) -> None: - super(MigrateSqlServerSqlDbSyncTaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) - self.selected_databases = selected_databases - self.validation_options = validation_options diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output.py deleted file mode 100644 index 0f6402a6c73e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 MigrateSqlServerSqlDbSyncTaskOutput(Model): - """Output for the task that migrates on-prem SQL Server databases to Azure SQL - Database for online migrations. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, - MigrateSqlServerSqlDbSyncTaskOutputError, - MigrateSqlServerSqlDbSyncTaskOutputTableLevel, - MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, - MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel - - 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': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateSqlServerSqlDbSyncTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbSyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_error.py deleted file mode 100644 index 3a39650c763a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_error.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputDatabaseError. - - 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, 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_sql_server_sql_db_sync_task_output_database_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_error_py3.py deleted file mode 100644 index 044de6d3d8ad..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_error_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output_py3 import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputDatabaseError. - - 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, 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_sql_server_sql_db_sync_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_level.py deleted file mode 100644 index d2874c104154..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_level.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel. - - 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, 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_sql_server_sql_db_sync_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_level_py3.py deleted file mode 100644 index 123f2b6972fa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_database_level_py3.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output_py3 import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel. - - 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(MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, 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_sql_server_sql_db_sync_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_error.py deleted file mode 100644 index f8da803b0dd5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_error.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputError(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputError. - - 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(MigrateSqlServerSqlDbSyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_error_py3.py deleted file mode 100644 index c09bb4d8add5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_error_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output_py3 import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputError(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputError. - - 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(MigrateSqlServerSqlDbSyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level.py deleted file mode 100644 index 03d3e832bbe6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel. - - 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 - :ivar database_count: Count of databases - :vartype database_count: int - """ - - _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}, - 'database_count': {'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'}, - 'database_count': {'key': 'databaseCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel, 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.database_count = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level_py3.py deleted file mode 100644 index 6863d9cf96e5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_migration_level_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output_py3 import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel. - - 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 - :ivar database_count: Count of databases - :vartype database_count: int - """ - - _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}, - 'database_count': {'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'}, - 'database_count': {'key': 'databaseCount', 'type': 'int'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel, 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.database_count = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_py3.py deleted file mode 100644 index b7be743b752b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 MigrateSqlServerSqlDbSyncTaskOutput(Model): - """Output for the task that migrates on-prem SQL Server databases to Azure SQL - Database for online migrations. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, - MigrateSqlServerSqlDbSyncTaskOutputError, - MigrateSqlServerSqlDbSyncTaskOutputTableLevel, - MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, - MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel - - 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': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseError', 'ErrorOutput': 'MigrateSqlServerSqlDbSyncTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlDbSyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_table_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_table_level.py deleted file mode 100644 index 6ec5c09b9e1e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_table_level.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputTableLevel(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputTableLevel. - - 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(MigrateSqlServerSqlDbSyncTaskOutputTableLevel, 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_sql_server_sql_db_sync_task_output_table_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_table_level_py3.py deleted file mode 100644 index a0fa99b45690..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_output_table_level_py3.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_sync_task_output_py3 import MigrateSqlServerSqlDbSyncTaskOutput - - -class MigrateSqlServerSqlDbSyncTaskOutputTableLevel(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputTableLevel. - - 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(MigrateSqlServerSqlDbSyncTaskOutputTableLevel, 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_sql_server_sql_db_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_properties.py deleted file mode 100644 index 3f315d51a847..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates on-prem SQL Server databases to Azure - SQL Database 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.MigrateSqlServerSqlDbSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput] - """ - - _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': 'MigrateSqlServerSqlDbSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbSyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Migrate.SqlServer.AzureSqlDb.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_properties_py3.py deleted file mode 100644 index 9886dba3474e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates on-prem SQL Server databases to Azure - SQL Database 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.MigrateSqlServerSqlDbSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput] - """ - - _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': 'MigrateSqlServerSqlDbSyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbSyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigrateSqlServerSqlDbSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Migrate.SqlServer.AzureSqlDb.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input.py deleted file mode 100644 index 2023126d0f3d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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 .sql_migration_task_input import SqlMigrationTaskInput - - -class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): - """Input for the task that migrates on-prem SQL Server databases to Azure SQL - Database. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] - :param validation_options: Options for enabling various post migration - validations. Available options, - 1.) Data Integrity Check: Performs a checksum based comparison on source - and target tables after the migration to ensure the correctness of the - data. - 2.) Schema Validation: Performs a thorough schema comparison between the - source and target tables and provides a list of differences between the - source and target database, 3.) Query Analysis: Executes a set of queries - picked up automatically either from the Query Plan Cache or Query Store - and execute them and compares the execution time between the source and - target database. - :type validation_options: - ~azure.mgmt.datamigration.models.MigrationValidationOptions - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbDatabaseInput]'}, - 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbTaskInput, self).__init__(**kwargs) - self.selected_databases = kwargs.get('selected_databases', None) - self.validation_options = kwargs.get('validation_options', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input_py3.py deleted file mode 100644 index 52ddf0bc50de..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_input_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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 .sql_migration_task_input_py3 import SqlMigrationTaskInput - - -class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): - """Input for the task that migrates on-prem SQL Server databases to Azure SQL - Database. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] - :param validation_options: Options for enabling various post migration - validations. Available options, - 1.) Data Integrity Check: Performs a checksum based comparison on source - and target tables after the migration to ensure the correctness of the - data. - 2.) Schema Validation: Performs a thorough schema comparison between the - source and target tables and provides a list of differences between the - source and target database, 3.) Query Analysis: Executes a set of queries - picked up automatically either from the Query Plan Cache or Query Store - and execute them and compares the execution time between the source and - target database. - :type validation_options: - ~azure.mgmt.datamigration.models.MigrationValidationOptions - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbDatabaseInput]'}, - 'validation_options': {'key': 'validationOptions', 'type': 'MigrationValidationOptions'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, validation_options=None, **kwargs) -> None: - super(MigrateSqlServerSqlDbTaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) - self.selected_databases = selected_databases - self.validation_options = validation_options diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output.py deleted file mode 100644 index 65c1a8f407a0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 MigrateSqlServerSqlDbTaskOutput(Model): - """Output for the task that migrates on-prem SQL Server databases to Azure SQL - Database. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlDbTaskOutputError, - MigrateSqlServerSqlDbTaskOutputTableLevel, - MigrateSqlServerSqlDbTaskOutputDatabaseLevel, - MigrateSqlServerSqlDbTaskOutputMigrationLevel - - 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': {'ErrorOutput': 'MigrateSqlServerSqlDbTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level.py deleted file mode 100644 index a889f9e00f7b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputDatabaseLevel. - - 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 item - :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 state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Migration stage that this database is in. Possible values - include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', - 'Completed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.DatabaseMigrationStage - :ivar status_message: Status message - :vartype status_message: str - :ivar message: Migration progress message - :vartype message: str - :ivar number_of_objects: Number of objects - :vartype number_of_objects: long - :ivar number_of_objects_completed: Number of successfully completed - objects - :vartype number_of_objects_completed: long - :ivar error_count: Number of database/object errors. - :vartype error_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar object_summary: Summary of object results in the migration - :vartype object_summary: dict[str, - ~azure.mgmt.datamigration.models.DataItemMigrationSummaryResult] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'status_message': {'readonly': True}, - 'message': {'readonly': True}, - 'number_of_objects': {'readonly': True}, - 'number_of_objects_completed': {'readonly': True}, - 'error_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - 'object_summary': {'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'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'number_of_objects': {'key': 'numberOfObjects', 'type': 'long'}, - 'number_of_objects_completed': {'key': 'numberOfObjectsCompleted', 'type': 'long'}, - 'error_count': {'key': 'errorCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - 'object_summary': {'key': 'objectSummary', 'type': '{DataItemMigrationSummaryResult}'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.database_name = None - self.started_on = None - self.ended_on = None - self.state = None - self.stage = None - self.status_message = None - self.message = None - self.number_of_objects = None - self.number_of_objects_completed = None - self.error_count = None - self.error_prefix = None - self.result_prefix = None - self.exceptions_and_warnings = None - self.object_summary = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level_py3.py deleted file mode 100644 index a5520072991f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_database_level_py3.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output_py3 import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputDatabaseLevel. - - 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 item - :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 state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Migration stage that this database is in. Possible values - include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', - 'Completed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.DatabaseMigrationStage - :ivar status_message: Status message - :vartype status_message: str - :ivar message: Migration progress message - :vartype message: str - :ivar number_of_objects: Number of objects - :vartype number_of_objects: long - :ivar number_of_objects_completed: Number of successfully completed - objects - :vartype number_of_objects_completed: long - :ivar error_count: Number of database/object errors. - :vartype error_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar object_summary: Summary of object results in the migration - :vartype object_summary: dict[str, - ~azure.mgmt.datamigration.models.DataItemMigrationSummaryResult] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'status_message': {'readonly': True}, - 'message': {'readonly': True}, - 'number_of_objects': {'readonly': True}, - 'number_of_objects_completed': {'readonly': True}, - 'error_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - 'object_summary': {'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'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'number_of_objects': {'key': 'numberOfObjects', 'type': 'long'}, - 'number_of_objects_completed': {'key': 'numberOfObjectsCompleted', 'type': 'long'}, - 'error_count': {'key': 'errorCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - 'object_summary': {'key': 'objectSummary', 'type': '{DataItemMigrationSummaryResult}'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlDbTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.database_name = None - self.started_on = None - self.ended_on = None - self.state = None - self.stage = None - self.status_message = None - self.message = None - self.number_of_objects = None - self.number_of_objects_completed = None - self.error_count = None - self.error_prefix = None - self.result_prefix = None - self.exceptions_and_warnings = None - self.object_summary = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error.py deleted file mode 100644 index 01af38599841..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputError(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputError. - - 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(MigrateSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error_py3.py deleted file mode 100644 index 156a8d1a7b72..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_error_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output_py3 import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputError(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputError. - - 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(MigrateSqlServerSqlDbTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level.py deleted file mode 100644 index 28189c56cf93..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputMigrationLevel(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputMigrationLevel. - - 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 duration_in_seconds: Duration of task execution in seconds. - :vartype duration_in_seconds: long - :ivar status: Current status of migration. Possible values include: - 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - 'CompletedWithWarnings' - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar status_message: Migration status message - :vartype status_message: str - :ivar message: Migration progress message - :vartype message: str - :ivar databases: Selected databases as a map from database name to - database id - :vartype databases: dict[str, str] - :ivar database_summary: Summary of database results in the migration - :vartype database_summary: dict[str, - ~azure.mgmt.datamigration.models.DatabaseSummaryResult] - :param migration_validation_result: Migration Validation Results - :type migration_validation_result: - ~azure.mgmt.datamigration.models.MigrationValidationResult - :param migration_report_result: Migration Report Result, provides unique - url for downloading your migration report. - :type migration_report_result: - ~azure.mgmt.datamigration.models.MigrationReportResult - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'duration_in_seconds': {'readonly': True}, - 'status': {'readonly': True}, - 'status_message': {'readonly': True}, - 'message': {'readonly': True}, - 'databases': {'readonly': True}, - 'database_summary': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'exceptions_and_warnings': {'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'}, - 'duration_in_seconds': {'key': 'durationInSeconds', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'database_summary': {'key': 'databaseSummary', 'type': '{DatabaseSummaryResult}'}, - 'migration_validation_result': {'key': 'migrationValidationResult', 'type': 'MigrationValidationResult'}, - 'migration_report_result': {'key': 'migrationReportResult', 'type': 'MigrationReportResult'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) - self.started_on = None - self.ended_on = None - self.duration_in_seconds = None - self.status = None - self.status_message = None - self.message = None - self.databases = None - self.database_summary = None - self.migration_validation_result = kwargs.get('migration_validation_result', None) - self.migration_report_result = kwargs.get('migration_report_result', None) - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_version = None - self.target_server_brand_version = None - self.exceptions_and_warnings = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level_py3.py deleted file mode 100644 index 3e6a2b7e30b3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_migration_level_py3.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output_py3 import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputMigrationLevel(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputMigrationLevel. - - 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 duration_in_seconds: Duration of task execution in seconds. - :vartype duration_in_seconds: long - :ivar status: Current status of migration. Possible values include: - 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - 'CompletedWithWarnings' - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar status_message: Migration status message - :vartype status_message: str - :ivar message: Migration progress message - :vartype message: str - :ivar databases: Selected databases as a map from database name to - database id - :vartype databases: dict[str, str] - :ivar database_summary: Summary of database results in the migration - :vartype database_summary: dict[str, - ~azure.mgmt.datamigration.models.DatabaseSummaryResult] - :param migration_validation_result: Migration Validation Results - :type migration_validation_result: - ~azure.mgmt.datamigration.models.MigrationValidationResult - :param migration_report_result: Migration Report Result, provides unique - url for downloading your migration report. - :type migration_report_result: - ~azure.mgmt.datamigration.models.MigrationReportResult - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'duration_in_seconds': {'readonly': True}, - 'status': {'readonly': True}, - 'status_message': {'readonly': True}, - 'message': {'readonly': True}, - 'databases': {'readonly': True}, - 'database_summary': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'exceptions_and_warnings': {'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'}, - 'duration_in_seconds': {'key': 'durationInSeconds', 'type': 'long'}, - 'status': {'key': 'status', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'database_summary': {'key': 'databaseSummary', 'type': '{DatabaseSummaryResult}'}, - 'migration_validation_result': {'key': 'migrationValidationResult', 'type': 'MigrationValidationResult'}, - 'migration_report_result': {'key': 'migrationReportResult', 'type': 'MigrationReportResult'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, *, migration_validation_result=None, migration_report_result=None, **kwargs) -> None: - super(MigrateSqlServerSqlDbTaskOutputMigrationLevel, self).__init__(**kwargs) - self.started_on = None - self.ended_on = None - self.duration_in_seconds = None - self.status = None - self.status_message = None - self.message = None - self.databases = None - self.database_summary = None - self.migration_validation_result = migration_validation_result - self.migration_report_result = migration_report_result - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_version = None - self.target_server_brand_version = None - self.exceptions_and_warnings = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_py3.py deleted file mode 100644 index 251d45a8e84d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 MigrateSqlServerSqlDbTaskOutput(Model): - """Output for the task that migrates on-prem SQL Server databases to Azure SQL - Database. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlDbTaskOutputError, - MigrateSqlServerSqlDbTaskOutputTableLevel, - MigrateSqlServerSqlDbTaskOutputDatabaseLevel, - MigrateSqlServerSqlDbTaskOutputMigrationLevel - - 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': {'ErrorOutput': 'MigrateSqlServerSqlDbTaskOutputError', 'TableLevelOutput': 'MigrateSqlServerSqlDbTaskOutputTableLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlDbTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlDbTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlDbTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level.py deleted file mode 100644 index 7b56087a2627..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputTableLevel(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputTableLevel. - - 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 object_name: Name of the item - :vartype object_name: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message - :vartype status_message: str - :ivar items_count: Number of items - :vartype items_count: long - :ivar items_completed_count: Number of successfully completed items - :vartype items_completed_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'object_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'items_count': {'readonly': True}, - 'items_completed_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'items_count': {'key': 'itemsCount', 'type': 'long'}, - 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbTaskOutputTableLevel, self).__init__(**kwargs) - self.object_name = None - self.started_on = None - self.ended_on = None - self.state = None - self.status_message = None - self.items_count = None - self.items_completed_count = None - self.error_prefix = None - self.result_prefix = None - self.result_type = 'TableLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level_py3.py deleted file mode 100644 index 0543c50a81aa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_output_table_level_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_db_task_output_py3 import MigrateSqlServerSqlDbTaskOutput - - -class MigrateSqlServerSqlDbTaskOutputTableLevel(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputTableLevel. - - 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 object_name: Name of the item - :vartype object_name: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message - :vartype status_message: str - :ivar items_count: Number of items - :vartype items_count: long - :ivar items_completed_count: Number of successfully completed items - :vartype items_completed_count: long - :ivar error_prefix: Wildcard string prefix to use for querying all errors - of the item - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all - sub-tem results of the item - :vartype result_prefix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'object_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'items_count': {'readonly': True}, - 'items_completed_count': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'result_prefix': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'state': {'key': 'state', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'items_count': {'key': 'itemsCount', 'type': 'long'}, - 'items_completed_count': {'key': 'itemsCompletedCount', 'type': 'long'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'result_prefix': {'key': 'resultPrefix', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlDbTaskOutputTableLevel, self).__init__(**kwargs) - self.object_name = None - self.started_on = None - self.ended_on = None - self.state = None - self.status_message = None - self.items_count = None - self.items_completed_count = None - self.error_prefix = None - self.result_prefix = None - self.result_type = 'TableLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties.py deleted file mode 100644 index 791a34f6aaeb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates on-prem SQL Server databases to Azure - SQL Database. - - 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.MigrateSqlServerSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput] - """ - - _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': 'MigrateSqlServerSqlDbTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlDbTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Migrate.SqlServer.SqlDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties_py3.py deleted file mode 100644 index 8228f7ae9864..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_db_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates on-prem SQL Server databases to Azure - SQL Database. - - 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.MigrateSqlServerSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput] - """ - - _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': 'MigrateSqlServerSqlDbTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlDbTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigrateSqlServerSqlDbTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Migrate.SqlServer.SqlDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input.py deleted file mode 100644 index cab20900dc54..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 MigrateSqlServerSqlMIDatabaseInput(Model): - """Database specific information for SQL to Azure SQL DB Managed Instance - migration task inputs. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Name of the database - :type name: str - :param restore_database_name: Required. Name of the database at - destination - :type restore_database_name: str - :param backup_file_share: Backup file share information for backing up - this database. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param backup_file_paths: The list of backup files to be used in case of - existing backups. - :type backup_file_paths: list[str] - """ - - _validation = { - 'name': {'required': True}, - 'restore_database_name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'backup_file_paths': {'key': 'backupFilePaths', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMIDatabaseInput, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.restore_database_name = kwargs.get('restore_database_name', None) - self.backup_file_share = kwargs.get('backup_file_share', None) - self.backup_file_paths = kwargs.get('backup_file_paths', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input_py3.py deleted file mode 100644 index 5c609a018b24..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_database_input_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 MigrateSqlServerSqlMIDatabaseInput(Model): - """Database specific information for SQL to Azure SQL DB Managed Instance - migration task inputs. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Name of the database - :type name: str - :param restore_database_name: Required. Name of the database at - destination - :type restore_database_name: str - :param backup_file_share: Backup file share information for backing up - this database. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param backup_file_paths: The list of backup files to be used in case of - existing backups. - :type backup_file_paths: list[str] - """ - - _validation = { - 'name': {'required': True}, - 'restore_database_name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'backup_file_paths': {'key': 'backupFilePaths', 'type': '[str]'}, - } - - def __init__(self, *, name: str, restore_database_name: str, backup_file_share=None, backup_file_paths=None, **kwargs) -> None: - super(MigrateSqlServerSqlMIDatabaseInput, self).__init__(**kwargs) - self.name = name - self.restore_database_name = restore_database_name - self.backup_file_share = backup_file_share - self.backup_file_paths = backup_file_paths diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input.py deleted file mode 100644 index d006cc376247..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 .sql_server_sql_mi_sync_task_input import SqlServerSqlMISyncTaskInput - - -class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance online scenario. - - 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.MigrateSqlServerSqlMIDatabaseInput] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param storage_resource_id: Required. Fully qualified resourceId of - storage - :type storage_resource_id: str - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'selected_databases': {'required': True}, - 'storage_resource_id': {'required': True}, - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMISyncTaskInput, self).__init__(**kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input_py3.py deleted file mode 100644 index c5f701ebc038..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_input_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 .sql_server_sql_mi_sync_task_input_py3 import SqlServerSqlMISyncTaskInput - - -class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance online scenario. - - 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.MigrateSqlServerSqlMIDatabaseInput] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param storage_resource_id: Required. Fully qualified resourceId of - storage - :type storage_resource_id: str - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'selected_databases': {'required': True}, - 'storage_resource_id': {'required': True}, - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, *, selected_databases, storage_resource_id: str, source_connection_info, target_connection_info, azure_app, backup_file_share=None, **kwargs) -> None: - super(MigrateSqlServerSqlMISyncTaskInput, self).__init__(selected_databases=selected_databases, backup_file_share=backup_file_share, storage_resource_id=storage_resource_id, source_connection_info=source_connection_info, target_connection_info=target_connection_info, azure_app=azure_app, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output.py deleted file mode 100644 index 5eb7e9675877..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 MigrateSqlServerSqlMISyncTaskOutput(Model): - """Output for task that migrates SQL Server databases to Azure SQL Database - Managed Instance using Log Replay Service. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlMISyncTaskOutputError, - MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, - MigrateSqlServerSqlMISyncTaskOutputMigrationLevel - - 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': {'ErrorOutput': 'MigrateSqlServerSqlMISyncTaskOutputError', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level.py deleted file mode 100644 index a5c5c624c0d0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_sync_task_output import MigrateSqlServerSqlMISyncTaskOutput - - -class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(MigrateSqlServerSqlMISyncTaskOutput): - """MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. - - 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 source_database_name: Name of the database - :vartype source_database_name: str - :ivar migration_state: Current state of database. Possible values include: - 'UNDEFINED', 'INITIAL', 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', - 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', - 'COMPLETED', 'CANCELLED', 'FAILED' - :vartype migration_state: str or - ~azure.mgmt.datamigration.models.DatabaseMigrationState - :ivar started_on: Database migration start time - :vartype started_on: datetime - :ivar ended_on: Database migration end time - :vartype ended_on: datetime - :ivar full_backup_set_info: Details of full backup set - :vartype full_backup_set_info: - ~azure.mgmt.datamigration.models.BackupSetInfo - :ivar last_restored_backup_set_info: Last applied backup set information - :vartype last_restored_backup_set_info: - ~azure.mgmt.datamigration.models.BackupSetInfo - :ivar active_backup_sets: Backup sets that are currently active (Either - being uploaded or getting restored) - :vartype active_backup_sets: - list[~azure.mgmt.datamigration.models.BackupSetInfo] - :ivar container_name: Name of container created in the Azure Storage - account where backups are copied to - :vartype container_name: str - :ivar error_prefix: prefix string to use for querying errors for this - database - :vartype error_prefix: str - :ivar is_full_backup_restored: Whether full backup has been applied to the - target database or not - :vartype is_full_backup_restored: bool - :ivar exceptions_and_warnings: Migration exceptions and warnings - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'source_database_name': {'readonly': True}, - 'migration_state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'full_backup_set_info': {'readonly': True}, - 'last_restored_backup_set_info': {'readonly': True}, - 'active_backup_sets': {'readonly': True}, - 'container_name': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'is_full_backup_restored': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - 'migration_state': {'key': 'migrationState', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'full_backup_set_info': {'key': 'fullBackupSetInfo', 'type': 'BackupSetInfo'}, - 'last_restored_backup_set_info': {'key': 'lastRestoredBackupSetInfo', 'type': 'BackupSetInfo'}, - 'active_backup_sets': {'key': 'activeBackupSets', 'type': '[BackupSetInfo]'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'is_full_backup_restored': {'key': 'isFullBackupRestored', 'type': 'bool'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.source_database_name = None - self.migration_state = None - self.started_on = None - self.ended_on = None - self.full_backup_set_info = None - self.last_restored_backup_set_info = None - self.active_backup_sets = None - self.container_name = None - self.error_prefix = None - self.is_full_backup_restored = None - self.exceptions_and_warnings = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level_py3.py deleted file mode 100644 index 273beb608c94..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_database_level_py3.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_sync_task_output_py3 import MigrateSqlServerSqlMISyncTaskOutput - - -class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(MigrateSqlServerSqlMISyncTaskOutput): - """MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. - - 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 source_database_name: Name of the database - :vartype source_database_name: str - :ivar migration_state: Current state of database. Possible values include: - 'UNDEFINED', 'INITIAL', 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', - 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', - 'COMPLETED', 'CANCELLED', 'FAILED' - :vartype migration_state: str or - ~azure.mgmt.datamigration.models.DatabaseMigrationState - :ivar started_on: Database migration start time - :vartype started_on: datetime - :ivar ended_on: Database migration end time - :vartype ended_on: datetime - :ivar full_backup_set_info: Details of full backup set - :vartype full_backup_set_info: - ~azure.mgmt.datamigration.models.BackupSetInfo - :ivar last_restored_backup_set_info: Last applied backup set information - :vartype last_restored_backup_set_info: - ~azure.mgmt.datamigration.models.BackupSetInfo - :ivar active_backup_sets: Backup sets that are currently active (Either - being uploaded or getting restored) - :vartype active_backup_sets: - list[~azure.mgmt.datamigration.models.BackupSetInfo] - :ivar container_name: Name of container created in the Azure Storage - account where backups are copied to - :vartype container_name: str - :ivar error_prefix: prefix string to use for querying errors for this - database - :vartype error_prefix: str - :ivar is_full_backup_restored: Whether full backup has been applied to the - target database or not - :vartype is_full_backup_restored: bool - :ivar exceptions_and_warnings: Migration exceptions and warnings - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'source_database_name': {'readonly': True}, - 'migration_state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'full_backup_set_info': {'readonly': True}, - 'last_restored_backup_set_info': {'readonly': True}, - 'active_backup_sets': {'readonly': True}, - 'container_name': {'readonly': True}, - 'error_prefix': {'readonly': True}, - 'is_full_backup_restored': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - 'migration_state': {'key': 'migrationState', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'full_backup_set_info': {'key': 'fullBackupSetInfo', 'type': 'BackupSetInfo'}, - 'last_restored_backup_set_info': {'key': 'lastRestoredBackupSetInfo', 'type': 'BackupSetInfo'}, - 'active_backup_sets': {'key': 'activeBackupSets', 'type': '[BackupSetInfo]'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'error_prefix': {'key': 'errorPrefix', 'type': 'str'}, - 'is_full_backup_restored': {'key': 'isFullBackupRestored', 'type': 'bool'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, self).__init__(**kwargs) - self.source_database_name = None - self.migration_state = None - self.started_on = None - self.ended_on = None - self.full_backup_set_info = None - self.last_restored_backup_set_info = None - self.active_backup_sets = None - self.container_name = None - self.error_prefix = None - self.is_full_backup_restored = None - self.exceptions_and_warnings = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error.py deleted file mode 100644 index afd80aa7f596..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_sync_task_output import MigrateSqlServerSqlMISyncTaskOutput - - -class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutput): - """MigrateSqlServerSqlMISyncTaskOutputError. - - 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(MigrateSqlServerSqlMISyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error_py3.py deleted file mode 100644 index 4562a672268e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_error_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_sync_task_output_py3 import MigrateSqlServerSqlMISyncTaskOutput - - -class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutput): - """MigrateSqlServerSqlMISyncTaskOutputError. - - 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(MigrateSqlServerSqlMISyncTaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level.py deleted file mode 100644 index 45e10c7cb491..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_sync_task_output import MigrateSqlServerSqlMISyncTaskOutput - - -class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(MigrateSqlServerSqlMISyncTaskOutput): - """MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. - - 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_count: Count of databases - :vartype database_count: int - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar source_server_name: Source server name - :vartype source_server_name: str - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_name: Target server name - :vartype target_server_name: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar database_error_count: Number of database level errors - :vartype database_error_count: int - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_count': {'readonly': True}, - 'state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'source_server_name': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_name': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'database_error_count': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'database_count': {'key': 'databaseCount', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'database_error_count': {'key': 'databaseErrorCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, self).__init__(**kwargs) - self.database_count = None - self.state = None - self.started_on = None - self.ended_on = None - self.source_server_name = None - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_name = None - self.target_server_version = None - self.target_server_brand_version = None - self.database_error_count = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level_py3.py deleted file mode 100644 index b3839f38ca2e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_migration_level_py3.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_sync_task_output_py3 import MigrateSqlServerSqlMISyncTaskOutput - - -class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(MigrateSqlServerSqlMISyncTaskOutput): - """MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. - - 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_count: Count of databases - :vartype database_count: int - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar source_server_name: Source server name - :vartype source_server_name: str - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_name: Target server name - :vartype target_server_name: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar database_error_count: Number of database level errors - :vartype database_error_count: int - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_count': {'readonly': True}, - 'state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'source_server_name': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_name': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'database_error_count': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'database_count': {'key': 'databaseCount', 'type': 'int'}, - 'state': {'key': 'state', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'database_error_count': {'key': 'databaseErrorCount', 'type': 'int'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, self).__init__(**kwargs) - self.database_count = None - self.state = None - self.started_on = None - self.ended_on = None - self.source_server_name = None - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_name = None - self.target_server_version = None - self.target_server_brand_version = None - self.database_error_count = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_py3.py deleted file mode 100644 index b0ad2e9ca0e2..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_output_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 MigrateSqlServerSqlMISyncTaskOutput(Model): - """Output for task that migrates SQL Server databases to Azure SQL Database - Managed Instance using Log Replay Service. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlMISyncTaskOutputError, - MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, - MigrateSqlServerSqlMISyncTaskOutputMigrationLevel - - 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': {'ErrorOutput': 'MigrateSqlServerSqlMISyncTaskOutputError', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMISyncTaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties.py deleted file mode 100644 index 59334aa6d9ce..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for task that migrates SQL Server databases to Azure SQL - Database Managed Instance sync scenario. - - 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.MigrateSqlServerSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput] - """ - - _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': 'MigrateSqlServerSqlMISyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMISyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMISyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties_py3.py deleted file mode 100644 index 873a4225385c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for task that migrates SQL Server databases to Azure SQL - Database Managed Instance sync scenario. - - 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.MigrateSqlServerSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput] - """ - - _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': 'MigrateSqlServerSqlMISyncTaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMISyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigrateSqlServerSqlMISyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Migrate.SqlServer.AzureSqlDbMI.Sync.LRS' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py deleted file mode 100644 index 2fd50fede8e0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .sql_migration_task_input import SqlMigrationTaskInput - - -class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :param selected_logins: Logins to migrate. - :type selected_logins: list[str] - :param selected_agent_jobs: Agent Jobs to migrate. - :type selected_agent_jobs: list[str] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param backup_blob_share: Required. SAS URI of Azure Storage Account - Container to be used for storing backup files. - :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :param backup_mode: Backup Mode to specify whether to use existing backup - or create new backup. If using existing backups, backup file paths are - required to be provided in selectedDatabases. Possible values include: - 'CreateBackup', 'ExistingBackup' - :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - 'backup_blob_share': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, - 'selected_agent_jobs': {'key': 'selectedAgentJobs', 'type': '[str]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, - 'backup_mode': {'key': 'backupMode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMITaskInput, self).__init__(**kwargs) - self.selected_databases = kwargs.get('selected_databases', None) - self.selected_logins = kwargs.get('selected_logins', None) - self.selected_agent_jobs = kwargs.get('selected_agent_jobs', None) - self.backup_file_share = kwargs.get('backup_file_share', None) - self.backup_blob_share = kwargs.get('backup_blob_share', None) - self.backup_mode = kwargs.get('backup_mode', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py deleted file mode 100644 index 4d201d1ddcac..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_input_py3.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .sql_migration_task_input_py3 import SqlMigrationTaskInput - - -class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :param selected_logins: Logins to migrate. - :type selected_logins: list[str] - :param selected_agent_jobs: Agent Jobs to migrate. - :type selected_agent_jobs: list[str] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param backup_blob_share: Required. SAS URI of Azure Storage Account - Container to be used for storing backup files. - :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :param backup_mode: Backup Mode to specify whether to use existing backup - or create new backup. If using existing backups, backup file paths are - required to be provided in selectedDatabases. Possible values include: - 'CreateBackup', 'ExistingBackup' - :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - 'backup_blob_share': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, - 'selected_agent_jobs': {'key': 'selectedAgentJobs', 'type': '[str]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, - 'backup_mode': {'key': 'backupMode', 'type': 'str'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, backup_blob_share, selected_logins=None, selected_agent_jobs=None, backup_file_share=None, backup_mode=None, **kwargs) -> None: - super(MigrateSqlServerSqlMITaskInput, self).__init__(source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs) - self.selected_databases = selected_databases - self.selected_logins = selected_logins - self.selected_agent_jobs = selected_agent_jobs - self.backup_file_share = backup_file_share - self.backup_blob_share = backup_blob_share - self.backup_mode = backup_mode diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py deleted file mode 100644 index 2c52e1015bb9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 MigrateSqlServerSqlMITaskOutput(Model): - """Output for task that migrates SQL Server databases to Azure SQL Database - Managed Instance. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlMITaskOutputError, - MigrateSqlServerSqlMITaskOutputLoginLevel, - MigrateSqlServerSqlMITaskOutputAgentJobLevel, - MigrateSqlServerSqlMITaskOutputDatabaseLevel, - MigrateSqlServerSqlMITaskOutputMigrationLevel - - 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': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'LoginLevelOutput': 'MigrateSqlServerSqlMITaskOutputLoginLevel', 'AgentJobLevelOutput': 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMITaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py deleted file mode 100644 index f724aaa61baa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputAgentJobLevel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Agent Job name. - :vartype name: str - :ivar is_enabled: The state of the original Agent Job. - :vartype is_enabled: bool - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar message: Migration progress message - :vartype message: str - :ivar exceptions_and_warnings: Migration errors and warnings per job - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'is_enabled': {'readonly': True}, - 'state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'message': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'state': {'key': 'state', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMITaskOutputAgentJobLevel, self).__init__(**kwargs) - self.name = None - self.is_enabled = None - self.state = None - self.started_on = None - self.ended_on = None - self.message = None - self.exceptions_and_warnings = None - self.result_type = 'AgentJobLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level_py3.py deleted file mode 100644 index 2ce2c02210d6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_agent_job_level_py3.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputAgentJobLevel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar name: Agent Job name. - :vartype name: str - :ivar is_enabled: The state of the original Agent Job. - :vartype is_enabled: bool - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar message: Migration progress message - :vartype message: str - :ivar exceptions_and_warnings: Migration errors and warnings per job - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'name': {'readonly': True}, - 'is_enabled': {'readonly': True}, - 'state': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'message': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'state': {'key': 'state', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMITaskOutputAgentJobLevel, self).__init__(**kwargs) - self.name = None - self.is_enabled = None - self.state = None - self.started_on = None - self.ended_on = None - self.message = None - self.exceptions_and_warnings = None - self.result_type = 'AgentJobLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py deleted file mode 100644 index fb0b68e98fdb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputDatabaseLevel. - - 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 size_mb: Size of the database in megabytes - :vartype size_mb: float - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Current stage of migration. Possible values include: 'None', - 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.DatabaseMigrationStage - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar message: Migration progress message - :vartype message: str - :ivar exceptions_and_warnings: Migration exceptions and warnings - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_name': {'readonly': True}, - 'size_mb': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'message': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMITaskOutputDatabaseLevel, self).__init__(**kwargs) - self.database_name = None - self.size_mb = None - self.state = None - self.stage = None - self.started_on = None - self.ended_on = None - self.message = None - self.exceptions_and_warnings = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py deleted file mode 100644 index 68477fa457ca..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_database_level_py3.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputDatabaseLevel. - - 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 size_mb: Size of the database in megabytes - :vartype size_mb: float - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Current stage of migration. Possible values include: 'None', - 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.DatabaseMigrationStage - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar message: Migration progress message - :vartype message: str - :ivar exceptions_and_warnings: Migration exceptions and warnings - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'database_name': {'readonly': True}, - 'size_mb': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'message': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'size_mb': {'key': 'sizeMB', 'type': 'float'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMITaskOutputDatabaseLevel, self).__init__(**kwargs) - self.database_name = None - self.size_mb = None - self.state = None - self.stage = None - self.started_on = None - self.ended_on = None - self.message = None - self.exceptions_and_warnings = None - self.result_type = 'DatabaseLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error.py deleted file mode 100644 index a6d243ab35f9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputError. - - 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(MigrateSqlServerSqlMITaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error_py3.py deleted file mode 100644 index 3d0a4a9043f8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_error_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputError. - - 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(MigrateSqlServerSqlMITaskOutputError, self).__init__(**kwargs) - self.error = None - self.result_type = 'ErrorOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level.py deleted file mode 100644 index 4a32e8ca6646..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputLoginLevel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar login_name: Login name. - :vartype login_name: str - :ivar state: Current state of login. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Current stage of login. Possible values include: 'None', - 'Initialize', 'LoginMigration', 'EstablishUserMapping', - 'AssignRoleMembership', 'AssignRoleOwnership', - 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.LoginMigrationStage - :ivar started_on: Login migration start time - :vartype started_on: datetime - :ivar ended_on: Login migration end time - :vartype ended_on: datetime - :ivar message: Login migration progress message - :vartype message: str - :ivar exceptions_and_warnings: Login migration errors and warnings per - login - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'login_name': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'message': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'login_name': {'key': 'loginName', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMITaskOutputLoginLevel, self).__init__(**kwargs) - self.login_name = None - self.state = None - self.stage = None - self.started_on = None - self.ended_on = None - self.message = None - self.exceptions_and_warnings = None - self.result_type = 'LoginLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level_py3.py deleted file mode 100644 index ee9980b1b0f6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_login_level_py3.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputLoginLevel. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Result identifier - :vartype id: str - :param result_type: Required. Constant filled by server. - :type result_type: str - :ivar login_name: Login name. - :vartype login_name: str - :ivar state: Current state of login. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Current stage of login. Possible values include: 'None', - 'Initialize', 'LoginMigration', 'EstablishUserMapping', - 'AssignRoleMembership', 'AssignRoleOwnership', - 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' - :vartype stage: str or - ~azure.mgmt.datamigration.models.LoginMigrationStage - :ivar started_on: Login migration start time - :vartype started_on: datetime - :ivar ended_on: Login migration end time - :vartype ended_on: datetime - :ivar message: Login migration progress message - :vartype message: str - :ivar exceptions_and_warnings: Login migration errors and warnings per - login - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'login_name': {'readonly': True}, - 'state': {'readonly': True}, - 'stage': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'message': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'login_name': {'key': 'loginName', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'stage': {'key': 'stage', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMITaskOutputLoginLevel, self).__init__(**kwargs) - self.login_name = None - self.state = None - self.stage = None - self.started_on = None - self.ended_on = None - self.message = None - self.exceptions_and_warnings = None - self.result_type = 'LoginLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py deleted file mode 100644 index a50e27140b6b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputMigrationLevel. - - 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 status: Current status of migration. Possible values include: - 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - 'CompletedWithWarnings' - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar agent_jobs: Selected agent jobs as a map from name to id - :vartype agent_jobs: dict[str, str] - :ivar logins: Selected logins as a map from name to id - :vartype logins: dict[str, str] - :ivar message: Migration progress message - :vartype message: str - :ivar server_role_results: Map of server role migration results. - :vartype server_role_results: dict[str, - ~azure.mgmt.datamigration.models.StartMigrationScenarioServerRoleResult] - :ivar orphaned_users_info: List of orphaned users. - :vartype orphaned_users_info: - list[~azure.mgmt.datamigration.models.OrphanedUserInfo] - :ivar databases: Selected databases as a map from database name to - database id - :vartype databases: dict[str, str] - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'status': {'readonly': True}, - 'state': {'readonly': True}, - 'agent_jobs': {'readonly': True}, - 'logins': {'readonly': True}, - 'message': {'readonly': True}, - 'server_role_results': {'readonly': True}, - 'orphaned_users_info': {'readonly': True}, - 'databases': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'exceptions_and_warnings': {'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'}, - 'status': {'key': 'status', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, - 'logins': {'key': 'logins', 'type': '{str}'}, - 'message': {'key': 'message', 'type': 'str'}, - 'server_role_results': {'key': 'serverRoleResults', 'type': '{StartMigrationScenarioServerRoleResult}'}, - 'orphaned_users_info': {'key': 'orphanedUsersInfo', 'type': '[OrphanedUserInfo]'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMITaskOutputMigrationLevel, self).__init__(**kwargs) - self.started_on = None - self.ended_on = None - self.status = None - self.state = None - self.agent_jobs = None - self.logins = None - self.message = None - self.server_role_results = None - self.orphaned_users_info = None - self.databases = None - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_version = None - self.target_server_brand_version = None - self.exceptions_and_warnings = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py deleted file mode 100644 index c49380abea91..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_migration_level_py3.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput - - -class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputMigrationLevel. - - 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 status: Current status of migration. Possible values include: - 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - 'CompletedWithWarnings' - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar agent_jobs: Selected agent jobs as a map from name to id - :vartype agent_jobs: dict[str, str] - :ivar logins: Selected logins as a map from name to id - :vartype logins: dict[str, str] - :ivar message: Migration progress message - :vartype message: str - :ivar server_role_results: Map of server role migration results. - :vartype server_role_results: dict[str, - ~azure.mgmt.datamigration.models.StartMigrationScenarioServerRoleResult] - :ivar orphaned_users_info: List of orphaned users. - :vartype orphaned_users_info: - list[~azure.mgmt.datamigration.models.OrphanedUserInfo] - :ivar databases: Selected databases as a map from database name to - database id - :vartype databases: dict[str, str] - :ivar source_server_version: Source server version - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'result_type': {'required': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'status': {'readonly': True}, - 'state': {'readonly': True}, - 'agent_jobs': {'readonly': True}, - 'logins': {'readonly': True}, - 'message': {'readonly': True}, - 'server_role_results': {'readonly': True}, - 'orphaned_users_info': {'readonly': True}, - 'databases': {'readonly': True}, - 'source_server_version': {'readonly': True}, - 'source_server_brand_version': {'readonly': True}, - 'target_server_version': {'readonly': True}, - 'target_server_brand_version': {'readonly': True}, - 'exceptions_and_warnings': {'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'}, - 'status': {'key': 'status', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'agent_jobs': {'key': 'agentJobs', 'type': '{str}'}, - 'logins': {'key': 'logins', 'type': '{str}'}, - 'message': {'key': 'message', 'type': 'str'}, - 'server_role_results': {'key': 'serverRoleResults', 'type': '{StartMigrationScenarioServerRoleResult}'}, - 'orphaned_users_info': {'key': 'orphanedUsersInfo', 'type': '[OrphanedUserInfo]'}, - 'databases': {'key': 'databases', 'type': '{str}'}, - 'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'}, - 'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'}, - 'target_server_version': {'key': 'targetServerVersion', 'type': 'str'}, - 'target_server_brand_version': {'key': 'targetServerBrandVersion', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMITaskOutputMigrationLevel, self).__init__(**kwargs) - self.started_on = None - self.ended_on = None - self.status = None - self.state = None - self.agent_jobs = None - self.logins = None - self.message = None - self.server_role_results = None - self.orphaned_users_info = None - self.databases = None - self.source_server_version = None - self.source_server_brand_version = None - self.target_server_version = None - self.target_server_brand_version = None - self.exceptions_and_warnings = None - self.result_type = 'MigrationLevelOutput' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py deleted file mode 100644 index d56b33cdb678..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_output_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 MigrateSqlServerSqlMITaskOutput(Model): - """Output for task that migrates SQL Server databases to Azure SQL Database - Managed Instance. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MigrateSqlServerSqlMITaskOutputError, - MigrateSqlServerSqlMITaskOutputLoginLevel, - MigrateSqlServerSqlMITaskOutputAgentJobLevel, - MigrateSqlServerSqlMITaskOutputDatabaseLevel, - MigrateSqlServerSqlMITaskOutputMigrationLevel - - 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': {'ErrorOutput': 'MigrateSqlServerSqlMITaskOutputError', 'LoginLevelOutput': 'MigrateSqlServerSqlMITaskOutputLoginLevel', 'AgentJobLevelOutput': 'MigrateSqlServerSqlMITaskOutputAgentJobLevel', 'DatabaseLevelOutput': 'MigrateSqlServerSqlMITaskOutputDatabaseLevel', 'MigrationLevelOutput': 'MigrateSqlServerSqlMITaskOutputMigrationLevel'} - } - - def __init__(self, **kwargs) -> None: - super(MigrateSqlServerSqlMITaskOutput, self).__init__(**kwargs) - self.id = None - self.result_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties.py deleted file mode 100644 index 06bcb8481edf..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties): - """Properties for task that migrates SQL Server databases to Azure SQL - Database Managed Instance. - - 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.MigrateSqlServerSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput] - """ - - _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': 'MigrateSqlServerSqlMITaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMITaskOutput]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlMITaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Migrate.SqlServer.AzureSqlDbMI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties_py3.py deleted file mode 100644 index c421df1cd0a1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_mi_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties): - """Properties for task that migrates SQL Server databases to Azure SQL - Database Managed Instance. - - 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.MigrateSqlServerSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput] - """ - - _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': 'MigrateSqlServerSqlMITaskInput'}, - 'output': {'key': 'output', 'type': '[MigrateSqlServerSqlMITaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(MigrateSqlServerSqlMITaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Migrate.SqlServer.AzureSqlDbMI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input.py deleted file mode 100644 index fd2a6ced8cd1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 MigrateSqlServerSqlServerDatabaseInput(Model): - """Database specific information for SQL to SQL migration task inputs. - - :param name: Name of the database - :type name: str - :param restore_database_name: Name of the database at destination - :type restore_database_name: str - :param backup_and_restore_folder: The backup and restore folder - :type backup_and_restore_folder: str - :param database_files: The list of database files - :type database_files: - list[~azure.mgmt.datamigration.models.DatabaseFileInput] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, - 'backup_and_restore_folder': {'key': 'backupAndRestoreFolder', 'type': 'str'}, - 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInput]'}, - } - - def __init__(self, **kwargs): - super(MigrateSqlServerSqlServerDatabaseInput, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.restore_database_name = kwargs.get('restore_database_name', None) - self.backup_and_restore_folder = kwargs.get('backup_and_restore_folder', None) - self.database_files = kwargs.get('database_files', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input_py3.py deleted file mode 100644 index a4306e254350..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sql_server_sql_server_database_input_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 MigrateSqlServerSqlServerDatabaseInput(Model): - """Database specific information for SQL to SQL migration task inputs. - - :param name: Name of the database - :type name: str - :param restore_database_name: Name of the database at destination - :type restore_database_name: str - :param backup_and_restore_folder: The backup and restore folder - :type backup_and_restore_folder: str - :param database_files: The list of database files - :type database_files: - list[~azure.mgmt.datamigration.models.DatabaseFileInput] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'restore_database_name': {'key': 'restoreDatabaseName', 'type': 'str'}, - 'backup_and_restore_folder': {'key': 'backupAndRestoreFolder', 'type': 'str'}, - 'database_files': {'key': 'databaseFiles', 'type': '[DatabaseFileInput]'}, - } - - def __init__(self, *, name: str=None, restore_database_name: str=None, backup_and_restore_folder: str=None, database_files=None, **kwargs) -> None: - super(MigrateSqlServerSqlServerDatabaseInput, self).__init__(**kwargs) - self.name = name - self.restore_database_name = restore_database_name - self.backup_and_restore_folder = backup_and_restore_folder - self.database_files = database_files diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input.py deleted file mode 100644 index 33544df833c0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 MigrateSyncCompleteCommandInput(Model): - """Input for command that completes sync migration for a database. - - All required parameters must be populated in order to send to Azure. - - :param database_name: Required. Name of database - :type database_name: str - :param commit_time_stamp: Time stamp to complete - :type commit_time_stamp: datetime - """ - - _validation = { - 'database_name': {'required': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'commit_time_stamp': {'key': 'commitTimeStamp', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(MigrateSyncCompleteCommandInput, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.commit_time_stamp = kwargs.get('commit_time_stamp', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input_py3.py deleted file mode 100644 index 47c29374b37d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_input_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 MigrateSyncCompleteCommandInput(Model): - """Input for command that completes sync migration for a database. - - All required parameters must be populated in order to send to Azure. - - :param database_name: Required. Name of database - :type database_name: str - :param commit_time_stamp: Time stamp to complete - :type commit_time_stamp: datetime - """ - - _validation = { - 'database_name': {'required': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'commit_time_stamp': {'key': 'commitTimeStamp', 'type': 'iso-8601'}, - } - - def __init__(self, *, database_name: str, commit_time_stamp=None, **kwargs) -> None: - super(MigrateSyncCompleteCommandInput, self).__init__(**kwargs) - self.database_name = database_name - self.commit_time_stamp = commit_time_stamp diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output.py deleted file mode 100644 index 8ffa3c586354..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 MigrateSyncCompleteCommandOutput(Model): - """Output for command that completes sync migration for a database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar errors: List of errors that happened during the command execution - :vartype errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(MigrateSyncCompleteCommandOutput, self).__init__(**kwargs) - self.id = None - self.errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output_py3.py deleted file mode 100644 index b71030df8209..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_output_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 MigrateSyncCompleteCommandOutput(Model): - """Output for command that completes sync migration for a database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar errors: List of errors that happened during the command execution - :vartype errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrateSyncCompleteCommandOutput, self).__init__(**kwargs) - self.id = None - self.errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties.py deleted file mode 100644 index 8f1ca8778a39..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .command_properties import CommandProperties - - -class MigrateSyncCompleteCommandProperties(CommandProperties): - """Properties for the command that completes sync migration for a database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: - ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput - :ivar output: Command output. This is ignored if submitted. - :vartype output: - ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - 'output': {'readonly': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MigrateSyncCompleteCommandInput'}, - 'output': {'key': 'output', 'type': 'MigrateSyncCompleteCommandOutput'}, - } - - def __init__(self, **kwargs): - super(MigrateSyncCompleteCommandProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.command_type = 'Migrate.Sync.Complete.Database' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties_py3.py deleted file mode 100644 index 5596e1f53f14..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_sync_complete_command_properties_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .command_properties_py3 import CommandProperties - - -class MigrateSyncCompleteCommandProperties(CommandProperties): - """Properties for the command that completes sync migration for a database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: - ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput - :ivar output: Command output. This is ignored if submitted. - :vartype output: - ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - 'output': {'readonly': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MigrateSyncCompleteCommandInput'}, - 'output': {'key': 'output', 'type': 'MigrateSyncCompleteCommandOutput'}, - } - - def __init__(self, *, input=None, **kwargs) -> None: - super(MigrateSyncCompleteCommandProperties, self).__init__(**kwargs) - self.input = input - self.output = None - self.command_type = 'Migrate.Sync.Complete.Database' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info.py deleted file mode 100644 index b9877604b4b2..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MigrationEligibilityInfo(Model): - """Information about migration eligibility of a server object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar is_eligibile_for_migration: Whether object is eligible for migration - or not. - :vartype is_eligibile_for_migration: bool - :ivar validation_messages: Information about eligibility failure for the - server object. - :vartype validation_messages: list[str] - """ - - _validation = { - 'is_eligibile_for_migration': {'readonly': True}, - 'validation_messages': {'readonly': True}, - } - - _attribute_map = { - 'is_eligibile_for_migration': {'key': 'isEligibileForMigration', 'type': 'bool'}, - 'validation_messages': {'key': 'validationMessages', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(MigrationEligibilityInfo, self).__init__(**kwargs) - self.is_eligibile_for_migration = None - self.validation_messages = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info_py3.py deleted file mode 100644 index 5ca77906d734..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_eligibility_info_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MigrationEligibilityInfo(Model): - """Information about migration eligibility of a server object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar is_eligibile_for_migration: Whether object is eligible for migration - or not. - :vartype is_eligibile_for_migration: bool - :ivar validation_messages: Information about eligibility failure for the - server object. - :vartype validation_messages: list[str] - """ - - _validation = { - 'is_eligibile_for_migration': {'readonly': True}, - 'validation_messages': {'readonly': True}, - } - - _attribute_map = { - 'is_eligibile_for_migration': {'key': 'isEligibileForMigration', 'type': 'bool'}, - 'validation_messages': {'key': 'validationMessages', 'type': '[str]'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrationEligibilityInfo, self).__init__(**kwargs) - self.is_eligibile_for_migration = None - self.validation_messages = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result.py deleted file mode 100644 index 7b059511f6b5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 MigrationReportResult(Model): - """Migration validation report result, contains the url for downloading the - generated report. - - :param id: Migration validation result identifier - :type id: str - :param report_url: The url of the report. - :type report_url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'report_url': {'key': 'reportUrl', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrationReportResult, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.report_url = kwargs.get('report_url', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result_py3.py deleted file mode 100644 index 27eaefba14b7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_report_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 MigrationReportResult(Model): - """Migration validation report result, contains the url for downloading the - generated report. - - :param id: Migration validation result identifier - :type id: str - :param report_url: The url of the report. - :type report_url: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'report_url': {'key': 'reportUrl', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, report_url: str=None, **kwargs) -> None: - super(MigrationReportResult, self).__init__(**kwargs) - self.id = id - self.report_url = report_url diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata.py deleted file mode 100644 index 5173669a2fa4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 MigrationTableMetadata(Model): - """Metadata for tables selected in migration project. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar source_table_name: Source table name - :vartype source_table_name: str - :ivar target_table_name: Target table name - :vartype target_table_name: str - """ - - _validation = { - 'source_table_name': {'readonly': True}, - 'target_table_name': {'readonly': True}, - } - - _attribute_map = { - 'source_table_name': {'key': 'sourceTableName', 'type': 'str'}, - 'target_table_name': {'key': 'targetTableName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrationTableMetadata, self).__init__(**kwargs) - self.source_table_name = None - self.target_table_name = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata_py3.py deleted file mode 100644 index 3bef7faa910a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_table_metadata_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 MigrationTableMetadata(Model): - """Metadata for tables selected in migration project. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar source_table_name: Source table name - :vartype source_table_name: str - :ivar target_table_name: Target table name - :vartype target_table_name: str - """ - - _validation = { - 'source_table_name': {'readonly': True}, - 'target_table_name': {'readonly': True}, - } - - _attribute_map = { - 'source_table_name': {'key': 'sourceTableName', 'type': 'str'}, - 'target_table_name': {'key': 'targetTableName', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrationTableMetadata, self).__init__(**kwargs) - self.source_table_name = None - self.target_table_name = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result.py deleted file mode 100644 index 4c07312a2375..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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 MigrationValidationDatabaseLevelResult(Model): - """Database level validation results. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar migration_id: Migration Identifier - :vartype migration_id: str - :ivar source_database_name: Name of the source database - :vartype source_database_name: str - :ivar target_database_name: Name of the target database - :vartype target_database_name: str - :ivar started_on: Validation start time - :vartype started_on: datetime - :ivar ended_on: Validation end time - :vartype ended_on: datetime - :ivar data_integrity_validation_result: Provides data integrity validation - result between the source and target tables that are migrated. - :vartype data_integrity_validation_result: - ~azure.mgmt.datamigration.models.DataIntegrityValidationResult - :ivar schema_validation_result: Provides schema comparison result between - source and target database - :vartype schema_validation_result: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResult - :ivar query_analysis_validation_result: Results of some of the query - execution result between source and target database - :vartype query_analysis_validation_result: - ~azure.mgmt.datamigration.models.QueryAnalysisValidationResult - :ivar status: Current status of validation at the database level. Possible - values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', - 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - 'id': {'readonly': True}, - 'migration_id': {'readonly': True}, - 'source_database_name': {'readonly': True}, - 'target_database_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'data_integrity_validation_result': {'readonly': True}, - 'schema_validation_result': {'readonly': True}, - 'query_analysis_validation_result': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'migration_id': {'key': 'migrationId', 'type': 'str'}, - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'data_integrity_validation_result': {'key': 'dataIntegrityValidationResult', 'type': 'DataIntegrityValidationResult'}, - 'schema_validation_result': {'key': 'schemaValidationResult', 'type': 'SchemaComparisonValidationResult'}, - 'query_analysis_validation_result': {'key': 'queryAnalysisValidationResult', 'type': 'QueryAnalysisValidationResult'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrationValidationDatabaseLevelResult, self).__init__(**kwargs) - self.id = None - self.migration_id = None - self.source_database_name = None - self.target_database_name = None - self.started_on = None - self.ended_on = None - self.data_integrity_validation_result = None - self.schema_validation_result = None - self.query_analysis_validation_result = None - self.status = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result_py3.py deleted file mode 100644 index b16d85971767..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_level_result_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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 MigrationValidationDatabaseLevelResult(Model): - """Database level validation results. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar migration_id: Migration Identifier - :vartype migration_id: str - :ivar source_database_name: Name of the source database - :vartype source_database_name: str - :ivar target_database_name: Name of the target database - :vartype target_database_name: str - :ivar started_on: Validation start time - :vartype started_on: datetime - :ivar ended_on: Validation end time - :vartype ended_on: datetime - :ivar data_integrity_validation_result: Provides data integrity validation - result between the source and target tables that are migrated. - :vartype data_integrity_validation_result: - ~azure.mgmt.datamigration.models.DataIntegrityValidationResult - :ivar schema_validation_result: Provides schema comparison result between - source and target database - :vartype schema_validation_result: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResult - :ivar query_analysis_validation_result: Results of some of the query - execution result between source and target database - :vartype query_analysis_validation_result: - ~azure.mgmt.datamigration.models.QueryAnalysisValidationResult - :ivar status: Current status of validation at the database level. Possible - values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', - 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - 'id': {'readonly': True}, - 'migration_id': {'readonly': True}, - 'source_database_name': {'readonly': True}, - 'target_database_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'data_integrity_validation_result': {'readonly': True}, - 'schema_validation_result': {'readonly': True}, - 'query_analysis_validation_result': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'migration_id': {'key': 'migrationId', 'type': 'str'}, - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'data_integrity_validation_result': {'key': 'dataIntegrityValidationResult', 'type': 'DataIntegrityValidationResult'}, - 'schema_validation_result': {'key': 'schemaValidationResult', 'type': 'SchemaComparisonValidationResult'}, - 'query_analysis_validation_result': {'key': 'queryAnalysisValidationResult', 'type': 'QueryAnalysisValidationResult'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrationValidationDatabaseLevelResult, self).__init__(**kwargs) - self.id = None - self.migration_id = None - self.source_database_name = None - self.target_database_name = None - self.started_on = None - self.ended_on = None - self.data_integrity_validation_result = None - self.schema_validation_result = None - self.query_analysis_validation_result = None - self.status = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result.py deleted file mode 100644 index f86917ac546e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 MigrationValidationDatabaseSummaryResult(Model): - """Migration Validation Database level summary result. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar migration_id: Migration Identifier - :vartype migration_id: str - :ivar source_database_name: Name of the source database - :vartype source_database_name: str - :ivar target_database_name: Name of the target database - :vartype target_database_name: str - :ivar started_on: Validation start time - :vartype started_on: datetime - :ivar ended_on: Validation end time - :vartype ended_on: datetime - :ivar status: Current status of validation at the database level. Possible - values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', - 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - 'id': {'readonly': True}, - 'migration_id': {'readonly': True}, - 'source_database_name': {'readonly': True}, - 'target_database_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'migration_id': {'key': 'migrationId', 'type': 'str'}, - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrationValidationDatabaseSummaryResult, self).__init__(**kwargs) - self.id = None - self.migration_id = None - self.source_database_name = None - self.target_database_name = None - self.started_on = None - self.ended_on = None - self.status = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result_py3.py deleted file mode 100644 index 8b537036ba04..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_database_summary_result_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 MigrationValidationDatabaseSummaryResult(Model): - """Migration Validation Database level summary result. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar migration_id: Migration Identifier - :vartype migration_id: str - :ivar source_database_name: Name of the source database - :vartype source_database_name: str - :ivar target_database_name: Name of the target database - :vartype target_database_name: str - :ivar started_on: Validation start time - :vartype started_on: datetime - :ivar ended_on: Validation end time - :vartype ended_on: datetime - :ivar status: Current status of validation at the database level. Possible - values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', - 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - 'id': {'readonly': True}, - 'migration_id': {'readonly': True}, - 'source_database_name': {'readonly': True}, - 'target_database_name': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'migration_id': {'key': 'migrationId', 'type': 'str'}, - 'source_database_name': {'key': 'sourceDatabaseName', 'type': 'str'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(MigrationValidationDatabaseSummaryResult, self).__init__(**kwargs) - self.id = None - self.migration_id = None - self.source_database_name = None - self.target_database_name = None - self.started_on = None - self.ended_on = None - self.status = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options.py deleted file mode 100644 index b9b6685ad85f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 MigrationValidationOptions(Model): - """Types of validations to run after the migration. - - :param enable_schema_validation: Allows to compare the schema information - between source and target. - :type enable_schema_validation: bool - :param enable_data_integrity_validation: Allows to perform a checksum - based data integrity validation between source and target for the selected - database / tables . - :type enable_data_integrity_validation: bool - :param enable_query_analysis_validation: Allows to perform a quick and - intelligent query analysis by retrieving queries from the source database - and executes them in the target. The result will have execution statistics - for executions in source and target databases for the extracted queries. - :type enable_query_analysis_validation: bool - """ - - _attribute_map = { - 'enable_schema_validation': {'key': 'enableSchemaValidation', 'type': 'bool'}, - 'enable_data_integrity_validation': {'key': 'enableDataIntegrityValidation', 'type': 'bool'}, - 'enable_query_analysis_validation': {'key': 'enableQueryAnalysisValidation', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MigrationValidationOptions, self).__init__(**kwargs) - self.enable_schema_validation = kwargs.get('enable_schema_validation', None) - self.enable_data_integrity_validation = kwargs.get('enable_data_integrity_validation', None) - self.enable_query_analysis_validation = kwargs.get('enable_query_analysis_validation', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options_py3.py deleted file mode 100644 index e58ac66585cd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_options_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 MigrationValidationOptions(Model): - """Types of validations to run after the migration. - - :param enable_schema_validation: Allows to compare the schema information - between source and target. - :type enable_schema_validation: bool - :param enable_data_integrity_validation: Allows to perform a checksum - based data integrity validation between source and target for the selected - database / tables . - :type enable_data_integrity_validation: bool - :param enable_query_analysis_validation: Allows to perform a quick and - intelligent query analysis by retrieving queries from the source database - and executes them in the target. The result will have execution statistics - for executions in source and target databases for the extracted queries. - :type enable_query_analysis_validation: bool - """ - - _attribute_map = { - 'enable_schema_validation': {'key': 'enableSchemaValidation', 'type': 'bool'}, - 'enable_data_integrity_validation': {'key': 'enableDataIntegrityValidation', 'type': 'bool'}, - 'enable_query_analysis_validation': {'key': 'enableQueryAnalysisValidation', 'type': 'bool'}, - } - - def __init__(self, *, enable_schema_validation: bool=None, enable_data_integrity_validation: bool=None, enable_query_analysis_validation: bool=None, **kwargs) -> None: - super(MigrationValidationOptions, self).__init__(**kwargs) - self.enable_schema_validation = enable_schema_validation - self.enable_data_integrity_validation = enable_data_integrity_validation - self.enable_query_analysis_validation = enable_query_analysis_validation diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result.py deleted file mode 100644 index 534150a0db08..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 MigrationValidationResult(Model): - """Migration Validation Result. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Migration validation result identifier - :vartype id: str - :ivar migration_id: Migration Identifier - :vartype migration_id: str - :param summary_results: Validation summary results for each database - :type summary_results: dict[str, - ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] - :ivar status: Current status of validation at the migration level. Status - from the database validation result status will be aggregated here. - Possible values include: 'Default', 'NotStarted', 'Initialized', - 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - 'id': {'readonly': True}, - 'migration_id': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'migration_id': {'key': 'migrationId', 'type': 'str'}, - 'summary_results': {'key': 'summaryResults', 'type': '{MigrationValidationDatabaseSummaryResult}'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MigrationValidationResult, self).__init__(**kwargs) - self.id = None - self.migration_id = None - self.summary_results = kwargs.get('summary_results', None) - self.status = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result_py3.py deleted file mode 100644 index a13e92b257b4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migration_validation_result_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 MigrationValidationResult(Model): - """Migration Validation Result. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Migration validation result identifier - :vartype id: str - :ivar migration_id: Migration Identifier - :vartype migration_id: str - :param summary_results: Validation summary results for each database - :type summary_results: dict[str, - ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] - :ivar status: Current status of validation at the migration level. Status - from the database validation result status will be aggregated here. - Possible values include: 'Default', 'NotStarted', 'Initialized', - 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - 'id': {'readonly': True}, - 'migration_id': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'migration_id': {'key': 'migrationId', 'type': 'str'}, - 'summary_results': {'key': 'summaryResults', 'type': '{MigrationValidationDatabaseSummaryResult}'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, summary_results=None, **kwargs) -> None: - super(MigrationValidationResult, self).__init__(**kwargs) - self.id = None - self.migration_id = None - self.summary_results = summary_results - self.status = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command.py deleted file mode 100644 index 4643f63dcacc..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .command_properties import CommandProperties - - -class MongoDbCancelCommand(CommandProperties): - """Properties for the command that cancels a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, - } - - def __init__(self, **kwargs): - super(MongoDbCancelCommand, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.command_type = 'cancel' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command_py3.py deleted file mode 100644 index 83971c52855f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cancel_command_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .command_properties_py3 import CommandProperties - - -class MongoDbCancelCommand(CommandProperties): - """Properties for the command that cancels a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, - } - - def __init__(self, *, input=None, **kwargs) -> None: - super(MongoDbCancelCommand, self).__init__(**kwargs) - self.input = input - self.command_type = 'cancel' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info.py deleted file mode 100644 index d8c2c284f24c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 MongoDbClusterInfo(Model): - """Describes a MongoDB data source. - - All required parameters must be populated in order to send to Azure. - - :param databases: Required. A list of non-system databases in the cluster - :type databases: - list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] - :param supports_sharding: Required. Whether the cluster supports sharded - collections - :type supports_sharding: bool - :param type: Required. The type of data source. Possible values include: - 'BlobContainer', 'CosmosDb', 'MongoDb' - :type type: str or ~azure.mgmt.datamigration.models.MongoDbClusterType - :param version: Required. The version of the data source in the form x.y.z - (e.g. 3.6.7). Not used if Type is BlobContainer. - :type version: str - """ - - _validation = { - 'databases': {'required': True}, - 'supports_sharding': {'required': True}, - 'type': {'required': True}, - 'version': {'required': True}, - } - - _attribute_map = { - 'databases': {'key': 'databases', 'type': '[MongoDbDatabaseInfo]'}, - 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MongoDbClusterInfo, self).__init__(**kwargs) - self.databases = kwargs.get('databases', None) - self.supports_sharding = kwargs.get('supports_sharding', None) - self.type = kwargs.get('type', None) - self.version = kwargs.get('version', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info_py3.py deleted file mode 100644 index 5c47019ed26a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_cluster_info_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 MongoDbClusterInfo(Model): - """Describes a MongoDB data source. - - All required parameters must be populated in order to send to Azure. - - :param databases: Required. A list of non-system databases in the cluster - :type databases: - list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] - :param supports_sharding: Required. Whether the cluster supports sharded - collections - :type supports_sharding: bool - :param type: Required. The type of data source. Possible values include: - 'BlobContainer', 'CosmosDb', 'MongoDb' - :type type: str or ~azure.mgmt.datamigration.models.MongoDbClusterType - :param version: Required. The version of the data source in the form x.y.z - (e.g. 3.6.7). Not used if Type is BlobContainer. - :type version: str - """ - - _validation = { - 'databases': {'required': True}, - 'supports_sharding': {'required': True}, - 'type': {'required': True}, - 'version': {'required': True}, - } - - _attribute_map = { - 'databases': {'key': 'databases', 'type': '[MongoDbDatabaseInfo]'}, - 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, - 'type': {'key': 'type', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, *, databases, supports_sharding: bool, type, version: str, **kwargs) -> None: - super(MongoDbClusterInfo, self).__init__(**kwargs) - self.databases = databases - self.supports_sharding = supports_sharding - self.type = type - self.version = version diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info.py deleted file mode 100644 index 5cf10b86d90d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info.py +++ /dev/null @@ -1,94 +0,0 @@ -# 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 .mongo_db_object_info import MongoDbObjectInfo - - -class MongoDbCollectionInfo(MongoDbObjectInfo): - """Describes a supported collection within a MongoDB database. - - All required parameters must be populated in order to send to Azure. - - :param average_document_size: Required. The average document size, or -1 - if the average size is unknown - :type average_document_size: long - :param data_size: Required. The estimated total data size, in bytes, or -1 - if the size is unknown. - :type data_size: long - :param document_count: Required. The estimated total number of documents, - or -1 if the document count is unknown - :type document_count: long - :param name: Required. The unqualified name of the database or collection - :type name: str - :param qualified_name: Required. The qualified name of the database or - collection. For a collection, this is the database-qualified name. - :type qualified_name: str - :param database_name: Required. The name of the database containing the - collection - :type database_name: str - :param is_capped: Required. Whether the collection is a capped collection - (i.e. whether it has a fixed size and acts like a circular buffer) - :type is_capped: bool - :param is_system_collection: Required. Whether the collection is system - collection - :type is_system_collection: bool - :param is_view: Required. Whether the collection is a view of another - collection - :type is_view: bool - :param shard_key: The shard key on the collection, or null if the - collection is not sharded - :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeyInfo - :param supports_sharding: Required. Whether the database has sharding - enabled. Note that the migration task will enable sharding on the target - if necessary. - :type supports_sharding: bool - :param view_of: The name of the collection that this is a view of, if - IsView is true - :type view_of: str - """ - - _validation = { - 'average_document_size': {'required': True}, - 'data_size': {'required': True}, - 'document_count': {'required': True}, - 'name': {'required': True}, - 'qualified_name': {'required': True}, - 'database_name': {'required': True}, - 'is_capped': {'required': True}, - 'is_system_collection': {'required': True}, - 'is_view': {'required': True}, - 'supports_sharding': {'required': True}, - } - - _attribute_map = { - 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, - 'data_size': {'key': 'dataSize', 'type': 'long'}, - 'document_count': {'key': 'documentCount', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'is_capped': {'key': 'isCapped', 'type': 'bool'}, - 'is_system_collection': {'key': 'isSystemCollection', 'type': 'bool'}, - 'is_view': {'key': 'isView', 'type': 'bool'}, - 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeyInfo'}, - 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, - 'view_of': {'key': 'viewOf', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MongoDbCollectionInfo, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.is_capped = kwargs.get('is_capped', None) - self.is_system_collection = kwargs.get('is_system_collection', None) - self.is_view = kwargs.get('is_view', None) - self.shard_key = kwargs.get('shard_key', None) - self.supports_sharding = kwargs.get('supports_sharding', None) - self.view_of = kwargs.get('view_of', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info_py3.py deleted file mode 100644 index 32f732da25fb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_info_py3.py +++ /dev/null @@ -1,94 +0,0 @@ -# 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 .mongo_db_object_info_py3 import MongoDbObjectInfo - - -class MongoDbCollectionInfo(MongoDbObjectInfo): - """Describes a supported collection within a MongoDB database. - - All required parameters must be populated in order to send to Azure. - - :param average_document_size: Required. The average document size, or -1 - if the average size is unknown - :type average_document_size: long - :param data_size: Required. The estimated total data size, in bytes, or -1 - if the size is unknown. - :type data_size: long - :param document_count: Required. The estimated total number of documents, - or -1 if the document count is unknown - :type document_count: long - :param name: Required. The unqualified name of the database or collection - :type name: str - :param qualified_name: Required. The qualified name of the database or - collection. For a collection, this is the database-qualified name. - :type qualified_name: str - :param database_name: Required. The name of the database containing the - collection - :type database_name: str - :param is_capped: Required. Whether the collection is a capped collection - (i.e. whether it has a fixed size and acts like a circular buffer) - :type is_capped: bool - :param is_system_collection: Required. Whether the collection is system - collection - :type is_system_collection: bool - :param is_view: Required. Whether the collection is a view of another - collection - :type is_view: bool - :param shard_key: The shard key on the collection, or null if the - collection is not sharded - :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeyInfo - :param supports_sharding: Required. Whether the database has sharding - enabled. Note that the migration task will enable sharding on the target - if necessary. - :type supports_sharding: bool - :param view_of: The name of the collection that this is a view of, if - IsView is true - :type view_of: str - """ - - _validation = { - 'average_document_size': {'required': True}, - 'data_size': {'required': True}, - 'document_count': {'required': True}, - 'name': {'required': True}, - 'qualified_name': {'required': True}, - 'database_name': {'required': True}, - 'is_capped': {'required': True}, - 'is_system_collection': {'required': True}, - 'is_view': {'required': True}, - 'supports_sharding': {'required': True}, - } - - _attribute_map = { - 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, - 'data_size': {'key': 'dataSize', 'type': 'long'}, - 'document_count': {'key': 'documentCount', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'is_capped': {'key': 'isCapped', 'type': 'bool'}, - 'is_system_collection': {'key': 'isSystemCollection', 'type': 'bool'}, - 'is_view': {'key': 'isView', 'type': 'bool'}, - 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeyInfo'}, - 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, - 'view_of': {'key': 'viewOf', 'type': 'str'}, - } - - def __init__(self, *, average_document_size: int, data_size: int, document_count: int, name: str, qualified_name: str, database_name: str, is_capped: bool, is_system_collection: bool, is_view: bool, supports_sharding: bool, shard_key=None, view_of: str=None, **kwargs) -> None: - super(MongoDbCollectionInfo, self).__init__(average_document_size=average_document_size, data_size=data_size, document_count=document_count, name=name, qualified_name=qualified_name, **kwargs) - self.database_name = database_name - self.is_capped = is_capped - self.is_system_collection = is_system_collection - self.is_view = is_view - self.shard_key = shard_key - self.supports_sharding = supports_sharding - self.view_of = view_of diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress.py deleted file mode 100644 index 3df5e998919e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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 .mongo_db_progress import MongoDbProgress - - -class MongoDbCollectionProgress(MongoDbProgress): - """Describes the progress of a collection. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(MongoDbCollectionProgress, self).__init__(**kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress_py3.py deleted file mode 100644 index aa3e17b861a7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_progress_py3.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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 .mongo_db_progress_py3 import MongoDbProgress - - -class MongoDbCollectionProgress(MongoDbProgress): - """Describes the progress of a collection. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - } - - def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, **kwargs) -> None: - super(MongoDbCollectionProgress, self).__init__(bytes_copied=bytes_copied, documents_copied=documents_copied, elapsed_time=elapsed_time, errors=errors, events_pending=events_pending, events_replayed=events_replayed, last_event_time=last_event_time, last_replay_time=last_replay_time, name=name, qualified_name=qualified_name, result_type=result_type, state=state, total_bytes=total_bytes, total_documents=total_documents, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings.py deleted file mode 100644 index 3413c05f5900..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 MongoDbCollectionSettings(Model): - """Describes how an individual MongoDB collection should be migrated. - - :param can_delete: Whether the migrator is allowed to drop the target - collection in the course of performing a migration. The default is true. - :type can_delete: bool - :param shard_key: - :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting - :param target_rus: The RUs that should be configured on a CosmosDB target, - or null to use the default. This has no effect on non-CosmosDB targets. - :type target_rus: int - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeySetting'}, - 'target_rus': {'key': 'targetRUs', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MongoDbCollectionSettings, self).__init__(**kwargs) - self.can_delete = kwargs.get('can_delete', None) - self.shard_key = kwargs.get('shard_key', None) - self.target_rus = kwargs.get('target_rus', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings_py3.py deleted file mode 100644 index 1460c4cd5244..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_collection_settings_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 MongoDbCollectionSettings(Model): - """Describes how an individual MongoDB collection should be migrated. - - :param can_delete: Whether the migrator is allowed to drop the target - collection in the course of performing a migration. The default is true. - :type can_delete: bool - :param shard_key: - :type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting - :param target_rus: The RUs that should be configured on a CosmosDB target, - or null to use the default. This has no effect on non-CosmosDB targets. - :type target_rus: int - """ - - _attribute_map = { - 'can_delete': {'key': 'canDelete', 'type': 'bool'}, - 'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeySetting'}, - 'target_rus': {'key': 'targetRUs', 'type': 'int'}, - } - - def __init__(self, *, can_delete: bool=None, shard_key=None, target_rus: int=None, **kwargs) -> None: - super(MongoDbCollectionSettings, self).__init__(**kwargs) - self.can_delete = can_delete - self.shard_key = shard_key - self.target_rus = target_rus diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input.py deleted file mode 100644 index 62ee1e513304..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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 MongoDbCommandInput(Model): - """Describes the input to the 'cancel' and 'restart' MongoDB migration - commands. - - :param object_name: The qualified name of a database or collection to act - upon, or null to act upon the entire migration - :type object_name: str - """ - - _attribute_map = { - 'object_name': {'key': 'objectName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MongoDbCommandInput, self).__init__(**kwargs) - self.object_name = kwargs.get('object_name', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input_py3.py deleted file mode 100644 index 4581858b8e1a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_command_input_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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 MongoDbCommandInput(Model): - """Describes the input to the 'cancel' and 'restart' MongoDB migration - commands. - - :param object_name: The qualified name of a database or collection to act - upon, or null to act upon the entire migration - :type object_name: str - """ - - _attribute_map = { - 'object_name': {'key': 'objectName', 'type': 'str'}, - } - - def __init__(self, *, object_name: str=None, **kwargs) -> None: - super(MongoDbCommandInput, self).__init__(**kwargs) - self.object_name = object_name diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info.py deleted file mode 100644 index fdf8107f7194..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 MongoDbConnectionInfo(ConnectionInfo): - """Describes a connection to a MongoDB data source. - - 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 connection_string: Required. A MongoDB connection string or blob - container URL. The user name and password can be specified here or in the - userName and password properties - :type connection_string: str - """ - - _validation = { - 'type': {'required': True}, - 'connection_string': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'connection_string': {'key': 'connectionString', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MongoDbConnectionInfo, self).__init__(**kwargs) - self.connection_string = kwargs.get('connection_string', None) - self.type = 'MongoDbConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info_py3.py deleted file mode 100644 index ac3d78a7bda0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_connection_info_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 MongoDbConnectionInfo(ConnectionInfo): - """Describes a connection to a MongoDB data source. - - 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 connection_string: Required. A MongoDB connection string or blob - container URL. The user name and password can be specified here or in the - userName and password properties - :type connection_string: str - """ - - _validation = { - 'type': {'required': True}, - 'connection_string': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'connection_string': {'key': 'connectionString', 'type': 'str'}, - } - - def __init__(self, *, connection_string: str, user_name: str=None, password: str=None, **kwargs) -> None: - super(MongoDbConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) - self.connection_string = connection_string - self.type = 'MongoDbConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info.py deleted file mode 100644 index c7fdba42e91e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 .mongo_db_object_info import MongoDbObjectInfo - - -class MongoDbDatabaseInfo(MongoDbObjectInfo): - """Describes a database within a MongoDB data source. - - All required parameters must be populated in order to send to Azure. - - :param average_document_size: Required. The average document size, or -1 - if the average size is unknown - :type average_document_size: long - :param data_size: Required. The estimated total data size, in bytes, or -1 - if the size is unknown. - :type data_size: long - :param document_count: Required. The estimated total number of documents, - or -1 if the document count is unknown - :type document_count: long - :param name: Required. The unqualified name of the database or collection - :type name: str - :param qualified_name: Required. The qualified name of the database or - collection. For a collection, this is the database-qualified name. - :type qualified_name: str - :param collections: Required. A list of supported collections in a MongoDB - database - :type collections: - list[~azure.mgmt.datamigration.models.MongoDbCollectionInfo] - :param supports_sharding: Required. Whether the database has sharding - enabled. Note that the migration task will enable sharding on the target - if necessary. - :type supports_sharding: bool - """ - - _validation = { - 'average_document_size': {'required': True}, - 'data_size': {'required': True}, - 'document_count': {'required': True}, - 'name': {'required': True}, - 'qualified_name': {'required': True}, - 'collections': {'required': True}, - 'supports_sharding': {'required': True}, - } - - _attribute_map = { - 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, - 'data_size': {'key': 'dataSize', 'type': 'long'}, - 'document_count': {'key': 'documentCount', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'collections': {'key': 'collections', 'type': '[MongoDbCollectionInfo]'}, - 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MongoDbDatabaseInfo, self).__init__(**kwargs) - self.collections = kwargs.get('collections', None) - self.supports_sharding = kwargs.get('supports_sharding', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info_py3.py deleted file mode 100644 index c7ab66747fe2..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_info_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 .mongo_db_object_info_py3 import MongoDbObjectInfo - - -class MongoDbDatabaseInfo(MongoDbObjectInfo): - """Describes a database within a MongoDB data source. - - All required parameters must be populated in order to send to Azure. - - :param average_document_size: Required. The average document size, or -1 - if the average size is unknown - :type average_document_size: long - :param data_size: Required. The estimated total data size, in bytes, or -1 - if the size is unknown. - :type data_size: long - :param document_count: Required. The estimated total number of documents, - or -1 if the document count is unknown - :type document_count: long - :param name: Required. The unqualified name of the database or collection - :type name: str - :param qualified_name: Required. The qualified name of the database or - collection. For a collection, this is the database-qualified name. - :type qualified_name: str - :param collections: Required. A list of supported collections in a MongoDB - database - :type collections: - list[~azure.mgmt.datamigration.models.MongoDbCollectionInfo] - :param supports_sharding: Required. Whether the database has sharding - enabled. Note that the migration task will enable sharding on the target - if necessary. - :type supports_sharding: bool - """ - - _validation = { - 'average_document_size': {'required': True}, - 'data_size': {'required': True}, - 'document_count': {'required': True}, - 'name': {'required': True}, - 'qualified_name': {'required': True}, - 'collections': {'required': True}, - 'supports_sharding': {'required': True}, - } - - _attribute_map = { - 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, - 'data_size': {'key': 'dataSize', 'type': 'long'}, - 'document_count': {'key': 'documentCount', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'collections': {'key': 'collections', 'type': '[MongoDbCollectionInfo]'}, - 'supports_sharding': {'key': 'supportsSharding', 'type': 'bool'}, - } - - def __init__(self, *, average_document_size: int, data_size: int, document_count: int, name: str, qualified_name: str, collections, supports_sharding: bool, **kwargs) -> None: - super(MongoDbDatabaseInfo, self).__init__(average_document_size=average_document_size, data_size=data_size, document_count=document_count, name=name, qualified_name=qualified_name, **kwargs) - self.collections = collections - self.supports_sharding = supports_sharding diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress.py deleted file mode 100644 index 55fe54fe92a8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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 .mongo_db_progress import MongoDbProgress - - -class MongoDbDatabaseProgress(MongoDbProgress): - """Describes the progress of a database. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - :param collections: The progress of the collections in the database. The - keys are the unqualified names of the collections - :type collections: dict[str, - ~azure.mgmt.datamigration.models.MongoDbCollectionProgress] - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - 'collections': {'key': 'collections', 'type': '{MongoDbCollectionProgress}'}, - } - - def __init__(self, **kwargs): - super(MongoDbDatabaseProgress, self).__init__(**kwargs) - self.collections = kwargs.get('collections', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress_py3.py deleted file mode 100644 index 2df655e78d05..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_progress_py3.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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 .mongo_db_progress_py3 import MongoDbProgress - - -class MongoDbDatabaseProgress(MongoDbProgress): - """Describes the progress of a database. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - :param collections: The progress of the collections in the database. The - keys are the unqualified names of the collections - :type collections: dict[str, - ~azure.mgmt.datamigration.models.MongoDbCollectionProgress] - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - 'collections': {'key': 'collections', 'type': '{MongoDbCollectionProgress}'}, - } - - def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, collections=None, **kwargs) -> None: - super(MongoDbDatabaseProgress, self).__init__(bytes_copied=bytes_copied, documents_copied=documents_copied, elapsed_time=elapsed_time, errors=errors, events_pending=events_pending, events_replayed=events_replayed, last_event_time=last_event_time, last_replay_time=last_replay_time, name=name, qualified_name=qualified_name, result_type=result_type, state=state, total_bytes=total_bytes, total_documents=total_documents, **kwargs) - self.collections = collections diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings.py deleted file mode 100644 index bf175ec1a767..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 MongoDbDatabaseSettings(Model): - """Describes how an individual MongoDB database should be migrated. - - All required parameters must be populated in order to send to Azure. - - :param collections: Required. The collections on the source database to - migrate to the target. The keys are the unqualified names of the - collections. - :type collections: dict[str, - ~azure.mgmt.datamigration.models.MongoDbCollectionSettings] - :param target_rus: The RUs that should be configured on a CosmosDB target, - or null to use the default, or 0 if throughput should not be provisioned - for the database. This has no effect on non-CosmosDB targets. - :type target_rus: int - """ - - _validation = { - 'collections': {'required': True}, - } - - _attribute_map = { - 'collections': {'key': 'collections', 'type': '{MongoDbCollectionSettings}'}, - 'target_rus': {'key': 'targetRUs', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MongoDbDatabaseSettings, self).__init__(**kwargs) - self.collections = kwargs.get('collections', None) - self.target_rus = kwargs.get('target_rus', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings_py3.py deleted file mode 100644 index 718b5bb1e83c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_database_settings_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 MongoDbDatabaseSettings(Model): - """Describes how an individual MongoDB database should be migrated. - - All required parameters must be populated in order to send to Azure. - - :param collections: Required. The collections on the source database to - migrate to the target. The keys are the unqualified names of the - collections. - :type collections: dict[str, - ~azure.mgmt.datamigration.models.MongoDbCollectionSettings] - :param target_rus: The RUs that should be configured on a CosmosDB target, - or null to use the default, or 0 if throughput should not be provisioned - for the database. This has no effect on non-CosmosDB targets. - :type target_rus: int - """ - - _validation = { - 'collections': {'required': True}, - } - - _attribute_map = { - 'collections': {'key': 'collections', 'type': '{MongoDbCollectionSettings}'}, - 'target_rus': {'key': 'targetRUs', 'type': 'int'}, - } - - def __init__(self, *, collections, target_rus: int=None, **kwargs) -> None: - super(MongoDbDatabaseSettings, self).__init__(**kwargs) - self.collections = collections - self.target_rus = target_rus diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error.py deleted file mode 100644 index 948069427733..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 MongoDbError(Model): - """Describes an error or warning that occurred during a MongoDB migration. - - :param code: The non-localized, machine-readable code that describes the - error or warning - :type code: str - :param count: The number of times the error or warning has occurred - :type count: int - :param message: The localized, human-readable message that describes the - error or warning - :type message: str - :param type: The type of error or warning. Possible values include: - 'Error', 'ValidationError', 'Warning' - :type type: str or ~azure.mgmt.datamigration.models.MongoDbErrorType - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MongoDbError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.count = kwargs.get('count', None) - self.message = kwargs.get('message', None) - self.type = kwargs.get('type', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error_py3.py deleted file mode 100644 index c0fce6293719..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_error_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 MongoDbError(Model): - """Describes an error or warning that occurred during a MongoDB migration. - - :param code: The non-localized, machine-readable code that describes the - error or warning - :type code: str - :param count: The number of times the error or warning has occurred - :type count: int - :param message: The localized, human-readable message that describes the - error or warning - :type message: str - :param type: The type of error or warning. Possible values include: - 'Error', 'ValidationError', 'Warning' - :type type: str or ~azure.mgmt.datamigration.models.MongoDbErrorType - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, count: int=None, message: str=None, type=None, **kwargs) -> None: - super(MongoDbError, self).__init__(**kwargs) - self.code = code - self.count = count - self.message = message - self.type = type diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command.py deleted file mode 100644 index 6b6c4ba6de5c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .command_properties import CommandProperties - - -class MongoDbFinishCommand(CommandProperties): - """Properties for the command that finishes a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MongoDbFinishCommandInput'}, - } - - def __init__(self, **kwargs): - super(MongoDbFinishCommand, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.command_type = 'finish' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input.py deleted file mode 100644 index e8c14aee170f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 .mongo_db_command_input import MongoDbCommandInput - - -class MongoDbFinishCommandInput(MongoDbCommandInput): - """Describes the input to the 'finish' MongoDB migration command. - - All required parameters must be populated in order to send to Azure. - - :param object_name: The qualified name of a database or collection to act - upon, or null to act upon the entire migration - :type object_name: str - :param immediate: Required. If true, replication for the affected objects - will be stopped immediately. If false, the migrator will finish replaying - queued events before finishing the replication. - :type immediate: bool - """ - - _validation = { - 'immediate': {'required': True}, - } - - _attribute_map = { - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'immediate': {'key': 'immediate', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MongoDbFinishCommandInput, self).__init__(**kwargs) - self.immediate = kwargs.get('immediate', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input_py3.py deleted file mode 100644 index 49e561fc90fa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_input_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 .mongo_db_command_input_py3 import MongoDbCommandInput - - -class MongoDbFinishCommandInput(MongoDbCommandInput): - """Describes the input to the 'finish' MongoDB migration command. - - All required parameters must be populated in order to send to Azure. - - :param object_name: The qualified name of a database or collection to act - upon, or null to act upon the entire migration - :type object_name: str - :param immediate: Required. If true, replication for the affected objects - will be stopped immediately. If false, the migrator will finish replaying - queued events before finishing the replication. - :type immediate: bool - """ - - _validation = { - 'immediate': {'required': True}, - } - - _attribute_map = { - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'immediate': {'key': 'immediate', 'type': 'bool'}, - } - - def __init__(self, *, immediate: bool, object_name: str=None, **kwargs) -> None: - super(MongoDbFinishCommandInput, self).__init__(object_name=object_name, **kwargs) - self.immediate = immediate diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_py3.py deleted file mode 100644 index 6c52da153511..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_finish_command_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .command_properties_py3 import CommandProperties - - -class MongoDbFinishCommand(CommandProperties): - """Properties for the command that finishes a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MongoDbFinishCommandInput'}, - } - - def __init__(self, *, input=None, **kwargs) -> None: - super(MongoDbFinishCommand, self).__init__(**kwargs) - self.input = input - self.command_type = 'finish' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress.py deleted file mode 100644 index 6a4dc415ffc7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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 .mongo_db_progress import MongoDbProgress - - -class MongoDbMigrationProgress(MongoDbProgress): - """Describes the progress of the overall migration. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - :param databases: The progress of the databases in the migration. The keys - are the names of the databases - :type databases: dict[str, - ~azure.mgmt.datamigration.models.MongoDbDatabaseProgress] - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseProgress}'}, - } - - def __init__(self, **kwargs): - super(MongoDbMigrationProgress, self).__init__(**kwargs) - self.databases = kwargs.get('databases', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress_py3.py deleted file mode 100644 index 7dac4064b5f8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_progress_py3.py +++ /dev/null @@ -1,107 +0,0 @@ -# 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 .mongo_db_progress_py3 import MongoDbProgress - - -class MongoDbMigrationProgress(MongoDbProgress): - """Describes the progress of the overall migration. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - :param databases: The progress of the databases in the migration. The keys - are the names of the databases - :type databases: dict[str, - ~azure.mgmt.datamigration.models.MongoDbDatabaseProgress] - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseProgress}'}, - } - - def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, databases=None, **kwargs) -> None: - super(MongoDbMigrationProgress, self).__init__(bytes_copied=bytes_copied, documents_copied=documents_copied, elapsed_time=elapsed_time, errors=errors, events_pending=events_pending, events_replayed=events_replayed, last_event_time=last_event_time, last_replay_time=last_replay_time, name=name, qualified_name=qualified_name, result_type=result_type, state=state, total_bytes=total_bytes, total_documents=total_documents, **kwargs) - self.databases = databases diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings.py deleted file mode 100644 index 927f525673ee..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 MongoDbMigrationSettings(Model): - """Describes how a MongoDB data migration should be performed. - - All required parameters must be populated in order to send to Azure. - - :param boost_rus: The RU limit on a CosmosDB target that collections will - be temporarily increased to (if lower) during the initial copy of a - migration, from 10,000 to 1,000,000, or 0 to use the default boost (which - is generally the maximum), or null to not boost the RUs. This setting has - no effect on non-CosmosDB targets. - :type boost_rus: int - :param databases: Required. The databases on the source cluster to migrate - to the target. The keys are the names of the databases. - :type databases: dict[str, - ~azure.mgmt.datamigration.models.MongoDbDatabaseSettings] - :param replication: Describes how changes will be replicated from the - source to the target. The default is OneTime. Possible values include: - 'Disabled', 'OneTime', 'Continuous' - :type replication: str or - ~azure.mgmt.datamigration.models.MongoDbReplication - :param source: Required. Settings used to connect to the source cluster - :type source: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :param target: Required. Settings used to connect to the target cluster - :type target: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :param throttling: Settings used to limit the resource usage of the - migration - :type throttling: - ~azure.mgmt.datamigration.models.MongoDbThrottlingSettings - """ - - _validation = { - 'databases': {'required': True}, - 'source': {'required': True}, - 'target': {'required': True}, - } - - _attribute_map = { - 'boost_rus': {'key': 'boostRUs', 'type': 'int'}, - 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseSettings}'}, - 'replication': {'key': 'replication', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'MongoDbConnectionInfo'}, - 'target': {'key': 'target', 'type': 'MongoDbConnectionInfo'}, - 'throttling': {'key': 'throttling', 'type': 'MongoDbThrottlingSettings'}, - } - - def __init__(self, **kwargs): - super(MongoDbMigrationSettings, self).__init__(**kwargs) - self.boost_rus = kwargs.get('boost_rus', None) - self.databases = kwargs.get('databases', None) - self.replication = kwargs.get('replication', None) - self.source = kwargs.get('source', None) - self.target = kwargs.get('target', None) - self.throttling = kwargs.get('throttling', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings_py3.py deleted file mode 100644 index 171f8298388f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_migration_settings_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 MongoDbMigrationSettings(Model): - """Describes how a MongoDB data migration should be performed. - - All required parameters must be populated in order to send to Azure. - - :param boost_rus: The RU limit on a CosmosDB target that collections will - be temporarily increased to (if lower) during the initial copy of a - migration, from 10,000 to 1,000,000, or 0 to use the default boost (which - is generally the maximum), or null to not boost the RUs. This setting has - no effect on non-CosmosDB targets. - :type boost_rus: int - :param databases: Required. The databases on the source cluster to migrate - to the target. The keys are the names of the databases. - :type databases: dict[str, - ~azure.mgmt.datamigration.models.MongoDbDatabaseSettings] - :param replication: Describes how changes will be replicated from the - source to the target. The default is OneTime. Possible values include: - 'Disabled', 'OneTime', 'Continuous' - :type replication: str or - ~azure.mgmt.datamigration.models.MongoDbReplication - :param source: Required. Settings used to connect to the source cluster - :type source: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :param target: Required. Settings used to connect to the target cluster - :type target: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :param throttling: Settings used to limit the resource usage of the - migration - :type throttling: - ~azure.mgmt.datamigration.models.MongoDbThrottlingSettings - """ - - _validation = { - 'databases': {'required': True}, - 'source': {'required': True}, - 'target': {'required': True}, - } - - _attribute_map = { - 'boost_rus': {'key': 'boostRUs', 'type': 'int'}, - 'databases': {'key': 'databases', 'type': '{MongoDbDatabaseSettings}'}, - 'replication': {'key': 'replication', 'type': 'str'}, - 'source': {'key': 'source', 'type': 'MongoDbConnectionInfo'}, - 'target': {'key': 'target', 'type': 'MongoDbConnectionInfo'}, - 'throttling': {'key': 'throttling', 'type': 'MongoDbThrottlingSettings'}, - } - - def __init__(self, *, databases, source, target, boost_rus: int=None, replication=None, throttling=None, **kwargs) -> None: - super(MongoDbMigrationSettings, self).__init__(**kwargs) - self.boost_rus = boost_rus - self.databases = databases - self.replication = replication - self.source = source - self.target = target - self.throttling = throttling diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info.py deleted file mode 100644 index 9a63db308564..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 MongoDbObjectInfo(Model): - """Describes a database or collection within a MongoDB data source. - - All required parameters must be populated in order to send to Azure. - - :param average_document_size: Required. The average document size, or -1 - if the average size is unknown - :type average_document_size: long - :param data_size: Required. The estimated total data size, in bytes, or -1 - if the size is unknown. - :type data_size: long - :param document_count: Required. The estimated total number of documents, - or -1 if the document count is unknown - :type document_count: long - :param name: Required. The unqualified name of the database or collection - :type name: str - :param qualified_name: Required. The qualified name of the database or - collection. For a collection, this is the database-qualified name. - :type qualified_name: str - """ - - _validation = { - 'average_document_size': {'required': True}, - 'data_size': {'required': True}, - 'document_count': {'required': True}, - 'name': {'required': True}, - 'qualified_name': {'required': True}, - } - - _attribute_map = { - 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, - 'data_size': {'key': 'dataSize', 'type': 'long'}, - 'document_count': {'key': 'documentCount', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MongoDbObjectInfo, self).__init__(**kwargs) - self.average_document_size = kwargs.get('average_document_size', None) - self.data_size = kwargs.get('data_size', None) - self.document_count = kwargs.get('document_count', None) - self.name = kwargs.get('name', None) - self.qualified_name = kwargs.get('qualified_name', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info_py3.py deleted file mode 100644 index 4efc616c9997..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_object_info_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 MongoDbObjectInfo(Model): - """Describes a database or collection within a MongoDB data source. - - All required parameters must be populated in order to send to Azure. - - :param average_document_size: Required. The average document size, or -1 - if the average size is unknown - :type average_document_size: long - :param data_size: Required. The estimated total data size, in bytes, or -1 - if the size is unknown. - :type data_size: long - :param document_count: Required. The estimated total number of documents, - or -1 if the document count is unknown - :type document_count: long - :param name: Required. The unqualified name of the database or collection - :type name: str - :param qualified_name: Required. The qualified name of the database or - collection. For a collection, this is the database-qualified name. - :type qualified_name: str - """ - - _validation = { - 'average_document_size': {'required': True}, - 'data_size': {'required': True}, - 'document_count': {'required': True}, - 'name': {'required': True}, - 'qualified_name': {'required': True}, - } - - _attribute_map = { - 'average_document_size': {'key': 'averageDocumentSize', 'type': 'long'}, - 'data_size': {'key': 'dataSize', 'type': 'long'}, - 'document_count': {'key': 'documentCount', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - } - - def __init__(self, *, average_document_size: int, data_size: int, document_count: int, name: str, qualified_name: str, **kwargs) -> None: - super(MongoDbObjectInfo, self).__init__(**kwargs) - self.average_document_size = average_document_size - self.data_size = data_size - self.document_count = document_count - self.name = name - self.qualified_name = qualified_name diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress.py deleted file mode 100644 index 2ea6a350f76d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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 MongoDbProgress(Model): - """Base class for MongoDB migration outputs. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(MongoDbProgress, self).__init__(**kwargs) - self.bytes_copied = kwargs.get('bytes_copied', None) - self.documents_copied = kwargs.get('documents_copied', None) - self.elapsed_time = kwargs.get('elapsed_time', None) - self.errors = kwargs.get('errors', None) - self.events_pending = kwargs.get('events_pending', None) - self.events_replayed = kwargs.get('events_replayed', None) - self.last_event_time = kwargs.get('last_event_time', None) - self.last_replay_time = kwargs.get('last_replay_time', None) - self.name = kwargs.get('name', None) - self.qualified_name = kwargs.get('qualified_name', None) - self.result_type = kwargs.get('result_type', None) - self.state = kwargs.get('state', None) - self.total_bytes = kwargs.get('total_bytes', None) - self.total_documents = kwargs.get('total_documents', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress_py3.py deleted file mode 100644 index ff70dcff00d4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_progress_py3.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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 MongoDbProgress(Model): - """Base class for MongoDB migration outputs. - - All required parameters must be populated in order to send to Azure. - - :param bytes_copied: Required. The number of document bytes copied during - the Copying stage - :type bytes_copied: long - :param documents_copied: Required. The number of documents copied during - the Copying stage - :type documents_copied: long - :param elapsed_time: Required. The elapsed time in the format - [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) - :type elapsed_time: str - :param errors: Required. The errors and warnings that have occurred for - the current object. The keys are the error codes. - :type errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :param events_pending: Required. The number of oplog events awaiting - replay - :type events_pending: long - :param events_replayed: Required. The number of oplog events replayed so - far - :type events_replayed: long - :param last_event_time: The timestamp of the last oplog event received, or - null if no oplog event has been received yet - :type last_event_time: datetime - :param last_replay_time: The timestamp of the last oplog event replayed, - or null if no oplog event has been replayed yet - :type last_replay_time: datetime - :param name: The name of the progress object. For a collection, this is - the unqualified collection name. For a database, this is the database - name. For the overall migration, this is null. - :type name: str - :param qualified_name: The qualified name of the progress object. For a - collection, this is the database-qualified name. For a database, this is - the database name. For the overall migration, this is null. - :type qualified_name: str - :param result_type: Required. The type of progress object. Possible values - include: 'Migration', 'Database', 'Collection' - :type result_type: str or ~azure.mgmt.datamigration.models.enum - :param state: Required. Possible values include: 'NotStarted', - 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', - 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', - 'Failed' - :type state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :param total_bytes: Required. The total number of document bytes on the - source at the beginning of the Copying stage, or -1 if the total size was - unknown - :type total_bytes: long - :param total_documents: Required. The total number of documents on the - source at the beginning of the Copying stage, or -1 if the total count was - unknown - :type total_documents: long - """ - - _validation = { - 'bytes_copied': {'required': True}, - 'documents_copied': {'required': True}, - 'elapsed_time': {'required': True}, - 'errors': {'required': True}, - 'events_pending': {'required': True}, - 'events_replayed': {'required': True}, - 'result_type': {'required': True}, - 'state': {'required': True}, - 'total_bytes': {'required': True}, - 'total_documents': {'required': True}, - } - - _attribute_map = { - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'documents_copied': {'key': 'documentsCopied', 'type': 'long'}, - 'elapsed_time': {'key': 'elapsedTime', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '{MongoDbError}'}, - 'events_pending': {'key': 'eventsPending', 'type': 'long'}, - 'events_replayed': {'key': 'eventsReplayed', 'type': 'long'}, - 'last_event_time': {'key': 'lastEventTime', 'type': 'iso-8601'}, - 'last_replay_time': {'key': 'lastReplayTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, - 'result_type': {'key': 'resultType', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'total_bytes': {'key': 'totalBytes', 'type': 'long'}, - 'total_documents': {'key': 'totalDocuments', 'type': 'long'}, - } - - def __init__(self, *, bytes_copied: int, documents_copied: int, elapsed_time: str, errors, events_pending: int, events_replayed: int, result_type, state, total_bytes: int, total_documents: int, last_event_time=None, last_replay_time=None, name: str=None, qualified_name: str=None, **kwargs) -> None: - super(MongoDbProgress, self).__init__(**kwargs) - self.bytes_copied = bytes_copied - self.documents_copied = documents_copied - self.elapsed_time = elapsed_time - self.errors = errors - self.events_pending = events_pending - self.events_replayed = events_replayed - self.last_event_time = last_event_time - self.last_replay_time = last_replay_time - self.name = name - self.qualified_name = qualified_name - self.result_type = result_type - self.state = state - self.total_bytes = total_bytes - self.total_documents = total_documents diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command.py deleted file mode 100644 index bdd9ffd455fb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .command_properties import CommandProperties - - -class MongoDbRestartCommand(CommandProperties): - """Properties for the command that restarts a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, - } - - def __init__(self, **kwargs): - super(MongoDbRestartCommand, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.command_type = 'restart' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command_py3.py deleted file mode 100644 index 4f61d3606e8e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_restart_command_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .command_properties_py3 import CommandProperties - - -class MongoDbRestartCommand(CommandProperties): - """Properties for the command that restarts a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. - Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - 'Failed' - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :param command_type: Required. Constant filled by server. - :type command_type: str - :param input: Command input - :type input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'command_type': {'required': True}, - } - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[ODataError]'}, - 'state': {'key': 'state', 'type': 'str'}, - 'command_type': {'key': 'commandType', 'type': 'str'}, - 'input': {'key': 'input', 'type': 'MongoDbCommandInput'}, - } - - def __init__(self, *, input=None, **kwargs) -> None: - super(MongoDbRestartCommand, self).__init__(**kwargs) - self.input = input - self.command_type = 'restart' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field.py deleted file mode 100644 index f73dbda467ec..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 MongoDbShardKeyField(Model): - """Describes a field reference within a MongoDB shard key. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the field - :type name: str - :param order: Required. The field ordering. Possible values include: - 'Forward', 'Reverse', 'Hashed' - :type order: str or ~azure.mgmt.datamigration.models.MongoDbShardKeyOrder - """ - - _validation = { - 'name': {'required': True}, - 'order': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MongoDbShardKeyField, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.order = kwargs.get('order', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field_py3.py deleted file mode 100644 index 12955a73ff02..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_field_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 MongoDbShardKeyField(Model): - """Describes a field reference within a MongoDB shard key. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the field - :type name: str - :param order: Required. The field ordering. Possible values include: - 'Forward', 'Reverse', 'Hashed' - :type order: str or ~azure.mgmt.datamigration.models.MongoDbShardKeyOrder - """ - - _validation = { - 'name': {'required': True}, - 'order': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'order': {'key': 'order', 'type': 'str'}, - } - - def __init__(self, *, name: str, order, **kwargs) -> None: - super(MongoDbShardKeyField, self).__init__(**kwargs) - self.name = name - self.order = order diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info.py deleted file mode 100644 index 456d4c7db8bd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 MongoDbShardKeyInfo(Model): - """Describes a MongoDB shard key. - - All required parameters must be populated in order to send to Azure. - - :param fields: Required. The fields within the shard key - :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] - :param is_unique: Required. Whether the shard key is unique - :type is_unique: bool - """ - - _validation = { - 'fields': {'required': True}, - 'is_unique': {'required': True}, - } - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, - 'is_unique': {'key': 'isUnique', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MongoDbShardKeyInfo, self).__init__(**kwargs) - self.fields = kwargs.get('fields', None) - self.is_unique = kwargs.get('is_unique', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info_py3.py deleted file mode 100644 index c8f8a53233da..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_info_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 MongoDbShardKeyInfo(Model): - """Describes a MongoDB shard key. - - All required parameters must be populated in order to send to Azure. - - :param fields: Required. The fields within the shard key - :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] - :param is_unique: Required. Whether the shard key is unique - :type is_unique: bool - """ - - _validation = { - 'fields': {'required': True}, - 'is_unique': {'required': True}, - } - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, - 'is_unique': {'key': 'isUnique', 'type': 'bool'}, - } - - def __init__(self, *, fields, is_unique: bool, **kwargs) -> None: - super(MongoDbShardKeyInfo, self).__init__(**kwargs) - self.fields = fields - self.is_unique = is_unique diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting.py deleted file mode 100644 index d77546e97a4d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 MongoDbShardKeySetting(Model): - """Describes a MongoDB shard key. - - All required parameters must be populated in order to send to Azure. - - :param fields: Required. The fields within the shard key - :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] - :param is_unique: Required. Whether the shard key is unique - :type is_unique: bool - """ - - _validation = { - 'fields': {'required': True}, - 'is_unique': {'required': True}, - } - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, - 'is_unique': {'key': 'isUnique', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MongoDbShardKeySetting, self).__init__(**kwargs) - self.fields = kwargs.get('fields', None) - self.is_unique = kwargs.get('is_unique', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting_py3.py deleted file mode 100644 index 13221f2812bb..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_shard_key_setting_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 MongoDbShardKeySetting(Model): - """Describes a MongoDB shard key. - - All required parameters must be populated in order to send to Azure. - - :param fields: Required. The fields within the shard key - :type fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] - :param is_unique: Required. Whether the shard key is unique - :type is_unique: bool - """ - - _validation = { - 'fields': {'required': True}, - 'is_unique': {'required': True}, - } - - _attribute_map = { - 'fields': {'key': 'fields', 'type': '[MongoDbShardKeyField]'}, - 'is_unique': {'key': 'isUnique', 'type': 'bool'}, - } - - def __init__(self, *, fields, is_unique: bool, **kwargs) -> None: - super(MongoDbShardKeySetting, self).__init__(**kwargs) - self.fields = fields - self.is_unique = is_unique diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings.py deleted file mode 100644 index d3f2541326a3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 MongoDbThrottlingSettings(Model): - """Specifies resource limits for the migration. - - :param min_free_cpu: The percentage of CPU time that the migrator will try - to avoid using, from 0 to 100 - :type min_free_cpu: int - :param min_free_memory_mb: The number of megabytes of RAM that the - migrator will try to avoid using - :type min_free_memory_mb: int - :param max_parallelism: The maximum number of work items (e.g. collection - copies) that will be processed in parallel - :type max_parallelism: int - """ - - _attribute_map = { - 'min_free_cpu': {'key': 'minFreeCpu', 'type': 'int'}, - 'min_free_memory_mb': {'key': 'minFreeMemoryMb', 'type': 'int'}, - 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MongoDbThrottlingSettings, self).__init__(**kwargs) - self.min_free_cpu = kwargs.get('min_free_cpu', None) - self.min_free_memory_mb = kwargs.get('min_free_memory_mb', None) - self.max_parallelism = kwargs.get('max_parallelism', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings_py3.py deleted file mode 100644 index e80d791f23d1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/mongo_db_throttling_settings_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 MongoDbThrottlingSettings(Model): - """Specifies resource limits for the migration. - - :param min_free_cpu: The percentage of CPU time that the migrator will try - to avoid using, from 0 to 100 - :type min_free_cpu: int - :param min_free_memory_mb: The number of megabytes of RAM that the - migrator will try to avoid using - :type min_free_memory_mb: int - :param max_parallelism: The maximum number of work items (e.g. collection - copies) that will be processed in parallel - :type max_parallelism: int - """ - - _attribute_map = { - 'min_free_cpu': {'key': 'minFreeCpu', 'type': 'int'}, - 'min_free_memory_mb': {'key': 'minFreeMemoryMb', 'type': 'int'}, - 'max_parallelism': {'key': 'maxParallelism', 'type': 'int'}, - } - - def __init__(self, *, min_free_cpu: int=None, min_free_memory_mb: int=None, max_parallelism: int=None, **kwargs) -> None: - super(MongoDbThrottlingSettings, self).__init__(**kwargs) - self.min_free_cpu = min_free_cpu - self.min_free_memory_mb = min_free_memory_mb - self.max_parallelism = max_parallelism diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info.py deleted file mode 100644 index 62d5661258aa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 MySqlConnectionInfo(ConnectionInfo): - """Information for connecting to MySQL 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 server_name: Required. Name of the server - :type server_name: str - :param port: Required. Port for Server - :type port: int - """ - - _validation = { - 'type': {'required': True}, - 'server_name': {'required': True}, - 'port': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'port': {'key': 'port', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MySqlConnectionInfo, self).__init__(**kwargs) - self.server_name = kwargs.get('server_name', None) - self.port = kwargs.get('port', None) - self.type = 'MySqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info_py3.py deleted file mode 100644 index 2e8815c0dc6a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/my_sql_connection_info_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 MySqlConnectionInfo(ConnectionInfo): - """Information for connecting to MySQL 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 server_name: Required. Name of the server - :type server_name: str - :param port: Required. Port for Server - :type port: int - """ - - _validation = { - 'type': {'required': True}, - 'server_name': {'required': True}, - 'port': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'port': {'key': 'port', 'type': 'int'}, - } - - def __init__(self, *, server_name: str, port: int, user_name: str=None, password: str=None, **kwargs) -> None: - super(MySqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) - self.server_name = server_name - self.port = port - self.type = 'MySqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request.py deleted file mode 100644 index de370f40cc68..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 NameAvailabilityRequest(Model): - """A resource type and proposed name. - - :param name: The proposed resource name - :type name: str - :param type: The resource type chain (e.g. virtualMachines/extensions) - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NameAvailabilityRequest, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request_py3.py deleted file mode 100644 index a32f62ec818e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_request_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 NameAvailabilityRequest(Model): - """A resource type and proposed name. - - :param name: The proposed resource name - :type name: str - :param type: The resource type chain (e.g. virtualMachines/extensions) - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None: - super(NameAvailabilityRequest, self).__init__(**kwargs) - self.name = name - self.type = type diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response.py deleted file mode 100644 index 221f7b81e05c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 NameAvailabilityResponse(Model): - """Indicates whether a proposed resource name is available. - - :param name_available: If true, the name is valid and available. If false, - 'reason' describes why not. - :type name_available: bool - :param reason: The reason why the name is not available, if nameAvailable - is false. Possible values include: 'AlreadyExists', 'Invalid' - :type reason: str or - ~azure.mgmt.datamigration.models.NameCheckFailureReason - :param message: The localized reason why the name is not available, if - nameAvailable is false - :type message: str - """ - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NameAvailabilityResponse, self).__init__(**kwargs) - self.name_available = kwargs.get('name_available', None) - self.reason = kwargs.get('reason', None) - self.message = kwargs.get('message', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response_py3.py deleted file mode 100644 index 2ab59490aa55..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/name_availability_response_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 NameAvailabilityResponse(Model): - """Indicates whether a proposed resource name is available. - - :param name_available: If true, the name is valid and available. If false, - 'reason' describes why not. - :type name_available: bool - :param reason: The reason why the name is not available, if nameAvailable - is false. Possible values include: 'AlreadyExists', 'Invalid' - :type reason: str or - ~azure.mgmt.datamigration.models.NameCheckFailureReason - :param message: The localized reason why the name is not available, if - nameAvailable is false - :type message: str - """ - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, name_available: bool=None, reason=None, message: str=None, **kwargs) -> None: - super(NameAvailabilityResponse, self).__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table.py deleted file mode 100644 index 52a4ec40a9da..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 NonSqlDataMigrationTable(Model): - """Defines metadata for table to be migrated. - - :param source_name: Source table name - :type source_name: str - """ - - _attribute_map = { - 'source_name': {'key': 'sourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NonSqlDataMigrationTable, self).__init__(**kwargs) - self.source_name = kwargs.get('source_name', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_py3.py deleted file mode 100644 index 7f5d27b19e61..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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 NonSqlDataMigrationTable(Model): - """Defines metadata for table to be migrated. - - :param source_name: Source table name - :type source_name: str - """ - - _attribute_map = { - 'source_name': {'key': 'sourceName', 'type': 'str'}, - } - - def __init__(self, *, source_name: str=None, **kwargs) -> None: - super(NonSqlDataMigrationTable, self).__init__(**kwargs) - self.source_name = source_name diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result.py deleted file mode 100644 index 978ce97b4c2e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 NonSqlDataMigrationTableResult(Model): - """Object used to report the data migration results of a table. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar result_code: Result code of the data migration. Possible values - include: 'Initial', 'Completed', 'ObjectNotExistsInSource', - 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' - :vartype result_code: str or - ~azure.mgmt.datamigration.models.DataMigrationResultCode - :ivar source_name: Name of the source table - :vartype source_name: str - :ivar target_name: Name of the target table - :vartype target_name: str - :ivar source_row_count: Number of rows in the source table - :vartype source_row_count: long - :ivar target_row_count: Number of rows in the target table - :vartype target_row_count: long - :ivar elapsed_time_in_miliseconds: Time taken to migrate the data - :vartype elapsed_time_in_miliseconds: float - :ivar errors: List of errors, if any, during migration - :vartype errors: list[~azure.mgmt.datamigration.models.DataMigrationError] - """ - - _validation = { - 'result_code': {'readonly': True}, - 'source_name': {'readonly': True}, - 'target_name': {'readonly': True}, - 'source_row_count': {'readonly': True}, - 'target_row_count': {'readonly': True}, - 'elapsed_time_in_miliseconds': {'readonly': True}, - 'errors': {'readonly': True}, - } - - _attribute_map = { - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'source_name': {'key': 'sourceName', 'type': 'str'}, - 'target_name': {'key': 'targetName', 'type': 'str'}, - 'source_row_count': {'key': 'sourceRowCount', 'type': 'long'}, - 'target_row_count': {'key': 'targetRowCount', 'type': 'long'}, - 'elapsed_time_in_miliseconds': {'key': 'elapsedTimeInMiliseconds', 'type': 'float'}, - 'errors': {'key': 'errors', 'type': '[DataMigrationError]'}, - } - - def __init__(self, **kwargs): - super(NonSqlDataMigrationTableResult, self).__init__(**kwargs) - self.result_code = None - self.source_name = None - self.target_name = None - self.source_row_count = None - self.target_row_count = None - self.elapsed_time_in_miliseconds = None - self.errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result_py3.py deleted file mode 100644 index 5094fa96ee87..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_data_migration_table_result_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 NonSqlDataMigrationTableResult(Model): - """Object used to report the data migration results of a table. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar result_code: Result code of the data migration. Possible values - include: 'Initial', 'Completed', 'ObjectNotExistsInSource', - 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' - :vartype result_code: str or - ~azure.mgmt.datamigration.models.DataMigrationResultCode - :ivar source_name: Name of the source table - :vartype source_name: str - :ivar target_name: Name of the target table - :vartype target_name: str - :ivar source_row_count: Number of rows in the source table - :vartype source_row_count: long - :ivar target_row_count: Number of rows in the target table - :vartype target_row_count: long - :ivar elapsed_time_in_miliseconds: Time taken to migrate the data - :vartype elapsed_time_in_miliseconds: float - :ivar errors: List of errors, if any, during migration - :vartype errors: list[~azure.mgmt.datamigration.models.DataMigrationError] - """ - - _validation = { - 'result_code': {'readonly': True}, - 'source_name': {'readonly': True}, - 'target_name': {'readonly': True}, - 'source_row_count': {'readonly': True}, - 'target_row_count': {'readonly': True}, - 'elapsed_time_in_miliseconds': {'readonly': True}, - 'errors': {'readonly': True}, - } - - _attribute_map = { - 'result_code': {'key': 'resultCode', 'type': 'str'}, - 'source_name': {'key': 'sourceName', 'type': 'str'}, - 'target_name': {'key': 'targetName', 'type': 'str'}, - 'source_row_count': {'key': 'sourceRowCount', 'type': 'long'}, - 'target_row_count': {'key': 'targetRowCount', 'type': 'long'}, - 'elapsed_time_in_miliseconds': {'key': 'elapsedTimeInMiliseconds', 'type': 'float'}, - 'errors': {'key': 'errors', 'type': '[DataMigrationError]'}, - } - - def __init__(self, **kwargs) -> None: - super(NonSqlDataMigrationTableResult, self).__init__(**kwargs) - self.result_code = None - self.source_name = None - self.target_name = None - self.source_row_count = None - self.target_row_count = None - self.elapsed_time_in_miliseconds = None - self.errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input.py deleted file mode 100644 index 18779fc051d6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 NonSqlMigrationTaskInput(Model): - """Base class for non sql migration task input. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_database_name: Required. Target database name - :type target_database_name: str - :param project_name: Required. Name of the migration project - :type project_name: str - :param project_location: Required. A URL that points to the drop location - to access project artifacts - :type project_location: str - :param selected_tables: Required. Metadata of the tables selected for - migration - :type selected_tables: - list[~azure.mgmt.datamigration.models.NonSqlDataMigrationTable] - """ - - _validation = { - 'target_connection_info': {'required': True}, - 'target_database_name': {'required': True}, - 'project_name': {'required': True}, - 'project_location': {'required': True}, - 'selected_tables': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'project_name': {'key': 'projectName', 'type': 'str'}, - 'project_location': {'key': 'projectLocation', 'type': 'str'}, - 'selected_tables': {'key': 'selectedTables', 'type': '[NonSqlDataMigrationTable]'}, - } - - def __init__(self, **kwargs): - super(NonSqlMigrationTaskInput, self).__init__(**kwargs) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.target_database_name = kwargs.get('target_database_name', None) - self.project_name = kwargs.get('project_name', None) - self.project_location = kwargs.get('project_location', None) - self.selected_tables = kwargs.get('selected_tables', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input_py3.py deleted file mode 100644 index 71abb362f727..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_input_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# 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 NonSqlMigrationTaskInput(Model): - """Base class for non sql migration task input. - - All required parameters must be populated in order to send to Azure. - - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_database_name: Required. Target database name - :type target_database_name: str - :param project_name: Required. Name of the migration project - :type project_name: str - :param project_location: Required. A URL that points to the drop location - to access project artifacts - :type project_location: str - :param selected_tables: Required. Metadata of the tables selected for - migration - :type selected_tables: - list[~azure.mgmt.datamigration.models.NonSqlDataMigrationTable] - """ - - _validation = { - 'target_connection_info': {'required': True}, - 'target_database_name': {'required': True}, - 'project_name': {'required': True}, - 'project_location': {'required': True}, - 'selected_tables': {'required': True}, - } - - _attribute_map = { - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_database_name': {'key': 'targetDatabaseName', 'type': 'str'}, - 'project_name': {'key': 'projectName', 'type': 'str'}, - 'project_location': {'key': 'projectLocation', 'type': 'str'}, - 'selected_tables': {'key': 'selectedTables', 'type': '[NonSqlDataMigrationTable]'}, - } - - def __init__(self, *, target_connection_info, target_database_name: str, project_name: str, project_location: str, selected_tables, **kwargs) -> None: - super(NonSqlMigrationTaskInput, self).__init__(**kwargs) - self.target_connection_info = target_connection_info - self.target_database_name = target_database_name - self.project_name = project_name - self.project_location = project_location - self.selected_tables = selected_tables diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output.py deleted file mode 100644 index e87f50fa47ab..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output.py +++ /dev/null @@ -1,75 +0,0 @@ -# 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 NonSqlMigrationTaskOutput(Model): - """Base class for non sql migration task output. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar status: Current state of migration. Possible values include: - 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - 'CompletedWithWarnings' - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar data_migration_table_results: Results of the migration. The key - contains the table name and the value the table result object - :vartype data_migration_table_results: dict[str, - ~azure.mgmt.datamigration.models.NonSqlDataMigrationTableResult] - :ivar progress_message: Message about the progress of the migration - :vartype progress_message: str - :ivar source_server_name: Name of source server - :vartype source_server_name: str - :ivar target_server_name: Name of target server - :vartype target_server_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'status': {'readonly': True}, - 'data_migration_table_results': {'readonly': True}, - 'progress_message': {'readonly': True}, - 'source_server_name': {'readonly': True}, - 'target_server_name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - 'data_migration_table_results': {'key': 'dataMigrationTableResults', 'type': '{NonSqlDataMigrationTableResult}'}, - 'progress_message': {'key': 'progressMessage', 'type': 'str'}, - 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, - 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NonSqlMigrationTaskOutput, self).__init__(**kwargs) - self.id = None - self.started_on = None - self.ended_on = None - self.status = None - self.data_migration_table_results = None - self.progress_message = None - self.source_server_name = None - self.target_server_name = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output_py3.py deleted file mode 100644 index 368bd6fddca2..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/non_sql_migration_task_output_py3.py +++ /dev/null @@ -1,75 +0,0 @@ -# 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 NonSqlMigrationTaskOutput(Model): - """Base class for non sql migration task output. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar started_on: Migration start time - :vartype started_on: datetime - :ivar ended_on: Migration end time - :vartype ended_on: datetime - :ivar status: Current state of migration. Possible values include: - 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', - 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - 'CompletedWithWarnings' - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar data_migration_table_results: Results of the migration. The key - contains the table name and the value the table result object - :vartype data_migration_table_results: dict[str, - ~azure.mgmt.datamigration.models.NonSqlDataMigrationTableResult] - :ivar progress_message: Message about the progress of the migration - :vartype progress_message: str - :ivar source_server_name: Name of source server - :vartype source_server_name: str - :ivar target_server_name: Name of target server - :vartype target_server_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'started_on': {'readonly': True}, - 'ended_on': {'readonly': True}, - 'status': {'readonly': True}, - 'data_migration_table_results': {'readonly': True}, - 'progress_message': {'readonly': True}, - 'source_server_name': {'readonly': True}, - 'target_server_name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'started_on': {'key': 'startedOn', 'type': 'iso-8601'}, - 'ended_on': {'key': 'endedOn', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - 'data_migration_table_results': {'key': 'dataMigrationTableResults', 'type': '{NonSqlDataMigrationTableResult}'}, - 'progress_message': {'key': 'progressMessage', 'type': 'str'}, - 'source_server_name': {'key': 'sourceServerName', 'type': 'str'}, - 'target_server_name': {'key': 'targetServerName', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(NonSqlMigrationTaskOutput, self).__init__(**kwargs) - self.id = None - self.started_on = None - self.ended_on = None - self.status = None - self.data_migration_table_results = None - self.progress_message = None - self.source_server_name = None - self.target_server_name = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error.py deleted file mode 100644 index 2a35761e0ea5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ODataError(Model): - """Error information in OData format. - - :param code: The machine-readable description of the error, such as - 'InvalidRequest' or 'InternalServerError' - :type code: str - :param message: The human-readable description of the error - :type message: str - :param details: Inner errors that caused this error - :type details: list[~azure.mgmt.datamigration.models.ODataError] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ODataError]'}, - } - - def __init__(self, **kwargs): - super(ODataError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.details = kwargs.get('details', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error_py3.py deleted file mode 100644 index c5cdfe626026..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/odata_error_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ODataError(Model): - """Error information in OData format. - - :param code: The machine-readable description of the error, such as - 'InvalidRequest' or 'InternalServerError' - :type code: str - :param message: The human-readable description of the error - :type message: str - :param details: Inner errors that caused this error - :type details: list[~azure.mgmt.datamigration.models.ODataError] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ODataError]'}, - } - - def __init__(self, *, code: str=None, message: str=None, details=None, **kwargs) -> None: - super(ODataError, self).__init__(**kwargs) - self.code = code - self.message = message - self.details = details diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info.py deleted file mode 100644 index ab5c9ec8ea9c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 OrphanedUserInfo(Model): - """Information of orphaned users on the SQL server database. - - :param name: Name of the orphaned user - :type name: str - :param database_name: Parent database of the user - :type database_name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OrphanedUserInfo, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.database_name = kwargs.get('database_name', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info_py3.py deleted file mode 100644 index 0efddbdba8a3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/orphaned_user_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 OrphanedUserInfo(Model): - """Information of orphaned users on the SQL server database. - - :param name: Name of the orphaned user - :type name: str - :param database_name: Parent database of the user - :type database_name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, database_name: str=None, **kwargs) -> None: - super(OrphanedUserInfo, self).__init__(**kwargs) - self.name = name - self.database_name = database_name diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info.py deleted file mode 100644 index 0752415fddbf..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 PostgreSqlConnectionInfo(ConnectionInfo): - """Information for connecting to PostgreSQL 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 server_name: Required. Name of the server - :type server_name: str - :param database_name: Name of the database - :type database_name: str - :param port: Required. Port for Server - :type port: int - """ - - _validation = { - 'type': {'required': True}, - 'server_name': {'required': True}, - 'port': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'port': {'key': 'port', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(PostgreSqlConnectionInfo, self).__init__(**kwargs) - self.server_name = kwargs.get('server_name', None) - self.database_name = kwargs.get('database_name', None) - self.port = kwargs.get('port', None) - self.type = 'PostgreSqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info_py3.py deleted file mode 100644 index d151e4a2a2aa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/postgre_sql_connection_info_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 PostgreSqlConnectionInfo(ConnectionInfo): - """Information for connecting to PostgreSQL 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 server_name: Required. Name of the server - :type server_name: str - :param database_name: Name of the database - :type database_name: str - :param port: Required. Port for Server - :type port: int - """ - - _validation = { - 'type': {'required': True}, - 'server_name': {'required': True}, - 'port': {'required': True}, - } - - _attribute_map = { - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'port': {'key': 'port', 'type': 'int'}, - } - - def __init__(self, *, server_name: str, port: int, user_name: str=None, password: str=None, database_name: str=None, **kwargs) -> None: - super(PostgreSqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) - self.server_name = server_name - self.database_name = database_name - self.port = port - self.type = 'PostgreSqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py deleted file mode 100644 index 32952b8ae734..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project.py +++ /dev/null @@ -1,93 +0,0 @@ -# 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 .tracked_resource import TrackedResource - - -class Project(TrackedResource): - """A project resource. - - 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: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. Resource location. - :type location: str - :param source_platform: Required. Source platform for the project. - Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', - 'Unknown' - :type source_platform: str or - ~azure.mgmt.datamigration.models.ProjectSourcePlatform - :param target_platform: Required. Target platform for the project. - Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' - :type target_platform: str or - ~azure.mgmt.datamigration.models.ProjectTargetPlatform - :ivar creation_time: UTC Date and time when project was created - :vartype creation_time: datetime - :param source_connection_info: Information for connecting to source - :type source_connection_info: - ~azure.mgmt.datamigration.models.ConnectionInfo - :param target_connection_info: Information for connecting to target - :type target_connection_info: - ~azure.mgmt.datamigration.models.ConnectionInfo - :param databases_info: List of DatabaseInfo - :type databases_info: list[~azure.mgmt.datamigration.models.DatabaseInfo] - :ivar provisioning_state: The project's provisioning state. Possible - values include: 'Deleting', 'Succeeded' - :vartype provisioning_state: str or - ~azure.mgmt.datamigration.models.ProjectProvisioningState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'source_platform': {'required': True}, - 'target_platform': {'required': True}, - 'creation_time': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'source_platform': {'key': 'properties.sourcePlatform', 'type': 'str'}, - 'target_platform': {'key': 'properties.targetPlatform', 'type': 'str'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'source_connection_info': {'key': 'properties.sourceConnectionInfo', 'type': 'ConnectionInfo'}, - 'target_connection_info': {'key': 'properties.targetConnectionInfo', 'type': 'ConnectionInfo'}, - 'databases_info': {'key': 'properties.databasesInfo', 'type': '[DatabaseInfo]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Project, self).__init__(**kwargs) - self.source_platform = kwargs.get('source_platform', None) - self.target_platform = kwargs.get('target_platform', None) - self.creation_time = None - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.databases_info = kwargs.get('databases_info', None) - self.provisioning_state = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file.py deleted file mode 100644 index 4375bd149b20..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource import Resource - - -class ProjectFile(Resource): - """A file resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param etag: HTTP strong entity tag value. This is ignored if submitted. - :type etag: str - :param properties: Custom file properties - :type properties: ~azure.mgmt.datamigration.models.ProjectFileProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProjectFileProperties'}, - } - - def __init__(self, **kwargs): - super(ProjectFile, self).__init__(**kwargs) - self.etag = kwargs.get('etag', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_paged.py deleted file mode 100644 index 05b7153634e8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class ProjectFilePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProjectFile ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProjectFile]'} - } - - def __init__(self, *args, **kwargs): - - super(ProjectFilePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties.py deleted file mode 100644 index df26f7345d1b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 ProjectFileProperties(Model): - """Base class for file properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param extension: Optional File extension. If submitted it should not have - a leading period and must match the extension from filePath. - :type extension: str - :param file_path: Relative path of this file resource. This property can - be set when creating or updating the file resource. - :type file_path: str - :ivar last_modified: Modification DateTime. - :vartype last_modified: datetime - :param media_type: File content type. This property can be modified to - reflect the file content type. - :type media_type: str - :ivar size: File size. - :vartype size: long - """ - - _validation = { - 'last_modified': {'readonly': True}, - 'size': {'readonly': True}, - } - - _attribute_map = { - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'media_type': {'key': 'mediaType', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(ProjectFileProperties, self).__init__(**kwargs) - self.extension = kwargs.get('extension', None) - self.file_path = kwargs.get('file_path', None) - self.last_modified = None - self.media_type = kwargs.get('media_type', None) - self.size = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties_py3.py deleted file mode 100644 index 3782bc0d19f5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_properties_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 ProjectFileProperties(Model): - """Base class for file properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param extension: Optional File extension. If submitted it should not have - a leading period and must match the extension from filePath. - :type extension: str - :param file_path: Relative path of this file resource. This property can - be set when creating or updating the file resource. - :type file_path: str - :ivar last_modified: Modification DateTime. - :vartype last_modified: datetime - :param media_type: File content type. This property can be modified to - reflect the file content type. - :type media_type: str - :ivar size: File size. - :vartype size: long - """ - - _validation = { - 'last_modified': {'readonly': True}, - 'size': {'readonly': True}, - } - - _attribute_map = { - 'extension': {'key': 'extension', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'media_type': {'key': 'mediaType', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'long'}, - } - - def __init__(self, *, extension: str=None, file_path: str=None, media_type: str=None, **kwargs) -> None: - super(ProjectFileProperties, self).__init__(**kwargs) - self.extension = extension - self.file_path = file_path - self.last_modified = None - self.media_type = media_type - self.size = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_py3.py deleted file mode 100644 index 16df2bac54c4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_file_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource_py3 import Resource - - -class ProjectFile(Resource): - """A file resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param etag: HTTP strong entity tag value. This is ignored if submitted. - :type etag: str - :param properties: Custom file properties - :type properties: ~azure.mgmt.datamigration.models.ProjectFileProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProjectFileProperties'}, - } - - def __init__(self, *, etag: str=None, properties=None, **kwargs) -> None: - super(ProjectFile, self).__init__(**kwargs) - self.etag = etag - self.properties = properties diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_paged.py deleted file mode 100644 index 4b7bbb6b5dd0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class ProjectPaged(Paged): - """ - A paging container for iterating over a list of :class:`Project ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Project]'} - } - - def __init__(self, *args, **kwargs): - - super(ProjectPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py deleted file mode 100644 index 0030ce2627f8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_py3.py +++ /dev/null @@ -1,93 +0,0 @@ -# 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 .tracked_resource_py3 import TrackedResource - - -class Project(TrackedResource): - """A project resource. - - 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: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. Resource location. - :type location: str - :param source_platform: Required. Source platform for the project. - Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', - 'Unknown' - :type source_platform: str or - ~azure.mgmt.datamigration.models.ProjectSourcePlatform - :param target_platform: Required. Target platform for the project. - Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' - :type target_platform: str or - ~azure.mgmt.datamigration.models.ProjectTargetPlatform - :ivar creation_time: UTC Date and time when project was created - :vartype creation_time: datetime - :param source_connection_info: Information for connecting to source - :type source_connection_info: - ~azure.mgmt.datamigration.models.ConnectionInfo - :param target_connection_info: Information for connecting to target - :type target_connection_info: - ~azure.mgmt.datamigration.models.ConnectionInfo - :param databases_info: List of DatabaseInfo - :type databases_info: list[~azure.mgmt.datamigration.models.DatabaseInfo] - :ivar provisioning_state: The project's provisioning state. Possible - values include: 'Deleting', 'Succeeded' - :vartype provisioning_state: str or - ~azure.mgmt.datamigration.models.ProjectProvisioningState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'source_platform': {'required': True}, - 'target_platform': {'required': True}, - 'creation_time': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'source_platform': {'key': 'properties.sourcePlatform', 'type': 'str'}, - 'target_platform': {'key': 'properties.targetPlatform', 'type': 'str'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'source_connection_info': {'key': 'properties.sourceConnectionInfo', 'type': 'ConnectionInfo'}, - 'target_connection_info': {'key': 'properties.targetConnectionInfo', 'type': 'ConnectionInfo'}, - 'databases_info': {'key': 'properties.databasesInfo', 'type': '[DatabaseInfo]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__(self, *, location: str, source_platform, target_platform, tags=None, source_connection_info=None, target_connection_info=None, databases_info=None, **kwargs) -> None: - super(Project, self).__init__(tags=tags, location=location, **kwargs) - self.source_platform = source_platform - self.target_platform = target_platform - self.creation_time = None - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.databases_info = databases_info - self.provisioning_state = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task.py deleted file mode 100644 index f06065a5bf04..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource import Resource - - -class ProjectTask(Resource): - """A task resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: 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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProjectTaskProperties'}, - } - - def __init__(self, **kwargs): - super(ProjectTask, self).__init__(**kwargs) - self.etag = kwargs.get('etag', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_paged.py deleted file mode 100644 index c55903ccf8a6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class ProjectTaskPaged(Paged): - """ - A paging container for iterating over a list of :class:`ProjectTask ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProjectTask]'} - } - - def __init__(self, *args, **kwargs): - - super(ProjectTaskPaged, self).__init__(*args, **kwargs) 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 deleted file mode 100644 index 4acb7d23b387..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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 ProjectTaskProperties(Model): - """Base class for all types of DMS task properties. If task is not supported - by current client, this object is returned. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: GetTdeCertificatesSqlTaskProperties, - ValidateMongoDbTaskProperties, - ValidateMigrationInputSqlServerSqlMISyncTaskProperties, - ValidateMigrationInputSqlServerSqlMITaskProperties, - ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, - MigrateMySqlAzureDbForMySqlSyncTaskProperties, - MigrateSqlServerSqlDbSyncTaskProperties, - MigrateSqlServerSqlDbTaskProperties, - MigrateSqlServerSqlMISyncTaskProperties, - MigrateSqlServerSqlMITaskProperties, MigrateMongoDbTaskProperties, - ConnectToTargetAzureDbForMySqlTaskProperties, - ConnectToTargetSqlMISyncTaskProperties, ConnectToTargetSqlMITaskProperties, - GetUserTablesSqlSyncTaskProperties, GetUserTablesSqlTaskProperties, - ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, - ConnectToTargetSqlSqlDbSyncTaskProperties, - ConnectToTargetSqlDbTaskProperties, - ConnectToSourcePostgreSqlSyncTaskProperties, - ConnectToSourceSqlServerSyncTaskProperties, - ConnectToSourceSqlServerTaskProperties, ConnectToMongoDbTaskProperties, - ConnectToSourceMySqlTaskProperties, - MigrateSchemaSqlServerSqlDbTaskProperties - - 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 - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'commands': {'readonly': True}, - 'task_type': {'required': 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'}, - } - - _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'} - } - - def __init__(self, **kwargs): - super(ProjectTaskProperties, self).__init__(**kwargs) - self.errors = None - self.state = None - self.commands = None - self.client_data = kwargs.get('client_data', None) - self.task_type = None 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 deleted file mode 100644 index 01fbf74ea550..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_properties_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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 ProjectTaskProperties(Model): - """Base class for all types of DMS task properties. If task is not supported - by current client, this object is returned. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: GetTdeCertificatesSqlTaskProperties, - ValidateMongoDbTaskProperties, - ValidateMigrationInputSqlServerSqlMISyncTaskProperties, - ValidateMigrationInputSqlServerSqlMITaskProperties, - ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, - MigrateMySqlAzureDbForMySqlSyncTaskProperties, - MigrateSqlServerSqlDbSyncTaskProperties, - MigrateSqlServerSqlDbTaskProperties, - MigrateSqlServerSqlMISyncTaskProperties, - MigrateSqlServerSqlMITaskProperties, MigrateMongoDbTaskProperties, - ConnectToTargetAzureDbForMySqlTaskProperties, - ConnectToTargetSqlMISyncTaskProperties, ConnectToTargetSqlMITaskProperties, - GetUserTablesSqlSyncTaskProperties, GetUserTablesSqlTaskProperties, - ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, - ConnectToTargetSqlSqlDbSyncTaskProperties, - ConnectToTargetSqlDbTaskProperties, - ConnectToSourcePostgreSqlSyncTaskProperties, - ConnectToSourceSqlServerSyncTaskProperties, - ConnectToSourceSqlServerTaskProperties, ConnectToMongoDbTaskProperties, - ConnectToSourceMySqlTaskProperties, - MigrateSchemaSqlServerSqlDbTaskProperties - - 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 - """ - - _validation = { - 'errors': {'readonly': True}, - 'state': {'readonly': True}, - 'commands': {'readonly': True}, - 'task_type': {'required': 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'}, - } - - _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'} - } - - def __init__(self, *, client_data=None, **kwargs) -> None: - super(ProjectTaskProperties, self).__init__(**kwargs) - self.errors = None - self.state = None - self.commands = None - self.client_data = client_data - self.task_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_py3.py deleted file mode 100644 index 798e0c9aed2c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/project_task_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource_py3 import Resource - - -class ProjectTask(Resource): - """A task resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: 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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProjectTaskProperties'}, - } - - def __init__(self, *, etag: str=None, properties=None, **kwargs) -> None: - super(ProjectTask, self).__init__(**kwargs) - self.etag = etag - self.properties = properties diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result.py deleted file mode 100644 index 07b83e757fdc..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 QueryAnalysisValidationResult(Model): - """Results for query analysis comparison between the source and target. - - :param query_results: List of queries executed and it's execution results - in source and target - :type query_results: ~azure.mgmt.datamigration.models.QueryExecutionResult - :param validation_errors: Errors that are part of the execution - :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - - _attribute_map = { - 'query_results': {'key': 'queryResults', 'type': 'QueryExecutionResult'}, - 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, - } - - def __init__(self, **kwargs): - super(QueryAnalysisValidationResult, self).__init__(**kwargs) - self.query_results = kwargs.get('query_results', None) - self.validation_errors = kwargs.get('validation_errors', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result_py3.py deleted file mode 100644 index ba46bf53513b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_analysis_validation_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 QueryAnalysisValidationResult(Model): - """Results for query analysis comparison between the source and target. - - :param query_results: List of queries executed and it's execution results - in source and target - :type query_results: ~azure.mgmt.datamigration.models.QueryExecutionResult - :param validation_errors: Errors that are part of the execution - :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - - _attribute_map = { - 'query_results': {'key': 'queryResults', 'type': 'QueryExecutionResult'}, - 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, - } - - def __init__(self, *, query_results=None, validation_errors=None, **kwargs) -> None: - super(QueryAnalysisValidationResult, self).__init__(**kwargs) - self.query_results = query_results - self.validation_errors = validation_errors diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result.py deleted file mode 100644 index eb9d1f20ded4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 QueryExecutionResult(Model): - """Describes query analysis results for execution in source and target. - - :param query_text: Query text retrieved from the source server - :type query_text: str - :param statements_in_batch: Total no. of statements in the batch - :type statements_in_batch: long - :param source_result: Query analysis result from the source - :type source_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - :param target_result: Query analysis result from the target - :type target_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - """ - - _attribute_map = { - 'query_text': {'key': 'queryText', 'type': 'str'}, - 'statements_in_batch': {'key': 'statementsInBatch', 'type': 'long'}, - 'source_result': {'key': 'sourceResult', 'type': 'ExecutionStatistics'}, - 'target_result': {'key': 'targetResult', 'type': 'ExecutionStatistics'}, - } - - def __init__(self, **kwargs): - super(QueryExecutionResult, self).__init__(**kwargs) - self.query_text = kwargs.get('query_text', None) - self.statements_in_batch = kwargs.get('statements_in_batch', None) - self.source_result = kwargs.get('source_result', None) - self.target_result = kwargs.get('target_result', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result_py3.py deleted file mode 100644 index 129ddb35d62a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/query_execution_result_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 QueryExecutionResult(Model): - """Describes query analysis results for execution in source and target. - - :param query_text: Query text retrieved from the source server - :type query_text: str - :param statements_in_batch: Total no. of statements in the batch - :type statements_in_batch: long - :param source_result: Query analysis result from the source - :type source_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - :param target_result: Query analysis result from the target - :type target_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - """ - - _attribute_map = { - 'query_text': {'key': 'queryText', 'type': 'str'}, - 'statements_in_batch': {'key': 'statementsInBatch', 'type': 'long'}, - 'source_result': {'key': 'sourceResult', 'type': 'ExecutionStatistics'}, - 'target_result': {'key': 'targetResult', 'type': 'ExecutionStatistics'}, - } - - def __init__(self, *, query_text: str=None, statements_in_batch: int=None, source_result=None, target_result=None, **kwargs) -> None: - super(QueryExecutionResult, self).__init__(**kwargs) - self.query_text = query_text - self.statements_in_batch = statements_in_batch - self.source_result = source_result - self.target_result = target_result diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota.py deleted file mode 100644 index 50a8d0168e06..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 Quota(Model): - """Describes a quota for or usage details about a resource. - - :param current_value: The current value of the quota. If null or missing, - the current value cannot be determined in the context of the request. - :type current_value: float - :param id: The resource ID of the quota object - :type id: str - :param limit: The maximum value of the quota. If null or missing, the - quota has no maximum, in which case it merely tracks usage. - :type limit: float - :param name: The name of the quota - :type name: ~azure.mgmt.datamigration.models.QuotaName - :param unit: The unit for the quota, such as Count, Bytes, BytesPerSecond, - etc. - :type unit: str - """ - - _attribute_map = { - 'current_value': {'key': 'currentValue', 'type': 'float'}, - 'id': {'key': 'id', 'type': 'str'}, - 'limit': {'key': 'limit', 'type': 'float'}, - 'name': {'key': 'name', 'type': 'QuotaName'}, - 'unit': {'key': 'unit', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Quota, self).__init__(**kwargs) - self.current_value = kwargs.get('current_value', None) - self.id = kwargs.get('id', None) - self.limit = kwargs.get('limit', None) - self.name = kwargs.get('name', None) - self.unit = kwargs.get('unit', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name.py deleted file mode 100644 index 1de466977af4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 QuotaName(Model): - """The name of the quota. - - :param localized_value: The localized name of the quota - :type localized_value: str - :param value: The unlocalized name (or ID) of the quota - :type value: str - """ - - _attribute_map = { - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(QuotaName, self).__init__(**kwargs) - self.localized_value = kwargs.get('localized_value', None) - self.value = kwargs.get('value', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name_py3.py deleted file mode 100644 index be02f6b9941b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_name_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 QuotaName(Model): - """The name of the quota. - - :param localized_value: The localized name of the quota - :type localized_value: str - :param value: The unlocalized name (or ID) of the quota - :type value: str - """ - - _attribute_map = { - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, localized_value: str=None, value: str=None, **kwargs) -> None: - super(QuotaName, self).__init__(**kwargs) - self.localized_value = localized_value - self.value = value diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_paged.py deleted file mode 100644 index 804619b87737..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class QuotaPaged(Paged): - """ - A paging container for iterating over a list of :class:`Quota ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Quota]'} - } - - def __init__(self, *args, **kwargs): - - super(QuotaPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_py3.py deleted file mode 100644 index 8f2ce75f96f2..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/quota_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 Quota(Model): - """Describes a quota for or usage details about a resource. - - :param current_value: The current value of the quota. If null or missing, - the current value cannot be determined in the context of the request. - :type current_value: float - :param id: The resource ID of the quota object - :type id: str - :param limit: The maximum value of the quota. If null or missing, the - quota has no maximum, in which case it merely tracks usage. - :type limit: float - :param name: The name of the quota - :type name: ~azure.mgmt.datamigration.models.QuotaName - :param unit: The unit for the quota, such as Count, Bytes, BytesPerSecond, - etc. - :type unit: str - """ - - _attribute_map = { - 'current_value': {'key': 'currentValue', 'type': 'float'}, - 'id': {'key': 'id', 'type': 'str'}, - 'limit': {'key': 'limit', 'type': 'float'}, - 'name': {'key': 'name', 'type': 'QuotaName'}, - 'unit': {'key': 'unit', 'type': 'str'}, - } - - def __init__(self, *, current_value: float=None, id: str=None, limit: float=None, name=None, unit: str=None, **kwargs) -> None: - super(Quota, self).__init__(**kwargs) - self.current_value = current_value - self.id = id - self.limit = limit - self.name = name - self.unit = unit diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception.py deleted file mode 100644 index 2fd4ca85dc99..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ReportableException(Model): - """Exception object for all custom exceptions. - - :param message: Error message - :type message: str - :param actionable_message: Actionable steps for this exception - :type actionable_message: str - :param file_path: The path to the file where exception occurred - :type file_path: str - :param line_number: The line number where exception occurred - :type line_number: str - :param h_result: Coded numerical value that is assigned to a specific - exception - :type h_result: int - :param stack_trace: Stack trace - :type stack_trace: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'actionable_message': {'key': 'actionableMessage', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'line_number': {'key': 'lineNumber', 'type': 'str'}, - 'h_result': {'key': 'hResult', 'type': 'int'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ReportableException, self).__init__(**kwargs) - self.message = kwargs.get('message', None) - self.actionable_message = kwargs.get('actionable_message', None) - self.file_path = kwargs.get('file_path', None) - self.line_number = kwargs.get('line_number', None) - self.h_result = kwargs.get('h_result', None) - self.stack_trace = kwargs.get('stack_trace', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception_py3.py deleted file mode 100644 index 3f97fbc03364..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/reportable_exception_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ReportableException(Model): - """Exception object for all custom exceptions. - - :param message: Error message - :type message: str - :param actionable_message: Actionable steps for this exception - :type actionable_message: str - :param file_path: The path to the file where exception occurred - :type file_path: str - :param line_number: The line number where exception occurred - :type line_number: str - :param h_result: Coded numerical value that is assigned to a specific - exception - :type h_result: int - :param stack_trace: Stack trace - :type stack_trace: str - """ - - _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'actionable_message': {'key': 'actionableMessage', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'line_number': {'key': 'lineNumber', 'type': 'str'}, - 'h_result': {'key': 'hResult', 'type': 'int'}, - 'stack_trace': {'key': 'stackTrace', 'type': 'str'}, - } - - def __init__(self, *, message: str=None, actionable_message: str=None, file_path: str=None, line_number: str=None, h_result: int=None, stack_trace: str=None, **kwargs) -> None: - super(ReportableException, self).__init__(**kwargs) - self.message = message - self.actionable_message = actionable_message - self.file_path = file_path - self.line_number = line_number - self.h_result = h_result - self.stack_trace = stack_trace diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource.py deleted file mode 100644 index fc92549d32e9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 Resource(Model): - """ARM resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_py3.py deleted file mode 100644 index aedc5cfaf0b9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 Resource(Model): - """ARM resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku.py deleted file mode 100644 index ead458253e54..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku.py +++ /dev/null @@ -1,93 +0,0 @@ -# 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 ResourceSku(Model): - """Describes an available DMS SKU. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar resource_type: The type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: The name of SKU. - :vartype name: str - :ivar tier: Specifies the tier of DMS in a scale set. - :vartype tier: str - :ivar size: The Size of the SKU. - :vartype size: str - :ivar family: The Family of this particular SKU. - :vartype family: str - :ivar kind: The Kind of resources that are supported in this SKU. - :vartype kind: str - :ivar capacity: Not used. - :vartype capacity: ~azure.mgmt.datamigration.models.ResourceSkuCapacity - :ivar locations: The set of locations that the SKU is available. - :vartype locations: list[str] - :ivar api_versions: The api versions that support this SKU. - :vartype api_versions: list[str] - :ivar costs: Metadata for retrieving price info. - :vartype costs: list[~azure.mgmt.datamigration.models.ResourceSkuCosts] - :ivar capabilities: A name value pair to describe the capability. - :vartype capabilities: - list[~azure.mgmt.datamigration.models.ResourceSkuCapabilities] - :ivar restrictions: The restrictions because of which SKU cannot be used. - This is empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.datamigration.models.ResourceSkuRestrictions] - """ - - _validation = { - 'resource_type': {'readonly': True}, - 'name': {'readonly': True}, - 'tier': {'readonly': True}, - 'size': {'readonly': True}, - 'family': {'readonly': True}, - 'kind': {'readonly': True}, - 'capacity': {'readonly': True}, - 'locations': {'readonly': True}, - 'api_versions': {'readonly': True}, - 'costs': {'readonly': True}, - 'capabilities': {'readonly': True}, - 'restrictions': {'readonly': True}, - } - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'ResourceSkuCapacity'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'costs': {'key': 'costs', 'type': '[ResourceSkuCosts]'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceSkuCapabilities]'}, - 'restrictions': {'key': 'restrictions', 'type': '[ResourceSkuRestrictions]'}, - } - - def __init__(self, **kwargs): - super(ResourceSku, self).__init__(**kwargs) - self.resource_type = None - self.name = None - self.tier = None - self.size = None - self.family = None - self.kind = None - self.capacity = None - self.locations = None - self.api_versions = None - self.costs = None - self.capabilities = None - self.restrictions = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities.py deleted file mode 100644 index 658167afc6d4..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ResourceSkuCapabilities(Model): - """Describes The SKU capabilities object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: An invariant to describe the feature. - :vartype name: str - :ivar value: An invariant if the feature is measured by quantity. - :vartype value: str - """ - - _validation = { - 'name': {'readonly': True}, - 'value': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceSkuCapabilities, self).__init__(**kwargs) - self.name = None - self.value = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities_py3.py deleted file mode 100644 index 73a2631fc0aa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capabilities_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ResourceSkuCapabilities(Model): - """Describes The SKU capabilities object. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: An invariant to describe the feature. - :vartype name: str - :ivar value: An invariant if the feature is measured by quantity. - :vartype value: str - """ - - _validation = { - 'name': {'readonly': True}, - 'value': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceSkuCapabilities, self).__init__(**kwargs) - self.name = None - self.value = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity.py deleted file mode 100644 index 55d3d9f77a58..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ResourceSkuCapacity(Model): - """Describes scaling information of a SKU. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar minimum: The minimum capacity. - :vartype minimum: long - :ivar maximum: The maximum capacity. - :vartype maximum: long - :ivar default: The default capacity. - :vartype default: long - :ivar scale_type: The scale type applicable to the SKU. Possible values - include: 'Automatic', 'Manual', 'None' - :vartype scale_type: str or - ~azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType - """ - - _validation = { - 'minimum': {'readonly': True}, - 'maximum': {'readonly': True}, - 'default': {'readonly': True}, - 'scale_type': {'readonly': True}, - } - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'long'}, - 'maximum': {'key': 'maximum', 'type': 'long'}, - 'default': {'key': 'default', 'type': 'long'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceSkuCapacity, self).__init__(**kwargs) - self.minimum = None - self.maximum = None - self.default = None - self.scale_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity_py3.py deleted file mode 100644 index d291dfe0557e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_capacity_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ResourceSkuCapacity(Model): - """Describes scaling information of a SKU. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar minimum: The minimum capacity. - :vartype minimum: long - :ivar maximum: The maximum capacity. - :vartype maximum: long - :ivar default: The default capacity. - :vartype default: long - :ivar scale_type: The scale type applicable to the SKU. Possible values - include: 'Automatic', 'Manual', 'None' - :vartype scale_type: str or - ~azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType - """ - - _validation = { - 'minimum': {'readonly': True}, - 'maximum': {'readonly': True}, - 'default': {'readonly': True}, - 'scale_type': {'readonly': True}, - } - - _attribute_map = { - 'minimum': {'key': 'minimum', 'type': 'long'}, - 'maximum': {'key': 'maximum', 'type': 'long'}, - 'default': {'key': 'default', 'type': 'long'}, - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceSkuCapacity, self).__init__(**kwargs) - self.minimum = None - self.maximum = None - self.default = None - self.scale_type = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs.py deleted file mode 100644 index 293adaf0962c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 ResourceSkuCosts(Model): - """Describes metadata for retrieving price info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar meter_id: Used for querying price from commerce. - :vartype meter_id: str - :ivar quantity: The multiplier is needed to extend the base metered cost. - :vartype quantity: long - :ivar extended_unit: An invariant to show the extended unit. - :vartype extended_unit: str - """ - - _validation = { - 'meter_id': {'readonly': True}, - 'quantity': {'readonly': True}, - 'extended_unit': {'readonly': True}, - } - - _attribute_map = { - 'meter_id': {'key': 'meterID', 'type': 'str'}, - 'quantity': {'key': 'quantity', 'type': 'long'}, - 'extended_unit': {'key': 'extendedUnit', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceSkuCosts, self).__init__(**kwargs) - self.meter_id = None - self.quantity = None - self.extended_unit = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs_py3.py deleted file mode 100644 index 59e7036807d6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_costs_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 ResourceSkuCosts(Model): - """Describes metadata for retrieving price info. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar meter_id: Used for querying price from commerce. - :vartype meter_id: str - :ivar quantity: The multiplier is needed to extend the base metered cost. - :vartype quantity: long - :ivar extended_unit: An invariant to show the extended unit. - :vartype extended_unit: str - """ - - _validation = { - 'meter_id': {'readonly': True}, - 'quantity': {'readonly': True}, - 'extended_unit': {'readonly': True}, - } - - _attribute_map = { - 'meter_id': {'key': 'meterID', 'type': 'str'}, - 'quantity': {'key': 'quantity', 'type': 'long'}, - 'extended_unit': {'key': 'extendedUnit', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceSkuCosts, self).__init__(**kwargs) - self.meter_id = None - self.quantity = None - self.extended_unit = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_paged.py deleted file mode 100644 index 2c654d80d650..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class ResourceSkuPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourceSku ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourceSku]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourceSkuPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_py3.py deleted file mode 100644 index c751cafdf7d7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_py3.py +++ /dev/null @@ -1,93 +0,0 @@ -# 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 ResourceSku(Model): - """Describes an available DMS SKU. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar resource_type: The type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: The name of SKU. - :vartype name: str - :ivar tier: Specifies the tier of DMS in a scale set. - :vartype tier: str - :ivar size: The Size of the SKU. - :vartype size: str - :ivar family: The Family of this particular SKU. - :vartype family: str - :ivar kind: The Kind of resources that are supported in this SKU. - :vartype kind: str - :ivar capacity: Not used. - :vartype capacity: ~azure.mgmt.datamigration.models.ResourceSkuCapacity - :ivar locations: The set of locations that the SKU is available. - :vartype locations: list[str] - :ivar api_versions: The api versions that support this SKU. - :vartype api_versions: list[str] - :ivar costs: Metadata for retrieving price info. - :vartype costs: list[~azure.mgmt.datamigration.models.ResourceSkuCosts] - :ivar capabilities: A name value pair to describe the capability. - :vartype capabilities: - list[~azure.mgmt.datamigration.models.ResourceSkuCapabilities] - :ivar restrictions: The restrictions because of which SKU cannot be used. - This is empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.datamigration.models.ResourceSkuRestrictions] - """ - - _validation = { - 'resource_type': {'readonly': True}, - 'name': {'readonly': True}, - 'tier': {'readonly': True}, - 'size': {'readonly': True}, - 'family': {'readonly': True}, - 'kind': {'readonly': True}, - 'capacity': {'readonly': True}, - 'locations': {'readonly': True}, - 'api_versions': {'readonly': True}, - 'costs': {'readonly': True}, - 'capabilities': {'readonly': True}, - 'restrictions': {'readonly': True}, - } - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'ResourceSkuCapacity'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'costs': {'key': 'costs', 'type': '[ResourceSkuCosts]'}, - 'capabilities': {'key': 'capabilities', 'type': '[ResourceSkuCapabilities]'}, - 'restrictions': {'key': 'restrictions', 'type': '[ResourceSkuRestrictions]'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceSku, self).__init__(**kwargs) - self.resource_type = None - self.name = None - self.tier = None - self.size = None - self.family = None - self.kind = None - self.capacity = None - self.locations = None - self.api_versions = None - self.costs = None - self.capabilities = None - self.restrictions = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions.py deleted file mode 100644 index a23f36e5c303..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ResourceSkuRestrictions(Model): - """Describes scaling information of a SKU. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The type of restrictions. Possible values include: 'location' - :vartype type: str or - ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsType - :ivar values: The value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar reason_code: The reason code for restriction. Possible values - include: 'QuotaId', 'NotAvailableForSubscription' - :vartype reason_code: str or - ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode - """ - - _validation = { - 'type': {'readonly': True}, - 'values': {'readonly': True}, - 'reason_code': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[str]'}, - 'reason_code': {'key': 'reasonCode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceSkuRestrictions, self).__init__(**kwargs) - self.type = None - self.values = None - self.reason_code = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions_py3.py deleted file mode 100644 index 803aaf6772f0..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/resource_sku_restrictions_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ResourceSkuRestrictions(Model): - """Describes scaling information of a SKU. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar type: The type of restrictions. Possible values include: 'location' - :vartype type: str or - ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsType - :ivar values: The value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar reason_code: The reason code for restriction. Possible values - include: 'QuotaId', 'NotAvailableForSubscription' - :vartype reason_code: str or - ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode - """ - - _validation = { - 'type': {'readonly': True}, - 'values': {'readonly': True}, - 'reason_code': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[str]'}, - 'reason_code': {'key': 'reasonCode', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceSkuRestrictions, self).__init__(**kwargs) - self.type = None - self.values = None - self.reason_code = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result.py deleted file mode 100644 index 9cd9e4caf96e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 SchemaComparisonValidationResult(Model): - """Results for schema comparison between the source and target. - - :param schema_differences: List of schema differences between the source - and target databases - :type schema_differences: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResultType - :param validation_errors: List of errors that happened while performing - schema compare validation - :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError - :param source_database_object_count: Count of source database objects - :type source_database_object_count: dict[str, long] - :param target_database_object_count: Count of target database objects - :type target_database_object_count: dict[str, long] - """ - - _attribute_map = { - 'schema_differences': {'key': 'schemaDifferences', 'type': 'SchemaComparisonValidationResultType'}, - 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, - 'source_database_object_count': {'key': 'sourceDatabaseObjectCount', 'type': '{long}'}, - 'target_database_object_count': {'key': 'targetDatabaseObjectCount', 'type': '{long}'}, - } - - def __init__(self, **kwargs): - super(SchemaComparisonValidationResult, self).__init__(**kwargs) - self.schema_differences = kwargs.get('schema_differences', None) - self.validation_errors = kwargs.get('validation_errors', None) - self.source_database_object_count = kwargs.get('source_database_object_count', None) - self.target_database_object_count = kwargs.get('target_database_object_count', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_py3.py deleted file mode 100644 index 80d4e9462b13..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 SchemaComparisonValidationResult(Model): - """Results for schema comparison between the source and target. - - :param schema_differences: List of schema differences between the source - and target databases - :type schema_differences: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResultType - :param validation_errors: List of errors that happened while performing - schema compare validation - :type validation_errors: ~azure.mgmt.datamigration.models.ValidationError - :param source_database_object_count: Count of source database objects - :type source_database_object_count: dict[str, long] - :param target_database_object_count: Count of target database objects - :type target_database_object_count: dict[str, long] - """ - - _attribute_map = { - 'schema_differences': {'key': 'schemaDifferences', 'type': 'SchemaComparisonValidationResultType'}, - 'validation_errors': {'key': 'validationErrors', 'type': 'ValidationError'}, - 'source_database_object_count': {'key': 'sourceDatabaseObjectCount', 'type': '{long}'}, - 'target_database_object_count': {'key': 'targetDatabaseObjectCount', 'type': '{long}'}, - } - - def __init__(self, *, schema_differences=None, validation_errors=None, source_database_object_count=None, target_database_object_count=None, **kwargs) -> None: - super(SchemaComparisonValidationResult, self).__init__(**kwargs) - self.schema_differences = schema_differences - self.validation_errors = validation_errors - self.source_database_object_count = source_database_object_count - self.target_database_object_count = target_database_object_count diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type.py deleted file mode 100644 index 2a53cac4d764..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 SchemaComparisonValidationResultType(Model): - """Description about the errors happen while performing migration validation. - - :param object_name: Name of the object that has the difference - :type object_name: str - :param object_type: Type of the object that has the difference. e.g - (Table/View/StoredProcedure). Possible values include: 'StoredProcedures', - 'Table', 'User', 'View', 'Function' - :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType - :param update_action: Update action type with respect to target. Possible - values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' - :type update_action: str or - ~azure.mgmt.datamigration.models.UpdateActionType - """ - - _attribute_map = { - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'update_action': {'key': 'updateAction', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SchemaComparisonValidationResultType, self).__init__(**kwargs) - self.object_name = kwargs.get('object_name', None) - self.object_type = kwargs.get('object_type', None) - self.update_action = kwargs.get('update_action', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type_py3.py deleted file mode 100644 index e469340af8aa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_comparison_validation_result_type_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 SchemaComparisonValidationResultType(Model): - """Description about the errors happen while performing migration validation. - - :param object_name: Name of the object that has the difference - :type object_name: str - :param object_type: Type of the object that has the difference. e.g - (Table/View/StoredProcedure). Possible values include: 'StoredProcedures', - 'Table', 'User', 'View', 'Function' - :type object_type: str or ~azure.mgmt.datamigration.models.ObjectType - :param update_action: Update action type with respect to target. Possible - values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' - :type update_action: str or - ~azure.mgmt.datamigration.models.UpdateActionType - """ - - _attribute_map = { - 'object_name': {'key': 'objectName', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'update_action': {'key': 'updateAction', 'type': 'str'}, - } - - def __init__(self, *, object_name: str=None, object_type=None, update_action=None, **kwargs) -> None: - super(SchemaComparisonValidationResultType, self).__init__(**kwargs) - self.object_name = object_name - self.object_type = object_type - self.update_action = update_action diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting.py deleted file mode 100644 index f5aac00590d1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 SchemaMigrationSetting(Model): - """Settings for migrating schema from source to target. - - :param schema_option: Option on how to migrate the schema. Possible values - include: 'None', 'ExtractFromSource', 'UseStorageFile' - :type schema_option: str or - ~azure.mgmt.datamigration.models.SchemaMigrationOption - :param file_id: Resource Identifier of a file resource containing the - uploaded schema file - :type file_id: str - """ - - _attribute_map = { - 'schema_option': {'key': 'schemaOption', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SchemaMigrationSetting, self).__init__(**kwargs) - self.schema_option = kwargs.get('schema_option', None) - self.file_id = kwargs.get('file_id', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting_py3.py deleted file mode 100644 index 6b3ef327bd3a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/schema_migration_setting_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 SchemaMigrationSetting(Model): - """Settings for migrating schema from source to target. - - :param schema_option: Option on how to migrate the schema. Possible values - include: 'None', 'ExtractFromSource', 'UseStorageFile' - :type schema_option: str or - ~azure.mgmt.datamigration.models.SchemaMigrationOption - :param file_id: Resource Identifier of a file resource containing the - uploaded schema file - :type file_id: str - """ - - _attribute_map = { - 'schema_option': {'key': 'schemaOption', 'type': 'str'}, - 'file_id': {'key': 'fileId', 'type': 'str'}, - } - - def __init__(self, *, schema_option=None, file_id: str=None, **kwargs) -> None: - super(SchemaMigrationSetting, self).__init__(**kwargs) - self.schema_option = schema_option - self.file_id = file_id diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input.py deleted file mode 100644 index cd0cb8477a41..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 SelectedCertificateInput(Model): - """Info for certificate to be exported for TDE enabled databases. - - All required parameters must be populated in order to send to Azure. - - :param certificate_name: Required. Name of certificate to be exported. - :type certificate_name: str - :param password: Required. Password to use for encrypting the exported - certificate. - :type password: str - """ - - _validation = { - 'certificate_name': {'required': True}, - 'password': {'required': True}, - } - - _attribute_map = { - 'certificate_name': {'key': 'certificateName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SelectedCertificateInput, self).__init__(**kwargs) - self.certificate_name = kwargs.get('certificate_name', None) - self.password = kwargs.get('password', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input_py3.py deleted file mode 100644 index 6f11bdad7371..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/selected_certificate_input_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 SelectedCertificateInput(Model): - """Info for certificate to be exported for TDE enabled databases. - - All required parameters must be populated in order to send to Azure. - - :param certificate_name: Required. Name of certificate to be exported. - :type certificate_name: str - :param password: Required. Password to use for encrypting the exported - certificate. - :type password: str - """ - - _validation = { - 'certificate_name': {'required': True}, - 'password': {'required': True}, - } - - _attribute_map = { - 'certificate_name': {'key': 'certificateName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - } - - def __init__(self, *, certificate_name: str, password: str, **kwargs) -> None: - super(SelectedCertificateInput, self).__init__(**kwargs) - self.certificate_name = certificate_name - self.password = password 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 deleted file mode 100644 index 8507c9404cee..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 ServerProperties(Model): - """Server properties for Oracle, MySQL type source. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar server_platform: Name of the server platform - :vartype server_platform: str - :ivar server_name: Name of the server - :vartype server_name: str - :ivar server_version: Version of the database server - :vartype server_version: str - :ivar server_edition: Edition of the database server - :vartype server_edition: str - :ivar server_operating_system_version: Version of the operating system - :vartype server_operating_system_version: str - :ivar server_database_count: Number of databases in the server - :vartype server_database_count: int - """ - - _validation = { - 'server_platform': {'readonly': True}, - 'server_name': {'readonly': True}, - 'server_version': {'readonly': True}, - 'server_edition': {'readonly': True}, - 'server_operating_system_version': {'readonly': True}, - 'server_database_count': {'readonly': True}, - } - - _attribute_map = { - 'server_platform': {'key': 'serverPlatform', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'server_version': {'key': 'serverVersion', 'type': 'str'}, - 'server_edition': {'key': 'serverEdition', 'type': 'str'}, - 'server_operating_system_version': {'key': 'serverOperatingSystemVersion', 'type': 'str'}, - 'server_database_count': {'key': 'serverDatabaseCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ServerProperties, self).__init__(**kwargs) - self.server_platform = None - self.server_name = None - self.server_version = None - self.server_edition = None - self.server_operating_system_version = None - self.server_database_count = None 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 deleted file mode 100644 index fbee0abcd1ab..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/server_properties_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 ServerProperties(Model): - """Server properties for Oracle, MySQL type source. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar server_platform: Name of the server platform - :vartype server_platform: str - :ivar server_name: Name of the server - :vartype server_name: str - :ivar server_version: Version of the database server - :vartype server_version: str - :ivar server_edition: Edition of the database server - :vartype server_edition: str - :ivar server_operating_system_version: Version of the operating system - :vartype server_operating_system_version: str - :ivar server_database_count: Number of databases in the server - :vartype server_database_count: int - """ - - _validation = { - 'server_platform': {'readonly': True}, - 'server_name': {'readonly': True}, - 'server_version': {'readonly': True}, - 'server_edition': {'readonly': True}, - 'server_operating_system_version': {'readonly': True}, - 'server_database_count': {'readonly': True}, - } - - _attribute_map = { - 'server_platform': {'key': 'serverPlatform', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'server_version': {'key': 'serverVersion', 'type': 'str'}, - 'server_edition': {'key': 'serverEdition', 'type': 'str'}, - 'server_operating_system_version': {'key': 'serverOperatingSystemVersion', 'type': 'str'}, - 'server_database_count': {'key': 'serverDatabaseCount', 'type': 'int'}, - } - - def __init__(self, **kwargs) -> None: - super(ServerProperties, self).__init__(**kwargs) - self.server_platform = None - self.server_name = None - self.server_version = None - self.server_edition = None - self.server_operating_system_version = None - self.server_database_count = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation.py deleted file mode 100644 index fa09e79adad1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 ServiceOperation(Model): - """Description of an action supported by the Database Migration Service. - - :param name: The fully qualified action name, e.g. - Microsoft.DataMigration/services/read - :type name: str - :param display: Localized display text - :type display: ~azure.mgmt.datamigration.models.ServiceOperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ServiceOperationDisplay'}, - } - - def __init__(self, **kwargs): - super(ServiceOperation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display.py deleted file mode 100644 index ddca61e4ae56..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ServiceOperationDisplay(Model): - """Localized display text. - - :param provider: The localized resource provider name - :type provider: str - :param resource: The localized resource type name - :type resource: str - :param operation: The localized operation name - :type operation: str - :param description: The localized operation description - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceOperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display_py3.py deleted file mode 100644 index 62980bd79008..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_display_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ServiceOperationDisplay(Model): - """Localized display text. - - :param provider: The localized resource provider name - :type provider: str - :param resource: The localized resource type name - :type resource: str - :param operation: The localized operation name - :type operation: str - :param description: The localized operation description - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ServiceOperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_paged.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_paged.py deleted file mode 100644 index 955dcd654588..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class ServiceOperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`ServiceOperation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ServiceOperation]'} - } - - def __init__(self, *args, **kwargs): - - super(ServiceOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_py3.py deleted file mode 100644 index 27e51b4e5021..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_operation_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 ServiceOperation(Model): - """Description of an action supported by the Database Migration Service. - - :param name: The fully qualified action name, e.g. - Microsoft.DataMigration/services/read - :type name: str - :param display: Localized display text - :type display: ~azure.mgmt.datamigration.models.ServiceOperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ServiceOperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(ServiceOperation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku.py deleted file mode 100644 index 4858e045788b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ServiceSku(Model): - """An Azure SKU instance. - - :param name: The unique name of the SKU, such as 'P3' - :type name: str - :param tier: The tier of the SKU, such as 'Basic', 'General Purpose', or - 'Business Critical' - :type tier: str - :param family: The SKU family, used when the service has multiple - performance classes within a tier, such as 'A', 'D', etc. for virtual - machines - :type family: str - :param size: The size of the SKU, used when the name alone does not denote - a service size or when a SKU has multiple performance classes within a - family, e.g. 'A1' for virtual machines - :type size: str - :param capacity: The capacity of the SKU, if it supports scaling - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ServiceSku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - self.family = kwargs.get('family', None) - self.size = kwargs.get('size', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku_py3.py deleted file mode 100644 index 871514d39280..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/service_sku_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ServiceSku(Model): - """An Azure SKU instance. - - :param name: The unique name of the SKU, such as 'P3' - :type name: str - :param tier: The tier of the SKU, such as 'Basic', 'General Purpose', or - 'Business Critical' - :type tier: str - :param family: The SKU family, used when the service has multiple - performance classes within a tier, such as 'A', 'D', etc. for virtual - machines - :type family: str - :param size: The size of the SKU, used when the name alone does not denote - a service size or when a SKU has multiple performance classes within a - family, e.g. 'A1' for virtual machines - :type size: str - :param capacity: The capacity of the SKU, if it supports scaling - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, tier: str=None, family: str=None, size: str=None, capacity: int=None, **kwargs) -> None: - super(ServiceSku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.family = family - self.size = size - self.capacity = capacity diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info.py deleted file mode 100644 index 49bde37ed708..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 SqlConnectionInfo(ConnectionInfo): - """Information for connecting to SQL database 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. Data source in the format - Protocol:MachineName\\SQLServerInstanceName,PortNumber - :type data_source: str - :param authentication: Authentication type to use for connection. Possible - values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', - 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' - :type authentication: str or - ~azure.mgmt.datamigration.models.AuthenticationType - :param encrypt_connection: Whether to encrypt the connection. Default - value: True . - :type encrypt_connection: bool - :param additional_settings: Additional connection settings - :type additional_settings: str - :param trust_server_certificate: Whether to trust the server certificate. - Default value: False . - :type trust_server_certificate: bool - :param platform: Server platform type for connection. Possible values - include: 'SqlOnPrem' - :type platform: str or ~azure.mgmt.datamigration.models.SqlSourcePlatform - """ - - _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'}, - 'authentication': {'key': 'authentication', 'type': 'str'}, - 'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'}, - 'additional_settings': {'key': 'additionalSettings', 'type': 'str'}, - 'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'}, - 'platform': {'key': 'platform', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SqlConnectionInfo, self).__init__(**kwargs) - self.data_source = kwargs.get('data_source', None) - self.authentication = kwargs.get('authentication', None) - self.encrypt_connection = kwargs.get('encrypt_connection', True) - self.additional_settings = kwargs.get('additional_settings', None) - self.trust_server_certificate = kwargs.get('trust_server_certificate', False) - self.platform = kwargs.get('platform', None) - self.type = 'SqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info_py3.py deleted file mode 100644 index 51d3a219a987..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_connection_info_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 SqlConnectionInfo(ConnectionInfo): - """Information for connecting to SQL database 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. Data source in the format - Protocol:MachineName\\SQLServerInstanceName,PortNumber - :type data_source: str - :param authentication: Authentication type to use for connection. Possible - values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', - 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' - :type authentication: str or - ~azure.mgmt.datamigration.models.AuthenticationType - :param encrypt_connection: Whether to encrypt the connection. Default - value: True . - :type encrypt_connection: bool - :param additional_settings: Additional connection settings - :type additional_settings: str - :param trust_server_certificate: Whether to trust the server certificate. - Default value: False . - :type trust_server_certificate: bool - :param platform: Server platform type for connection. Possible values - include: 'SqlOnPrem' - :type platform: str or ~azure.mgmt.datamigration.models.SqlSourcePlatform - """ - - _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'}, - 'authentication': {'key': 'authentication', 'type': 'str'}, - 'encrypt_connection': {'key': 'encryptConnection', 'type': 'bool'}, - 'additional_settings': {'key': 'additionalSettings', 'type': 'str'}, - 'trust_server_certificate': {'key': 'trustServerCertificate', 'type': 'bool'}, - 'platform': {'key': 'platform', 'type': 'str'}, - } - - def __init__(self, *, data_source: str, user_name: str=None, password: str=None, authentication=None, encrypt_connection: bool=True, additional_settings: str=None, trust_server_certificate: bool=False, platform=None, **kwargs) -> None: - super(SqlConnectionInfo, self).__init__(user_name=user_name, password=password, **kwargs) - self.data_source = data_source - self.authentication = authentication - self.encrypt_connection = encrypt_connection - self.additional_settings = additional_settings - self.trust_server_certificate = trust_server_certificate - self.platform = platform - self.type = 'SqlConnectionInfo' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input.py deleted file mode 100644 index 4ff4b1b53e28..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 SqlMigrationTaskInput(Model): - """Base class for migration task input. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, **kwargs): - super(SqlMigrationTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_connection_info = kwargs.get('target_connection_info', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input_py3.py deleted file mode 100644 index 274f6e990ea8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_migration_task_input_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 SqlMigrationTaskInput(Model): - """Base class for migration task input. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, **kwargs) -> None: - super(SqlMigrationTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input.py deleted file mode 100644 index dfb2c0e986db..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 SqlServerSqlMISyncTaskInput(Model): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance online scenario. - - 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.MigrateSqlServerSqlMIDatabaseInput] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param storage_resource_id: Required. Fully qualified resourceId of - storage - :type storage_resource_id: str - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'selected_databases': {'required': True}, - 'storage_resource_id': {'required': True}, - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, **kwargs): - super(SqlServerSqlMISyncTaskInput, self).__init__(**kwargs) - self.selected_databases = kwargs.get('selected_databases', None) - self.backup_file_share = kwargs.get('backup_file_share', None) - self.storage_resource_id = kwargs.get('storage_resource_id', None) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.azure_app = kwargs.get('azure_app', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input_py3.py deleted file mode 100644 index d35c496453ff..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sql_server_sql_mi_sync_task_input_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 SqlServerSqlMISyncTaskInput(Model): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance online scenario. - - 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.MigrateSqlServerSqlMIDatabaseInput] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param storage_resource_id: Required. Fully qualified resourceId of - storage - :type storage_resource_id: str - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'selected_databases': {'required': True}, - 'storage_resource_id': {'required': True}, - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, *, selected_databases, storage_resource_id: str, source_connection_info, target_connection_info, azure_app, backup_file_share=None, **kwargs) -> None: - super(SqlServerSqlMISyncTaskInput, self).__init__(**kwargs) - self.selected_databases = selected_databases - self.backup_file_share = backup_file_share - self.storage_resource_id = storage_resource_id - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.azure_app = azure_app diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result.py deleted file mode 100644 index 9af6df887bf7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StartMigrationScenarioServerRoleResult(Model): - """Server role migration result. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of server role. - :vartype name: str - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'name': {'readonly': True}, - 'state': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(StartMigrationScenarioServerRoleResult, self).__init__(**kwargs) - self.name = None - self.state = None - self.exceptions_and_warnings = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result_py3.py deleted file mode 100644 index 4ba0d708f5b8..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/start_migration_scenario_server_role_result_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StartMigrationScenarioServerRoleResult(Model): - """Server role migration result. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Name of server role. - :vartype name: str - :ivar state: Current state of migration. Possible values include: 'None', - 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped' - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'name': {'readonly': True}, - 'state': {'readonly': True}, - 'exceptions_and_warnings': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'exceptions_and_warnings': {'key': 'exceptionsAndWarnings', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(StartMigrationScenarioServerRoleResult, self).__init__(**kwargs) - self.name = None - self.state = None - self.exceptions_and_warnings = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event.py deleted file mode 100644 index 872df745784c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 SyncMigrationDatabaseErrorEvent(Model): - """Database migration errors for online migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar timestamp_string: String value of timestamp. - :vartype timestamp_string: str - :ivar event_type_string: Event type. - :vartype event_type_string: str - :ivar event_text: Event text. - :vartype event_text: str - """ - - _validation = { - 'timestamp_string': {'readonly': True}, - 'event_type_string': {'readonly': True}, - 'event_text': {'readonly': True}, - } - - _attribute_map = { - 'timestamp_string': {'key': 'timestampString', 'type': 'str'}, - 'event_type_string': {'key': 'eventTypeString', 'type': 'str'}, - 'event_text': {'key': 'eventText', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SyncMigrationDatabaseErrorEvent, self).__init__(**kwargs) - self.timestamp_string = None - self.event_type_string = None - self.event_text = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event_py3.py deleted file mode 100644 index a75f3006aebe..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/sync_migration_database_error_event_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 SyncMigrationDatabaseErrorEvent(Model): - """Database migration errors for online migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar timestamp_string: String value of timestamp. - :vartype timestamp_string: str - :ivar event_type_string: Event type. - :vartype event_type_string: str - :ivar event_text: Event text. - :vartype event_text: str - """ - - _validation = { - 'timestamp_string': {'readonly': True}, - 'event_type_string': {'readonly': True}, - 'event_text': {'readonly': True}, - } - - _attribute_map = { - 'timestamp_string': {'key': 'timestampString', 'type': 'str'}, - 'event_type_string': {'key': 'eventTypeString', 'type': 'str'}, - 'event_text': {'key': 'eventText', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(SyncMigrationDatabaseErrorEvent, self).__init__(**kwargs) - self.timestamp_string = None - self.event_type_string = None - self.event_text = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource.py deleted file mode 100644 index 71fc851de040..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .resource import Resource - - -class TrackedResource(Resource): - """ARM tracked top level resource. - - 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: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. Resource location. - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource_py3.py deleted file mode 100644 index 6375e9a90eba..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/tracked_resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .resource_py3 import Resource - - -class TrackedResource(Resource): - """ARM tracked top level resource. - - 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: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. Resource location. - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties.py deleted file mode 100644 index b1b339e3f90e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL DB - sync 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.ValidateSyncMigrationInputSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput] - """ - - _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': 'ValidateSyncMigrationInputSqlServerTaskInput'}, - 'output': {'key': 'output', 'type': '[ValidateSyncMigrationInputSqlServerTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ValidateMigrationInput.SqlServer.SqlDb.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties_py3.py deleted file mode 100644 index 8a529ef20a48..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_db_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL DB - sync 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.ValidateSyncMigrationInputSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput] - """ - - _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': 'ValidateSyncMigrationInputSqlServerTaskInput'}, - 'output': {'key': 'output', 'type': '[ValidateSyncMigrationInputSqlServerTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ValidateMigrationInput.SqlServer.SqlDb.Sync' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input.py deleted file mode 100644 index cf03e6f5ff6c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 .sql_server_sql_mi_sync_task_input import SqlServerSqlMISyncTaskInput - - -class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance online scenario. - - 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.MigrateSqlServerSqlMIDatabaseInput] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param storage_resource_id: Required. Fully qualified resourceId of - storage - :type storage_resource_id: str - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'selected_databases': {'required': True}, - 'storage_resource_id': {'required': True}, - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, **kwargs): - super(ValidateMigrationInputSqlServerSqlMISyncTaskInput, self).__init__(**kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input_py3.py deleted file mode 100644 index c078e9389d25..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_input_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 .sql_server_sql_mi_sync_task_input_py3 import SqlServerSqlMISyncTaskInput - - -class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database - Managed Instance online scenario. - - 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.MigrateSqlServerSqlMIDatabaseInput] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param storage_resource_id: Required. Fully qualified resourceId of - storage - :type storage_resource_id: str - :param source_connection_info: Required. Connection information for source - SQL Server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Connection information for Azure - SQL Database Managed Instance - :type target_connection_info: - ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :param azure_app: Required. Azure Active Directory Application the DMS - instance will use to connect to the target instance of Azure SQL Database - Managed Instance and the Azure Storage Account - :type azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - 'selected_databases': {'required': True}, - 'storage_resource_id': {'required': True}, - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'azure_app': {'required': True}, - } - - _attribute_map = { - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'MiSqlConnectionInfo'}, - 'azure_app': {'key': 'azureApp', 'type': 'AzureActiveDirectoryApp'}, - } - - def __init__(self, *, selected_databases, storage_resource_id: str, source_connection_info, target_connection_info, azure_app, backup_file_share=None, **kwargs) -> None: - super(ValidateMigrationInputSqlServerSqlMISyncTaskInput, self).__init__(selected_databases=selected_databases, backup_file_share=backup_file_share, storage_resource_id=storage_resource_id, source_connection_info=source_connection_info, target_connection_info=target_connection_info, azure_app=azure_app, **kwargs) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output.py deleted file mode 100644 index 2ceb1b8b19be..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMISyncTaskOutput(Model): - """Output for task that validates migration input for Azure SQL Database - Managed Instance online migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Database identifier - :vartype id: str - :ivar name: Name of database - :vartype name: str - :ivar validation_errors: Errors associated with a selected database object - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(ValidateMigrationInputSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.name = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output_py3.py deleted file mode 100644 index 4abb28d84c57..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_output_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMISyncTaskOutput(Model): - """Output for task that validates migration input for Azure SQL Database - Managed Instance online migration. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Database identifier - :vartype id: str - :ivar name: Name of database - :vartype name: str - :ivar validation_errors: Errors associated with a selected database object - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(ValidateMigrationInputSqlServerSqlMISyncTaskOutput, self).__init__(**kwargs) - self.id = None - self.name = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties.py deleted file mode 100644 index 6099abb6c976..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL - Database Managed Instance sync scenario. - - 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.ValidateMigrationInputSqlServerSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput] - """ - - _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': 'ValidateMigrationInputSqlServerSqlMISyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMISyncTaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ValidateMigrationInputSqlServerSqlMISyncTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties_py3.py deleted file mode 100644 index ddc908cc3411..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_sync_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL - Database Managed Instance sync scenario. - - 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.ValidateMigrationInputSqlServerSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput] - """ - - _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': 'ValidateMigrationInputSqlServerSqlMISyncTaskInput'}, - 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMISyncTaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ValidateMigrationInputSqlServerSqlMISyncTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input.py deleted file mode 100644 index 574508b89d5f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMITaskInput(Model): - """Input for task that validates migration input for SQL to Azure SQL Managed - Instance. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :param selected_logins: Logins to migrate - :type selected_logins: list[str] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param backup_blob_share: Required. SAS URI of Azure Storage Account - Container to be used for storing backup files. - :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :param backup_mode: Backup Mode to specify whether to use existing backup - or create new backup. Possible values include: 'CreateBackup', - 'ExistingBackup' - :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - 'backup_blob_share': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, - 'backup_mode': {'key': 'backupMode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ValidateMigrationInputSqlServerSqlMITaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.selected_databases = kwargs.get('selected_databases', None) - self.selected_logins = kwargs.get('selected_logins', None) - self.backup_file_share = kwargs.get('backup_file_share', None) - self.backup_blob_share = kwargs.get('backup_blob_share', None) - self.backup_mode = kwargs.get('backup_mode', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input_py3.py deleted file mode 100644 index 6c1f309299ca..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_input_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMITaskInput(Model): - """Input for task that validates migration input for SQL to Azure SQL Managed - Instance. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :param selected_logins: Logins to migrate - :type selected_logins: list[str] - :param backup_file_share: Backup file share information for all selected - databases. - :type backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :param backup_blob_share: Required. SAS URI of Azure Storage Account - Container to be used for storing backup files. - :type backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :param backup_mode: Backup Mode to specify whether to use existing backup - or create new backup. Possible values include: 'CreateBackup', - 'ExistingBackup' - :type backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - 'backup_blob_share': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlMIDatabaseInput]'}, - 'selected_logins': {'key': 'selectedLogins', 'type': '[str]'}, - 'backup_file_share': {'key': 'backupFileShare', 'type': 'FileShare'}, - 'backup_blob_share': {'key': 'backupBlobShare', 'type': 'BlobShare'}, - 'backup_mode': {'key': 'backupMode', 'type': 'str'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, backup_blob_share, selected_logins=None, backup_file_share=None, backup_mode=None, **kwargs) -> None: - super(ValidateMigrationInputSqlServerSqlMITaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_databases = selected_databases - self.selected_logins = selected_logins - self.backup_file_share = backup_file_share - self.backup_blob_share = backup_blob_share - self.backup_mode = backup_mode diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output.py deleted file mode 100644 index 41b0019618e7..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMITaskOutput(Model): - """Output for task that validates migration input for SQL to Azure SQL Managed - Instance migrations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar name: Name of database - :vartype name: str - :ivar restore_database_name_errors: Errors associated with the - RestoreDatabaseName - :vartype restore_database_name_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_folder_errors: Errors associated with the BackupFolder path - :vartype backup_folder_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_share_credentials_errors: Errors associated with backup share - user name and password credentials - :vartype backup_share_credentials_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_storage_account_errors: Errors associated with the storage - account provided. - :vartype backup_storage_account_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar existing_backup_errors: Errors associated with existing backup - files. - :vartype existing_backup_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :param database_backup_info: Information about backup files when existing - backup mode is used. - :type database_backup_info: - ~azure.mgmt.datamigration.models.DatabaseBackupInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'restore_database_name_errors': {'readonly': True}, - 'backup_folder_errors': {'readonly': True}, - 'backup_share_credentials_errors': {'readonly': True}, - 'backup_storage_account_errors': {'readonly': True}, - 'existing_backup_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'restore_database_name_errors': {'key': 'restoreDatabaseNameErrors', 'type': '[ReportableException]'}, - 'backup_folder_errors': {'key': 'backupFolderErrors', 'type': '[ReportableException]'}, - 'backup_share_credentials_errors': {'key': 'backupShareCredentialsErrors', 'type': '[ReportableException]'}, - 'backup_storage_account_errors': {'key': 'backupStorageAccountErrors', 'type': '[ReportableException]'}, - 'existing_backup_errors': {'key': 'existingBackupErrors', 'type': '[ReportableException]'}, - 'database_backup_info': {'key': 'databaseBackupInfo', 'type': 'DatabaseBackupInfo'}, - } - - def __init__(self, **kwargs): - super(ValidateMigrationInputSqlServerSqlMITaskOutput, self).__init__(**kwargs) - self.id = None - self.name = None - self.restore_database_name_errors = None - self.backup_folder_errors = None - self.backup_share_credentials_errors = None - self.backup_storage_account_errors = None - self.existing_backup_errors = None - self.database_backup_info = kwargs.get('database_backup_info', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output_py3.py deleted file mode 100644 index f5004632764c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_output_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMITaskOutput(Model): - """Output for task that validates migration input for SQL to Azure SQL Managed - Instance migrations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Result identifier - :vartype id: str - :ivar name: Name of database - :vartype name: str - :ivar restore_database_name_errors: Errors associated with the - RestoreDatabaseName - :vartype restore_database_name_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_folder_errors: Errors associated with the BackupFolder path - :vartype backup_folder_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_share_credentials_errors: Errors associated with backup share - user name and password credentials - :vartype backup_share_credentials_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_storage_account_errors: Errors associated with the storage - account provided. - :vartype backup_storage_account_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar existing_backup_errors: Errors associated with existing backup - files. - :vartype existing_backup_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :param database_backup_info: Information about backup files when existing - backup mode is used. - :type database_backup_info: - ~azure.mgmt.datamigration.models.DatabaseBackupInfo - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'restore_database_name_errors': {'readonly': True}, - 'backup_folder_errors': {'readonly': True}, - 'backup_share_credentials_errors': {'readonly': True}, - 'backup_storage_account_errors': {'readonly': True}, - 'existing_backup_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'restore_database_name_errors': {'key': 'restoreDatabaseNameErrors', 'type': '[ReportableException]'}, - 'backup_folder_errors': {'key': 'backupFolderErrors', 'type': '[ReportableException]'}, - 'backup_share_credentials_errors': {'key': 'backupShareCredentialsErrors', 'type': '[ReportableException]'}, - 'backup_storage_account_errors': {'key': 'backupStorageAccountErrors', 'type': '[ReportableException]'}, - 'existing_backup_errors': {'key': 'existingBackupErrors', 'type': '[ReportableException]'}, - 'database_backup_info': {'key': 'databaseBackupInfo', 'type': 'DatabaseBackupInfo'}, - } - - def __init__(self, *, database_backup_info=None, **kwargs) -> None: - super(ValidateMigrationInputSqlServerSqlMITaskOutput, self).__init__(**kwargs) - self.id = None - self.name = None - self.restore_database_name_errors = None - self.backup_folder_errors = None - self.backup_share_credentials_errors = None - self.backup_storage_account_errors = None - self.existing_backup_errors = None - self.database_backup_info = database_backup_info diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties.py deleted file mode 100644 index 311b5292fbb9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMITaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL - Database Managed Instance. - - 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.ValidateMigrationInputSqlServerSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput] - """ - - _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': 'ValidateMigrationInputSqlServerSqlMITaskInput'}, - 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMITaskOutput]'}, - } - - def __init__(self, **kwargs): - super(ValidateMigrationInputSqlServerSqlMITaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties_py3.py deleted file mode 100644 index 9bb3ecba0497..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_migration_input_sql_server_sql_mi_task_properties_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ValidateMigrationInputSqlServerSqlMITaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL - Database Managed Instance. - - 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.ValidateMigrationInputSqlServerSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput] - """ - - _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': 'ValidateMigrationInputSqlServerSqlMITaskInput'}, - 'output': {'key': 'output', 'type': '[ValidateMigrationInputSqlServerSqlMITaskOutput]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ValidateMigrationInputSqlServerSqlMITaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'ValidateMigrationInput.SqlServer.AzureSqlDbMI' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties.py deleted file mode 100644 index 2c40ddb31dc1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 ValidateMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates a migration between MongoDB data - sources. - - 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.MongoDbMigrationSettings - :ivar output: An array containing a single MongoDbMigrationProgress object - :vartype output: - list[~azure.mgmt.datamigration.models.MongoDbMigrationProgress] - """ - - _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': 'MongoDbMigrationSettings'}, - 'output': {'key': 'output', 'type': '[MongoDbMigrationProgress]'}, - } - - def __init__(self, **kwargs): - super(ValidateMongoDbTaskProperties, self).__init__(**kwargs) - self.input = kwargs.get('input', None) - self.output = None - self.task_type = 'Validate.MongoDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties_py3.py deleted file mode 100644 index f4da15474210..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_mongo_db_task_properties_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 ValidateMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates a migration between MongoDB data - sources. - - 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.MongoDbMigrationSettings - :ivar output: An array containing a single MongoDbMigrationProgress object - :vartype output: - list[~azure.mgmt.datamigration.models.MongoDbMigrationProgress] - """ - - _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': 'MongoDbMigrationSettings'}, - 'output': {'key': 'output', 'type': '[MongoDbMigrationProgress]'}, - } - - def __init__(self, *, client_data=None, input=None, **kwargs) -> None: - super(ValidateMongoDbTaskProperties, self).__init__(client_data=client_data, **kwargs) - self.input = input - self.output = None - self.task_type = 'Validate.MongoDb' diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input.py deleted file mode 100644 index e3ef6578bb7f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ValidateSyncMigrationInputSqlServerTaskInput(Model): - """Input for task that validates migration input for SQL sync migrations. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source SQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, - } - - def __init__(self, **kwargs): - super(ValidateSyncMigrationInputSqlServerTaskInput, self).__init__(**kwargs) - self.source_connection_info = kwargs.get('source_connection_info', None) - self.target_connection_info = kwargs.get('target_connection_info', None) - self.selected_databases = kwargs.get('selected_databases', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input_py3.py deleted file mode 100644 index 03eb1295e946..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_input_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ValidateSyncMigrationInputSqlServerTaskInput(Model): - """Input for task that validates migration input for SQL sync migrations. - - All required parameters must be populated in order to send to Azure. - - :param source_connection_info: Required. Information for connecting to - source SQL server - :type source_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param target_connection_info: Required. Information for connecting to - target - :type target_connection_info: - ~azure.mgmt.datamigration.models.SqlConnectionInfo - :param selected_databases: Required. Databases to migrate - :type selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - """ - - _validation = { - 'source_connection_info': {'required': True}, - 'target_connection_info': {'required': True}, - 'selected_databases': {'required': True}, - } - - _attribute_map = { - 'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'target_connection_info': {'key': 'targetConnectionInfo', 'type': 'SqlConnectionInfo'}, - 'selected_databases': {'key': 'selectedDatabases', 'type': '[MigrateSqlServerSqlDbSyncDatabaseInput]'}, - } - - def __init__(self, *, source_connection_info, target_connection_info, selected_databases, **kwargs) -> None: - super(ValidateSyncMigrationInputSqlServerTaskInput, self).__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_databases = selected_databases diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output.py deleted file mode 100644 index acf72153e195..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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 ValidateSyncMigrationInputSqlServerTaskOutput(Model): - """Output for task that validates migration input for SQL sync migrations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Database identifier - :vartype id: str - :ivar name: Name of database - :vartype name: str - :ivar validation_errors: Errors associated with a selected database object - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs): - super(ValidateSyncMigrationInputSqlServerTaskOutput, self).__init__(**kwargs) - self.id = None - self.name = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output_py3.py deleted file mode 100644 index 8b7181f5333a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validate_sync_migration_input_sql_server_task_output_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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 ValidateSyncMigrationInputSqlServerTaskOutput(Model): - """Output for task that validates migration input for SQL sync migrations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Database identifier - :vartype id: str - :ivar name: Name of database - :vartype name: str - :ivar validation_errors: Errors associated with a selected database object - :vartype validation_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'validation_errors': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'}, - } - - def __init__(self, **kwargs) -> None: - super(ValidateSyncMigrationInputSqlServerTaskOutput, self).__init__(**kwargs) - self.id = None - self.name = None - self.validation_errors = None diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error.py deleted file mode 100644 index 2dcb6d4fdf0c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 ValidationError(Model): - """Description about the errors happen while performing migration validation. - - :param text: Error Text - :type text: str - :param severity: Severity of the error. Possible values include: - 'Message', 'Warning', 'Error' - :type severity: str or ~azure.mgmt.datamigration.models.Severity - """ - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'severity': {'key': 'severity', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ValidationError, self).__init__(**kwargs) - self.text = kwargs.get('text', None) - self.severity = kwargs.get('severity', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error_py3.py deleted file mode 100644 index 6e7ce050ff4e..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/validation_error_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 ValidationError(Model): - """Description about the errors happen while performing migration validation. - - :param text: Error Text - :type text: str - :param severity: Severity of the error. Possible values include: - 'Message', 'Warning', 'Error' - :type severity: str or ~azure.mgmt.datamigration.models.Severity - """ - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'severity': {'key': 'severity', 'type': 'str'}, - } - - def __init__(self, *, text: str=None, severity=None, **kwargs) -> None: - super(ValidationError, self).__init__(**kwargs) - self.text = text - self.severity = severity diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics.py deleted file mode 100644 index 2e1b9a76d7fc..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 WaitStatistics(Model): - """Wait statistics gathered during query batch execution. - - :param wait_type: Type of the Wait - :type wait_type: str - :param wait_time_ms: Total wait time in millisecond(s) . Default value: 0 - . - :type wait_time_ms: float - :param wait_count: Total no. of waits - :type wait_count: long - """ - - _attribute_map = { - 'wait_type': {'key': 'waitType', 'type': 'str'}, - 'wait_time_ms': {'key': 'waitTimeMs', 'type': 'float'}, - 'wait_count': {'key': 'waitCount', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(WaitStatistics, self).__init__(**kwargs) - self.wait_type = kwargs.get('wait_type', None) - self.wait_time_ms = kwargs.get('wait_time_ms', 0) - self.wait_count = kwargs.get('wait_count', None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics_py3.py deleted file mode 100644 index 4ac3fbbb9247..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/wait_statistics_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 WaitStatistics(Model): - """Wait statistics gathered during query batch execution. - - :param wait_type: Type of the Wait - :type wait_type: str - :param wait_time_ms: Total wait time in millisecond(s) . Default value: 0 - . - :type wait_time_ms: float - :param wait_count: Total no. of waits - :type wait_count: long - """ - - _attribute_map = { - 'wait_type': {'key': 'waitType', 'type': 'str'}, - 'wait_time_ms': {'key': 'waitTimeMs', 'type': 'float'}, - 'wait_count': {'key': 'waitCount', 'type': 'long'}, - } - - def __init__(self, *, wait_type: str=None, wait_time_ms: float=0, wait_count: int=None, **kwargs) -> None: - super(WaitStatistics, self).__init__(**kwargs) - self.wait_type = wait_type - self.wait_time_ms = wait_time_ms - self.wait_count = wait_count 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..a3319d1ca339 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 @@ -9,18 +9,20 @@ # regenerated. # -------------------------------------------------------------------------- -from .resource_skus_operations import ResourceSkusOperations -from .services_operations import ServicesOperations -from .tasks_operations import TasksOperations -from .projects_operations import ProjectsOperations -from .usages_operations import UsagesOperations -from .operations import Operations -from .files_operations import FilesOperations +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 +from ._files_operations import FilesOperations __all__ = [ 'ResourceSkusOperations', 'ServicesOperations', 'TasksOperations', + 'ServiceTasksOperations', 'ProjectsOperations', 'UsagesOperations', 'Operations', diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/files_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py similarity index 98% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/files_operations.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py index 25033e3714bc..70e7f6353521 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/files_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py @@ -18,6 +18,8 @@ class FilesOperations(object): """FilesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -61,8 +63,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -94,6 +95,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -102,12 +108,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProjectFilePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProjectFilePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProjectFilePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files'} @@ -172,7 +176,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProjectFile', response) @@ -253,7 +256,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProjectFile', response) if response.status_code == 201: @@ -396,7 +398,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProjectFile', response) @@ -466,7 +467,6 @@ def read( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FileStorageInfo', response) @@ -536,7 +536,6 @@ def read_write( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FileStorageInfo', response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py similarity index 90% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/operations.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py index 6249ae2fa208..def6196e99df 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py @@ -18,6 +18,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -54,8 +56,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -80,6 +81,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -88,12 +94,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ServiceOperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ServiceOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ServiceOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.DataMigration/operations'} diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/projects_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py similarity index 97% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/projects_operations.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py index 07c814971fb0..042c4eeea4e0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/projects_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py @@ -18,6 +18,8 @@ class ProjectsOperations(object): """ProjectsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -59,8 +61,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -91,6 +92,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -99,12 +105,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects'} @@ -172,7 +176,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Project', response) if response.status_code == 201: @@ -242,7 +245,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Project', response) @@ -378,7 +380,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Project', response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/resource_skus_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py similarity index 91% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/resource_skus_operations.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py index 903994cd6ef8..1b5b6015fbb3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/resource_skus_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py @@ -18,6 +18,8 @@ class ResourceSkusOperations(object): """ResourceSkusOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -53,8 +55,7 @@ def list_skus( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_skus.metadata['url'] @@ -83,6 +84,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -91,12 +97,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceSkuPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceSkuPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceSkuPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus'} 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..0e4ba0aeef22 --- /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. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :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 prepare_request(next_link=None): + 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) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + 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 + header_dict = None + if raw: + header_dict = {} + deserialized = models.ProjectTaskPaged(internal_paging, self._deserialize.dependencies, header_dict) + + 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'} diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py similarity index 98% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/services_operations.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py index fd994f8fa23a..dc4eeabef31f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py @@ -20,6 +20,8 @@ class ServicesOperations(object): """ServicesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -206,7 +208,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DataMigrationService', response) @@ -467,7 +468,6 @@ def check_status( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DataMigrationServiceStatusResponse', response) @@ -666,8 +666,7 @@ def list_skus( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_skus.metadata['url'] @@ -698,6 +697,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -706,12 +710,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.AvailableServiceSkuPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.AvailableServiceSkuPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.AvailableServiceSkuPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus'} @@ -779,7 +781,6 @@ def check_children_name_availability( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('NameAvailabilityResponse', response) @@ -811,8 +812,7 @@ def list_by_resource_group( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -842,6 +842,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -850,12 +855,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DataMigrationServicePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DataMigrationServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DataMigrationServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services'} @@ -879,8 +882,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -909,6 +911,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -917,12 +924,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DataMigrationServicePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DataMigrationServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DataMigrationServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services'} @@ -987,7 +992,6 @@ def check_name_availability( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('NameAvailabilityResponse', response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py similarity index 98% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/tasks_operations.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py index 8f4bba8c130d..4f482c34a2c4 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py @@ -18,6 +18,8 @@ class TasksOperations(object): """TasksOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -65,8 +67,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -100,6 +101,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -108,12 +114,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProjectTaskPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProjectTaskPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProjectTaskPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks'} @@ -191,7 +195,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProjectTask', response) if response.status_code == 201: @@ -268,7 +271,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProjectTask', response) @@ -419,7 +421,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProjectTask', response) @@ -490,7 +491,6 @@ def cancel( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProjectTask', response) @@ -567,7 +567,6 @@ def command( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CommandProperties', response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/usages_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py similarity index 91% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/usages_operations.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py index 35255c37dbbc..a106f7827672 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/usages_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py @@ -18,6 +18,8 @@ class UsagesOperations(object): """UsagesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +58,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -87,6 +88,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -95,12 +101,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.QuotaPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.QuotaPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.QuotaPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages'} diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/version.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/version.py index 24780a0f6af4..7f225c6aab41 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/version.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2.2.0" +VERSION = "3.0.0" + diff --git a/sdk/datamigration/azure-mgmt-datamigration/setup.py b/sdk/datamigration/azure-mgmt-datamigration/setup.py index f9b01dd7bafd..e14880c3b373 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/setup.py +++ b/sdk/datamigration/azure-mgmt-datamigration/setup.py @@ -64,7 +64,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',