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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d$d%„ Zd&d'„ Zd(d)„ Zd*S )+ÚAssociationz)
    The details of the association.
    ÚCREATINGÚACTIVEÚUPDATINGÚDELETINGÚFAILEDÚCERTIFICATEÚCERTIFICATE_AUTHORITYÚ	CA_BUNDLEc              	   K   sd   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 )a4  
        Initializes a new Association 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 Association.
        :type id: str

        :param name:
            The value to assign to the name property of this Association.
        :type name: str

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

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

        :param certificates_resource_id:
            The value to assign to the certificates_resource_id property of this Association.
        :type certificates_resource_id: str

        :param associated_resource_id:
            The value to assign to the associated_resource_id property of this Association.
        :type associated_resource_id: str

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

        :param association_type:
            The value to assign to the association_type property of this Association.
            Allowed values for this property are: "CERTIFICATE", "CERTIFICATE_AUTHORITY", "CA_BUNDLE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type association_type: str

        ÚstrÚdatetime)ÚidÚnameÚtime_createdÚlifecycle_stateÚcertificates_resource_idÚassociated_resource_idÚcompartment_idÚassociation_typer   r   ZtimeCreatedZlifecycleStateZcertificatesResourceIdZassociatedResourceIdZcompartmentIdZassociationTypeN)
Zswagger_typesZattribute_mapÚ_idÚ_nameÚ_time_createdÚ_lifecycle_stateÚ_certificates_resource_idÚ_associated_resource_idÚ_compartment_idÚ_association_type)ÚselfÚkwargs© r#   úRusr/lib/python3.10/site-packages/oci/certificates_management/models/association.pyÚ__init__2   s4   +øø
zAssociation.__init__c                 C   ó   | j S )z©
        **[Required]** Gets the id of this Association.
        The OCID of the association.


        :return: The id of this Association.
        :rtype: str
        ©r   ©r!   r#   r#   r$   r   {   ó   
zAssociation.idc                 C   ó
   || _ dS )z›
        Sets the id of this Association.
        The OCID of the association.


        :param id: The id of this Association.
        :type: str
        Nr'   )r!   r   r#   r#   r$   r   ‡   ó   

c                 C   r&   )aI  
        **[Required]** Gets the name of this Association.
        A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.


        :return: The name of this Association.
        :rtype: str
        ©r   r(   r#   r#   r$   r   “   r)   zAssociation.namec                 C   r*   )a=  
        Sets the name of this Association.
        A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.


        :param name: The name of this Association.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r   Ÿ   r+   c                 C   r&   )ae  
        **[Required]** Gets the time_created of this Association.
        A property indicating when the association was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

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


        :return: The time_created of this Association.
        :rtype: datetime
        ©r   r(   r#   r#   r$   r   «   ó   zAssociation.time_createdc                 C   r*   )aa  
        Sets the time_created of this Association.
        A property indicating when the association was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

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


        :param time_created: The time_created of this Association.
        :type: datetime
        Nr-   )r!   r   r#   r#   r$   r   º   s   
c                 C   r&   )a±  
        **[Required]** Gets the lifecycle_state of this Association.
        The current lifecycle state of the association.

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


        :return: The lifecycle_state of this Association.
        :rtype: str
        )r   r(   r#   r#   r$   r   É   r.   zAssociation.lifecycle_statec                 C   ó    g d¢}t ||ƒsd}|| _dS )zÕ
        Sets the lifecycle_state of this Association.
        The current lifecycle state of the association.


        :param lifecycle_state: The lifecycle_state of this Association.
        :type: str
        )r   r   r	   r
   r   ÚUNKNOWN_ENUM_VALUEN)r   r   )r!   r   Úallowed_valuesr#   r#   r$   r   Ø   ó   


c                 C   r&   )a#  
        **[Required]** Gets the certificates_resource_id of this Association.
        The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.


        :return: The certificates_resource_id of this Association.
        :rtype: str
        ©r   r(   r#   r#   r$   r   ç   r)   z$Association.certificates_resource_idc                 C   r*   )a+  
        Sets the certificates_resource_id of this Association.
        The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.


        :param certificates_resource_id: The certificates_resource_id of this Association.
        :type: str
        Nr3   )r!   r   r#   r#   r$   r   ó   r+   c                 C   r&   )zÙ
        **[Required]** Gets the associated_resource_id of this Association.
        The OCID of the associated resource.


        :return: The associated_resource_id of this Association.
        :rtype: str
        ©r   r(   r#   r#   r$   r   ÿ   r)   z"Association.associated_resource_idc                 C   r*   )zß
        Sets the associated_resource_id of this Association.
        The OCID of the associated resource.


        :param associated_resource_id: The associated_resource_id of this Association.
        :type: str
        Nr4   )r!   r   r#   r#   r$   r     r+   c                 C   r&   )a!  
        **[Required]** Gets the compartment_id of this Association.
        The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.


        :return: The compartment_id of this Association.
        :rtype: str
        ©r   r(   r#   r#   r$   r     r)   zAssociation.compartment_idc                 C   r*   )a  
        Sets the compartment_id of this Association.
        The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.


        :param compartment_id: The compartment_id of this Association.
        :type: str
        Nr5   )r!   r   r#   r#   r$   r   #  r+   c                 C   r&   )a™  
        **[Required]** Gets the association_type of this Association.
        Type of the association.

        Allowed values for this property are: "CERTIFICATE", "CERTIFICATE_AUTHORITY", "CA_BUNDLE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The association_type of this Association.
        :rtype: str
        )r    r(   r#   r#   r$   r   /  r.   zAssociation.association_typec                 C   r/   )zÁ
        Sets the association_type of this Association.
        Type of the association.


        :param association_type: The association_type of this Association.
        :type: str
        )r   r   r   r0   N)r   r    )r!   r   r1   r#   r#   r$   r   >  r2   c                 C   s   t | ƒS ©N)r   r(   r#   r#   r$   Ú__repr__M  s   zAssociation.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r!   Úotherr#   r#   r$   Ú__eq__P  s   zAssociation.__eq__c                 C   s
   | |k S r6   r#   r9   r#   r#   r$   Ú__ne__V  s   
zAssociation.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDZASSOCIATION_TYPE_CERTIFICATEZ&ASSOCIATION_TYPE_CERTIFICATE_AUTHORITYZASSOCIATION_TYPE_CA_BUNDLEr%   Úpropertyr   Úsetterr   r   r   r   r   r   r   r7   r;   r<   r#   r#   r#   r$   r      s\    I















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r#   r#   r#   r$   Ú<module>   s   