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 @ sp e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zd d� Zdd� Z dd� ZdS )�HeaderValidationRequestPolicyzU Validate the HTTP headers on the incoming API requests on a specific route. � ENFORCING� PERMISSIVE�DISABLEDc K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new HeaderValidationRequestPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param headers: The value to assign to the headers property of this HeaderValidationRequestPolicy. :type headers: list[oci.apigateway.models.HeaderValidationItem] :param validation_mode: The value to assign to the validation_mode property of this HeaderValidationRequestPolicy. Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" :type validation_mode: str zlist[HeaderValidationItem]�str)�headers�validation_moder ZvalidationModeN)Z swagger_typesZ attribute_map�_headers�_validation_mode)�self�kwargs� r �Z/usr/lib/python3.9/site-packages/oci/apigateway/models/header_validation_request_policy.py�__init__ s ��z&HeaderValidationRequestPolicy.__init__c C s | j S )z� Gets the headers of this HeaderValidationRequestPolicy. :return: The headers of this HeaderValidationRequestPolicy. :rtype: list[oci.apigateway.models.HeaderValidationItem] �r �r r r r r : s z%HeaderValidationRequestPolicy.headersc C s || _ dS )z� Sets the headers of this HeaderValidationRequestPolicy. :param headers: The headers of this HeaderValidationRequestPolicy. :type: list[oci.apigateway.models.HeaderValidationItem] Nr )r r r r r r D s c C s | j S )az Gets the validation_mode of this HeaderValidationRequestPolicy. Validation behavior mode. In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response and not sent to the backend. In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request will follow the normal path. `DISABLED` type turns the validation off. Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" :return: The validation_mode of this HeaderValidationRequestPolicy. :rtype: str )r r r r r r N s z-HeaderValidationRequestPolicy.validation_modec C s* g d�}t ||�s td|� ���|| _dS )a3 Sets the validation_mode of this HeaderValidationRequestPolicy. Validation behavior mode. In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response and not sent to the backend. In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request will follow the normal path. `DISABLED` type turns the validation off. :param validation_mode: The validation_mode of this HeaderValidationRequestPolicy. :type: str )r r r z<Invalid value for `validation_mode`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r d s �c C s t | �S �N)r r r r r �__repr__} s z&HeaderValidationRequestPolicy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z$HeaderValidationRequestPolicy.__eq__c C s | |k S r r r r r r �__ne__� s z$HeaderValidationRequestPolicy.__ne__N)�__name__� __module__�__qualname__�__doc__ZVALIDATION_MODE_ENFORCINGZVALIDATION_MODE_PERMISSIVEZVALIDATION_MODE_DISABLEDr �propertyr �setterr r r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn