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 @ sb 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$ed>d?� �Z%e%jd@d?� �Z%edAdB� �Z&e&jdCdB� �Z&edDdE� �Z'e'jdFdE� �Z'edGdH� �Z(e(jdIdH� �Z(edJdK� �Z)e)jdLdK� �Z)edMdN� �Z*e*jdOdN� �Z*edPdQ� �Z+e+jdRdQ� �Z+edSdT� �Z,e,jdUdT� �Z,edVdW� �Z-e-jdXdW� �Z-edYdZ� �Z.e.jd[dZ� �Z.ed\d]� �Z/e/jd^d]� �Z/ed_d`� �Z0e0jdad`� �Z0edbdc� �Z1e1jdddc� �Z1ededf� �Z2e2jdgdf� �Z2edhdi� �Z3e3jdjdi� �Z3dkdl� Z4dmdn� Z5dodp� Z6dqS )r�Problemu� Problems are at the core of Cloud Guard’s functionality. A Problem resource is created whenever an action or a configuration on a resource triggers a rule in a detector that’s attached to the target containing the compartment where the resource is located. Each Problem resource contains all the details for a single problem. This is the information for the problem that appears on the Cloud Guard Problems page. �CRITICAL�HIGH�MEDIUM�LOW�MINOR�ACTIVE�INACTIVE�OPEN�RESOLVED� DISMISSED�DELETED�IAAS_ACTIVITY_DETECTOR�IAAS_CONFIGURATION_DETECTOR�IAAS_THREAT_DETECTOR�IAAS_LOG_INSIGHT_DETECTOR�IAAS_INSTANCE_SECURITY_DETECTORc K s6 dddddddddddddddddddddddddddddd�| _ d 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&| _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", "IAAS_INSTANCE_SECURITY_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 :param locks: The value to assign to the locks property of this Problem. :type locks: list[oci.cloud_guard.models.ResourceLock] �strz list[str]�float�intZdatetimezdict(str, str)zlist[ResourceLock])�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�locksr Z compartmentIdZdetectorRuleIdr r Z riskLevelZ riskScoreZpeakRiskScoreDateZ peakRiskScoreZautoResolveDateZpeakRiskScoreLookupPeriodInDaysZ resourceIdZresourceNameZresourceTyper( ZtimeLastDetectedZtimeFirstDetectedZlifecycleStateZlifecycleDetailZ detectorIdZtargetIdZadditionalDetailsr0 r1 r2 ZimpactedResourceIdZimpactedResourceNameZimpactedResourceTyper6 N)Z swagger_typesZ 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�_locks)�self�kwargs� rV �B/usr/lib/python3.9/site-packages/oci/cloud_guard/models/problem.py�__init__R s� �!� zProblem.__init__c C s | j S )z� **[Required]** Gets the id of this Problem. Unique identifier that can't be changed after creation :return: The id of this Problem. :rtype: str �r7 �rT rV rV rW r 2 s z Problem.idc C s || _ dS )z� Sets the id of this Problem. Unique identifier that can't be changed after creation :param id: The id of this Problem. :type: str NrY )rT r rV rV rW r > s c C s | j S )z� **[Required]** Gets the compartment_id of this Problem. Compartment OCID where the resource is created :return: The compartment_id of this Problem. :rtype: str �r8 rZ rV rV rW r J s zProblem.compartment_idc C s || _ dS )z� Sets the compartment_id of this Problem. Compartment OCID where the resource is created :param compartment_id: The compartment_id of this Problem. :type: str Nr[ )rT r rV rV rW r V s c C s | j S )z� Gets the detector_rule_id of this Problem. Unique identifier of the detector rule that triggered the problem :return: The detector_rule_id of this Problem. :rtype: str �r9 rZ rV rV rW r b s zProblem.detector_rule_idc C s || _ dS )z� Sets the detector_rule_id of this Problem. Unique identifier of the detector rule that triggered the problem :param detector_rule_id: The detector_rule_id of this Problem. :type: str Nr\ )rT r rV rV rW r n s c C s | j S )z� Gets the region of this Problem. DEPRECATED :return: The region of this Problem. :rtype: str �r: rZ rV rV rW r z s zProblem.regionc C s || _ dS )z� Sets the region of this Problem. DEPRECATED :param region: The region of this Problem. :type: str Nr] )rT r rV rV rW r � 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] �r; rZ rV rV rW 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] Nr^ )rT r rV rV rW r � s c C s | j S )au Gets the risk_level of this Problem. The risk level for the 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'. :return: The risk_level of this Problem. :rtype: str )r<