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                   @   sd   e 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 )ÚValidityz³
    An object that describes a period of time during which an entity is valid. If this is not provided when you create a certificate, the validity of the issuing CA is used.
    c                 K   s(   dddœ| _ dddœ| _d| _d| _dS )a?  
        Initializes a new Validity object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param time_of_validity_not_before:
            The value to assign to the time_of_validity_not_before property of this Validity.
        :type time_of_validity_not_before: datetime

        :param time_of_validity_not_after:
            The value to assign to the time_of_validity_not_after property of this Validity.
        :type time_of_validity_not_after: datetime

        Údatetime)Útime_of_validity_not_beforeÚtime_of_validity_not_afterZtimeOfValidityNotBeforeZtimeOfValidityNotAfterN)Zswagger_typesZattribute_mapÚ_time_of_validity_not_beforeÚ_time_of_validity_not_after)ÚselfÚkwargs© r   úOusr/lib/python3.10/site-packages/oci/certificates_management/models/validity.pyÚ__init__   s   þþ
zValidity.__init__c                 C   ó   | j S )ap  
        Gets the time_of_validity_not_before of this Validity.
        The date on which the certificate validity period begins, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_of_validity_not_before of this Validity.
        :rtype: datetime
        ©r
   ©r   r   r   r   r   -   ó   z$Validity.time_of_validity_not_beforec                 C   ó
   || _ dS )aŠ  
        Sets the time_of_validity_not_before of this Validity.
        The date on which the certificate validity period begins, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_of_validity_not_before: The time_of_validity_not_before of this Validity.
        :type: datetime
        Nr   )r   r   r   r   r   r   <   ó   
c                 C   r   )a{  
        **[Required]** Gets the time_of_validity_not_after of this Validity.
        The date on which the certificate validity period ends, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_of_validity_not_after of this Validity.
        :rtype: datetime
        ©r   r   r   r   r   r	   K   r   z#Validity.time_of_validity_not_afterc                 C   r   )a…  
        Sets the time_of_validity_not_after of this Validity.
        The date on which the certificate validity period ends, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_of_validity_not_after: The time_of_validity_not_after of this Validity.
        :type: datetime
        Nr   )r   r	   r   r   r   r	   Z   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__i   s   zValidity.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__l   s   zValidity.__eq__c                 C   s
   | |k S r   r   r   r   r   r   Ú__ne__r   s   
zValidity.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú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   