ruạṛ
a ���fA, � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Zdd� Zdd � Zd!d"� Zd#S )$�CloneMigrationDetailszF Customizable details when performing cloning of a migration. �MYSQL�ORACLEc K sZ dddddddd�| _ ddddd d dd�| _d| _d| _d| _d| _d| _d| _d| _dS ) a@ Initializes a new CloneMigrationDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.database_migration.models.OracleCloneMigrationDetails` * :class:`~oci.database_migration.models.MySqlCloneMigrationDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param database_combination: The value to assign to the database_combination property of this CloneMigrationDetails. Allowed values for this property are: "MYSQL", "ORACLE" :type database_combination: str :param display_name: The value to assign to the display_name property of this CloneMigrationDetails. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this CloneMigrationDetails. :type compartment_id: str :param source_database_connection_id: The value to assign to the source_database_connection_id property of this CloneMigrationDetails. :type source_database_connection_id: str :param target_database_connection_id: The value to assign to the target_database_connection_id property of this CloneMigrationDetails. :type target_database_connection_id: str :param freeform_tags: The value to assign to the freeform_tags property of this CloneMigrationDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CloneMigrationDetails. :type defined_tags: dict(str, dict(str, object)) �strzdict(str, str)zdict(str, dict(str, object)))�database_combination�display_name�compartment_id�source_database_connection_id�target_database_connection_id� freeform_tags�defined_tags�databaseCombinationZdisplayNameZ compartmentIdZsourceDatabaseConnectionIdZtargetDatabaseConnectionIdZfreeformTagsZdefinedTagsN) Z swagger_typesZ attribute_map�_database_combination� _display_name�_compartment_id�_source_database_connection_id�_target_database_connection_id�_freeform_tags� _defined_tags)�self�kwargs� r �Y/usr/lib/python3.9/site-packages/oci/database_migration/models/clone_migration_details.py�__init__ s. )�� zCloneMigrationDetails.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZOracleCloneMigrationDetailsr ZMySqlCloneMigrationDetailsr Nr )Zobject_dictionary�typer r r �get_subtype^ s z!CloneMigrationDetails.get_subtypec C s | j S )a� **[Required]** Gets the database_combination of this CloneMigrationDetails. The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases. Allowed values for this property are: "MYSQL", "ORACLE" :return: The database_combination of this CloneMigrationDetails. :rtype: str )r �r r r r r n s z*CloneMigrationDetails.database_combinationc C s* ddg}t ||�s td|� ���|| _dS )a| Sets the database_combination of this CloneMigrationDetails. The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases. :param database_combination: The database_combination of this CloneMigrationDetails. :type: str r r zAInvalid value for `database_combination`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r } s �c C s | j S )a Gets the display_name of this CloneMigrationDetails. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this CloneMigrationDetails. :rtype: str �r r r r r r � s z"CloneMigrationDetails.display_namec C s || _ dS )a( Sets the display_name of this CloneMigrationDetails. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param display_name: The display_name of this CloneMigrationDetails. :type: str Nr"