ruạṛ
a O��f�K � @ 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 dZ d Zd ZdZ dZd ZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Z e jd1d0� �Z ed2d3� �Z!e!jd4d3� �Z!ed5d6� �Z"e"jd7d6� �Z"ed8d9� �Z#e#jd:d9� �Z#ed;d<� �Z$e$jd=d<� �Z$d>d?� Z%d@dA� Z&dBdC� Z'dDS )E� Vulnerabilityz; A vulnerability found from scans in a compartment �NONE�LOW�MEDIUM�HIGH�CRITICAL�OPEN�FIXED�NOT_APPLICABLE�CVE�PROBLEM�CREATING�UPDATING�ACTIVE�DELETING�DELETED�FAILEDc K s� ddddddddddddddd�| _ dddd d ddd ddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _dS )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 compartment_id: The value to assign to the compartment_id property of this Vulnerability. :type compartment_id: str :param authentication: The value to assign to the authentication property of this Vulnerability. :type authentication: str :param vulnerability_reference: The value to assign to the vulnerability_reference property of this Vulnerability. :type vulnerability_reference: str :param cve_details: The value to assign to the cve_details property of this Vulnerability. :type cve_details: oci.vulnerability_scanning.models.CveDetails :param severity: The value to assign to the severity property of this Vulnerability. Allowed values for this property are: "NONE", "LOW", "MEDIUM", "HIGH", "CRITICAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type severity: str :param state: The value to assign to the state property of this Vulnerability. Allowed values for this property are: "OPEN", "FIXED", "NOT_APPLICABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type state: str :param cve_description: The value to assign to the cve_description property of this Vulnerability. :type cve_description: str :param name: The value to assign to the name property of this Vulnerability. :type name: str :param time_last_detected: The value to assign to the time_last_detected property of this Vulnerability. :type time_last_detected: datetime :param time_first_detected: The value to assign to the time_first_detected property of this Vulnerability. :type time_first_detected: datetime :param impacted_resources_count: The value to assign to the impacted_resources_count property of this Vulnerability. :type impacted_resources_count: oci.vulnerability_scanning.models.ImpactedResourcesCount :param vulnerability_type: The value to assign to the vulnerability_type property of this Vulnerability. Allowed values for this property are: "CVE", "PROBLEM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type vulnerability_type: str :param lifecycle_state: The value to assign to the lifecycle_state property of this Vulnerability. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str �str� CveDetails�datetime�ImpactedResourcesCount)�id�compartment_id�authentication�vulnerability_reference�cve_details�severity�state�cve_description�name�time_last_detected�time_first_detected�impacted_resources_count�vulnerability_type�lifecycle_stater � compartmentIdr �vulnerabilityReference� cveDetailsr r! �cveDescriptionr# �timeLastDetected�timeFirstDetected�impactedResourcesCount�vulnerabilityType�lifecycleStateN)� swagger_types� attribute_map�_id�_compartment_id�_authentication�_vulnerability_reference�_cve_details� _severity�_state�_cve_description�_name�_time_last_detected�_time_first_detected�_impacted_resources_count�_vulnerability_type�_lifecycle_state)�self�kwargs� rD ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/vulnerability_scanning/models/vulnerability.py�__init__P sX G��zVulnerability.__init__c C s | j S )z� **[Required]** Gets the id of this Vulnerability. ID of the vulnerability :return: The id of this Vulnerability. :rtype: str �r4 �rB rD rD rE r � s zVulnerability.idc C s || _ dS )z� Sets the id of this Vulnerability. ID of the vulnerability :param id: The id of this Vulnerability. :type: str NrG )rB r rD rD rE r � s c C s | j S )a4 **[Required]** Gets the compartment_id of this Vulnerability. Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments, based on scan target location :return: The compartment_id of this Vulnerability. :rtype: str �r5 rH rD rD rE r � s zVulnerability.compartment_idc C s || _ dS )a2 Sets the compartment_id of this Vulnerability. Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments, based on scan target location :param compartment_id: The compartment_id of this Vulnerability. :type: str NrI )rB r rD rD rE r � s c C s | j S )z� Gets the authentication of this Vulnerability. Mechanism used for scan authentication :return: The authentication of this Vulnerability. :rtype: str �r6 rH rD rD rE r � s zVulnerability.authenticationc C s || _ dS )z� Sets the authentication of this Vulnerability. Mechanism used for scan authentication :param authentication: The authentication of this Vulnerability. :type: str NrJ )rB r rD rD rE r s c C s | j S )a Gets the vulnerability_reference of this Vulnerability. Reference to the vulnerability type's unique identifier. For CVE, this is the MITRE CVE ID :return: The vulnerability_reference of this Vulnerability. :rtype: str �r7 rH rD rD rE r s z%Vulnerability.vulnerability_referencec C s || _ dS )a Sets the vulnerability_reference of this Vulnerability. Reference to the vulnerability type's unique identifier. For CVE, this is the MITRE CVE ID :param vulnerability_reference: The vulnerability_reference of this Vulnerability. :type: str NrK )rB r rD rD rE r s c C s | j S )z� Gets the cve_details of this Vulnerability. :return: The cve_details of this Vulnerability. :rtype: oci.vulnerability_scanning.models.CveDetails �r8 rH rD rD rE r ' s zVulnerability.cve_detailsc C s || _ dS )z� Sets the cve_details of this Vulnerability. :param cve_details: The cve_details of this Vulnerability. :type: oci.vulnerability_scanning.models.CveDetails NrL )rB r rD rD rE r 1 s c C s | j S )a� **[Required]** Gets the severity of this Vulnerability. Severity of the vulnerability Allowed values for this property are: "NONE", "LOW", "MEDIUM", "HIGH", "CRITICAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The severity of this Vulnerability. :rtype: str )r9 rH rD rD rE r ; s zVulnerability.severityc C s g d�}t ||�sd}|| _dS )z� Sets the severity of this Vulnerability. Severity of the vulnerability :param severity: The severity of this Vulnerability. :type: str )r r r r r �UNKNOWN_ENUM_VALUEN)r r9 )rB r �allowed_valuesrD rD rE r J s c C s | j S )ah Gets the state of this Vulnerability. State of the vulnerability Allowed values for this property are: "OPEN", "FIXED", "NOT_APPLICABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The state of this Vulnerability. :rtype: str )r: rH rD rD rE r! Y s zVulnerability.statec C s g d�}t ||�sd}|| _dS )z� Sets the state of this Vulnerability. State of the vulnerability :param state: The state of this Vulnerability. :type: str )r r r rM N)r r: )rB r! rN rD rD rE r! h s c C s | j S )z� Gets the cve_description of this Vulnerability. The description of CVE vulnerability :return: The cve_description of this Vulnerability. :rtype: str �r; rH rD rD rE r"