o
    ëÉ¶dY  ã                   @   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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dd„ Zdd„ Zd d!„ Zd"S )#ÚPeerz
    A Peer details
    ÚACTIVEÚINACTIVEÚFAILEDc                 K   sZ   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 Peer object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param peer_key:
            The value to assign to the peer_key property of this Peer.
        :type peer_key: str

        :param role:
            The value to assign to the role property of this Peer.
        :type role: str

        :param alias:
            The value to assign to the alias property of this Peer.
        :type alias: str

        :param ocpu_allocation_param:
            The value to assign to the ocpu_allocation_param property of this Peer.
        :type ocpu_allocation_param: oci.blockchain.models.OcpuAllocationNumberParam

        :param host:
            The value to assign to the host property of this Peer.
        :type host: str

        :param ad:
            The value to assign to the ad property of this Peer.
        :type ad: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Peer.
            Allowed values for this property are: "ACTIVE", "INACTIVE", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        ÚstrZOcpuAllocationNumberParam)Úpeer_keyÚroleÚaliasÚocpu_allocation_paramÚhostÚadÚlifecycle_stateZpeerKeyr   r   ZocpuAllocationParamr   r   ZlifecycleStateN)	Zswagger_typesZattribute_mapÚ	_peer_keyÚ_roleÚ_aliasÚ_ocpu_allocation_paramÚ_hostÚ_adÚ_lifecycle_state)ÚselfÚkwargs© r   ú>usr/lib/python3.10/site-packages/oci/blockchain/models/peer.pyÚ__init__   s.   %ùù

zPeer.__init__c                 C   ó   | j S )zš
        **[Required]** Gets the peer_key of this Peer.
        peer identifier


        :return: The peer_key of this Peer.
        :rtype: str
        ©r   ©r   r   r   r   r   ^   ó   
zPeer.peer_keyc                 C   ó
   || _ dS )z’
        Sets the peer_key of this Peer.
        peer identifier


        :param peer_key: The peer_key of this Peer.
        :type: str
        Nr   )r   r   r   r   r   r   j   ó   

c                 C   r   )zŒ
        **[Required]** Gets the role of this Peer.
        Peer role


        :return: The role of this Peer.
        :rtype: str
        ©r   r    r   r   r   r   v   r!   z	Peer.rolec                 C   r"   )z€
        Sets the role of this Peer.
        Peer role


        :param role: The role of this Peer.
        :type: str
        Nr$   )r   r   r   r   r   r   ‚   r#   c                 C   r   )z€
        Gets the alias of this Peer.
        peer alias


        :return: The alias of this Peer.
        :rtype: str
        ©r   r    r   r   r   r   Ž   r!   z
Peer.aliasc                 C   r"   )z„
        Sets the alias of this Peer.
        peer alias


        :param alias: The alias of this Peer.
        :type: str
        Nr%   )r   r   r   r   r   r   š   r#   c                 C   r   )z¸
        Gets the ocpu_allocation_param of this Peer.

        :return: The ocpu_allocation_param of this Peer.
        :rtype: oci.blockchain.models.OcpuAllocationNumberParam
        ©r   r    r   r   r   r   ¦   s   zPeer.ocpu_allocation_paramc                 C   r"   )zÌ
        Sets the ocpu_allocation_param of this Peer.

        :param ocpu_allocation_param: The ocpu_allocation_param of this Peer.
        :type: oci.blockchain.models.OcpuAllocationNumberParam
        Nr&   )r   r   r   r   r   r   °   s   
c                 C   r   )z 
        **[Required]** Gets the host of this Peer.
        Host on which the Peer exists


        :return: The host of this Peer.
        :rtype: str
        ©r   r    r   r   r   r   º   r!   z	Peer.hostc                 C   r"   )z”
        Sets the host of this Peer.
        Host on which the Peer exists


        :param host: The host of this Peer.
        :type: str
        Nr'   )r   r   r   r   r   r   Æ   r#   c                 C   r   )zš
        **[Required]** Gets the ad of this Peer.
        Availability Domain of peer


        :return: The ad of this Peer.
        :rtype: str
        ©r   r    r   r   r   r   Ò   r!   zPeer.adc                 C   r"   )zŒ
        Sets the ad of this Peer.
        Availability Domain of peer


        :param ad: The ad of this Peer.
        :type: str
        Nr(   )r   r   r   r   r   r   Þ   r#   c                 C   r   )ak  
        Gets the lifecycle_state of this Peer.
        The current state of the peer.

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


        :return: The lifecycle_state of this Peer.
        :rtype: str
        )r   r    r   r   r   r   ê   s   zPeer.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z¶
        Sets the lifecycle_state of this Peer.
        The current state of the peer.


        :param lifecycle_state: The lifecycle_state of this Peer.
        :type: str
        )r   r   r	   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   ù   s   


c                 C   s   t | ƒS ©N)r   r    r   r   r   Ú__repr__  s   zPeer.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zPeer.__eq__c                 C   s
   | |k S r)   r   r,   r   r   r   Ú__ne__  s   
zPeer.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_FAILEDr   Úpropertyr   Úsetterr   r   r   r   r   r   r*   r.   r/   r   r   r   r   r      sJ    @






	
	





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   