ruạṛ
a ���fr � @ 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*edPdQ� �Z+e+jdRdQ� �Z+edSdT� �Z,e,jdUdT� �Z,edVdW� �Z-e-jdXdW� �Z-dYdZ� Z.d[d\� Z/d]d^� Z0d_S )`�Alertz_ The details of a Data Safe Alert, that shows alerts generated by a Data Safe feature. �OPEN�CLOSED�CRITICAL�HIGH�MEDIUM�LOW�EVALUATE� SUCCEEDED�FAILED�AUDITING�SECURITY_ASSESSMENT�USER_ASSESSMENT�UPDATINGc K s ddddddddddddddddddddddddd�| _ ddd d ddd dddddddddddddddddd�| _d| _d| _d| _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 Alert 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 Alert. :type id: str :param status: The value to assign to the status property of this 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'. :type status: str :param severity: The value to assign to the severity property of this 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'. :type severity: str :param display_name: The value to assign to the display_name property of this Alert. :type display_name: str :param description: The value to assign to the description property of this Alert. :type description: str :param operation_time: The value to assign to the operation_time property of this Alert. :type operation_time: datetime :param operation: The value to assign to the operation property of this Alert. :type operation: str :param operation_status: The value to assign to the operation_status property of this 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'. :type operation_status: str :param target_ids: The value to assign to the target_ids property of this Alert. :type target_ids: list[str] :param target_names: The value to assign to the target_names property of this Alert. :type target_names: list[str] :param policy_id: The value to assign to the policy_id property of this Alert. :type policy_id: str :param alert_type: The value to assign to the alert_type property of this 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'. :type alert_type: str :param resource_name: The value to assign to the resource_name property of this Alert. :type resource_name: str :param feature_details: The value to assign to the feature_details property of this Alert. :type feature_details: dict(str, dict(str, object)) :param comment: The value to assign to the comment property of this Alert. :type comment: str :param compartment_id: The value to assign to the compartment_id property of this Alert. :type compartment_id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this Alert. 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 time_created: The value to assign to the time_created property of this Alert. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Alert. :type time_updated: datetime :param alert_policy_rule_key: The value to assign to the alert_policy_rule_key property of this Alert. :type alert_policy_rule_key: str :param alert_policy_rule_name: The value to assign to the alert_policy_rule_name property of this Alert. :type alert_policy_rule_name: str :param freeform_tags: The value to assign to the freeform_tags property of this Alert. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this Alert. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this Alert. :type system_tags: dict(str, dict(str, object)) �strZdatetimez list[str]zdict(str, dict(str, object))zdict(str, str))�id�status�severity�display_name�description�operation_time� operation�operation_status� target_ids�target_names� policy_id� alert_type� resource_name�feature_details�comment�compartment_id�lifecycle_state�time_created�time_updated�alert_policy_rule_key�alert_policy_rule_name� freeform_tags�defined_tags�system_tagsr r r ZdisplayNamer Z operationTimer ZoperationStatusZ targetIdsZtargetNamesZpolicyIdZ alertTypeZresourceNameZfeatureDetailsr# Z compartmentIdZlifecycleStateZtimeCreatedZtimeUpdatedZalertPolicyRuleKeyZalertPolicyRuleNameZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_status� _severity� _display_name�_description�_operation_time� _operation�_operation_status�_target_ids� _target_names� _policy_id�_alert_type�_resource_name�_feature_details�_comment�_compartment_id�_lifecycle_state� _time_created� _time_updated�_alert_policy_rule_key�_alert_policy_rule_name�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rG �>/usr/lib/python3.9/site-packages/oci/data_safe/models/alert.py�__init__N s� q��zAlert.__init__c C s | j S )z� **[Required]** Gets the id of this Alert. The OCID of the alert. :return: The id of this Alert. :rtype: str �r- �rE rG rG rH r s zAlert.idc C s || _ dS )z� Sets the id of this Alert. The OCID of the alert. :param id: The id of this Alert. :type: str NrJ )rE r rG rG rH r s c C s | j S )aG Gets the status of this Alert. 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 Alert. :rtype: str )r. rK rG rG rH r % s zAlert.statusc C s ddg}t ||�sd}|| _dS )z� Sets the status of this Alert. The status of the alert. :param status: The status of this Alert. :type: str r r �UNKNOWN_ENUM_VALUEN)r r. )rE r �allowed_valuesrG rG rH r 4 s c C s | j S )an Gets the severity of this Alert. 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 Alert. :rtype: str )r/ rK rG rG rH r C s zAlert.severityc C s g d�}t ||�sd}|| _dS )z� Sets the severity of this Alert. Severity level of the alert. :param severity: The severity of this Alert. :type: str )r r r r r rL N)r r/ )rE r rM rG rG rH r R s c C s | j S )z� **[Required]** Gets the display_name of this Alert. The display name of the alert. :return: The display_name of this Alert. :rtype: str �r0 rK rG rG rH r a s zAlert.display_namec C s || _ dS )z� Sets the display_name of this Alert. The display name of the alert. :param display_name: The display_name of this Alert. :type: str NrN )rE r rG rG rH r m s c C s | j S )z� Gets the description of this Alert. The description of the alert. :return: The description of this Alert. :rtype: str �r1 rK rG rG rH r y s zAlert.descriptionc C s || _ dS )z� Sets the description of this Alert. The description of the alert. :param description: The description of this Alert. :type: str NrO )rE r rG rG rH r � s c C s | j S )a" Gets the operation_time of this Alert. 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 Alert. :rtype: datetime �r2 rK rG rG rH r � s zAlert.operation_timec C s || _ dS )a/ Sets the operation_time of this Alert. 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 Alert. :type: datetime NrP )rE r rG rG rH r � s c C s | j S )z� Gets the operation of this Alert. The operation (event) that triggered alert. :return: The operation of this Alert. :rtype: str �r3 rK rG rG rH r � s zAlert.operationc C s || _ dS )z� Sets the operation of this Alert. The operation (event) that triggered alert. :param operation: The operation of this Alert. :type: str NrQ )rE r rG rG rH r � s c C s | j S )a� Gets the operation_status of this Alert. 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 Alert. :rtype: str )r4 rK rG rG rH r � s zAlert.operation_statusc C s ddg}t ||�sd}|| _dS )z� Sets the operation_status of this Alert. The result of the operation (event) that triggered alert. :param operation_status: The operation_status of this Alert. :type: str r r rL N)r r4 )rE r rM rG rG rH r � s c C s | j S )z� Gets the target_ids of this Alert. Array of OCIDs of the target database which are associated with the alert. :return: The target_ids of this Alert. :rtype: list[str] �r5 rK rG rG rH r � s zAlert.target_idsc C s || _ dS )z� Sets the target_ids of this Alert. Array of OCIDs of the target database which are associated with the alert. :param target_ids: The target_ids of this Alert. :type: list[str] NrR )rE r rG rG rH r � s c C s | j S )z� Gets the target_names of this Alert. Array of names of the target database. :return: The target_names of this Alert. :rtype: list[str] �r6 rK rG rG rH r � s zAlert.target_namesc C s || _ dS )z� Sets the target_names of this Alert. Array of names of the target database. :param target_names: The target_names of this Alert. :type: list[str] NrS )rE r rG rG rH r s c C s | j S )z� Gets the policy_id of this Alert. The OCID of the policy that triggered alert. :return: The policy_id of this Alert. :rtype: str �r7 rK rG rG rH r s zAlert.policy_idc C s || _ dS )z� Sets the policy_id of this Alert. The OCID of the policy that triggered alert. :param policy_id: The policy_id of this Alert. :type: str NrT )rE r rG rG rH r s c C s | j S )a� Gets the alert_type of this Alert. 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 Alert. :rtype: str )r8 rK rG rG rH r + s zAlert.alert_typec C s g d�}t ||�sd}|| _dS )z� Sets the alert_type of this Alert. Type of the alert. Indicates the Data Safe feature triggering the alert. :param alert_type: The alert_type of this Alert. :type: str )r r r rL N)r r8 )rE r rM rG rG rH r : s c C s | j S )z� Gets the resource_name of this Alert. The resource endpoint that triggered the alert. :return: The resource_name of this Alert. :rtype: str �r9 rK rG rG rH r! I s zAlert.resource_namec C s || _ dS )z� Sets the resource_name of this Alert. The resource endpoint that triggered the alert. :param resource_name: The resource_name of this Alert. :type: str NrU )rE r! rG rG rH r! U s c C s | j S )z� Gets the feature_details of this Alert. Map that contains maps of values. Example: `{"Operations": {"CostCenter": "42"}}` :return: The feature_details of this Alert. :rtype: dict(str, dict(str, object)) �r: rK rG rG rH r"