ruạṛ
a O��fX � @ 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 @ st e Zd ZdZdZdZdZdZdd� Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Zdd� Z dd� Zdd� ZdS )�ProtectionRuleExclusiona� Allows specified types of requests to bypass the protection rule. If a request matches any of the criteria in the `exclusions` field, the protection rule will not be executed. Rules can have more than one exclusion and exclusions are applied to requests disjunctively, meaning the specified exclusion strings are independently matched against the specified targets of a request. The first target to match a specified string will trigger an exclusion. **Example:** If the following exclusions are defined for a protection rule: "action": "BLOCK", "exclusions": [ { "target":"REQUEST_COOKIES", "exclusions":["example.com", "12345", "219ffwef9w0f"] }, { "target":"REQUEST_COOKIE_NAMES", "exclusions":["OAMAuthnCookie", "JSESSIONID", "HCM-PSJSESSIONID"] } ], "key": "1000000", A request with the cookie name `sessionid` would trigger an exclusion. A request with the cookie name `yourcompany.com` would *not* trigger and exclusion. �REQUEST_COOKIES�REQUEST_COOKIE_NAMES�ARGS� ARGS_NAMESc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new ProtectionRuleExclusion object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param target: The value to assign to the target property of this ProtectionRuleExclusion. Allowed values for this property are: "REQUEST_COOKIES", "REQUEST_COOKIE_NAMES", "ARGS", "ARGS_NAMES", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type target: str :param exclusions: The value to assign to the exclusions property of this ProtectionRuleExclusion. :type exclusions: list[str] �strz list[str])�target� exclusionsr r N)� swagger_types� attribute_map�_target�_exclusions)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/waas/models/protection_rule_exclusion.py�__init__/ s ��z ProtectionRuleExclusion.__init__c C s | j S )a� Gets the target of this ProtectionRuleExclusion. The target of the exclusion. Allowed values for this property are: "REQUEST_COOKIES", "REQUEST_COOKIE_NAMES", "ARGS", "ARGS_NAMES", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The target of this ProtectionRuleExclusion. :rtype: str )r �r r r r r L s zProtectionRuleExclusion.targetc C s g d�}t ||�sd}|| _dS )z� Sets the target of this ProtectionRuleExclusion. The target of the exclusion. :param target: The target of this ProtectionRuleExclusion. :type: str )r r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r [ s c C s | j S )z� Gets the exclusions of this ProtectionRuleExclusion. :return: The exclusions of this ProtectionRuleExclusion. :rtype: list[str] �r r r r r r j s z"ProtectionRuleExclusion.exclusionsc C s || _ dS )z� Sets the exclusions of this ProtectionRuleExclusion. :param exclusions: The exclusions of this ProtectionRuleExclusion. :type: list[str] Nr )r r r r r r t s c C s t | �S �N)r r r r r �__repr__~ s z ProtectionRuleExclusion.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zProtectionRuleExclusion.__eq__c C s | |k S r r r r r r �__ne__� s zProtectionRuleExclusion.__ne__N)�__name__� __module__�__qualname__�__doc__�TARGET_REQUEST_COOKIES�TARGET_REQUEST_COOKIE_NAMES�TARGET_ARGS�TARGET_ARGS_NAMESr �propertyr �setterr r r r! r r r r r s"