o
    ëÉ¶d5
  ã                   @   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                   @   sR   e Zd ZdZdZdZdd„ Zedd„ ƒZej	dd„ ƒZd	d
„ Z
dd„ Zdd„ ZdS )ÚPeerRolez
    Peer role
    ÚMEMBERÚADMINc                 K   s   ddi| _ ddi| _d| _dS )a}  
        Initializes a new PeerRole object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param role:
            The value to assign to the role property of this PeerRole.
            Allowed values for this property are: "MEMBER", "ADMIN"
        :type role: str

        ÚroleÚstrN)Zswagger_typesZattribute_mapÚ_role)ÚselfÚkwargs© r   úCusr/lib/python3.10/site-packages/oci/blockchain/models/peer_role.pyÚ__init__   s
   ÿÿ
zPeerRole.__init__c                 C   s   | j S )zÌ
        Gets the role of this PeerRole.
        Peer role names

        Allowed values for this property are: "MEMBER", "ADMIN"


        :return: The role of this PeerRole.
        :rtype: str
        )r   ©r   r   r   r   r	   /   s   zPeerRole.rolec                 C   s*   ddg}t ||ƒstd |¡ƒ‚|| _dS )zŽ
        Sets the role of this PeerRole.
        Peer role names


        :param role: The role of this PeerRole.
        :type: str
        r   r   z4Invalid value for `role`, must be None or one of {0}N)r   Ú
ValueErrorÚformatr   )r   r	   Zallowed_valuesr   r   r   r	   =   s   

þ
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__O   s   zPeerRole.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__R   s   zPeerRole.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__X   s   
zPeerRole.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZROLE_MEMBERZ
ROLE_ADMINr   Úpropertyr	   Úsetterr   r   r   r   r   r   r   r      s    

r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   