ruạṛ
a ���f�i � @ 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 ZdZd Zd Zdd� Zedd� �Zejdd� �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*dPdQ� Z+dRdS� Z,dTdU� Z-dVS )W�AlertSummaryz' Summary of a Data Safe Alert. �OPEN�CLOSED�CRITICAL�HIGH�MEDIUM�LOW�EVALUATE� SUCCEEDED�FAILED�AUDITING�SECURITY_ASSESSMENT�USER_ASSESSMENT�UPDATINGc K s� dddddddddddddddddddddd�| _ ddd d ddd ddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )a Initializes a new AlertSummary 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 AlertSummary. :type id: str :param status: The value to assign to the status property of this AlertSummary. Allowed values for this property are: "OPEN", "CLOSED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param display_name: The value to assign to the display_name property of this AlertSummary. :type display_name: str :param description: The value to assign to the description property of this AlertSummary. :type description: str :param severity: The value to assign to the severity property of this AlertSummary. Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "EVALUATE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type severity: str :param operation_time: The value to assign to the operation_time property of this AlertSummary. :type operation_time: datetime :param operation: The value to assign to the operation property of this AlertSummary. :type operation: str :param operation_status: The value to assign to the operation_status property of this AlertSummary. Allowed values for this property are: "SUCCEEDED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_status: str :param target_ids: The value to assign to the target_ids property of this AlertSummary. :type target_ids: list[str] :param target_names: The value to assign to the target_names property of this AlertSummary. :type target_names: list[str] :param policy_id: The value to assign to the policy_id property of this AlertSummary. :type policy_id: str :param alert_type: The value to assign to the alert_type property of this AlertSummary. Allowed values for this property are: "AUDITING", "SECURITY_ASSESSMENT", "USER_ASSESSMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type alert_type: str :param compartment_id: The value to assign to the compartment_id property of this AlertSummary. :type compartment_id: str :param time_created: The value to assign to the time_created property of this AlertSummary. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this AlertSummary. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this AlertSummary. Allowed values for this property are: "UPDATING", "SUCCEEDED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param alert_policy_rule_key: The value to assign to the alert_policy_rule_key property of this AlertSummary. :type alert_policy_rule_key: str :param alert_policy_rule_name: The value to assign to the alert_policy_rule_name property of this AlertSummary. :type alert_policy_rule_name: str :param feature_details: The value to assign to the feature_details property of this AlertSummary. :type feature_details: dict(str, dict(str, object)) :param freeform_tags: The value to assign to the freeform_tags property of this AlertSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this AlertSummary. :type defined_tags: dict(str, dict(str, object)) �strZdatetimez list[str]zdict(str, dict(str, object))zdict(str, str))�id�status�display_name�description�severity�operation_time� operation�operation_status� target_ids�target_names� policy_id� alert_type�compartment_id�time_created�time_updated�lifecycle_state�alert_policy_rule_key�alert_policy_rule_name�feature_details� freeform_tags�defined_tagsr r ZdisplayNamer r Z operationTimer ZoperationStatusZ targetIdsZtargetNamesZpolicyIdZ alertTypeZ compartmentIdZtimeCreatedZtimeUpdatedZlifecycleStateZalertPolicyRuleKeyZalertPolicyRuleNameZfeatureDetailsZfreeformTagsZdefinedTagsN)Z swagger_typesZ attribute_map�_id�_status� _display_name�_description� _severity�_operation_time� _operation�_operation_status�_target_ids� _target_names� _policy_id�_alert_type�_compartment_id� _time_created� _time_updated�_lifecycle_state�_alert_policy_rule_key�_alert_policy_rule_name�_feature_details�_freeform_tags� _defined_tags)�self�kwargs� rA �F/usr/lib/python3.9/site-packages/oci/data_safe/models/alert_summary.py�__init__N s� e��zAlertSummary.__init__c C s | j S )z� **[Required]** Gets the id of this AlertSummary. The OCID of the alert. :return: The id of this AlertSummary. :rtype: str �r* �r? rA rA rB r � s zAlertSummary.idc C s || _ dS )z� Sets the id of this AlertSummary. The OCID of the alert. :param id: The id of this AlertSummary. :type: str NrD )r? r rA rA rB r s c C s | j S )ad **[Required]** Gets the status of this AlertSummary. The status of the alert. Allowed values for this property are: "OPEN", "CLOSED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this AlertSummary. :rtype: str )r+ rE rA rA rB r s zAlertSummary.statusc C s ddg}t ||�sd}|| _dS )z� Sets the status of this AlertSummary. The status of the alert. :param status: The status of this AlertSummary. :type: str r r �UNKNOWN_ENUM_VALUEN)r r+ )r? r �allowed_valuesrA rA rB r s c C s | j S )z� **[Required]** Gets the display_name of this AlertSummary. The display name of the alert. :return: The display_name of this AlertSummary. :rtype: str �r, rE rA rA rB r . s zAlertSummary.display_namec C s || _ dS )z� Sets the display_name of this AlertSummary. The display name of the alert. :param display_name: The display_name of this AlertSummary. :type: str NrH )r? r rA rA rB r : s c C s | j S )z� Gets the description of this AlertSummary. The details of the alert. :return: The description of this AlertSummary. :rtype: str �r- rE rA rA rB r F s zAlertSummary.descriptionc C s || _ dS )z� Sets the description of this AlertSummary. The details of the alert. :param description: The description of this AlertSummary. :type: str NrI )r? r rA rA rB r R s c C s | j S )a� **[Required]** Gets the severity of this AlertSummary. Severity level of the alert. Allowed values for this property are: "CRITICAL", "HIGH", "MEDIUM", "LOW", "EVALUATE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The severity of this AlertSummary. :rtype: str )r. rE rA rA rB r ^ s zAlertSummary.severityc C s g d�}t ||�sd}|| _dS )z� Sets the severity of this AlertSummary. Severity level of the alert. :param severity: The severity of this AlertSummary. :type: str )r r r r r rF N)r r. )r? r rG rA rA rB r m s c C s | j S )a0 Gets the operation_time of this AlertSummary. Creation date and time of the operation that triggered alert, in the format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :return: The operation_time of this AlertSummary. :rtype: datetime �r/ rE rA rA rB r | s zAlertSummary.operation_timec C s || _ dS )a= Sets the operation_time of this AlertSummary. Creation date and time of the operation that triggered alert, in the format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :param operation_time: The operation_time of this AlertSummary. :type: datetime NrJ )r? r rA rA rB r � s c C s | j S )z� Gets the operation of this AlertSummary. The operation that triggered alert. :return: The operation of this AlertSummary. :rtype: str �r0 rE rA rA rB r � s zAlertSummary.operationc C s || _ dS )z� Sets the operation of this AlertSummary. The operation that triggered alert. :param operation: The operation of this AlertSummary. :type: str NrK )r? r rA rA rB r � s c C s | j S )a� Gets the operation_status of this AlertSummary. The result of the operation (event) that triggered alert. Allowed values for this property are: "SUCCEEDED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The operation_status of this AlertSummary. :rtype: str )r1 rE rA rA rB r � s zAlertSummary.operation_statusc C s ddg}t ||�sd}|| _dS )z� Sets the operation_status of this AlertSummary. The result of the operation (event) that triggered alert. :param operation_status: The operation_status of this AlertSummary. :type: str r r rF N)r r1 )r? r rG rA rA rB r � s c C s | j S )z� Gets the target_ids of this AlertSummary. Array of OCIDs of the target database. :return: The target_ids of this AlertSummary. :rtype: list[str] �r2 rE rA rA rB r � s zAlertSummary.target_idsc C s || _ dS )z� Sets the target_ids of this AlertSummary. Array of OCIDs of the target database. :param target_ids: The target_ids of this AlertSummary. :type: list[str] NrL )r? r rA rA rB r � s c C s | j S )z� Gets the target_names of this AlertSummary. Array of names of the target database. :return: The target_names of this AlertSummary. :rtype: list[str] �r3 rE rA rA rB r � s zAlertSummary.target_namesc C s || _ dS )z� Sets the target_names of this AlertSummary. Array of names of the target database. :param target_names: The target_names of this AlertSummary. :type: list[str] NrM )r? r rA rA rB r � s c C s | j S )z� Gets the policy_id of this AlertSummary. The OCID of the policy that triggered alert. :return: The policy_id of this AlertSummary. :rtype: str �r4 rE rA rA rB r � s zAlertSummary.policy_idc C s || _ dS )z� Sets the policy_id of this AlertSummary. The OCID of the policy that triggered alert. :param policy_id: The policy_id of this AlertSummary. :type: str NrN )r? r rA rA rB r s c C s | j S )a� Gets the alert_type of this AlertSummary. Type of the alert. Indicates the Data Safe feature triggering the alert. Allowed values for this property are: "AUDITING", "SECURITY_ASSESSMENT", "USER_ASSESSMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The alert_type of this AlertSummary. :rtype: str )r5 rE rA rA rB r s zAlertSummary.alert_typec C s g d�}t ||�sd}|| _dS )z� Sets the alert_type of this AlertSummary. Type of the alert. Indicates the Data Safe feature triggering the alert. :param alert_type: The alert_type of this AlertSummary. :type: str )r r r rF N)r r5 )r? r rG rA rA rB r % s c C s | j S )z� **[Required]** Gets the compartment_id of this AlertSummary. The OCID of the compartment that contains the alert. :return: The compartment_id of this AlertSummary. :rtype: str �r6 rE rA rA rB r! 4 s zAlertSummary.compartment_idc C s || _ dS )z� Sets the compartment_id of this AlertSummary. The OCID of the compartment that contains the alert. :param compartment_id: The compartment_id of this AlertSummary. :type: str NrO )r? r! rA rA rB r! @ s c C s | j S )a" **[Required]** Gets the time_created of this AlertSummary. Creation date and time of the alert, in the format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this AlertSummary. :rtype: datetime �r7 rE rA rA rB r"