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                   @   s6  e 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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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d0d/ Zed1d2 Zejd3d2 Zed4d5 Zejd6d5 Zed7d8 Zejd9d8 Zed:d; Zejd<d; Zed=d> Zejd?d> Zed@dA ZejdBdA ZdCdD Z dEdF Z!dGdH Z"dIS )JCertificatez
    The details of the SSL certificate.
    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    CREATINGACTIVEFAILEDUPDATINGDELETINGDELETEDc                 K   sb  i dddddddddddd	d
dddddddddddddddddddddddd| _ i dddddddddd dd!d
d"dddd#dd$dd%dd&dddd'dd(dd)d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 Certificate object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this Certificate.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Certificate.
        :type compartment_id: str

        :param display_name:
            The value to assign to the display_name property of this Certificate.
        :type display_name: str

        :param issued_by:
            The value to assign to the issued_by property of this Certificate.
        :type issued_by: str

        :param subject_name:
            The value to assign to the subject_name property of this Certificate.
        :type subject_name: oci.waas.models.CertificateSubjectName

        :param issuer_name:
            The value to assign to the issuer_name property of this Certificate.
        :type issuer_name: oci.waas.models.CertificateIssuerName

        :param serial_number:
            The value to assign to the serial_number property of this Certificate.
        :type serial_number: str

        :param version:
            The value to assign to the version property of this Certificate.
        :type version: int

        :param signature_algorithm:
            The value to assign to the signature_algorithm property of this Certificate.
        :type signature_algorithm: str

        :param time_not_valid_before:
            The value to assign to the time_not_valid_before property of this Certificate.
        :type time_not_valid_before: datetime

        :param time_not_valid_after:
            The value to assign to the time_not_valid_after property of this Certificate.
        :type time_not_valid_after: datetime

        :param public_key_info:
            The value to assign to the public_key_info property of this Certificate.
        :type public_key_info: oci.waas.models.CertificatePublicKeyInfo

        :param extensions:
            The value to assign to the extensions property of this Certificate.
        :type extensions: list[oci.waas.models.CertificateExtensions]

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Certificate.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Certificate.
        :type defined_tags: dict(str, dict(str, object))

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

        :param time_created:
            The value to assign to the time_created property of this Certificate.
        :type time_created: datetime

        :param is_trust_verification_disabled:
            The value to assign to the is_trust_verification_disabled property of this Certificate.
        :type is_trust_verification_disabled: bool

        :param certificate_data:
            The value to assign to the certificate_data property of this Certificate.
        :type certificate_data: str

        idstrcompartment_iddisplay_name	issued_bysubject_nameZCertificateSubjectNameissuer_nameZCertificateIssuerNameserial_numberversionintsignature_algorithmtime_not_valid_beforedatetimetime_not_valid_afterpublic_key_infoZCertificatePublicKeyInfo
extensionszlist[CertificateExtensions]freeform_tagszdict(str, str)defined_tagszdict(str, dict(str, object))lifecycle_statetime_createdbool)is_trust_verification_disabledcertificate_dataZcompartmentIdZdisplayNameZissuedByZsubjectNameZ
issuerNameZserialNumberZsignatureAlgorithmZtimeNotValidBeforeZtimeNotValidAfterZpublicKeyInfoZfreeformTagsZdefinedTagsZlifecycleStateZtimeCreatedZisTrustVerificationDisabledZcertificateDataN)Zswagger_typesZattribute_map_id_compartment_id_display_name
_issued_by_subject_name_issuer_name_serial_number_version_signature_algorithm_time_not_valid_before_time_not_valid_after_public_key_info_extensions_freeform_tags_defined_tags_lifecycle_state_time_created_is_trust_verification_disabled_certificate_data)selfkwargs r9   ?usr/lib/python3.10/site-packages/oci/waas/models/certificate.py__init__+   s   T	

	


zCertificate.__init__c                 C      | j S )a   
        **[Required]** Gets the id of this Certificate.
        The `OCID`__ of the certificate.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The id of this Certificate.
        :rtype: str
        r$   r7   r9   r9   r:   r         zCertificate.idc                 C   
   || _ dS )z
        Sets the id of this Certificate.
        The `OCID`__ of the certificate.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param id: The id of this Certificate.
        :type: str
        Nr=   )r7   r   r9   r9   r:   r         
c                 C   r<   )a&  
        **[Required]** Gets the compartment_id of this Certificate.
        The `OCID`__ of the certificate's compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this Certificate.
        :rtype: str
        r%   r>   r9   r9   r:   r      r?   zCertificate.compartment_idc                 C   r@   )a$  
        Sets the compartment_id of this Certificate.
        The `OCID`__ of the certificate's compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this Certificate.
        :type: str
        NrB   )r7   r   r9   r9   r:   r      rA   c                 C   r<   )z
        **[Required]** Gets the display_name of this Certificate.
        The user-friendly name of the certificate.


        :return: The display_name of this Certificate.
        :rtype: str
        r&   r>   r9   r9   r:   r         
zCertificate.display_namec                 C   r@   )z
        Sets the display_name of this Certificate.
        The user-friendly name of the certificate.


        :param display_name: The display_name of this Certificate.
        :type: str
        NrC   )r7   r   r9   r9   r:   r        

c                 C   r<   )z
        Gets the issued_by of this Certificate.

        :return: The issued_by of this Certificate.
        :rtype: str
        r'   r>   r9   r9   r:   r        zCertificate.issued_byc                 C   r@   )z
        Sets the issued_by of this Certificate.

        :param issued_by: The issued_by of this Certificate.
        :type: str
        NrF   )r7   r   r9   r9   r:   r        
c                 C   r<   )z
        Gets the subject_name of this Certificate.

        :return: The subject_name of this Certificate.
        :rtype: oci.waas.models.CertificateSubjectName
        r(   r>   r9   r9   r:   r   #  rG   zCertificate.subject_namec                 C   r@   )z
        Sets the subject_name of this Certificate.

        :param subject_name: The subject_name of this Certificate.
        :type: oci.waas.models.CertificateSubjectName
        NrI   )r7   r   r9   r9   r:   r   -  rH   c                 C   r<   )z
        Gets the issuer_name of this Certificate.

        :return: The issuer_name of this Certificate.
        :rtype: oci.waas.models.CertificateIssuerName
        r)   r>   r9   r9   r:   r   7  rG   zCertificate.issuer_namec                 C   r@   )z
        Sets the issuer_name of this Certificate.

        :param issuer_name: The issuer_name of this Certificate.
        :type: oci.waas.models.CertificateIssuerName
        NrJ   )r7   r   r9   r9   r:   r   A  rH   c                 C   r<   )a*  
        **[Required]** Gets the serial_number of this Certificate.
        A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.


        :return: The serial_number of this Certificate.
        :rtype: str
        r*   r>   r9   r9   r:   r   K  rD   zCertificate.serial_numberc                 C   r@   )a'  
        Sets the serial_number of this Certificate.
        A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.


        :param serial_number: The serial_number of this Certificate.
        :type: str
        NrK   )r7   r   r9   r9   r:   r   W  rE   c                 C   r<   )z
        **[Required]** Gets the version of this Certificate.
        The version of the encoded certificate.


        :return: The version of this Certificate.
        :rtype: int
        r+   r>   r9   r9   r:   r   c  rD   zCertificate.versionc                 C   r@   )z
        Sets the version of this Certificate.
        The version of the encoded certificate.


        :param version: The version of this Certificate.
        :type: int
        NrL   )r7   r   r9   r9   r:   r   o  rE   c                 C   r<   )a  
        **[Required]** Gets the signature_algorithm of this Certificate.
        The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.


        :return: The signature_algorithm of this Certificate.
        :rtype: str
        r,   r>   r9   r9   r:   r   {  rD   zCertificate.signature_algorithmc                 C   r@   )a!  
        Sets the signature_algorithm of this Certificate.
        The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.


        :param signature_algorithm: The signature_algorithm of this Certificate.
        :type: str
        NrM   )r7   r   r9   r9   r:   r     rE   c                 C   r<   )a  
        **[Required]** Gets the time_not_valid_before of this Certificate.
        The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.


        :return: The time_not_valid_before of this Certificate.
        :rtype: datetime
        r-   r>   r9   r9   r:   r     rD   z!Certificate.time_not_valid_beforec                 C   r@   )a  
        Sets the time_not_valid_before of this Certificate.
        The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.


        :param time_not_valid_before: The time_not_valid_before of this Certificate.
        :type: datetime
        NrN   )r7   r   r9   r9   r:   r     rE   c                 C   r<   )a  
        **[Required]** Gets the time_not_valid_after of this Certificate.
        The date and time the certificate will expire, expressed in RFC 3339 timestamp format.


        :return: The time_not_valid_after of this Certificate.
        :rtype: datetime
        r.   r>   r9   r9   r:   r     rD   z Certificate.time_not_valid_afterc                 C   r@   )a  
        Sets the time_not_valid_after of this Certificate.
        The date and time the certificate will expire, expressed in RFC 3339 timestamp format.


        :param time_not_valid_after: The time_not_valid_after of this Certificate.
        :type: datetime
        NrO   )r7   r   r9   r9   r:   r     rE   c                 C   r<   )z
        Gets the public_key_info of this Certificate.

        :return: The public_key_info of this Certificate.
        :rtype: oci.waas.models.CertificatePublicKeyInfo
        r/   r>   r9   r9   r:   r     rG   zCertificate.public_key_infoc                 C   r@   )z
        Sets the public_key_info of this Certificate.

        :param public_key_info: The public_key_info of this Certificate.
        :type: oci.waas.models.CertificatePublicKeyInfo
        NrP   )r7   r   r9   r9   r:   r     rH   c                 C   r<   )a,  
        Gets the extensions of this Certificate.
        Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.


        :return: The extensions of this Certificate.
        :rtype: list[oci.waas.models.CertificateExtensions]
        r0   r>   r9   r9   r:   r     rD   zCertificate.extensionsc                 C   r@   )a5  
        Sets the extensions of this Certificate.
        Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.


        :param extensions: The extensions of this Certificate.
        :type: list[oci.waas.models.CertificateExtensions]
        NrQ   )r7   r   r9   r9   r:   r     rE   c                 C   r<   )a  
        Gets the freeform_tags of this Certificate.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Certificate.
        :rtype: dict(str, str)
        r1   r>   r9   r9   r:   r        zCertificate.freeform_tagsc                 C   r@   )a  
        Sets the freeform_tags of this Certificate.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Certificate.
        :type: dict(str, str)
        NrR   )r7   r   r9   r9   r:   r         
c                 C   r<   )a  
        Gets the defined_tags of this Certificate.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Certificate.
        :rtype: dict(str, dict(str, object))
        r2   r>   r9   r9   r:   r     rS   zCertificate.defined_tagsc                 C   r@   )a  
        Sets the defined_tags of this Certificate.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Certificate.
        :type: dict(str, dict(str, object))
        NrU   )r7   r   r9   r9   r:   r   "  rT   c                 C   r<   )a  
        Gets the lifecycle_state of this Certificate.
        The current lifecycle state of the SSL certificate.

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


        :return: The lifecycle_state of this Certificate.
        :rtype: str
        )r3   r>   r9   r9   r:   r   3  s   zCertificate.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Certificate.
        The current lifecycle state of the SSL certificate.


        :param lifecycle_state: The lifecycle_state of this Certificate.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r3   )r7   r   Zallowed_valuesr9   r9   r:   r   B  s   


c                 C   r<   )z
        Gets the time_created of this Certificate.
        The date and time the certificate was created, expressed in RFC 3339 timestamp format.


        :return: The time_created of this Certificate.
        :rtype: datetime
        r4   r>   r9   r9   r:   r    Q  rD   zCertificate.time_createdc                 C   r@   )z
        Sets the time_created of this Certificate.
        The date and time the certificate was created, expressed in RFC 3339 timestamp format.


        :param time_created: The time_created of this Certificate.
        :type: datetime
        NrV   )r7   r    r9   r9   r:   r    ]  rE   c                 C   r<   )a  
        Gets the is_trust_verification_disabled of this Certificate.
        This indicates whether trust verification was disabled during the creation of SSL certificate.
        If `true` SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.


        :return: The is_trust_verification_disabled of this Certificate.
        :rtype: bool
        r5   r>   r9   r9   r:   r"   i  s   z*Certificate.is_trust_verification_disabledc                 C   r@   )a  
        Sets the is_trust_verification_disabled of this Certificate.
        This indicates whether trust verification was disabled during the creation of SSL certificate.
        If `true` SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed.


        :param is_trust_verification_disabled: The is_trust_verification_disabled of this Certificate.
        :type: bool
        NrW   )r7   r"   r9   r9   r:   r"   v  s   
c                 C   r<   )z
        Gets the certificate_data of this Certificate.
        The data of the SSL certificate.


        :return: The certificate_data of this Certificate.
        :rtype: str
        r6   r>   r9   r9   r:   r#     rD   zCertificate.certificate_datac                 C   r@   )z
        Sets the certificate_data of this Certificate.
        The data of the SSL certificate.


        :param certificate_data: The certificate_data of this Certificate.
        :type: str
        NrX   )r7   r#   r9   r9   r:   r#     rE   c                 C   s   t | S N)r   r>   r9   r9   r:   __repr__  s   zCertificate.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r7   otherr9   r9   r:   __eq__  s   zCertificate.__eq__c                 C   s
   | |k S rY   r9   r\   r9   r9   r:   __ne__  s   
zCertificate.__ne__N)#__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr;   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r"   r#   rZ   r^   r_   r9   r9   r9   r:   r      s     






	
	
	
	
	
	










	
	













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r9   r9   r9   r:   <module>   s   