ruạṛ
a ���fb� � @ 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 @ sj e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdZdZdd� 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.� �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� �Z+e+jdPdO� �Z+edQdR� �Z,e,jdSdR� �Z,edTdU� �Z-e-jdVdU� �Z-edWdX� �Z.e.jdYdX� �Z.edZd[� �Z/e/jd\d[� �Z/ed]d^� �Z0e0jd_d^� �Z0ed`da� �Z1e1jdbda� �Z1edcdd� �Z2e2jdedd� �Z2edfdg� �Z3e3jdhdg� �Z3edidj� �Z4e4jdkdj� �Z4edldm� �Z5e5jdndm� �Z5edodp� �Z6e6jdqdp� �Z6edrds� �Z7e7jdtds� �Z7edudv� �Z8e8jdwdv� �Z8edxdy� �Z9e9jdzdy� �Z9ed{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>d�d�� Z?d�d�� Z@d�d�� ZAd�S )��AuditEventSummaryzj The resource represents the audit events collected from the target database by Oracle Data Safe. �DATABASE_CLOUD_SERVICE�AUTONOMOUS_DATABASE�INSTALLED_DATABASE�DATABASE�SUCCESS�FAILURE�AUDIT_TABLE�STANDARD�FINE_GRAINED�XS�DATABASE_VAULT�LABEL_SECURITY�RMAN�DATAPUMP�DIRECT_PATH_API�TABLE�FILEc ( K s� dddddddddddddddddddddddddddddddddddddddd�'| _ 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/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _d/| _ d/| _!d/| _"d/| _#d/| _$d/| _%d/| _&d/| _'d/| _(d/S )0a7 Initializes a new AuditEventSummary 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 AuditEventSummary. :type id: str :param compartment_id: The value to assign to the compartment_id property of this AuditEventSummary. :type compartment_id: str :param db_user_name: The value to assign to the db_user_name property of this AuditEventSummary. :type db_user_name: str :param target_id: The value to assign to the target_id property of this AuditEventSummary. :type target_id: str :param target_name: The value to assign to the target_name property of this AuditEventSummary. :type target_name: str :param database_type: The value to assign to the database_type property of this AuditEventSummary. Allowed values for this property are: "DATABASE_CLOUD_SERVICE", "AUTONOMOUS_DATABASE", "INSTALLED_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_type: str :param target_class: The value to assign to the target_class property of this AuditEventSummary. Allowed values for this property are: "DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type target_class: str :param audit_event_time: The value to assign to the audit_event_time property of this AuditEventSummary. :type audit_event_time: datetime :param time_collected: The value to assign to the time_collected property of this AuditEventSummary. :type time_collected: datetime :param os_user_name: The value to assign to the os_user_name property of this AuditEventSummary. :type os_user_name: str :param operation: The value to assign to the operation property of this AuditEventSummary. :type operation: str :param operation_status: The value to assign to the operation_status property of this AuditEventSummary. Allowed values for this property are: "SUCCESS", "FAILURE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_status: str :param event_name: The value to assign to the event_name property of this AuditEventSummary. :type event_name: str :param error_code: The value to assign to the error_code property of this AuditEventSummary. :type error_code: str :param error_message: The value to assign to the error_message property of this AuditEventSummary. :type error_message: str :param object_type: The value to assign to the object_type property of this AuditEventSummary. :type object_type: str :param object_name: The value to assign to the object_name property of this AuditEventSummary. :type object_name: str :param object_owner: The value to assign to the object_owner property of this AuditEventSummary. :type object_owner: str :param client_hostname: The value to assign to the client_hostname property of this AuditEventSummary. :type client_hostname: str :param client_ip: The value to assign to the client_ip property of this AuditEventSummary. :type client_ip: str :param audit_trail_id: The value to assign to the audit_trail_id property of this AuditEventSummary. :type audit_trail_id: str :param is_alerted: The value to assign to the is_alerted property of this AuditEventSummary. :type is_alerted: bool :param action_taken: The value to assign to the action_taken property of this AuditEventSummary. :type action_taken: str :param client_program: The value to assign to the client_program property of this AuditEventSummary. :type client_program: str :param command_text: The value to assign to the command_text property of this AuditEventSummary. :type command_text: str :param command_param: The value to assign to the command_param property of this AuditEventSummary. :type command_param: str :param extended_event_attributes: The value to assign to the extended_event_attributes property of this AuditEventSummary. :type extended_event_attributes: str :param audit_location: The value to assign to the audit_location property of this AuditEventSummary. Allowed values for this property are: "AUDIT_TABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type audit_location: str :param os_terminal: The value to assign to the os_terminal property of this AuditEventSummary. :type os_terminal: str :param client_id: The value to assign to the client_id property of this AuditEventSummary. :type client_id: str :param audit_policies: The value to assign to the audit_policies property of this AuditEventSummary. :type audit_policies: str :param audit_type: The value to assign to the audit_type property of this AuditEventSummary. Allowed values for this property are: "STANDARD", "FINE_GRAINED", "XS", "DATABASE_VAULT", "LABEL_SECURITY", "RMAN", "DATAPUMP", "DIRECT_PATH_API", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type audit_type: str :param peer_target_database_key: The value to assign to the peer_target_database_key property of this AuditEventSummary. :type peer_target_database_key: int :param trail_source: The value to assign to the trail_source property of this AuditEventSummary. Allowed values for this property are: "TABLE", "FILE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type trail_source: str :param database_unique_name: The value to assign to the database_unique_name property of this AuditEventSummary. :type database_unique_name: str :param application_contexts: The value to assign to the application_contexts property of this AuditEventSummary. :type application_contexts: str :param fga_policy_name: The value to assign to the fga_policy_name property of this AuditEventSummary. :type fga_policy_name: str :param freeform_tags: The value to assign to the freeform_tags property of this AuditEventSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this AuditEventSummary. :type defined_tags: dict(str, dict(str, object)) �strZdatetime�bool�intzdict(str, str)zdict(str, dict(str, object)))'�id�compartment_id�db_user_name� target_id�target_name� database_type�target_class�audit_event_time�time_collected�os_user_name� operation�operation_status� event_name� error_code� error_message�object_type�object_name�object_owner�client_hostname� client_ip�audit_trail_id� is_alerted�action_taken�client_program�command_text� command_param�extended_event_attributes�audit_location�os_terminal� client_id�audit_policies� audit_type�peer_target_database_key�trail_source�database_unique_name�application_contexts�fga_policy_name� freeform_tags�defined_tagsr Z compartmentIdZ dbUserNameZtargetIdZ targetNameZdatabaseTypeZtargetClassZauditEventTimeZ timeCollectedZ osUserNamer% ZoperationStatusZ eventNameZ errorCodeZerrorMessageZ objectTypeZ objectNameZobjectOwnerZclientHostnameZclientIpZauditTrailIdZ isAlertedZactionTakenZ clientProgramZcommandTextZcommandParamZextendedEventAttributesZ auditLocationZ osTerminalZclientIdZ auditPoliciesZ auditTypeZpeerTargetDatabaseKeyZtrailSourceZdatabaseUniqueNameZapplicationContextsZ fgaPolicyNameZfreeformTagsZdefinedTagsN))Z swagger_typesZ attribute_map�_id�_compartment_id� _db_user_name� _target_id�_target_name�_database_type� _target_class�_audit_event_time�_time_collected� _os_user_name� _operation�_operation_status�_event_name�_error_code�_error_message�_object_type�_object_name� _object_owner�_client_hostname� _client_ip�_audit_trail_id�_is_alerted� _action_taken�_client_program� _command_text�_command_param�_extended_event_attributes�_audit_location�_os_terminal� _client_id�_audit_policies�_audit_type�_peer_target_database_key� _trail_source�_database_unique_name�_application_contexts�_fga_policy_name�_freeform_tags� _defined_tags)�self�kwargs� rk �L/usr/lib/python3.9/site-packages/oci/data_safe/models/audit_event_summary.py�__init__V s� 0�+�*zAuditEventSummary.__init__c C s | j S )z� **[Required]** Gets the id of this AuditEventSummary. The OCID of the audit event. :return: The id of this AuditEventSummary. :rtype: str �rB �ri rk rk rl r � s zAuditEventSummary.idc C s || _ dS )z� Sets the id of this AuditEventSummary. The OCID of the audit event. :param id: The id of this AuditEventSummary. :type: str Nrn )ri r rk rk rl r � s c C s | j S )a> **[Required]** Gets the compartment_id of this AuditEventSummary. The OCID of the compartment containing the audit event. The compartment is the same as that of audit profile of the target database resource. :return: The compartment_id of this AuditEventSummary. :rtype: str �rC ro rk rk rl r � s z AuditEventSummary.compartment_idc C s || _ dS )a< Sets the compartment_id of this AuditEventSummary. The OCID of the compartment containing the audit event. The compartment is the same as that of audit profile of the target database resource. :param compartment_id: The compartment_id of this AuditEventSummary. :type: str Nrp )ri r rk rk rl r � s c C s | j S )z� Gets the db_user_name of this AuditEventSummary. The name of the database user whose actions were audited. :return: The db_user_name of this AuditEventSummary. :rtype: str �rD ro rk rk rl r � s zAuditEventSummary.db_user_namec C s || _ dS )z� Sets the db_user_name of this AuditEventSummary. The name of the database user whose actions were audited. :param db_user_name: The db_user_name of this AuditEventSummary. :type: str Nrq )ri r rk rk rl r � s c C s | j S )z� **[Required]** Gets the target_id of this AuditEventSummary. The OCID of the target database that was audited. :return: The target_id of this AuditEventSummary. :rtype: str �rE ro rk rk rl r � s zAuditEventSummary.target_idc C s || _ dS )z� Sets the target_id of this AuditEventSummary. The OCID of the target database that was audited. :param target_id: The target_id of this AuditEventSummary. :type: str Nrr )ri r rk rk rl r � s c C s | j S )z� **[Required]** Gets the target_name of this AuditEventSummary. The name of the target database that was audited. :return: The target_name of this AuditEventSummary. :rtype: str �rF ro rk rk rl r � s zAuditEventSummary.target_namec C s || _ dS )z� Sets the target_name of this AuditEventSummary. The name of the target database that was audited. :param target_name: The target_name of this AuditEventSummary. :type: str Nrs )ri r rk rk rl r � s c C s | j S )a� **[Required]** Gets the database_type of this AuditEventSummary. The type of the target database that was audited. Allowed values are - DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services. - AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases. - INSTALLED_DATABASE - Represents databases running on-premises or on compute instances. Allowed values for this property are: "DATABASE_CLOUD_SERVICE", "AUTONOMOUS_DATABASE", "INSTALLED_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_type of this AuditEventSummary. :rtype: str )rG ro rk rk rl r � s zAuditEventSummary.database_typec C s g d�}t ||�sd}|| _dS )a� Sets the database_type of this AuditEventSummary. The type of the target database that was audited. Allowed values are - DATABASE_CLOUD_SERVICE - Represents Oracle Database Cloud Services. - AUTONOMOUS_DATABASE - Represents Oracle Autonomous Databases. - INSTALLED_DATABASE - Represents databases running on-premises or on compute instances. :param database_type: The database_type of this AuditEventSummary. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r rG )ri r �allowed_valuesrk rk rl r s c C s | j S )av Gets the target_class of this AuditEventSummary. The class of the target that was audited. Allowed values for this property are: "DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The target_class of this AuditEventSummary. :rtype: str )rH ro rk rk rl r! s zAuditEventSummary.target_classc C s dg}t ||�sd}|| _dS )z� Sets the target_class of this AuditEventSummary. The class of the target that was audited. :param target_class: The target_class of this AuditEventSummary. :type: str r rt N)r rH )ri r! ru rk rk rl r! + s c C s | j S )z� **[Required]** Gets the audit_event_time of this AuditEventSummary. The time that the audit event occurs in the target database. :return: The audit_event_time of this AuditEventSummary. :rtype: datetime �rI ro rk rk rl r"