o
    ëÉ¶dï1  ã                   @   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                   @   s2  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d%d&„ Zd'd(„ Zd)d*„ Zd+S ),ÚKnowledgeBasezr
    A Knowledge Base is a component of Application Dependency Management that contains vulnerability audits.
    ÚCREATINGÚACTIVEÚUPDATINGÚFAILEDÚDELETINGÚDELETEDc              
   K   sn   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 KnowledgeBase 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 KnowledgeBase.
        :type id: str

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

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

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

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

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

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

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

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

        ÚstrÚdatetimezdict(str, str)zdict(str, dict(str, object)))	ÚidÚdisplay_nameÚtime_createdÚtime_updatedÚlifecycle_stateÚcompartment_idÚfreeform_tagsÚdefined_tagsÚsystem_tagsr   ZdisplayNameZtimeCreatedZtimeUpdatedZlifecycleStateZcompartmentIdZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_mapÚ_idÚ_display_nameÚ_time_createdÚ_time_updatedÚ_lifecycle_stateÚ_compartment_idÚ_freeform_tagsÚ_defined_tagsÚ_system_tags)ÚselfÚkwargs© r#   úAusr/lib/python3.10/site-packages/oci/adm/models/knowledge_base.pyÚ__init__*   s:   -÷÷
zKnowledgeBase.__init__c                 C   ó   | j S )a!  
        **[Required]** Gets the id of this KnowledgeBase.
        The Oracle Cloud Identifier (`OCID`__) of the Knowledge Base.

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


        :return: The id of this KnowledgeBase.
        :rtype: str
        ©r   ©r!   r#   r#   r$   r   x   ó   zKnowledgeBase.idc                 C   ó
   || _ dS )a  
        Sets the id of this KnowledgeBase.
        The Oracle Cloud Identifier (`OCID`__) of the Knowledge Base.

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


        :param id: The id of this KnowledgeBase.
        :type: str
        Nr'   )r!   r   r#   r#   r$   r   †   ó   
c                 C   r&   )zÄ
        **[Required]** Gets the display_name of this KnowledgeBase.
        The name of the Knowledge Base.


        :return: The display_name of this KnowledgeBase.
        :rtype: str
        ©r   r(   r#   r#   r$   r   ”   s   
zKnowledgeBase.display_namec                 C   r*   )zÀ
        Sets the display_name of this KnowledgeBase.
        The name of the Knowledge Base.


        :param display_name: The display_name of this KnowledgeBase.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r       s   

c                 C   r&   )a:  
        **[Required]** Gets the time_created of this KnowledgeBase.
        The creation date and time of the Knowledge Base (formatted according to `RFC3339`__).

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :return: The time_created of this KnowledgeBase.
        :rtype: datetime
        ©r   r(   r#   r#   r$   r   ¬   r)   zKnowledgeBase.time_createdc                 C   r*   )a6  
        Sets the time_created of this KnowledgeBase.
        The creation date and time of the Knowledge Base (formatted according to `RFC3339`__).

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :param time_created: The time_created of this KnowledgeBase.
        :type: datetime
        Nr-   )r!   r   r#   r#   r$   r   º   r+   c                 C   r&   )a?  
        **[Required]** Gets the time_updated of this KnowledgeBase.
        The date and time the Knowledge Base was last updated (formatted according to `RFC3339`__).

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :return: The time_updated of this KnowledgeBase.
        :rtype: datetime
        ©r   r(   r#   r#   r$   r   È   r)   zKnowledgeBase.time_updatedc                 C   r*   )a;  
        Sets the time_updated of this KnowledgeBase.
        The date and time the Knowledge Base was last updated (formatted according to `RFC3339`__).

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :param time_updated: The time_updated of this KnowledgeBase.
        :type: datetime
        Nr.   )r!   r   r#   r#   r$   r   Ö   r+   c                 C   r&   )aÃ  
        **[Required]** Gets the lifecycle_state of this KnowledgeBase.
        The current lifecycle state of the Knowledge Base.

        Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "FAILED", "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 KnowledgeBase.
        :rtype: str
        )r   r(   r#   r#   r$   r   ä   s   zKnowledgeBase.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÜ
        Sets the lifecycle_state of this KnowledgeBase.
        The current lifecycle state of the Knowledge Base.


        :param lifecycle_state: The lifecycle_state of this KnowledgeBase.
        :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&   )aG  
        **[Required]** Gets the compartment_id of this KnowledgeBase.
        The Oracle Cloud Identifier (`OCID`__) of the Knowledge Base's compartment.

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


        :return: The compartment_id of this KnowledgeBase.
        :rtype: str
        ©r   r(   r#   r#   r$   r     r)   zKnowledgeBase.compartment_idc                 C   r*   )aE  
        Sets the compartment_id of this KnowledgeBase.
        The Oracle Cloud Identifier (`OCID`__) of the Knowledge Base's compartment.

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


        :param compartment_id: The compartment_id of this KnowledgeBase.
        :type: str
        Nr/   )r!   r   r#   r#   r$   r     r+   c                 C   r&   )aP  
        **[Required]** Gets the freeform_tags of this KnowledgeBase.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this KnowledgeBase.
        :rtype: dict(str, str)
        ©r   r(   r#   r#   r$   r     ó   zKnowledgeBase.freeform_tagsc                 C   r*   )aM  
        Sets the freeform_tags of this KnowledgeBase.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this KnowledgeBase.
        :type: dict(str, str)
        Nr0   )r!   r   r#   r#   r$   r   +  ó   
c                 C   r&   )aJ  
        **[Required]** Gets the defined_tags of this KnowledgeBase.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this KnowledgeBase.
        :rtype: dict(str, dict(str, object))
        ©r   r(   r#   r#   r$   r   8  r1   zKnowledgeBase.defined_tagsc                 C   r*   )aF  
        Sets the defined_tags of this KnowledgeBase.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this KnowledgeBase.
        :type: dict(str, dict(str, object))
        Nr3   )r!   r   r#   r#   r$   r   E  r2   c                 C   r&   )a8  
        Gets the system_tags of this KnowledgeBase.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :return: The system_tags of this KnowledgeBase.
        :rtype: dict(str, dict(str, object))
        ©r    r(   r#   r#   r$   r   R  r1   zKnowledgeBase.system_tagsc                 C   r*   )aB  
        Sets the system_tags of this KnowledgeBase.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this KnowledgeBase.
        :type: dict(str, dict(str, object))
        Nr4   )r!   r   r#   r#   r$   r   _  r2   c                 C   s   t | ƒS ©N)r   r(   r#   r#   r$   Ú__repr__l  s   zKnowledgeBase.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r!   Úotherr#   r#   r$   Ú__eq__o  s   zKnowledgeBase.__eq__c                 C   s
   | |k S r5   r#   r8   r#   r#   r$   Ú__ne__u  s   
zKnowledgeBase.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr%   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r6   r:   r;   r#   r#   r#   r$   r      s`    N

















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r#   r#   r#   r$   Ú<module>   s   