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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 )ÚVulnerabilityz¸
    A vulnerability is a weakness or error in an artifact.
    A vulnerability is a generalization of a CVE (every CVE is a vulnerability, but not every vulnerability has a CVE).
    c                 K   s<   dddddœ| _ dddddœ| _d	| _d	| _d	| _d	| _d	S )
aø  
        Initializes a new Vulnerability 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 Vulnerability.
        :type id: str

        :param cvss_v2_score:
            The value to assign to the cvss_v2_score property of this Vulnerability.
        :type cvss_v2_score: float

        :param cvss_v3_score:
            The value to assign to the cvss_v3_score property of this Vulnerability.
        :type cvss_v3_score: float

        :param is_ignored:
            The value to assign to the is_ignored property of this Vulnerability.
        :type is_ignored: bool

        ÚstrÚfloatÚbool)ÚidÚcvss_v2_scoreÚcvss_v3_scoreÚ
is_ignoredr
   ZcvssV2ScoreZcvssV3ScoreZ	isIgnoredN)Zswagger_typesZattribute_mapÚ_idÚ_cvss_v2_scoreÚ_cvss_v3_scoreÚ_is_ignored)ÚselfÚkwargs© r   ú@usr/lib/python3.10/site-packages/oci/adm/models/vulnerability.pyÚ__init__   s   üü
zVulnerability.__init__c                 C   ó   | j S )zÅ
        **[Required]** Gets the id of this Vulnerability.
        Unique vulnerability identifier, e.g. CVE-1999-0067.


        :return: The id of this Vulnerability.
        :rtype: str
        ©r   ©r   r   r   r   r
   <   ó   
zVulnerability.idc                 C   ó
   || _ dS )z·
        Sets the id of this Vulnerability.
        Unique vulnerability identifier, e.g. CVE-1999-0067.


        :param id: The id of this Vulnerability.
        :type: str
        Nr   )r   r
   r   r   r   r
   H   ó   

c                 C   r   )zÞ
        **[Required]** Gets the cvss_v2_score of this Vulnerability.
        Common Vulnerability Scoring System (CVSS) Version 2.


        :return: The cvss_v2_score of this Vulnerability.
        :rtype: float
        ©r   r   r   r   r   r   T   r   zVulnerability.cvss_v2_scorec                 C   r   )zÛ
        Sets the cvss_v2_score of this Vulnerability.
        Common Vulnerability Scoring System (CVSS) Version 2.


        :param cvss_v2_score: The cvss_v2_score of this Vulnerability.
        :type: float
        Nr   )r   r   r   r   r   r   `   r   c                 C   r   )zÞ
        **[Required]** Gets the cvss_v3_score of this Vulnerability.
        Common Vulnerability Scoring System (CVSS) Version 3.


        :return: The cvss_v3_score of this Vulnerability.
        :rtype: float
        ©r   r   r   r   r   r   l   r   zVulnerability.cvss_v3_scorec                 C   r   )zÛ
        Sets the cvss_v3_score of this Vulnerability.
        Common Vulnerability Scoring System (CVSS) Version 3.


        :param cvss_v3_score: The cvss_v3_score of this Vulnerability.
        :type: float
        Nr   )r   r   r   r   r   r   x   r   c                 C   r   )zò
        **[Required]** Gets the is_ignored of this Vulnerability.
        Indicates if the vulnerability was ignored according to the audit configuration.


        :return: The is_ignored of this Vulnerability.
        :rtype: bool
        ©r   r   r   r   r   r   „   r   zVulnerability.is_ignoredc                 C   r   )zì
        Sets the is_ignored of this Vulnerability.
        Indicates if the vulnerability was ignored according to the audit configuration.


        :param is_ignored: The is_ignored of this Vulnerability.
        :type: bool
        Nr   )r   r   r   r   r   r      r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__œ   s   zVulnerability.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__Ÿ   s   zVulnerability.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__¥   s   
zVulnerability.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr
   Úsetterr   r   r   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   