ruạṛ
a ���f2� � @ 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 ZdZdZdZdZd ZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jd d� �Z ed!d"� �Z!e!jd#d"� �Z!ed$d%� �Z"e"jd&d%� �Z"ed'd(� �Z#e#jd)d(� �Z#ed*d+� �Z$e$jd,d+� �Z$ed-d.� �Z%e%jd/d.� �Z%ed0d1� �Z&e&jd2d1� �Z&ed3d4� �Z'e'jd5d4� �Z'ed6d7� �Z(e(jd8d7� �Z(ed9d:� �Z)e)jd;d:� �Z)ed<d=� �Z*e*jd>d=� �Z*ed?d@� �Z+e+jdAd@� �Z+edBdC� �Z,e,jdDdC� �Z,edEdF� �Z-e-jdGdF� �Z-edHdI� �Z.e.jdJdI� �Z.edKdL� �Z/e/jdMdL� �Z/edNdO� �Z0e0jdPdO� �Z0edQdR� �Z1e1jdSdR� �Z1edTdU� �Z2e2jdVdU� �Z2edWdX� �Z3e3jdYdX� �Z3edZd[� �Z4e4jd\d[� �Z4ed]d^� �Z5e5jd_d^� �Z5d`da� Z6dbdc� Z7ddde� Z8dfS )g�VulnerabilityAudita� A vulnerability audit associates the application dependencies of a project with their associated Vulnerabilities. Each Vulnerability is associated with a score (Common Vulnerability Scoring System V2 or V3). A vulnerable application dependency can be ignored based on the configuration of the vulnerability audit. maxObservedCvssV2Score, maxObservedCvssV3Score and vulnerableArtifactsCount do not take into account non-vulnerable application dependency. �ACTIVE�CREATING�DELETED�DELETING�FAILED�&USAGE_DATA_NOT_FOUND_OR_NOT_AUTHORIZED�USAGE_DATA_PARSE_FAILED�)USAGE_DATA_COMPRESSED_SIZE_LIMIT_EXCEEDED�+USAGE_DATA_UNCOMPRESSED_SIZE_LIMIT_EXCEEDED�USAGE_DATA_UNKNOWN_ERROR�NONE�LOW�MEDIUM�HIGH�CRITICAL�MAVEN�UNSETc K s ddddddddddddddddddddd dd ddd�| _ d ddddddddddddddddddd 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&| _d&| _d&S )'a� Initializes a new VulnerabilityAudit 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 VulnerabilityAudit. :type id: str :param display_name: The value to assign to the display_name property of this VulnerabilityAudit. :type display_name: str :param knowledge_base_id: The value to assign to the knowledge_base_id property of this VulnerabilityAudit. :type knowledge_base_id: str :param time_created: The value to assign to the time_created property of this VulnerabilityAudit. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this VulnerabilityAudit. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this VulnerabilityAudit. Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this VulnerabilityAudit. Allowed values for this property are: "USAGE_DATA_NOT_FOUND_OR_NOT_AUTHORIZED", "USAGE_DATA_PARSE_FAILED", "USAGE_DATA_COMPRESSED_SIZE_LIMIT_EXCEEDED", "USAGE_DATA_UNCOMPRESSED_SIZE_LIMIT_EXCEEDED", "USAGE_DATA_UNKNOWN_ERROR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_details: str :param vulnerabilities: The value to assign to the vulnerabilities property of this VulnerabilityAudit. :type vulnerabilities: list[oci.adm.models.Vulnerability] :param max_observed_cvss_v2_score: The value to assign to the max_observed_cvss_v2_score property of this VulnerabilityAudit. :type max_observed_cvss_v2_score: float :param max_observed_cvss_v3_score: The value to assign to the max_observed_cvss_v3_score property of this VulnerabilityAudit. :type max_observed_cvss_v3_score: float :param max_observed_severity: The value to assign to the max_observed_severity property of this VulnerabilityAudit. 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 max_observed_severity: str :param max_observed_cvss_v2_score_with_ignored: The value to assign to the max_observed_cvss_v2_score_with_ignored property of this VulnerabilityAudit. :type max_observed_cvss_v2_score_with_ignored: float :param max_observed_cvss_v3_score_with_ignored: The value to assign to the max_observed_cvss_v3_score_with_ignored property of this VulnerabilityAudit. :type max_observed_cvss_v3_score_with_ignored: float :param max_observed_severity_with_ignored: The value to assign to the max_observed_severity_with_ignored property of this VulnerabilityAudit. 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 max_observed_severity_with_ignored: str :param vulnerable_artifacts_count_with_ignored: The value to assign to the vulnerable_artifacts_count_with_ignored property of this VulnerabilityAudit. :type vulnerable_artifacts_count_with_ignored: int :param vulnerable_artifacts_count: The value to assign to the vulnerable_artifacts_count property of this VulnerabilityAudit. :type vulnerable_artifacts_count: int :param configuration: The value to assign to the configuration property of this VulnerabilityAudit. :type configuration: oci.adm.models.VulnerabilityAuditConfiguration :param usage_data: The value to assign to the usage_data property of this VulnerabilityAudit. :type usage_data: oci.adm.models.UsageDataDetails :param is_success: The value to assign to the is_success property of this VulnerabilityAudit. :type is_success: bool :param build_type: The value to assign to the build_type property of this VulnerabilityAudit. Allowed values for this property are: "MAVEN", "UNSET", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type build_type: str :param source: The value to assign to the source property of this VulnerabilityAudit. :type source: oci.adm.models.VulnerabilityAuditSource :param compartment_id: The value to assign to the compartment_id property of this VulnerabilityAudit. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this VulnerabilityAudit. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this VulnerabilityAudit. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this VulnerabilityAudit. :type system_tags: dict(str, dict(str, object)) �strZdatetimezlist[Vulnerability]�float�intZVulnerabilityAuditConfigurationZUsageDataDetails�boolZVulnerabilityAuditSourcezdict(str, str)zdict(str, dict(str, object)))�id�display_name�knowledge_base_id�time_created�time_updated�lifecycle_state�lifecycle_details�vulnerabilities�max_observed_cvss_v2_score�max_observed_cvss_v3_score�max_observed_severity�'max_observed_cvss_v2_score_with_ignored�'max_observed_cvss_v3_score_with_ignored�"max_observed_severity_with_ignored�'vulnerable_artifacts_count_with_ignored�vulnerable_artifacts_count� configuration� usage_data� is_success� build_type�source�compartment_id� freeform_tags�defined_tags�system_tagsr ZdisplayNameZknowledgeBaseIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsr# ZmaxObservedCvssV2ScoreZmaxObservedCvssV3ScoreZmaxObservedSeverityZ!maxObservedCvssV2ScoreWithIgnoredZ!maxObservedCvssV3ScoreWithIgnoredZmaxObservedSeverityWithIgnoredZ#vulnerableArtifactsCountWithIgnoredZvulnerableArtifactsCountr, Z usageDataZ isSuccessZ buildTyper0 Z compartmentIdZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id� _display_name�_knowledge_base_id� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_vulnerabilities�_max_observed_cvss_v2_score�_max_observed_cvss_v3_score�_max_observed_severity�(_max_observed_cvss_v2_score_with_ignored�(_max_observed_cvss_v3_score_with_ignored�#_max_observed_severity_with_ignored�(_vulnerable_artifacts_count_with_ignored�_vulnerable_artifacts_count�_configuration�_usage_data�_is_success�_build_type�_source�_compartment_id�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rP �F/usr/lib/python3.9/site-packages/oci/adm/models/vulnerability_audit.py�__init__m s� u��zVulnerabilityAudit.__init__c C s | j S )a0 **[Required]** Gets the id of this VulnerabilityAudit. The Oracle Cloud identifier (`OCID`__) of the vulnerability audit. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this VulnerabilityAudit. :rtype: str �r5 �rN rP rP rQ r 3 s zVulnerabilityAudit.idc C s || _ dS )a" Sets the id of this VulnerabilityAudit. The Oracle Cloud identifier (`OCID`__) of the vulnerability audit. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this VulnerabilityAudit. :type: str NrS )rN r rP rP rQ r A s c C s | j S )z� Gets the display_name of this VulnerabilityAudit. The name of the vulnerability audit. :return: The display_name of this VulnerabilityAudit. :rtype: str �r6 rT rP rP rQ r O s zVulnerabilityAudit.display_namec C s || _ dS )z� Sets the display_name of this VulnerabilityAudit. The name of the vulnerability audit. :param display_name: The display_name of this VulnerabilityAudit. :type: str NrU )rN r rP rP rQ r [ s c C s | j S )aI **[Required]** Gets the knowledge_base_id of this VulnerabilityAudit. The Oracle Cloud identifier (`OCID`__) of the knowledge base. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The knowledge_base_id of this VulnerabilityAudit. :rtype: str �r7 rT rP rP rQ r g s z$VulnerabilityAudit.knowledge_base_idc C s || _ dS )aJ Sets the knowledge_base_id of this VulnerabilityAudit. The Oracle Cloud identifier (`OCID`__) of the knowledge base. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param knowledge_base_id: The knowledge_base_id of this VulnerabilityAudit. :type: str NrV )rN r rP rP rQ r u s c C s | j S )aI **[Required]** Gets the time_created of this VulnerabilityAudit. The creation date and time of the vulnerability audit (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_created of this VulnerabilityAudit. :rtype: datetime �r8 rT rP rP rQ r � s zVulnerabilityAudit.time_createdc C s || _ dS )aE Sets the time_created of this VulnerabilityAudit. The creation date and time of the vulnerability audit (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_created: The time_created of this VulnerabilityAudit. :type: datetime NrW )rN r rP rP rQ r � s c C s | j S )aG **[Required]** Gets the time_updated of this VulnerabilityAudit. The update date and time of the vulnerability audit (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_updated of this VulnerabilityAudit. :rtype: datetime �r9 rT rP rP rQ r � s zVulnerabilityAudit.time_updatedc C s || _ dS )aC Sets the time_updated of this VulnerabilityAudit. The update date and time of the vulnerability audit (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_updated: The time_updated of this VulnerabilityAudit. :type: datetime NrX )rN r rP rP rQ r � s c C s | j S )a� **[Required]** Gets the lifecycle_state of this VulnerabilityAudit. The current lifecycle state of the vulnerability audit. Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "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 VulnerabilityAudit. :rtype: str )r: rT rP rP rQ r! � s z"VulnerabilityAudit.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this VulnerabilityAudit. The current lifecycle state of the vulnerability audit. :param lifecycle_state: The lifecycle_state of this VulnerabilityAudit. :type: str )r r r r r �UNKNOWN_ENUM_VALUEN)r r: )rN r! �allowed_valuesrP rP rQ r! � s c C s | j S )a) Gets the lifecycle_details of this VulnerabilityAudit. Details on the lifecycle state. Allowed values for this property are: "USAGE_DATA_NOT_FOUND_OR_NOT_AUTHORIZED", "USAGE_DATA_PARSE_FAILED", "USAGE_DATA_COMPRESSED_SIZE_LIMIT_EXCEEDED", "USAGE_DATA_UNCOMPRESSED_SIZE_LIMIT_EXCEEDED", "USAGE_DATA_UNKNOWN_ERROR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_details of this VulnerabilityAudit. :rtype: str )r; rT rP rP rQ r"