o
    ɶdC                     @   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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d1d2 Zd3d4 Zd5d6 Zd7S )8Certificatea  
    A certificate contains information to be installed on a gateway to secure the traffic going
    through it.
    For more information, see
    `API Gateway Concepts`__.

    __ https://docs.cloud.oracle.com/iaas/Content/APIGateway/Concepts/apigatewayconcepts.htm
    CREATINGACTIVEUPDATINGDELETINGDELETEDFAILEDc                 K   s   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 display_name:
            The value to assign to the display_name property of this Certificate.
        :type display_name: str

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

        :param subject_names:
            The value to assign to the subject_names property of this Certificate.
        :type subject_names: list[str]

        :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 certificate:
            The value to assign to the certificate property of this Certificate.
        :type certificate: str

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

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

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

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

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

        :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))

        strz	list[str]datetimezdict(str, str)zdict(str, dict(str, object)))iddisplay_namecompartment_idsubject_namestime_not_valid_aftercertificateintermediate_certificatestime_createdtime_updatedlifecycle_statelifecycle_detailsfreeform_tagsdefined_tagsr   ZdisplayNameZcompartmentIdZsubjectNamesZtimeNotValidAfterr   ZintermediateCertificatesZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_display_name_compartment_id_subject_names_time_not_valid_after_certificate_intermediate_certificates_time_created_time_updated_lifecycle_state_lifecycle_details_freeform_tags_defined_tags)selfkwargs r+   Eusr/lib/python3.10/site-packages/oci/apigateway/models/certificate.py__init__/   sR   =
zCertificate.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Certificate.
        The `OCID`__ of the resource.

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


        :return: The id of this Certificate.
        :rtype: str
        r   r)   r+   r+   r,   r         zCertificate.idc                 C   
   || _ dS )z
        Sets the id of this Certificate.
        The `OCID`__ of the resource.

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


        :param id: The id of this Certificate.
        :type: str
        Nr/   )r)   r   r+   r+   r,   r         
c                 C   r.   )a<  
        **[Required]** Gets the display_name of this Certificate.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :return: The display_name of this Certificate.
        :rtype: str
        r   r0   r+   r+   r,   r         zCertificate.display_namec                 C   r2   )a8  
        Sets the display_name of this Certificate.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :param display_name: The display_name of this Certificate.
        :type: str
        Nr4   )r)   r   r+   r+   r,   r         
c                 C   r.   )aA  
        **[Required]** Gets the compartment_id of this Certificate.
        The `OCID`__ of the compartment in which the
        resource is created.

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


        :return: The compartment_id of this Certificate.
        :rtype: str
        r   r0   r+   r+   r,   r      r5   zCertificate.compartment_idc                 C   r2   )a?  
        Sets the compartment_id of this Certificate.
        The `OCID`__ of the compartment in which the
        resource is created.

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


        :param compartment_id: The compartment_id of this Certificate.
        :type: str
        Nr7   )r)   r   r+   r+   r,   r      r6   c                 C   r.   )z
        **[Required]** Gets the subject_names of this Certificate.
        The entity to be secured by the certificate and additional host names.


        :return: The subject_names of this Certificate.
        :rtype: list[str]
        r   r0   r+   r+   r,   r         
zCertificate.subject_namesc                 C   r2   )z
        Sets the subject_names of this Certificate.
        The entity to be secured by the certificate and additional host names.


        :param subject_names: The subject_names of this Certificate.
        :type: list[str]
        Nr8   )r)   r   r+   r+   r,   r         

c                 C   r.   )z
        **[Required]** Gets the time_not_valid_after of this Certificate.
        The date and time the certificate will expire.


        :return: The time_not_valid_after of this Certificate.
        :rtype: datetime
        r    r0   r+   r+   r,   r   	  r9   z Certificate.time_not_valid_afterc                 C   r2   )z
        Sets the time_not_valid_after of this Certificate.
        The date and time the certificate will expire.


        :param time_not_valid_after: The time_not_valid_after of this Certificate.
        :type: datetime
        Nr;   )r)   r   r+   r+   r,   r     r:   c                 C   r.   )z
        **[Required]** Gets the certificate of this Certificate.
        The data of the leaf certificate in pem format.


        :return: The certificate of this Certificate.
        :rtype: str
        r!   r0   r+   r+   r,   r   !  r9   zCertificate.certificatec                 C   r2   )z
        Sets the certificate of this Certificate.
        The data of the leaf certificate in pem format.


        :param certificate: The certificate of this Certificate.
        :type: str
        Nr<   )r)   r   r+   r+   r,   r   -  r:   c                 C   r.   )z
        Gets the intermediate_certificates of this Certificate.
        The intermediate certificate data associated with the certificate in pem format.


        :return: The intermediate_certificates of this Certificate.
        :rtype: str
        r"   r0   r+   r+   r,   r   9  r9   z%Certificate.intermediate_certificatesc                 C   r2   )a  
        Sets the intermediate_certificates of this Certificate.
        The intermediate certificate data associated with the certificate in pem format.


        :param intermediate_certificates: The intermediate_certificates of this Certificate.
        :type: str
        Nr=   )r)   r   r+   r+   r,   r   E  r:   c                 C   r.   )z
        **[Required]** Gets the time_created of this Certificate.
        The time this resource was created. An RFC3339 formatted datetime string.


        :return: The time_created of this Certificate.
        :rtype: datetime
        r#   r0   r+   r+   r,   r   Q  r9   zCertificate.time_createdc                 C   r2   )z
        Sets the time_created of this Certificate.
        The time this resource was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this Certificate.
        :type: datetime
        Nr>   )r)   r   r+   r+   r,   r   ]  r:   c                 C   r.   )z
        Gets the time_updated of this Certificate.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this Certificate.
        :rtype: datetime
        r$   r0   r+   r+   r,   r   i  r9   zCertificate.time_updatedc                 C   r2   )z
        Sets the time_updated of this Certificate.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Certificate.
        :type: datetime
        Nr?   )r)   r   r+   r+   r,   r   u  r:   c                 C   r.   )a  
        Gets the lifecycle_state of this Certificate.
        The current state of the certificate.

        Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", '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
        )r%   r0   r+   r+   r,   r     r5   zCertificate.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Certificate.
        The current state of the certificate.


        :param lifecycle_state: The lifecycle_state of this Certificate.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r%   )r)   r   Zallowed_valuesr+   r+   r,   r     s   


c                 C   r.   )a?  
        Gets the lifecycle_details of this Certificate.
        A message describing the current state in more detail.
        For example, can be used to provide actionable information for a
        resource in a Failed state.


        :return: The lifecycle_details of this Certificate.
        :rtype: str
        r&   r0   r+   r+   r,   r     r1   zCertificate.lifecycle_detailsc                 C   r2   )aO  
        Sets the lifecycle_details of this Certificate.
        A message describing the current state in more detail.
        For example, can be used to provide actionable information for a
        resource in a Failed state.


        :param lifecycle_details: The lifecycle_details of this Certificate.
        :type: str
        Nr@   )r)   r   r+   r+   r,   r     r3   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)
        r'   r0   r+   r+   r,   r        zCertificate.freeform_tagsc                 C   r2   )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)
        NrA   )r)   r   r+   r+   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))
        r(   r0   r+   r+   r,   r     rB   zCertificate.defined_tagsc                 C   r2   )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))
        NrD   )r)   r   r+   r+   r,   r     rC   c                 C   s   t | S N)r   r0   r+   r+   r,   __repr__  s   zCertificate.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r)   otherr+   r+   r,   __eq__  s   zCertificate.__eq__c                 C   s
   | |k S rE   r+   rH   r+   r+   r,   __ne__  s   
zCertificate.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr-   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   rF   rJ   rK   r+   r+   r+   r,   r      s    j

























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r+   r+   r+   r,   <module>   s   