o
    ëÉ¶dñ  ã                   @   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                   @   sº   e 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dd„ Zdd„ Zdd„ ZdS )ÚAttachmentDetailsz6
    Description of an attachment for an instance
    ÚPARENTÚCHILDc                 K   sF   ddddddœ| _ ddddddœ| _d	| _d	| _d	| _d	| _d	| _d	S )
a”  
        Initializes a new AttachmentDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param target_role:
            The value to assign to the target_role property of this AttachmentDetails.
            Allowed values for this property are: "PARENT", "CHILD", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type target_role: str

        :param is_implicit:
            The value to assign to the is_implicit property of this AttachmentDetails.
        :type is_implicit: bool

        :param target_id:
            The value to assign to the target_id property of this AttachmentDetails.
        :type target_id: str

        :param target_instance_url:
            The value to assign to the target_instance_url property of this AttachmentDetails.
        :type target_instance_url: str

        :param target_service_type:
            The value to assign to the target_service_type property of this AttachmentDetails.
        :type target_service_type: str

        ÚstrÚbool)Útarget_roleÚis_implicitÚ	target_idÚtarget_instance_urlÚtarget_service_typeZ
targetRoleZ
isImplicitZtargetIdZtargetInstanceUrlZtargetServiceTypeN)Zswagger_typesZattribute_mapÚ_target_roleÚ_is_implicitÚ
_target_idÚ_target_instance_urlÚ_target_service_type)ÚselfÚkwargs© r   úEusr/lib/python3.10/site-packages/oci/opa/models/attachment_details.pyÚ__init__   s"   û	û
zAttachmentDetails.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the target_role of this AttachmentDetails.
        The role of the target attachment.
           * `PARENT` - The target instance is the parent of this attachment.
           * `CHILD` - The target instance is the child of this attachment.

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


        :return: The target_role of this AttachmentDetails.
        :rtype: str
        )r   ©r   r   r   r   r   L   s   zAttachmentDetails.target_rolec                 C   s    ddg}t ||ƒsd}|| _dS )ab  
        Sets the target_role of this AttachmentDetails.
        The role of the target attachment.
           * `PARENT` - The target instance is the parent of this attachment.
           * `CHILD` - The target instance is the child of this attachment.


        :param target_role: The target_role of this AttachmentDetails.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   ]   s   

c                 C   r   )a`  
        **[Required]** Gets the is_implicit of this AttachmentDetails.
        * If role == `PARENT`, the attached instance was created by this service instance
        * If role == `CHILD`, this instance was created from attached instance on behalf of a user


        :return: The is_implicit of this AttachmentDetails.
        :rtype: bool
        ©r   r   r   r   r   r   n   s   zAttachmentDetails.is_implicitc                 C   ó
   || _ dS )a[  
        Sets the is_implicit of this AttachmentDetails.
        * If role == `PARENT`, the attached instance was created by this service instance
        * If role == `CHILD`, this instance was created from attached instance on behalf of a user


        :param is_implicit: The is_implicit of this AttachmentDetails.
        :type: bool
        Nr   )r   r   r   r   r   r   {   s   
c                 C   r   )a  
        **[Required]** Gets the target_id of this AttachmentDetails.
        The OCID of the target instance (which could be any other OCI PaaS/SaaS resource), to which this instance is attached.


        :return: The target_id of this AttachmentDetails.
        :rtype: str
        ©r   r   r   r   r   r   ˆ   ó   
zAttachmentDetails.target_idc                 C   r   )a  
        Sets the target_id of this AttachmentDetails.
        The OCID of the target instance (which could be any other OCI PaaS/SaaS resource), to which this instance is attached.


        :param target_id: The target_id of this AttachmentDetails.
        :type: str
        Nr   )r   r   r   r   r   r   ”   ó   

c                 C   r   )zî
        **[Required]** Gets the target_instance_url of this AttachmentDetails.
        The dataplane instance URL of the attached instance


        :return: The target_instance_url of this AttachmentDetails.
        :rtype: str
        ©r   r   r   r   r   r       r   z%AttachmentDetails.target_instance_urlc                 C   r   )zñ
        Sets the target_instance_url of this AttachmentDetails.
        The dataplane instance URL of the attached instance


        :param target_instance_url: The target_instance_url of this AttachmentDetails.
        :type: str
        Nr!   )r   r   r   r   r   r   ¬   r    c                 C   r   )zí
        **[Required]** Gets the target_service_type of this AttachmentDetails.
        The type of the target instance, such as "FUSION".


        :return: The target_service_type of this AttachmentDetails.
        :rtype: str
        ©r   r   r   r   r   r   ¸   r   z%AttachmentDetails.target_service_typec                 C   r   )zð
        Sets the target_service_type of this AttachmentDetails.
        The type of the target instance, such as "FUSION".


        :param target_service_type: The target_service_type of this AttachmentDetails.
        :type: str
        Nr"   )r   r   r   r   r   r   Ä   r    c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__Ð   s   zAttachmentDetails.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__Ó   s   zAttachmentDetails.__eq__c                 C   s
   | |k S r#   r   r&   r   r   r   Ú__ne__Ù   s   
zAttachmentDetails.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZTARGET_ROLE_PARENTZTARGET_ROLE_CHILDr   Úpropertyr   Úsetterr   r   r   r   r$   r(   r)   r   r   r   r   r      s8    2









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   