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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dd„ Zdd„ Zdd„ ZdS )ÚRevocationStatuszY
    The current revocation status of the certificate or certificate authority (CA).
    ÚUNSPECIFIEDÚKEY_COMPROMISEÚCA_COMPROMISEÚAFFILIATION_CHANGEDÚ
SUPERSEDEDÚCESSATION_OF_OPERATIONÚPRIVILEGE_WITHDRAWNÚAA_COMPROMISEc                 K   s(   dddœ| _ dddœ| _d| _d| _dS )aM  
        Initializes a new RevocationStatus object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param time_revoked:
            The value to assign to the time_revoked property of this RevocationStatus.
        :type time_revoked: datetime

        :param revocation_reason:
            The value to assign to the revocation_reason property of this RevocationStatus.
            Allowed values for this property are: "UNSPECIFIED", "KEY_COMPROMISE", "CA_COMPROMISE", "AFFILIATION_CHANGED", "SUPERSEDED", "CESSATION_OF_OPERATION", "PRIVILEGE_WITHDRAWN", "AA_COMPROMISE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type revocation_reason: str

        ÚdatetimeÚstr)Útime_revokedÚrevocation_reasonZtimeRevokedZrevocationReasonN)Zswagger_typesZattribute_mapÚ_time_revokedÚ_revocation_reason)ÚselfÚkwargs© r   úMusr/lib/python3.10/site-packages/oci/certificates/models/revocation_status.pyÚ__init__2   s   þþ
zRevocationStatus.__init__c                 C   ó   | j S )zà
        **[Required]** Gets the time_revoked of this RevocationStatus.
        The time when the certificate or CA was revoked.


        :return: The time_revoked of this RevocationStatus.
        :rtype: datetime
        ©r   ©r   r   r   r   r   O   s   
zRevocationStatus.time_revokedc                 C   s
   || _ dS )zÜ
        Sets the time_revoked of this RevocationStatus.
        The time when the certificate or CA was revoked.


        :param time_revoked: The time_revoked of this RevocationStatus.
        :type: datetime
        Nr   )r   r   r   r   r   r   [   s   

c                 C   r   )a#  
        **[Required]** Gets the revocation_reason of this RevocationStatus.
        The reason that the certificate or CA was revoked.

        Allowed values for this property are: "UNSPECIFIED", "KEY_COMPROMISE", "CA_COMPROMISE", "AFFILIATION_CHANGED", "SUPERSEDED", "CESSATION_OF_OPERATION", "PRIVILEGE_WITHDRAWN", "AA_COMPROMISE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The revocation_reason of this RevocationStatus.
        :rtype: str
        )r   r   r   r   r   r   g   s   z"RevocationStatus.revocation_reasonc                 C   s    g d¢}t ||ƒsd}|| _dS )zè
        Sets the revocation_reason of this RevocationStatus.
        The reason that the certificate or CA was revoked.


        :param revocation_reason: The revocation_reason of this RevocationStatus.
        :type: str
        )r   r   r	   r
   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   v   s   


c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__…   s   zRevocationStatus.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__ˆ   s   zRevocationStatus.__eq__c                 C   s
   | |k S r   r   r    r   r   r   Ú__ne__Ž   s   
zRevocationStatus.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZREVOCATION_REASON_UNSPECIFIEDZ REVOCATION_REASON_KEY_COMPROMISEZREVOCATION_REASON_CA_COMPROMISEZ%REVOCATION_REASON_AFFILIATION_CHANGEDZREVOCATION_REASON_SUPERSEDEDZ(REVOCATION_REASON_CESSATION_OF_OPERATIONZ%REVOCATION_REASON_PRIVILEGE_WITHDRAWNZREVOCATION_REASON_AA_COMPROMISEr   Úpropertyr   Úsetterr   r   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   