ruạṛ
a ���f) � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd d� Ze dd � �Zejdd � �Ze dd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�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( ddd�| _ ddd�| _d| _d| _dS )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 Zdatetime�str)�time_revoked�revocation_reasonZtimeRevokedZrevocationReasonN)Z swagger_typesZ attribute_map� _time_revoked�_revocation_reason)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/certificates/models/revocation_status.py�__init__2 s ��zRevocationStatus.__init__c C s | 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 zRevocationStatus.time_revokedc C s || _ dS )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 s | j S )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 ||�sd}|| _dS )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 ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r v s c C s t | �S �N)r r r r r �__repr__� s zRevocationStatus.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zRevocationStatus.__eq__c C s | |k S r r r r r r �__ne__� s zRevocationStatus.__ne__N)�__name__� __module__�__qualname__�__doc__ZREVOCATION_REASON_UNSPECIFIEDZ REVOCATION_REASON_KEY_COMPROMISEZREVOCATION_REASON_CA_COMPROMISEZ%REVOCATION_REASON_AFFILIATION_CHANGEDZREVOCATION_REASON_SUPERSEDEDZ(REVOCATION_REASON_CESSATION_OF_OPERATIONZ%REVOCATION_REASON_PRIVILEGE_WITHDRAWNZREVOCATION_REASON_AA_COMPROMISEr �propertyr �setterr r r r! r r r r r s* r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn