ruạṛ
a N��fz � @ 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 @ sD e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Z e jd3d2� �Z ed4d5� �Z!e!jd6d5� �Z!ed7d8� �Z"e"jd9d8� �Z"ed:d;� �Z#e#jd<d;� �Z#ed=d>� �Z$e$jd?d>� �Z$ed@dA� �Z%e%jdBdA� �Z%edCdD� �Z&e&jdEdD� �Z&edFdG� �Z'e'jdHdG� �Z'edIdJ� �Z(e(jdKdJ� �Z(edLdM� �Z)e)jdNdM� �Z)edOdP� �Z*e*jdQdP� �Z*edRdS� �Z+e+jdTdS� �Z+edUdV� �Z,e,jdWdV� �Z,edXdY� �Z-e-jdZdY� �Z-ed[d\� �Z.e.jd]d\� �Z.ed^d_� �Z/e/jd`d_� �Z/edadb� �Z0e0jdcdb� �Z0eddde� �Z1e1jdfde� �Z1dgdh� Z2didj� Z3dkdl� Z4dmS )n�Problemz Problem Definition. �CRITICAL�HIGH�MEDIUM�LOW�MINOR�ACTIVE�INACTIVE�OPEN�RESOLVED� DISMISSED�DELETED�IAAS_ACTIVITY_DETECTOR�IAAS_CONFIGURATION_DETECTOR�IAAS_THREAT_DETECTOR�IAAS_LOG_INSIGHT_DETECTORc K s, ddddddddddddddddddddddddddddd�| _ dd d ddd 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$| _d$S )%a{ Initializes a new Problem 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 Problem. :type id: str :param compartment_id: The value to assign to the compartment_id property of this Problem. :type compartment_id: str :param detector_rule_id: The value to assign to the detector_rule_id property of this Problem. :type detector_rule_id: str :param region: The value to assign to the region property of this Problem. :type region: str :param regions: The value to assign to the regions property of this Problem. :type regions: list[str] :param risk_level: The value to assign to the risk_level property of this Problem. Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type risk_level: str :param risk_score: The value to assign to the risk_score property of this Problem. :type risk_score: float :param peak_risk_score_date: The value to assign to the peak_risk_score_date property of this Problem. :type peak_risk_score_date: str :param peak_risk_score: The value to assign to the peak_risk_score property of this Problem. :type peak_risk_score: float :param auto_resolve_date: The value to assign to the auto_resolve_date property of this Problem. :type auto_resolve_date: str :param peak_risk_score_lookup_period_in_days: The value to assign to the peak_risk_score_lookup_period_in_days property of this Problem. :type peak_risk_score_lookup_period_in_days: int :param resource_id: The value to assign to the resource_id property of this Problem. :type resource_id: str :param resource_name: The value to assign to the resource_name property of this Problem. :type resource_name: str :param resource_type: The value to assign to the resource_type property of this Problem. :type resource_type: str :param labels: The value to assign to the labels property of this Problem. :type labels: list[str] :param time_last_detected: The value to assign to the time_last_detected property of this Problem. :type time_last_detected: datetime :param time_first_detected: The value to assign to the time_first_detected property of this Problem. :type time_first_detected: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this Problem. Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_detail: The value to assign to the lifecycle_detail property of this Problem. Allowed values for this property are: "OPEN", "RESOLVED", "DISMISSED", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_detail: str :param detector_id: The value to assign to the detector_id property of this Problem. Allowed values for this property are: "IAAS_ACTIVITY_DETECTOR", "IAAS_CONFIGURATION_DETECTOR", "IAAS_THREAT_DETECTOR", "IAAS_LOG_INSIGHT_DETECTOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type detector_id: str :param target_id: The value to assign to the target_id property of this Problem. :type target_id: str :param additional_details: The value to assign to the additional_details property of this Problem. :type additional_details: dict(str, str) :param description: The value to assign to the description property of this Problem. :type description: str :param recommendation: The value to assign to the recommendation property of this Problem. :type recommendation: str :param comment: The value to assign to the comment property of this Problem. :type comment: str :param impacted_resource_id: The value to assign to the impacted_resource_id property of this Problem. :type impacted_resource_id: str :param impacted_resource_name: The value to assign to the impacted_resource_name property of this Problem. :type impacted_resource_name: str :param impacted_resource_type: The value to assign to the impacted_resource_type property of this Problem. :type impacted_resource_type: str �strz list[str]�float�int�datetimezdict(str, str))�id�compartment_id�detector_rule_id�region�regions� risk_level� risk_score�peak_risk_score_date�peak_risk_score�auto_resolve_date�%peak_risk_score_lookup_period_in_days�resource_id� resource_name� resource_type�labels�time_last_detected�time_first_detected�lifecycle_state�lifecycle_detail�detector_id� target_id�additional_details�description�recommendation�comment�impacted_resource_id�impacted_resource_name�impacted_resource_typer � compartmentId�detectorRuleIdr r � riskLevel� riskScore�peakRiskScoreDate� peakRiskScore�autoResolveDate�peakRiskScoreLookupPeriodInDays� resourceId�resourceName�resourceTyper( �timeLastDetected�timeFirstDetected�lifecycleState�lifecycleDetail� detectorId�targetId�additionalDetailsr0 r1 r2 �impactedResourceId�impactedResourceName�impactedResourceTypeN)� swagger_types� attribute_map�_id�_compartment_id�_detector_rule_id�_region�_regions�_risk_level�_risk_score�_peak_risk_score_date�_peak_risk_score�_auto_resolve_date�&_peak_risk_score_lookup_period_in_days�_resource_id�_resource_name�_resource_type�_labels�_time_last_detected�_time_first_detected�_lifecycle_state�_lifecycle_detail�_detector_id� _target_id�_additional_details�_description�_recommendation�_comment�_impacted_resource_id�_impacted_resource_name�_impacted_resource_type)�self�kwargs� rk ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/cloud_guard/models/problem.py�__init__L s� � �zProblem.__init__c C s | j S )z� **[Required]** Gets the id of this Problem. Unique identifier that is immutable on creation :return: The id of this Problem. :rtype: str �rM �ri rk rk rl r % s z Problem.idc C s || _ dS )z� Sets the id of this Problem. Unique identifier that is immutable on creation :param id: The id of this Problem. :type: str Nrn )ri r rk rk rl r 1 s c C s | j S )z� **[Required]** Gets the compartment_id of this Problem. Compartment Identifier where the resource is created :return: The compartment_id of this Problem. :rtype: str �rN ro rk rk rl r = s zProblem.compartment_idc C s || _ dS )z� Sets the compartment_id of this Problem. Compartment Identifier where the resource is created :param compartment_id: The compartment_id of this Problem. :type: str Nrp )ri r rk rk rl r I s c C s | j S )z� Gets the detector_rule_id of this Problem. Identifier of the rule :return: The detector_rule_id of this Problem. :rtype: str �rO ro rk rk rl r U s zProblem.detector_rule_idc C s || _ dS )z� Sets the detector_rule_id of this Problem. Identifier of the rule :param detector_rule_id: The detector_rule_id of this Problem. :type: str Nrq )ri r rk rk rl r a s c C s | j S )z� Gets the region of this Problem. DEPRECATED :return: The region of this Problem. :rtype: str �rP ro rk rk rl r m s zProblem.regionc C s || _ dS )z� Sets the region of this Problem. DEPRECATED :param region: The region of this Problem. :type: str Nrr )ri r rk rk rl r y s c C s | j S )z� Gets the regions of this Problem. Regions where the problem is found :return: The regions of this Problem. :rtype: list[str] �rQ ro rk rk rl r � s zProblem.regionsc C s || _ dS )z� Sets the regions of this Problem. Regions where the problem is found :param regions: The regions of this Problem. :type: list[str] Nrs )ri r rk rk rl r � s c C s | j S )ae Gets the risk_level of this Problem. The Risk Level Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "MINOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The risk_level of this Problem. :rtype: str )rR ro rk rk rl r � s zProblem.risk_levelc C s g d�}t ||�sd}|| _dS )z� Sets the risk_level of this Problem. The Risk Level :param risk_level: The risk_level of this Problem. :type: str )r r r r r �UNKNOWN_ENUM_VALUEN)r rR )ri r �allowed_valuesrk rk rl r � s c C s | j S )z� Gets the risk_score of this Problem. Risk Score for the problem :return: The risk_score of this Problem. :rtype: float �rS ro rk rk rl r � s zProblem.risk_scorec C s || _ dS )z� Sets the risk_score of this Problem. Risk Score for the problem :param risk_score: The risk_score of this Problem. :type: float Nrv )ri r rk rk rl r � s c C s | j S )z� Gets the peak_risk_score_date of this Problem. The date and time for the peak risk score that is observed. Format defined by RFC3339. :return: The peak_risk_score_date of this Problem. :rtype: str �rT ro rk rk rl r! � s zProblem.peak_risk_score_datec C s || _ dS )a Sets the peak_risk_score_date of this Problem. The date and time for the peak risk score that is observed. Format defined by RFC3339. :param peak_risk_score_date: The peak_risk_score_date of this Problem. :type: str Nrw )ri r! rk rk rl r! � s c C s | j S )z� Gets the peak_risk_score of this Problem. Peak risk score for the problem :return: The peak_risk_score of this Problem. :rtype: float �rU ro rk rk rl r"