o
    ɶdp6                     @   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                   @   sL  e 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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d(d) Zd*d+ Zd,d- Zd.S )/Sourceav  
    The properties that define a source. Source refers to the source environment from which you migrate an application to Oracle Cloud
    Infrastructure. For more information, see `Manage Sources`__.

    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_sources.htm
    __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm
    CREATINGDELETINGUPDATINGACTIVEINACTIVEDELETEDc                 K   sx   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 )ay  
        Initializes a new Source 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 Source.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Source.
        :type compartment_id: str

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

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

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

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

        :param source_details:
            The value to assign to the source_details property of this Source.
        :type source_details: oci.application_migration.models.SourceDetails

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Source.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Source.
        :type defined_tags: dict(str, dict(str, object))

        strdatetimeZSourceDetailszdict(str, str)zdict(str, dict(str, object)))
idcompartment_iddisplay_namedescriptiontime_createdlifecycle_statelifecycle_detailssource_detailsfreeform_tagsdefined_tagsr   ZcompartmentIdZdisplayNamer   ZtimeCreatedZlifecycleStateZlifecycleDetailsZsourceDetailsZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_display_name_description_time_created_lifecycle_state_lifecycle_details_source_details_freeform_tags_defined_tags)selfkwargs r%   Kusr/lib/python3.10/site-packages/oci/application_migration/models/source.py__init__2   s@   1
zSource.__init__c                 C      | j S )z
        Gets the id of this Source.
        The `OCID`__ of the source.

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


        :return: The id of this Source.
        :rtype: str
        r   r#   r%   r%   r&   r         z	Source.idc                 C   
   || _ dS )z
        Sets the id of this Source.
        The `OCID`__ of the source.

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


        :param id: The id of this Source.
        :type: str
        Nr)   )r#   r   r%   r%   r&   r         
c                 C   r(   )a  
        Gets the compartment_id of this Source.
        The `OCID`__ of the compartment that contains the source.

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


        :return: The compartment_id of this Source.
        :rtype: str
        r   r*   r%   r%   r&   r      r+   zSource.compartment_idc                 C   r,   )a*  
        Sets the compartment_id of this Source.
        The `OCID`__ of the compartment that contains the source.

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


        :param compartment_id: The compartment_id of this Source.
        :type: str
        Nr.   )r#   r   r%   r%   r&   r      r-   c                 C   r(   )a  
        Gets the display_name of this Source.
        Name of the source. This helps you to identify the appropriate source environment when you have multiple sources defined.


        :return: The display_name of this Source.
        :rtype: str
        r   r*   r%   r%   r&   r         
zSource.display_namec                 C   r,   )a  
        Sets the display_name of this Source.
        Name of the source. This helps you to identify the appropriate source environment when you have multiple sources defined.


        :param display_name: The display_name of this Source.
        :type: str
        Nr/   )r#   r   r%   r%   r&   r         

c                 C   r(   )a  
        Gets the description of this Source.
        Description of the source. This helps you to identify the appropriate source environment when you have multiple sources defined.


        :return: The description of this Source.
        :rtype: str
        r   r*   r%   r%   r&   r      r0   zSource.descriptionc                 C   r,   )a  
        Sets the description of this Source.
        Description of the source. This helps you to identify the appropriate source environment when you have multiple sources defined.


        :param description: The description of this Source.
        :type: str
        Nr2   )r#   r   r%   r%   r&   r      r1   c                 C   r(   )z
        Gets the time_created of this Source.
        The date and time at which the source was created, in the format defined by RFC3339.


        :return: The time_created of this Source.
        :rtype: datetime
        r   r*   r%   r%   r&   r      r0   zSource.time_createdc                 C   r,   )z
        Sets the time_created of this Source.
        The date and time at which the source was created, in the format defined by RFC3339.


        :param time_created: The time_created of this Source.
        :type: datetime
        Nr3   )r#   r   r%   r%   r&   r      r1   c                 C   r(   )a  
        Gets the lifecycle_state of this Source.
        The current state of the source.

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


        :return: The lifecycle_state of this Source.
        :rtype: str
        )r   r*   r%   r%   r&   r        zSource.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Source.
        The current state of the source.


        :param lifecycle_state: The lifecycle_state of this Source.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r#   r   Zallowed_valuesr%   r%   r&   r     s   


c                 C   r(   )z
        Gets the lifecycle_details of this Source.
        Details about the current lifecycle state of the source.


        :return: The lifecycle_details of this Source.
        :rtype: str
        r   r*   r%   r%   r&   r   %  r0   zSource.lifecycle_detailsc                 C   r,   )z
        Sets the lifecycle_details of this Source.
        Details about the current lifecycle state of the source.


        :param lifecycle_details: The lifecycle_details of this Source.
        :type: str
        Nr5   )r#   r   r%   r%   r&   r   1  r1   c                 C   r(   )z
        Gets the source_details of this Source.

        :return: The source_details of this Source.
        :rtype: oci.application_migration.models.SourceDetails
        r    r*   r%   r%   r&   r   =  s   zSource.source_detailsc                 C   r,   )z
        Sets the source_details of this Source.

        :param source_details: The source_details of this Source.
        :type: oci.application_migration.models.SourceDetails
        Nr6   )r#   r   r%   r%   r&   r   G  s   
c                 C   r(   )a  
        Gets the freeform_tags of this Source.
        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 Source.
        :rtype: dict(str, str)
        r!   r*   r%   r%   r&   r   Q  r4   zSource.freeform_tagsc                 C   r,   )a  
        Sets the freeform_tags of this Source.
        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 Source.
        :type: dict(str, str)
        Nr7   )r#   r   r%   r%   r&   r   `     
c                 C   r(   )a  
        Gets the defined_tags of this Source.
        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 Source.
        :rtype: dict(str, dict(str, object))
        r"   r*   r%   r%   r&   r   o  r4   zSource.defined_tagsc                 C   r,   )a  
        Sets the defined_tags of this Source.
        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 Source.
        :type: dict(str, dict(str, object))
        Nr9   )r#   r   r%   r%   r&   r   ~  r8   c                 C   s   t | S N)r   r*   r%   r%   r&   __repr__  s   zSource.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r#   otherr%   r%   r&   __eq__  s   zSource.__eq__c                 C   s
   | |k S r:   r%   r=   r%   r%   r&   __ne__  s   
zSource.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETEDr'   propertyr   setterr   r   r   r   r   r   r   r   r   r;   r?   r@   r%   r%   r%   r&   r      sh    U














	
	



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r%   r%   r%   r&   <module>   s   