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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dd„ Zdd„ Zdd„ ZdS )ÚOsnz*
    An Ordering Service Node details
    ÚACTIVEÚINACTIVEÚFAILEDc                 K   s<   dddddœ| _ dddddœ| _d| _d| _d| _d| _dS )	aÌ  
        Initializes a new Osn object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param osn_key:
            The value to assign to the osn_key property of this Osn.
        :type osn_key: str

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Osn.
            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)Úosn_keyÚadÚocpu_allocation_paramÚlifecycle_stateZosnKeyr   ZocpuAllocationParamZlifecycleStateN)Zswagger_typesZattribute_mapÚ_osn_keyÚ_adÚ_ocpu_allocation_paramÚ_lifecycle_state)ÚselfÚkwargs© r   ú=usr/lib/python3.10/site-packages/oci/blockchain/models/osn.pyÚ__init__   s   üü
zOsn.__init__c                 C   ó   | j S )z•
        **[Required]** Gets the osn_key of this Osn.
        OSN identifier


        :return: The osn_key of this Osn.
        :rtype: str
        ©r   ©r   r   r   r   r   I   ó   
zOsn.osn_keyc                 C   ó
   || _ dS )zŒ
        Sets the osn_key of this Osn.
        OSN identifier


        :param osn_key: The osn_key of this Osn.
        :type: str
        Nr   )r   r   r   r   r   r   U   ó   

c                 C   r   )z—
        **[Required]** Gets the ad of this Osn.
        Availability Domain of OSN


        :return: The ad of this Osn.
        :rtype: str
        ©r   r   r   r   r   r   a   r   zOsn.adc                 C   r   )z‰
        Sets the ad of this Osn.
        Availability Domain of OSN


        :param ad: The ad of this Osn.
        :type: str
        Nr   )r   r   r   r   r   r   m   r   c                 C   r   )z¶
        Gets the ocpu_allocation_param of this Osn.

        :return: The ocpu_allocation_param of this Osn.
        :rtype: oci.blockchain.models.OcpuAllocationNumberParam
        ©r   r   r   r   r   r   y   s   zOsn.ocpu_allocation_paramc                 C   r   )zÊ
        Sets the ocpu_allocation_param of this Osn.

        :param ocpu_allocation_param: The ocpu_allocation_param of this Osn.
        :type: oci.blockchain.models.OcpuAllocationNumberParam
        Nr   )r   r   r   r   r   r   ƒ   s   
c                 C   r   )ah  
        Gets the lifecycle_state of this Osn.
        The current state of the OSN.

        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 Osn.
        :rtype: str
        )r   r   r   r   r   r      s   zOsn.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z³
        Sets the lifecycle_state of this Osn.
        The current state of the OSN.


        :param lifecycle_state: The lifecycle_state of this Osn.
        :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Osn.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__®   s   z
Osn.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__´   s   
z
Osn.__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      s2    +




	
	

r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   