o
    ɶdo                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   sB  e 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ZdZdZdZdZdZdZdZdZdZdZdd Zedd Zejdd Zedd Zejdd Zed d! Zejd"d! Zed#d$ Z e jd%d$ Z ed&d' Z!e!jd(d' Z!ed)d* Z"e"jd+d* Z"ed,d- Z#e#jd.d- Z#ed/d0 Z$e$jd1d0 Z$ed2d3 Z%e%jd4d3 Z%ed5d6 Z&e&jd7d6 Z&ed8d9 Z'e'jd:d9 Z'ed;d< Z(e(jd=d< Z(ed>d? Z)e)jd@d? Z)edAdB Z*e*jdCdB Z*edDdE Z+e+jdFdE Z+edGdH Z,e,jdIdH Z,edJdK Z-e-jdLdK Z-dMdN Z.dOdP Z/dQdR Z0dSS )T	Migrationa  
    The properties that define a migration. A migration represents the end-to-end workflow of moving an application from a source
    environment to Oracle Cloud Infrastructure. Each migration moves a single application to Oracle Cloud Infrastructure.
    For more information, see `Manage Migrations`__.

    To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator.
    If you're an administrator who needs to write policies to give users access, see
    `Getting Started with Policies`__.

    __ https://docs.cloud.oracle.com/iaas/application-migration/manage_migrations.htm
    __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm
    JCSSOACSOICOACICSPCSDATABASE_SYSTEMNOT_SETCREATINGACTIVEINACTIVEUPDATING	SUCCEEDEDDELETINGDELETEDDISCOVERING_APPLICATIONDISCOVERY_FAILEDMISSING_CONFIG_VALUESREADY	MIGRATINGMIGRATION_FAILEDMIGRATION_SUCCEEDEDc                 K   sB  i ddddddddddddd	dd
ddddddddddddddddddd| _ i ddddddddddddd	dd
ddddddd dd!dd"dd#dd$dd%dd&| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _	d'| _
d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'| _d'S )(a  
        Initializes a new Migration object with values from keyword arguments.
        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 compartment_id:
            The value to assign to the compartment_id property of this Migration.
        :type compartment_id: str

        :param display_name:
            The value to assign to the display_name property of this Migration.
        :type display_name: str

        :param description:
            The value to assign to the description property of this Migration.
        :type description: str

        :param time_created:
            The value to assign to the time_created property of this Migration.
        :type time_created: datetime

        :param source_id:
            The value to assign to the source_id property of this Migration.
        :type source_id: str

        :param application_name:
            The value to assign to the application_name property of this Migration.
        :type application_name: str

        :param application_type:
            The value to assign to the application_type property of this Migration.
            Allowed values for this property are: "JCS", "SOACS", "OIC", "OAC", "ICS", "PCS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type application_type: str

        :param pre_created_target_database_type:
            The value to assign to the pre_created_target_database_type property of this Migration.
            Allowed values for this property are: "DATABASE_SYSTEM", "NOT_SET", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type pre_created_target_database_type: str

        :param is_selective_migration:
            The value to assign to the is_selective_migration property of this Migration.
        :type is_selective_migration: bool

        :param service_config:
            The value to assign to the service_config property of this Migration.
        :type service_config: dict(str, ConfigurationField)

        :param application_config:
            The value to assign to the application_config property of this Migration.
        :type application_config: dict(str, ConfigurationField)

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Migration.
            Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "SUCCEEDED", "DELETING", "DELETED", '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.
        :type lifecycle_details: str

        :param migration_state:
            The value to assign to the migration_state property of this Migration.
            Allowed values for this property are: "DISCOVERING_APPLICATION", "DISCOVERY_FAILED", "MISSING_CONFIG_VALUES", "READY", "MIGRATING", "MIGRATION_FAILED", "MIGRATION_SUCCEEDED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type migration_state: 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))

        idstrcompartment_iddisplay_namedescriptiontime_createddatetime	source_idapplication_nameapplication_type pre_created_target_database_typeis_selective_migrationboolservice_configzdict(str, ConfigurationField)application_configlifecycle_statelifecycle_detailsmigration_statefreeform_tagszdict(str, str)defined_tagszdict(str, dict(str, object))ZcompartmentIdZdisplayNameZtimeCreatedZsourceIdZapplicationNameZapplicationTypeZpreCreatedTargetDatabaseTypeZisSelectiveMigrationZserviceConfigZapplicationConfigZlifecycleStateZlifecycleDetailsZmigrationStateZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_display_name_description_time_created
_source_id_application_name_application_type!_pre_created_target_database_type_is_selective_migration_service_config_application_config_lifecycle_state_lifecycle_details_migration_state_freeform_tags_defined_tags)selfkwargs rD   Nusr/lib/python3.10/site-packages/oci/application_migration/models/migration.py__init__s   s   R	
	

zMigration.__init__c                 C      | j S )z
        Gets the id of this Migration.
        The `OCID`__ of the migration.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The id of this Migration.
        :rtype: str
        r1   rB   rD   rD   rE   r         zMigration.idc                 C   
   || _ dS )z
        Sets the id of this Migration.
        The `OCID`__ of the migration.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param id: The id of this Migration.
        :type: str
        NrH   )rB   r   rD   rD   rE   r        
c                 C   rG   )a&  
        Gets the compartment_id of this Migration.
        The `OCID`__ of the compartment that contains the migration.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this Migration.
        :rtype: str
        r2   rI   rD   rD   rE   r     rJ   zMigration.compartment_idc                 C   rK   )a3  
        Sets the compartment_id of this Migration.
        The `OCID`__ of the compartment that contains the migration.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this Migration.
        :type: str
        NrM   )rB   r   rD   rD   rE   r   )  rL   c                 C   rG   )z
        Gets the display_name of this Migration.
        User-friendly name of the migration.


        :return: The display_name of this Migration.
        :rtype: str
        r3   rI   rD   rD   rE   r    7     
zMigration.display_namec                 C   rK   )z
        Sets the display_name of this Migration.
        User-friendly name of the migration.


        :param display_name: The display_name of this Migration.
        :type: str
        NrN   )rB   r    rD   rD   rE   r    C     

c                 C   rG   )z
        Gets the description of this Migration.
        Description of the migration.


        :return: The description of this Migration.
        :rtype: str
        r4   rI   rD   rD   rE   r!   O  rO   zMigration.descriptionc                 C   rK   )z
        Sets the description of this Migration.
        Description of the migration.


        :param description: The description of this Migration.
        :type: str
        NrQ   )rB   r!   rD   rD   rE   r!   [  rP   c                 C   rG   )z
        Gets the time_created of this Migration.
        The date and time at which the migration was created, in the format defined by RFC3339.


        :return: The time_created of this Migration.
        :rtype: datetime
        r5   rI   rD   rD   rE   r"   g  rO   zMigration.time_createdc                 C   rK   )z
        Sets the time_created of this Migration.
        The date and time at which the migration was created, in the format defined by RFC3339.


        :param time_created: The time_created of this Migration.
        :type: datetime
        NrR   )rB   r"   rD   rD   rE   r"   s  rP   c                 C   rG   )a#  
        Gets the source_id of this Migration.
        The `OCID`__ of the source with which this migration is associated.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The source_id of this Migration.
        :rtype: str
        r6   rI   rD   rD   rE   r$     rJ   zMigration.source_idc                 C   rK   )a+  
        Sets the source_id of this Migration.
        The `OCID`__ of the source with which this migration is associated.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param source_id: The source_id of this Migration.
        :type: str
        NrS   )rB   r$   rD   rD   rE   r$     rL   c                 C   rG   )a  
        Gets the application_name of this Migration.
        Name of the application which is being migrated. This is the name of the application in the source environment.


        :return: The application_name of this Migration.
        :rtype: str
        r7   rI   rD   rD   rE   r%     rO   zMigration.application_namec                 C   rK   )a  
        Sets the application_name of this Migration.
        Name of the application which is being migrated. This is the name of the application in the source environment.


        :param application_name: The application_name of this Migration.
        :type: str
        NrT   )rB   r%   rD   rD   rE   r%     rP   c                 C   rG   )a  
        Gets the application_type of this Migration.
        The type of application being migrated.

        Allowed values for this property are: "JCS", "SOACS", "OIC", "OAC", "ICS", "PCS", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The application_type of this Migration.
        :rtype: str
        )r8   rI   rD   rD   rE   r&        zMigration.application_typec                 C       g d}t ||sd}|| _dS )z
        Sets the application_type of this Migration.
        The type of application being migrated.


        :param application_type: The application_type of this Migration.
        :type: str
        )r   r   r	   r
   r   r   UNKNOWN_ENUM_VALUEN)r   r8   )rB   r&   allowed_valuesrD   rD   rE   r&        


c                 C   rG   )a  
        Gets the pre_created_target_database_type of this Migration.
        The pre-existing database type to be used in this migration. Currently, Application migration only supports Oracle Cloud
        Infrastructure databases and this option is currently available only for `JAVA_CLOUD_SERVICE` and `WEBLOGIC_CLOUD_SERVICE` target instance types.

        Allowed values for this property are: "DATABASE_SYSTEM", "NOT_SET", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The pre_created_target_database_type of this Migration.
        :rtype: str
        )r9   rI   rD   rD   rE   r'     s   z*Migration.pre_created_target_database_typec                 C   s    ddg}t ||sd}|| _dS )a  
        Sets the pre_created_target_database_type of this Migration.
        The pre-existing database type to be used in this migration. Currently, Application migration only supports Oracle Cloud
        Infrastructure databases and this option is currently available only for `JAVA_CLOUD_SERVICE` and `WEBLOGIC_CLOUD_SERVICE` target instance types.


        :param pre_created_target_database_type: The pre_created_target_database_type of this Migration.
        :type: str
        r   r   rW   N)r   r9   )rB   r'   rX   rD   rD   rE   r'     s   

c                 C   rG   )a<  
        Gets the is_selective_migration of this Migration.
        If set to `true`, Application Migration migrates only the application resources that you specify. If set to `false`, Application Migration migrates the entire application. When you migrate the entire application, all the application resources are migrated to the target environment. You can selectively migrate resources only for the Oracle Integration Cloud and Oracle Integration Cloud Service applications.


        :return: The is_selective_migration of this Migration.
        :rtype: bool
        r:   rI   rD   rD   rE   r(     rO   z Migration.is_selective_migrationc                 C   rK   )aQ  
        Sets the is_selective_migration of this Migration.
        If set to `true`, Application Migration migrates only the application resources that you specify. If set to `false`, Application Migration migrates the entire application. When you migrate the entire application, all the application resources are migrated to the target environment. You can selectively migrate resources only for the Oracle Integration Cloud and Oracle Integration Cloud Service applications.


        :param is_selective_migration: The is_selective_migration of this Migration.
        :type: bool
        NrZ   )rB   r(   rD   rD   rE   r(     rP   c                 C   rG   )a  
        Gets the service_config of this Migration.
        Configuration required to migrate the application. In addition to the key and value, additional fields are provided
        to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the
        CreateMigration operation.


        :return: The service_config of this Migration.
        :rtype: dict(str, ConfigurationField)
        r;   rI   rD   rD   rE   r*   	  rJ   zMigration.service_configc                 C   rK   )a  
        Sets the service_config of this Migration.
        Configuration required to migrate the application. In addition to the key and value, additional fields are provided
        to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the
        CreateMigration operation.


        :param service_config: The service_config of this Migration.
        :type: dict(str, ConfigurationField)
        Nr[   )rB   r*   rD   rD   rE   r*     rL   c                 C   rG   )a  
        Gets the application_config of this Migration.
        Configuration required to migrate the application. In addition to the key and value, additional fields are provided
        to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the
        CreateMigration operation.


        :return: The application_config of this Migration.
        :rtype: dict(str, ConfigurationField)
        r<   rI   rD   rD   rE   r+   %  rJ   zMigration.application_configc                 C   rK   )a  
        Sets the application_config of this Migration.
        Configuration required to migrate the application. In addition to the key and value, additional fields are provided
        to describe type type and purpose of each field. Only the value for each key is required when passing configuration to the
        CreateMigration operation.


        :param application_config: The application_config of this Migration.
        :type: dict(str, ConfigurationField)
        Nr\   )rB   r+   rD   rD   rE   r+   3  rL   c                 C   rG   )a  
        Gets the lifecycle_state of this Migration.
        The current state of the migration.

        Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "SUCCEEDED", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Migration.
        :rtype: str
        )r=   rI   rD   rD   rE   r,   A  rU   zMigration.lifecycle_statec                 C   rV   )z
        Sets the lifecycle_state of this Migration.
        The current state of the migration.


        :param lifecycle_state: The lifecycle_state of this Migration.
        :type: str
        )r   r   r   r   r   r   r   rW   N)r   r=   )rB   r,   rX   rD   rD   rE   r,   P  rY   c                 C   rG   )z
        Gets the lifecycle_details of this Migration.
        Details about the current lifecycle state of the migration.


        :return: The lifecycle_details of this Migration.
        :rtype: str
        r>   rI   rD   rD   rE   r-   _  rO   zMigration.lifecycle_detailsc                 C   rK   )z
        Sets the lifecycle_details of this Migration.
        Details about the current lifecycle state of the migration.


        :param lifecycle_details: The lifecycle_details of this Migration.
        :type: str
        Nr]   )rB   r-   rD   rD   rE   r-   k  rP   c                 C   rG   )a  
        Gets the migration_state of this Migration.
        The current state of the overall migration process.

        Allowed values for this property are: "DISCOVERING_APPLICATION", "DISCOVERY_FAILED", "MISSING_CONFIG_VALUES", "READY", "MIGRATING", "MIGRATION_FAILED", "MIGRATION_SUCCEEDED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The migration_state of this Migration.
        :rtype: str
        )r?   rI   rD   rD   rE   r.   w  rU   zMigration.migration_statec                 C   rV   )z
        Sets the migration_state of this Migration.
        The current state of the overall migration process.


        :param migration_state: The migration_state of this Migration.
        :type: str
        )r   r   r   r   r   r   r   rW   N)r   r?   )rB   r.   rX   rD   rD   rE   r.     rY   c                 C   rG   )a  
        Gets the freeform_tags of this Migration.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Migration.
        :rtype: dict(str, str)
        r@   rI   rD   rD   rE   r/     rU   zMigration.freeform_tagsc                 C   rK   )a  
        Sets the freeform_tags of this Migration.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Migration.
        :type: dict(str, str)
        Nr^   )rB   r/   rD   rD   rE   r/        
c                 C   rG   )a  
        Gets the defined_tags of this Migration.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__. Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Migration.
        :rtype: dict(str, dict(str, object))
        rA   rI   rD   rD   rE   r0     rU   zMigration.defined_tagsc                 C   rK   )a  
        Sets the defined_tags of this Migration.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__. Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Migration.
        :type: dict(str, dict(str, object))
        Nr`   )rB   r0   rD   rD   rE   r0     r_   c                 C   s   t | S N)r   rI   rD   rD   rE   __repr__  s   zMigration.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__rB   otherrD   rD   rE   __eq__  s   zMigration.__eq__c                 C   s
   | |k S ra   rD   rd   rD   rD   rE   __ne__  s   
zMigration.__ne__N)1__name__
__module____qualname____doc__ZAPPLICATION_TYPE_JCSZAPPLICATION_TYPE_SOACSZAPPLICATION_TYPE_OICZAPPLICATION_TYPE_OACZAPPLICATION_TYPE_ICSZAPPLICATION_TYPE_PCSZ0PRE_CREATED_TARGET_DATABASE_TYPE_DATABASE_SYSTEMZ(PRE_CREATED_TARGET_DATABASE_TYPE_NOT_SETZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_SUCCEEDEDZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZ'MIGRATION_STATE_DISCOVERING_APPLICATIONZ MIGRATION_STATE_DISCOVERY_FAILEDZ%MIGRATION_STATE_MISSING_CONFIG_VALUESZMIGRATION_STATE_READYZMIGRATION_STATE_MIGRATINGZ MIGRATION_STATE_MIGRATION_FAILEDZ#MIGRATION_STATE_MIGRATION_SUCCEEDEDrF   propertyr   setterr   r    r!   r"   r$   r%   r&   r'   r(   r*   r+   r,   r-   r.   r/   r0   rb   rf   rg   rD   rD   rD   rE   r      s     

































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   rD   rD   rD   rE   <module>   s   