ruạṛ
a ���fv � @ 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 ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z d d� Z dd� Zdd� ZdS )�RequestProtectionzf Module that allows to enable OCI-managed protection capabilities for incoming HTTP requests. c K s2 dddd�| _ dddd�| _d| _d| _d| _dS ) aH Initializes a new RequestProtection object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param rules: The value to assign to the rules property of this RequestProtection. :type rules: list[oci.waf.models.ProtectionRule] :param body_inspection_size_limit_in_bytes: The value to assign to the body_inspection_size_limit_in_bytes property of this RequestProtection. :type body_inspection_size_limit_in_bytes: int :param body_inspection_size_limit_exceeded_action_name: The value to assign to the body_inspection_size_limit_exceeded_action_name property of this RequestProtection. :type body_inspection_size_limit_exceeded_action_name: str zlist[ProtectionRule]�int�str)�rules�#body_inspection_size_limit_in_bytes�/body_inspection_size_limit_exceeded_action_namer ZbodyInspectionSizeLimitInBytesZ)bodyInspectionSizeLimitExceededActionNameN)Z swagger_typesZ attribute_map�_rules�$_body_inspection_size_limit_in_bytes�0_body_inspection_size_limit_exceeded_action_name)�self�kwargs� r �E/usr/lib/python3.9/site-packages/oci/waf/models/request_protection.py�__init__ s ��zRequestProtection.__init__c C s | j S )a{ Gets the rules of this RequestProtection. Ordered list of ProtectionRules. Rules are executed in order of appearance in this array. ProtectionRules in this array can only use protection Capabilities of REQUEST_PROTECTION_CAPABILITY type. :return: The rules of this RequestProtection. :rtype: list[oci.waf.models.ProtectionRule] �r �r r r r r 4 s zRequestProtection.rulesc C s || _ dS )a Sets the rules of this RequestProtection. Ordered list of ProtectionRules. Rules are executed in order of appearance in this array. ProtectionRules in this array can only use protection Capabilities of REQUEST_PROTECTION_CAPABILITY type. :param rules: The rules of this RequestProtection. :type: list[oci.waf.models.ProtectionRule] Nr )r r r r r r A s c C s | j S )a� Gets the body_inspection_size_limit_in_bytes of this RequestProtection. Maximum size of inspected HTTP message body in bytes. Actions to take if this limit is exceeded are defined in `bodyInspectionSizeLimitExceededActionName`. Body inspection maximum size allowed is defined with per-tenancy limit: 8192 bytes. :return: The body_inspection_size_limit_in_bytes of this RequestProtection. :rtype: int �r r r r r r N s z5RequestProtection.body_inspection_size_limit_in_bytesc C s || _ dS )a� Sets the body_inspection_size_limit_in_bytes of this RequestProtection. Maximum size of inspected HTTP message body in bytes. Actions to take if this limit is exceeded are defined in `bodyInspectionSizeLimitExceededActionName`. Body inspection maximum size allowed is defined with per-tenancy limit: 8192 bytes. :param body_inspection_size_limit_in_bytes: The body_inspection_size_limit_in_bytes of this RequestProtection. :type: int Nr )r r r r r r \ s c C s | j S )a� Gets the body_inspection_size_limit_exceeded_action_name of this RequestProtection. References action by name from actions defined in WebAppFirewallPolicy. Executed if HTTP message body size exceeds limit set in field `bodyInspectionSizeLimitInBytes`. If this field is `null` HTTP message body will inspected up to `bodyInspectionSizeLimitInBytes` and the rest will not be inspected by Protection Capabilities. Allowed action types: * **RETURN_HTTP_RESPONSE** terminates further execution of modules and rules and returns defined HTTP response. :return: The body_inspection_size_limit_exceeded_action_name of this RequestProtection. :rtype: str �r r r r r r j s zARequestProtection.body_inspection_size_limit_exceeded_action_namec C s || _ dS )a Sets the body_inspection_size_limit_exceeded_action_name of this RequestProtection. References action by name from actions defined in WebAppFirewallPolicy. Executed if HTTP message body size exceeds limit set in field `bodyInspectionSizeLimitInBytes`. If this field is `null` HTTP message body will inspected up to `bodyInspectionSizeLimitInBytes` and the rest will not be inspected by Protection Capabilities. Allowed action types: * **RETURN_HTTP_RESPONSE** terminates further execution of modules and rules and returns defined HTTP response. :param body_inspection_size_limit_exceeded_action_name: The body_inspection_size_limit_exceeded_action_name of this RequestProtection. :type: str Nr )r r r r r r } s c C s t | �S �N)r r r r r �__repr__� s zRequestProtection.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zRequestProtection.__eq__c C s | |k S r r r r r r �__ne__� s zRequestProtection.__ne__N) �__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r r s"