ruạṛ
a ���f� � @ 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 ZdZdZdZdZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$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#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� �Z0e0jdVdU� �Z0edWdX� �Z1e1jdYdX� �Z1edZd[� �Z2e2jd\d[� �Z2ed]d^� �Z3e3jd_d^� �Z3d`da� Z4dbdc� Z5ddde� Z6dfS )g� AuditTrailaa An audit trail represents the source of audit records that provides documentary evidence of the sequence of activities in the target database. Configuring audit trails in Data Safe, and enabling audit data collection on the audit trails copies the audit records from the target database's audit trail into the Data Safe repository. �INACTIVE�UPDATING�ACTIVE�DELETING�FAILED�NEEDS_ATTENTION�STARTING� COLLECTING� RECOVERING�IDLE�STOPPING�STOPPED�RESUMING�RETRYING�NOT_STARTED�STOPPED_NEEDS_ATTN�STOPPED_FAILED�TABLE�FILE� SUCCEEDEDc K s ddddddddddddddddddddddddd�| _ 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 S )!a� Initializes a new AuditTrail 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 AuditTrail. :type id: str :param audit_profile_id: The value to assign to the audit_profile_id property of this AuditTrail. :type audit_profile_id: str :param target_id: The value to assign to the target_id property of this AuditTrail. :type target_id: str :param display_name: The value to assign to the display_name property of this AuditTrail. :type display_name: str :param time_created: The value to assign to the time_created property of this AuditTrail. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this AuditTrail. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this AuditTrail. Allowed values for this property are: "INACTIVE", "UPDATING", "ACTIVE", "DELETING", "FAILED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param status: The value to assign to the status property of this AuditTrail. Allowed values for this property are: "STARTING", "COLLECTING", "RECOVERING", "IDLE", "STOPPING", "STOPPED", "RESUMING", "RETRYING", "NOT_STARTED", "STOPPED_NEEDS_ATTN", "STOPPED_FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param lifecycle_details: The value to assign to the lifecycle_details property of this AuditTrail. :type lifecycle_details: str :param trail_location: The value to assign to the trail_location property of this AuditTrail. :type trail_location: str :param description: The value to assign to the description property of this AuditTrail. :type description: str :param is_auto_purge_enabled: The value to assign to the is_auto_purge_enabled property of this AuditTrail. :type is_auto_purge_enabled: bool :param audit_collection_start_time: The value to assign to the audit_collection_start_time property of this AuditTrail. :type audit_collection_start_time: datetime :param work_request_id: The value to assign to the work_request_id property of this AuditTrail. :type work_request_id: str :param compartment_id: The value to assign to the compartment_id property of this AuditTrail. :type compartment_id: str :param time_last_collected: The value to assign to the time_last_collected property of this AuditTrail. :type time_last_collected: datetime :param peer_target_database_key: The value to assign to the peer_target_database_key property of this AuditTrail. :type peer_target_database_key: int :param trail_source: The value to assign to the trail_source property of this AuditTrail. 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 purge_job_time: The value to assign to the purge_job_time property of this AuditTrail. :type purge_job_time: datetime :param purge_job_status: The value to assign to the purge_job_status property of this AuditTrail. 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 purge_job_status: str :param purge_job_details: The value to assign to the purge_job_details property of this AuditTrail. :type purge_job_details: str :param freeform_tags: The value to assign to the freeform_tags property of this AuditTrail. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this AuditTrail. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this AuditTrail. :type system_tags: dict(str, dict(str, object)) �strZdatetime�bool�intzdict(str, str)zdict(str, dict(str, object)))�id�audit_profile_id� target_id�display_name�time_created�time_updated�lifecycle_state�status�lifecycle_details�trail_location�description�is_auto_purge_enabled�audit_collection_start_time�work_request_id�compartment_id�time_last_collected�peer_target_database_key�trail_source�purge_job_time�purge_job_status�purge_job_details� freeform_tags�defined_tags�system_tagsr ZauditProfileIdZtargetIdZdisplayNameZtimeCreatedZtimeUpdatedZlifecycleStater% ZlifecycleDetailsZ trailLocationr( ZisAutoPurgeEnabledZauditCollectionStartTimeZ workRequestIdZ compartmentIdZtimeLastCollectedZpeerTargetDatabaseKeyZtrailSourceZpurgeJobTimeZpurgeJobStatusZpurgeJobDetailsZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_audit_profile_id� _target_id� _display_name� _time_created� _time_updated�_lifecycle_state�_status�_lifecycle_details�_trail_location�_description�_is_auto_purge_enabled�_audit_collection_start_time�_work_request_id�_compartment_id�_time_last_collected�_peer_target_database_key� _trail_source�_purge_job_time�_purge_job_status�_purge_job_details�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rP �D/usr/lib/python3.9/site-packages/oci/data_safe/models/audit_trail.py�__init__i s� o��zAuditTrail.__init__c C s | j S )z� **[Required]** Gets the id of this AuditTrail. The OCID of the audit trail. :return: The id of this AuditTrail. :rtype: str �r6 �rN rP rP rQ r & s z AuditTrail.idc C s || _ dS )z� Sets the id of this AuditTrail. The OCID of the audit trail. :param id: The id of this AuditTrail. :type: str NrS )rN r rP rP rQ r 2 s c C s | j S )z� **[Required]** Gets the audit_profile_id of this AuditTrail. The OCID of the parent audit. :return: The audit_profile_id of this AuditTrail. :rtype: str �r7 rT rP rP rQ r > s zAuditTrail.audit_profile_idc C s || _ dS )z� Sets the audit_profile_id of this AuditTrail. The OCID of the parent audit. :param audit_profile_id: The audit_profile_id of this AuditTrail. :type: str NrU )rN r rP rP rQ r J s c C s | j S )z� **[Required]** Gets the target_id of this AuditTrail. The OCID of the Data Safe target for which the audit trail is created. :return: The target_id of this AuditTrail. :rtype: str �r8 rT rP rP rQ r V s zAuditTrail.target_idc C s || _ dS )z� Sets the target_id of this AuditTrail. The OCID of the Data Safe target for which the audit trail is created. :param target_id: The target_id of this AuditTrail. :type: str NrV )rN r rP rP rQ r b s c C s | j S )z� **[Required]** Gets the display_name of this AuditTrail. The display name of the audit trail. :return: The display_name of this AuditTrail. :rtype: str �r9 rT rP rP rQ r! n s zAuditTrail.display_namec C s || _ dS )z� Sets the display_name of this AuditTrail. The display name of the audit trail. :param display_name: The display_name of this AuditTrail. :type: str NrW )rN r! rP rP rQ r! z s c C s | j S )z� **[Required]** Gets the time_created of this AuditTrail. The date and time the audit trail was created, in the format defined by RFC3339. :return: The time_created of this AuditTrail. :rtype: datetime �r: rT rP rP rQ r"