ruạṛ
a ���f.� � @ 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 ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d$Z0d.Z1d/Z2d0d1� Z3e4d2d3� �Z5e6d4d5� �Z7e7j8d6d5� �Z7e6d7d8� �Z9e9j8d9d8� �Z9e6d:d;� �Z:e:j8d<d;� �Z:e6d=d>� �Z;e;j8d?d>� �Z;e6d@dA� �Z<e<j8dBdA� �Z<e6dCdD� �Z=e=j8dEdD� �Z=e6dFdG� �Z>e>j8dHdG� �Z>e6dIdJ� �Z?e?j8dKdJ� �Z?e6dLdM� �Z@e@j8dNdM� �Z@e6dOdP� �ZAeAj8dQdP� �ZAe6dRdS� �ZBeBj8dTdS� �ZBe6dUdV� �ZCeCj8dWdV� �ZCe6dXdY� �ZDeDj8dZdY� �ZDe6d[d\� �ZEeEj8d]d\� �ZEe6d^d_� �ZFeFj8d`d_� �ZFe6dadb� �ZGeGj8dcdb� �ZGe6ddde� �ZHeHj8dfde� �ZHe6dgdh� �ZIeIj8didh� �ZIdjdk� ZJdldm� ZKdndo� ZLdpS )q� Migrationz Migration resource �MYSQL�ORACLE�ONLINE�OFFLINE�ODMS_VALIDATE_TGT�ODMS_VALIDATE_SRC�"ODMS_VALIDATE_PREMIGRATION_ADVISOR�ODMS_VALIDATE_GG_HUB�ODMS_VALIDATE_DATAPUMP_SETTINGS�#ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC�#ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT�ODMS_VALIDATE_DATAPUMP_SRC�#ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC�ODMS_FETCH_METADATA_SRC�ODMS_FETCH_METADATA_TGT� ODMS_VALIDATE�ODMS_PREPARE�*ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE�ODMS_INITIAL_LOAD_EXPORT�ODMS_DATA_UPLOAD�$ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD�ODMS_INITIAL_LOAD_IMPORT�ODMS_POST_INITIAL_LOAD�ODMS_PREPARE_REPLICATION_TARGET�ODMS_MONITOR_REPLICATION_LAG�ODMS_SWITCHOVER�ODMS_CLEANUP�CREATING�UPDATING�ACTIVE�IN_PROGRESS�ACCEPTED� SUCCEEDED�CANCELED�WAITING�NEEDS_ATTENTION�INACTIVE�DELETING�DELETED�FAILED�READY�ABORTING� VALIDATING� VALIDATED� MIGRATING�DONEc K s� ddddddddddddddddddd�| _ dddd d ddd ddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _dS )a� Initializes a new Migration 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.OracleMigration` * :class:`~oci.database_migration.models.MySqlMigration` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this Migration. :type id: str :param description: The value to assign to the description property of this Migration. :type description: str :param database_combination: The value to assign to the database_combination property of this Migration. Allowed values for this property are: "MYSQL", "ORACLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_combination: str :param display_name: The value to assign to the display_name property of this Migration. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this Migration. :type compartment_id: str :param type: The value to assign to the type property of this Migration. Allowed values for this property are: "ONLINE", "OFFLINE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param wait_after: The value to assign to the wait_after property of this Migration. Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_PREMIGRATION_ADVISOR", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE_DATAPUMP_SRC", "ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC", "ODMS_FETCH_METADATA_SRC", "ODMS_FETCH_METADATA_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type wait_after: str :param source_database_connection_id: The value to assign to the source_database_connection_id property of this Migration. :type source_database_connection_id: str :param target_database_connection_id: The value to assign to the target_database_connection_id property of this Migration. :type target_database_connection_id: str :param executing_job_id: The value to assign to the executing_job_id property of this Migration. :type executing_job_id: str :param time_created: The value to assign to the time_created property of this Migration. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Migration. :type time_updated: datetime :param time_last_migration: The value to assign to the time_last_migration property of this Migration. :type time_last_migration: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this Migration. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "IN_PROGRESS", "ACCEPTED", "SUCCEEDED", "CANCELED", "WAITING", "NEEDS_ATTENTION", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this Migration. Allowed values for this property are: "READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_details: str :param freeform_tags: The value to assign to the freeform_tags property of this Migration. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this Migration. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this Migration. :type system_tags: dict(str, dict(str, object)) �strZdatetimezdict(str, str)zdict(str, dict(str, object)))�id�description�database_combination�display_name�compartment_id�type� wait_after�source_database_connection_id�target_database_connection_id�executing_job_id�time_created�time_updated�time_last_migration�lifecycle_state�lifecycle_details� freeform_tags�defined_tags�system_tagsr6 r7 �databaseCombinationZdisplayNameZ compartmentIdr; Z waitAfterZsourceDatabaseConnectionIdZtargetDatabaseConnectionIdZexecutingJobIdZtimeCreatedZtimeUpdatedZtimeLastMigrationZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_description�_database_combination� _display_name�_compartment_id�_type�_wait_after�_source_database_connection_id�_target_database_connection_id�_executing_job_id� _time_created� _time_updated�_time_last_migration�_lifecycle_state�_lifecycle_details�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� r] �K/usr/lib/python3.9/site-packages/oci/database_migration/models/migration.py�__init__� sp ^��zMigration.__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. rH r ZOracleMigrationr ZMySqlMigrationr Nr] )Zobject_dictionaryr; r] r] r^ �get_subtypeh s zMigration.get_subtypec C s | j S )z� **[Required]** Gets the id of this Migration. The OCID of the resource being referenced. :return: The id of this Migration. :rtype: str �rI �r[ r] r] r^ r6 x s zMigration.idc C s || _ dS )z� Sets the id of this Migration. The OCID of the resource being referenced. :param id: The id of this Migration. :type: str Nra )r[ r6 r] r] r^ r6 � s c C s | j S )a Gets the description of this Migration. A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The description of this Migration. :rtype: str �rJ rb r] r] r^ r7 � s zMigration.descriptionc C s || _ dS )a Sets the description of this Migration. A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param description: The description of this Migration. :type: str Nrc )r[ r7 r] r] r^ r7 � s c C s | j S )a **[Required]** Gets the database_combination of this Migration. 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", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_combination of this Migration. :rtype: str )rK rb r] r] r^ r8 � s zMigration.database_combinationc C s ddg}t ||�sd}|| _dS )ad Sets the database_combination of this Migration. 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 Migration. :type: str r r �UNKNOWN_ENUM_VALUEN)r rK )r[ r8 �allowed_valuesr] r] r^ r8 � s c C s | j S )a **[Required]** Gets the display_name of this Migration. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this Migration. :rtype: str �rL rb r] r] r^ r9 � s zMigration.display_namec C s || _ dS )a Sets the display_name of this Migration. 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 Migration. :type: str Nrf )r[ r9 r] r] r^ r9 � s c C s | j S )z� **[Required]** Gets the compartment_id of this Migration. The OCID of the resource being referenced. :return: The compartment_id of this Migration. :rtype: str �rM rb r] r] r^ r: � s zMigration.compartment_idc C s || _ dS )z� Sets the compartment_id of this Migration. The OCID of the resource being referenced. :param compartment_id: The compartment_id of this Migration. :type: str Nrg )r[ r: r] r] r^ r: � s c C s | j S )a� **[Required]** Gets the type of this Migration. The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication. Allowed values for this property are: "ONLINE", "OFFLINE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this Migration. :rtype: str )rN rb r] r] r^ r; � s zMigration.typec C s ddg}t ||�sd}|| _dS )a$ Sets the type of this Migration. The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication. :param type: The type of this Migration. :type: str r r rd N)r rN )r[ r; re r] r] r^ r; s c C s | j S )ae Gets the wait_after of this Migration. You can optionally pause a migration after a job phase. This property allows you to optionally specify the phase after which you can pause the migration. Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_PREMIGRATION_ADVISOR", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE_DATAPUMP_SRC", "ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC", "ODMS_FETCH_METADATA_SRC", "ODMS_FETCH_METADATA_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The wait_after of this Migration. :rtype: str )rO rb r] r] r^ r<