ruạṛ
a ���fN? � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zd1d2� Zd3d4� Zd5d6� Zd7S )8�ResourceVulnerabilityz! CG vulnerability object �CRITICAL�HIGH�MEDIUM�LOW�MINOR�NONEc K s� dddddddddddddd� | _ ddd d ddd ddddddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _dS )a� Initializes a new ResourceVulnerability 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 ResourceVulnerability. :type id: str :param description: The value to assign to the description property of this ResourceVulnerability. :type description: str :param risk_level: The value to assign to the risk_level property of this ResourceVulnerability. Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR", "NONE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type risk_level: str :param url: The value to assign to the url property of this ResourceVulnerability. :type url: str :param time_first_detected: The value to assign to the time_first_detected property of this ResourceVulnerability. :type time_first_detected: datetime :param time_last_detected: The value to assign to the time_last_detected property of this ResourceVulnerability. :type time_last_detected: datetime :param time_published: The value to assign to the time_published property of this ResourceVulnerability. :type time_published: datetime :param time_last_modified: The value to assign to the time_last_modified property of this ResourceVulnerability. :type time_last_modified: datetime :param cvss_score: The value to assign to the cvss_score property of this ResourceVulnerability. :type cvss_score: str :param package_details: The value to assign to the package_details property of this ResourceVulnerability. :type package_details: list[oci.cloud_guard.models.PackageDetail] :param freeform_tags: The value to assign to the freeform_tags property of this ResourceVulnerability. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ResourceVulnerability. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this ResourceVulnerability. :type system_tags: dict(str, dict(str, object)) �strZdatetimezlist[PackageDetail]zdict(str, str)zdict(str, dict(str, object))) �id�description� risk_level�url�time_first_detected�time_last_detected�time_published�time_last_modified� cvss_score�package_details� freeform_tags�defined_tags�system_tagsr r Z riskLevelr ZtimeFirstDetectedZtimeLastDetectedZ timePublishedZtimeLastModifiedZ cvssScoreZpackageDetailsZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_description�_risk_level�_url�_time_first_detected�_time_last_detected�_time_published�_time_last_modified�_cvss_score�_package_details�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� r* �Q/usr/lib/python3.9/site-packages/oci/cloud_guard/models/resource_vulnerability.py�__init__* sR =��zResourceVulnerability.__init__c C s | j S )z� **[Required]** Gets the id of this ResourceVulnerability. The cve id of the vulnerability :return: The id of this ResourceVulnerability. :rtype: str �r �r( r* r* r+ r � s zResourceVulnerability.idc C s || _ dS )z� Sets the id of this ResourceVulnerability. The cve id of the vulnerability :param id: The id of this ResourceVulnerability. :type: str Nr- )r( r r* r* r+ r � s c C s | j S )z� **[Required]** Gets the description of this ResourceVulnerability. The description of the vulnerability :return: The description of this ResourceVulnerability. :rtype: str �r r. r* r* r+ r � s z!ResourceVulnerability.descriptionc C s || _ dS )z� Sets the description of this ResourceVulnerability. The description of the vulnerability :param description: The description of this ResourceVulnerability. :type: str Nr/ )r( r r* r* r+ r � s c C s | j S )a� **[Required]** Gets the risk_level of this ResourceVulnerability. The Risk Level Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR", "NONE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The risk_level of this ResourceVulnerability. :rtype: str )r r. r* r* r+ r � s z ResourceVulnerability.risk_levelc C s g d�}t ||�sd}|| _dS )z� Sets the risk_level of this ResourceVulnerability. The Risk Level :param risk_level: The risk_level of this ResourceVulnerability. :type: str )r r r r r r ZUNKNOWN_ENUM_VALUEN)r r )r( r Zallowed_valuesr* r* r+ r � s c C s | j S )z� Gets the url of this ResourceVulnerability. URL of the CVE :return: The url of this ResourceVulnerability. :rtype: str �r r. r* r* r+ r � s zResourceVulnerability.urlc C s || _ dS )z� Sets the url of this ResourceVulnerability. URL of the CVE :param url: The url of this ResourceVulnerability. :type: str Nr0 )r( r r* r* r+ r � s c C s | j S )z� Gets the time_first_detected of this ResourceVulnerability. First detected time :return: The time_first_detected of this ResourceVulnerability. :rtype: datetime �r r. r* r* r+ r � s z)ResourceVulnerability.time_first_detectedc C s || _ dS )z� Sets the time_first_detected of this ResourceVulnerability. First detected time :param time_first_detected: The time_first_detected of this ResourceVulnerability. :type: datetime Nr1 )r( r r* r* r+ r s c C s | j S )z� Gets the time_last_detected of this ResourceVulnerability. First detected time :return: The time_last_detected of this ResourceVulnerability. :rtype: datetime �r r. r* r* r+ r s z(ResourceVulnerability.time_last_detectedc C s || _ dS )z� Sets the time_last_detected of this ResourceVulnerability. First detected time :param time_last_detected: The time_last_detected of this ResourceVulnerability. :type: datetime Nr2 )r( r r* r* r+ r s c C s | j S )z� Gets the time_published of this ResourceVulnerability. Time the vulnerability was published :return: The time_published of this ResourceVulnerability. :rtype: datetime �r! r. r* r* r+ r * s z$ResourceVulnerability.time_publishedc C s || _ dS )z� Sets the time_published of this ResourceVulnerability. Time the vulnerability was published :param time_published: The time_published of this ResourceVulnerability. :type: datetime Nr3 )r( r r* r* r+ r 6 s c C s | j S )z� Gets the time_last_modified of this ResourceVulnerability. Time the vulnerability was last modified :return: The time_last_modified of this ResourceVulnerability. :rtype: datetime �r"