ruạṛ
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230518 from .create_migration_details import CreateMigrationDetails from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class CreateMySqlMigrationDetails(CreateMigrationDetails): """ Create Migration resource parameters. """ def __init__(self, **kwargs): """ Initializes a new CreateMySqlMigrationDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_migration.models.CreateMySqlMigrationDetails.database_combination` attribute of this class is ``MYSQL`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param description: The value to assign to the description property of this CreateMySqlMigrationDetails. :type description: str :param compartment_id: The value to assign to the compartment_id property of this CreateMySqlMigrationDetails. :type compartment_id: str :param database_combination: The value to assign to the database_combination property of this CreateMySqlMigrationDetails. Allowed values for this property are: "MYSQL", "ORACLE" :type database_combination: str :param type: The value to assign to the type property of this CreateMySqlMigrationDetails. Allowed values for this property are: "ONLINE", "OFFLINE" :type type: str :param display_name: The value to assign to the display_name property of this CreateMySqlMigrationDetails. :type display_name: str :param source_database_connection_id: The value to assign to the source_database_connection_id property of this CreateMySqlMigrationDetails. :type source_database_connection_id: str :param target_database_connection_id: The value to assign to the target_database_connection_id property of this CreateMySqlMigrationDetails. :type target_database_connection_id: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateMySqlMigrationDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateMySqlMigrationDetails. :type defined_tags: dict(str, dict(str, object)) :param data_transfer_medium_details: The value to assign to the data_transfer_medium_details property of this CreateMySqlMigrationDetails. :type data_transfer_medium_details: oci.database_migration.models.CreateMySqlDataTransferMediumDetails :param initial_load_settings: The value to assign to the initial_load_settings property of this CreateMySqlMigrationDetails. :type initial_load_settings: oci.database_migration.models.CreateMySqlInitialLoadSettings :param advisor_settings: The value to assign to the advisor_settings property of this CreateMySqlMigrationDetails. :type advisor_settings: oci.database_migration.models.CreateMySqlAdvisorSettings :param exclude_objects: The value to assign to the exclude_objects property of this CreateMySqlMigrationDetails. :type exclude_objects: list[oci.database_migration.models.MySqlDatabaseObject] :param include_objects: The value to assign to the include_objects property of this CreateMySqlMigrationDetails. :type include_objects: list[oci.database_migration.models.MySqlDatabaseObject] :param bulk_include_exclude_data: The value to assign to the bulk_include_exclude_data property of this CreateMySqlMigrationDetails. :type bulk_include_exclude_data: str :param hub_details: The value to assign to the hub_details property of this CreateMySqlMigrationDetails. :type hub_details: oci.database_migration.models.CreateGoldenGateHubDetails :param ggs_details: The value to assign to the ggs_details property of this CreateMySqlMigrationDetails. :type ggs_details: oci.database_migration.models.CreateMySqlGgsDeploymentDetails """ self.swagger_types = { 'description': 'str', 'compartment_id': 'str', 'database_combination': 'str', 'type': 'str', 'display_name': 'str', 'source_database_connection_id': 'str', 'target_database_connection_id': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'data_transfer_medium_details': 'CreateMySqlDataTransferMediumDetails', 'initial_load_settings': 'CreateMySqlInitialLoadSettings', 'advisor_settings': 'CreateMySqlAdvisorSettings', 'exclude_objects': 'list[MySqlDatabaseObject]', 'include_objects': 'list[MySqlDatabaseObject]', 'bulk_include_exclude_data': 'str', 'hub_details': 'CreateGoldenGateHubDetails', 'ggs_details': 'CreateMySqlGgsDeploymentDetails' } self.attribute_map = { 'description': 'description', 'compartment_id': 'compartmentId', 'database_combination': 'databaseCombination', 'type': 'type', 'display_name': 'displayName', 'source_database_connection_id': 'sourceDatabaseConnectionId', 'target_database_connection_id': 'targetDatabaseConnectionId', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'data_transfer_medium_details': 'dataTransferMediumDetails', 'initial_load_settings': 'initialLoadSettings', 'advisor_settings': 'advisorSettings', 'exclude_objects': 'excludeObjects', 'include_objects': 'includeObjects', 'bulk_include_exclude_data': 'bulkIncludeExcludeData', 'hub_details': 'hubDetails', 'ggs_details': 'ggsDetails' } self._description = None self._compartment_id = None self._database_combination = None self._type = None self._display_name = None self._source_database_connection_id = None self._target_database_connection_id = None self._freeform_tags = None self._defined_tags = None self._data_transfer_medium_details = None self._initial_load_settings = None self._advisor_settings = None self._exclude_objects = None self._include_objects = None self._bulk_include_exclude_data = None self._hub_details = None self._ggs_details = None self._database_combination = 'MYSQL' @property def data_transfer_medium_details(self): """ Gets the data_transfer_medium_details of this CreateMySqlMigrationDetails. :return: The data_transfer_medium_details of this CreateMySqlMigrationDetails. :rtype: oci.database_migration.models.CreateMySqlDataTransferMediumDetails """ return self._data_transfer_medium_details @data_transfer_medium_details.setter def data_transfer_medium_details(self, data_transfer_medium_details): """ Sets the data_transfer_medium_details of this CreateMySqlMigrationDetails. :param data_transfer_medium_details: The data_transfer_medium_details of this CreateMySqlMigrationDetails. :type: oci.database_migration.models.CreateMySqlDataTransferMediumDetails """ self._data_transfer_medium_details = data_transfer_medium_details @property def initial_load_settings(self): """ Gets the initial_load_settings of this CreateMySqlMigrationDetails. :return: The initial_load_settings of this CreateMySqlMigrationDetails. :rtype: oci.database_migration.models.CreateMySqlInitialLoadSettings """ return self._initial_load_settings @initial_load_settings.setter def initial_load_settings(self, initial_load_settings): """ Sets the initial_load_settings of this CreateMySqlMigrationDetails. :param initial_load_settings: The initial_load_settings of this CreateMySqlMigrationDetails. :type: oci.database_migration.models.CreateMySqlInitialLoadSettings """ self._initial_load_settings = initial_load_settings @property def advisor_settings(self): """ Gets the advisor_settings of this CreateMySqlMigrationDetails. :return: The advisor_settings of this CreateMySqlMigrationDetails. :rtype: oci.database_migration.models.CreateMySqlAdvisorSettings """ return self._advisor_settings @advisor_settings.setter def advisor_settings(self, advisor_settings): """ Sets the advisor_settings of this CreateMySqlMigrationDetails. :param advisor_settings: The advisor_settings of this CreateMySqlMigrationDetails. :type: oci.database_migration.models.CreateMySqlAdvisorSettings """ self._advisor_settings = advisor_settings @property def exclude_objects(self): """ Gets the exclude_objects of this CreateMySqlMigrationDetails. Database objects to exclude from migration, cannot be specified alongside 'includeObjects' :return: The exclude_objects of this CreateMySqlMigrationDetails. :rtype: list[oci.database_migration.models.MySqlDatabaseObject] """ return self._exclude_objects @exclude_objects.setter def exclude_objects(self, exclude_objects): """ Sets the exclude_objects of this CreateMySqlMigrationDetails. Database objects to exclude from migration, cannot be specified alongside 'includeObjects' :param exclude_objects: The exclude_objects of this CreateMySqlMigrationDetails. :type: list[oci.database_migration.models.MySqlDatabaseObject] """ self._exclude_objects = exclude_objects @property def include_objects(self): """ Gets the include_objects of this CreateMySqlMigrationDetails. Database objects to include from migration, cannot be specified alongside 'excludeObjects' :return: The include_objects of this CreateMySqlMigrationDetails. :rtype: list[oci.database_migration.models.MySqlDatabaseObject] """ return self._include_objects @include_objects.setter def include_objects(self, include_objects): """ Sets the include_objects of this CreateMySqlMigrationDetails. Database objects to include from migration, cannot be specified alongside 'excludeObjects' :param include_objects: The include_objects of this CreateMySqlMigrationDetails. :type: list[oci.database_migration.models.MySqlDatabaseObject] """ self._include_objects = include_objects @property def bulk_include_exclude_data(self): """ Gets the bulk_include_exclude_data of this CreateMySqlMigrationDetails. Specifies the database objects to be excluded from the migration in bulk. The definition accepts input in a CSV format, newline separated for each entry. More details can be found in the documentation. :return: The bulk_include_exclude_data of this CreateMySqlMigrationDetails. :rtype: str """ return self._bulk_include_exclude_data @bulk_include_exclude_data.setter def bulk_include_exclude_data(self, bulk_include_exclude_data): """ Sets the bulk_include_exclude_data of this CreateMySqlMigrationDetails. Specifies the database objects to be excluded from the migration in bulk. The definition accepts input in a CSV format, newline separated for each entry. More details can be found in the documentation. :param bulk_include_exclude_data: The bulk_include_exclude_data of this CreateMySqlMigrationDetails. :type: str """ self._bulk_include_exclude_data = bulk_include_exclude_data @property def hub_details(self): """ Gets the hub_details of this CreateMySqlMigrationDetails. :return: The hub_details of this CreateMySqlMigrationDetails. :rtype: oci.database_migration.models.CreateGoldenGateHubDetails """ return self._hub_details @hub_details.setter def hub_details(self, hub_details): """ Sets the hub_details of this CreateMySqlMigrationDetails. :param hub_details: The hub_details of this CreateMySqlMigrationDetails. :type: oci.database_migration.models.CreateGoldenGateHubDetails """ self._hub_details = hub_details @property def ggs_details(self): """ Gets the ggs_details of this CreateMySqlMigrationDetails. :return: The ggs_details of this CreateMySqlMigrationDetails. :rtype: oci.database_migration.models.CreateMySqlGgsDeploymentDetails """ return self._ggs_details @ggs_details.setter def ggs_details(self, ggs_details): """ Sets the ggs_details of this CreateMySqlMigrationDetails. :param ggs_details: The ggs_details of this CreateMySqlMigrationDetails. :type: oci.database_migration.models.CreateMySqlGgsDeploymentDetails """ self._ggs_details = ggs_details def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
cải xoăn