ruạṛ
a ���f�O � @ 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 ZdZdZdZd Zdd� Zedd� �Zejdd� �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 jd0d/� �Z ed1d2� �Z!e!jd3d2� �Z!d4d5� Z"d6d7� Z#d8d9� Z$d:S );�AuditSpecificationa� Represents an audit policy relevant for the target database.The audit policy could be in any one of the following 3 states in the target database 1) Created and enabled 2) Created but not enabled 3) Not created For more details on relevant audit policies for the target database, refer to `documentation`__. __ https://docs.oracle.com/en/cloud/paas/data-safe/udscs/audit-policies.html#GUID-361A9A9A-7C21-4F5A-8945-9B3A0C472827 �BASIC_ACTIVITY�ADMIN_USER_ACTIVITY� USER_ACTIVITY�ORACLE_PREDEFINED�COMPLIANCE_STANDARD�CUSTOM�SQL_FIREWALL_AUDITING�ENABLED�DISABLED�PARTIALLY_ENABLED� ALL_USERS� INCLUDE_USERS� INCLUDE_ROLES� EXCLUDE_USERS�INCLUDE_USERS_ROLESc K s� dddddddddddd�| _ ddddd d ddd ddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _dS )a, Initializes a new AuditSpecification object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param audit_policy_name: The value to assign to the audit_policy_name property of this AuditSpecification. :type audit_policy_name: str :param database_policy_names: The value to assign to the database_policy_names property of this AuditSpecification. :type database_policy_names: list[str] :param audit_policy_category: The value to assign to the audit_policy_category property of this AuditSpecification. Allowed values for this property are: "BASIC_ACTIVITY", "ADMIN_USER_ACTIVITY", "USER_ACTIVITY", "ORACLE_PREDEFINED", "COMPLIANCE_STANDARD", "CUSTOM", "SQL_FIREWALL_AUDITING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type audit_policy_category: str :param enable_status: The value to assign to the enable_status property of this AuditSpecification. Allowed values for this property are: "ENABLED", "DISABLED", "PARTIALLY_ENABLED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type enable_status: str :param partially_enabled_msg: The value to assign to the partially_enabled_msg property of this AuditSpecification. :type partially_enabled_msg: str :param is_enabled_for_all_users: The value to assign to the is_enabled_for_all_users property of this AuditSpecification. :type is_enabled_for_all_users: bool :param is_view_only: The value to assign to the is_view_only property of this AuditSpecification. :type is_view_only: bool :param is_seeded_in_target: The value to assign to the is_seeded_in_target property of this AuditSpecification. :type is_seeded_in_target: bool :param is_seeded_in_data_safe: The value to assign to the is_seeded_in_data_safe property of this AuditSpecification. :type is_seeded_in_data_safe: bool :param is_created: The value to assign to the is_created property of this AuditSpecification. :type is_created: bool :param enabled_entities: The value to assign to the enabled_entities property of this AuditSpecification. Allowed values for this property are: "ALL_USERS", "INCLUDE_USERS", "INCLUDE_ROLES", "EXCLUDE_USERS", "INCLUDE_USERS_ROLES", "DISABLED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type enabled_entities: str �strz list[str]�bool)�audit_policy_name�database_policy_names�audit_policy_category� enable_status�partially_enabled_msg�is_enabled_for_all_users�is_view_only�is_seeded_in_target�is_seeded_in_data_safe� is_created�enabled_entitiesZauditPolicyNameZdatabasePolicyNamesZauditPolicyCategoryZenableStatusZpartiallyEnabledMsgZisEnabledForAllUsersZ isViewOnlyZisSeededInTargetZisSeededInDataSafeZ isCreatedZenabledEntitiesN) Z swagger_typesZ attribute_map�_audit_policy_name�_database_policy_names�_audit_policy_category�_enable_status�_partially_enabled_msg�_is_enabled_for_all_users� _is_view_only�_is_seeded_in_target�_is_seeded_in_data_safe�_is_created�_enabled_entities)�self�kwargs� r0 �L/usr/lib/python3.9/site-packages/oci/data_safe/models/audit_specification.py�__init__X sF 9��zAuditSpecification.__init__c C s | j S )a� **[Required]** Gets the audit_policy_name of this AuditSpecification. Indicates the audit policy name. Refer to the `documentation`__ for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database. __ https://docs.oracle.com/en/cloud/paas/data-safe/udscs/audit-policies.html#GUID-361A9A9A-7C21-4F5A-8945-9B3A0C472827 :return: The audit_policy_name of this AuditSpecification. :rtype: str �r# �r. r0 r0 r1 r � s z$AuditSpecification.audit_policy_namec C s || _ dS )a� Sets the audit_policy_name of this AuditSpecification. Indicates the audit policy name. Refer to the `documentation`__ for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database. __ https://docs.oracle.com/en/cloud/paas/data-safe/udscs/audit-policies.html#GUID-361A9A9A-7C21-4F5A-8945-9B3A0C472827 :param audit_policy_name: The audit_policy_name of this AuditSpecification. :type: str Nr3 )r. r r0 r0 r1 r � s c C s | j S )a" **[Required]** Gets the database_policy_names of this AuditSpecification. Indicates the names of corresponding database policy ( or policies) in the target database. :return: The database_policy_names of this AuditSpecification. :rtype: list[str] �r$ r4 r0 r0 r1 r � s z(AuditSpecification.database_policy_namesc C s || _ dS )a' Sets the database_policy_names of this AuditSpecification. Indicates the names of corresponding database policy ( or policies) in the target database. :param database_policy_names: The database_policy_names of this AuditSpecification. :type: list[str] Nr5 )r. r r0 r0 r1 r � s c C s | j S )a **[Required]** Gets the audit_policy_category of this AuditSpecification. The category to which the audit policy belongs. Allowed values for this property are: "BASIC_ACTIVITY", "ADMIN_USER_ACTIVITY", "USER_ACTIVITY", "ORACLE_PREDEFINED", "COMPLIANCE_STANDARD", "CUSTOM", "SQL_FIREWALL_AUDITING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The audit_policy_category of this AuditSpecification. :rtype: str )r% r4 r0 r0 r1 r � s z(AuditSpecification.audit_policy_categoryc C s g d�}t ||�sd}|| _dS )z� Sets the audit_policy_category of this AuditSpecification. The category to which the audit policy belongs. :param audit_policy_category: The audit_policy_category of this AuditSpecification. :type: str )r r r r r r r �UNKNOWN_ENUM_VALUEN)r r% )r. r �allowed_valuesr0 r0 r1 r � s c C s | j S )aF **[Required]** Gets the enable_status of this AuditSpecification. Indicates whether the policy has been enabled, disabled or partially enabled in the target database. The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled. Allowed values for this property are: "ENABLED", "DISABLED", "PARTIALLY_ENABLED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The enable_status of this AuditSpecification. :rtype: str )r&