ruạṛ
a ���fg � @ 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 ZdZdZdZdZdZdZdZdZdZd ZdZdZdd� Zedd� �Zedd� �Z e j!dd� �Z ed d!� �Z"e"j!d"d!� �Z"ed#d$� �Z#e#j!d%d$� �Z#ed&d'� �Z$e$j!d(d'� �Z$ed)d*� �Z%e%j!d+d*� �Z%ed,d-� �Z&e&j!d.d-� �Z&ed/d0� �Z'e'j!d1d0� �Z'ed2d3� �Z(e(j!d4d3� �Z(ed5d6� �Z)e)j!d7d6� �Z)ed8d9� �Z*e*j!d:d9� �Z*ed;d<� �Z+e+j!d=d<� �Z+ed>d?� �Z,e,j!d@d?� �Z,edAdB� �Z-e-j!dCdB� �Z-edDdE� �Z.e.j!dFdE� �Z.edGdH� �Z/e/j!dIdH� �Z/edJdK� �Z0e0j!dLdK� �Z0dMdN� Z1dOdP� Z2dQdR� Z3dSS )T�MigrationSummaryz Migration resource �MYSQL�ORACLE�ONLINE�OFFLINE�CREATING�UPDATING�ACTIVE�IN_PROGRESS�ACCEPTED� SUCCEEDED�CANCELED�WAITING�NEEDS_ATTENTION�INACTIVE�DELETING�DELETED�FAILED�READY�ABORTING� VALIDATING� VALIDATED� MIGRATING�DONEc K s� ddddddddddddddddd�| _ dddd d ddd ddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _dS )a� Initializes a new MigrationSummary 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.OracleMigrationSummary` * :class:`~oci.database_migration.models.MySqlMigrationSummary` 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 MigrationSummary. :type id: str :param database_combination: The value to assign to the database_combination property of this MigrationSummary. 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 MigrationSummary. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this MigrationSummary. :type compartment_id: str :param type: The value to assign to the type property of this MigrationSummary. 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 source_database_connection_id: The value to assign to the source_database_connection_id property of this MigrationSummary. :type source_database_connection_id: str :param target_database_connection_id: The value to assign to the target_database_connection_id property of this MigrationSummary. :type target_database_connection_id: str :param executing_job_id: The value to assign to the executing_job_id property of this MigrationSummary. :type executing_job_id: str :param time_created: The value to assign to the time_created property of this MigrationSummary. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this MigrationSummary. :type time_updated: datetime :param time_last_migration: The value to assign to the time_last_migration property of this MigrationSummary. :type time_last_migration: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this MigrationSummary. 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 MigrationSummary. 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 MigrationSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this MigrationSummary. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this MigrationSummary. :type system_tags: dict(str, dict(str, object)) �strZdatetimezdict(str, str)zdict(str, dict(str, object)))�id�database_combination�display_name�compartment_id�type�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_tagsr �databaseCombinationZdisplayNameZ compartmentIdr# ZsourceDatabaseConnectionIdZtargetDatabaseConnectionIdZexecutingJobIdZtimeCreatedZtimeUpdatedZtimeLastMigrationZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_database_combination� _display_name�_compartment_id�_type�_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� rB �S/usr/lib/python3.9/site-packages/oci/database_migration/models/migration_summary.py�__init__r sd T��zMigrationSummary.__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 ZOracleMigrationSummaryr ZMySqlMigrationSummaryr NrB )Zobject_dictionaryr# rB rB rC �get_subtype� s zMigrationSummary.get_subtypec C s | j S )z� **[Required]** Gets the id of this MigrationSummary. The OCID of the resource being referenced. :return: The id of this MigrationSummary. :rtype: str �r0 �r@ rB rB rC r s zMigrationSummary.idc C s || _ dS )z� Sets the id of this MigrationSummary. The OCID of the resource being referenced. :param id: The id of this MigrationSummary. :type: str NrF )r@ r rB rB rC r s c C s | j S )a$ **[Required]** Gets the database_combination of this MigrationSummary. 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 MigrationSummary. :rtype: str )r1 rG rB rB rC r $ s z%MigrationSummary.database_combinationc C s ddg}t ||�sd}|| _dS )ar Sets the database_combination of this MigrationSummary. 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 MigrationSummary. :type: str r r �UNKNOWN_ENUM_VALUEN)r r1 )r@ r �allowed_valuesrB rB rC r 4 s c C s | j S )a" **[Required]** Gets the display_name of this MigrationSummary. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this MigrationSummary. :rtype: str �r2 rG rB rB rC r! D s zMigrationSummary.display_namec C s || _ dS )a Sets the display_name of this MigrationSummary. 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 MigrationSummary. :type: str NrJ )r@ r! rB rB rC r! Q s c C s | j S )z� **[Required]** Gets the compartment_id of this MigrationSummary. The OCID of the resource being referenced. :return: The compartment_id of this MigrationSummary. :rtype: str �r3 rG rB rB rC r"