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 @ sV e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z d d� Zdd � Zdd� Z dS )�ValidationRequestPolicyz@ Top-level validation policy mixin (not directly used). � ENFORCING� PERMISSIVE�DISABLEDc K s ddi| _ ddi| _d| _dS )a� Initializes a new ValidationRequestPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param validation_mode: The value to assign to the validation_mode property of this ValidationRequestPolicy. Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" :type validation_mode: str �validation_mode�strZvalidationModeN)Z swagger_typesZ attribute_map�_validation_mode)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/apigateway/models/validation_request_policy.py�__init__ s ��z ValidationRequestPolicy.__init__c C s | j S )an Gets the validation_mode of this ValidationRequestPolicy. 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 ValidationRequestPolicy. :rtype: str )r �r r r r r 3 s z'ValidationRequestPolicy.validation_modec C s* g d�}t ||�s td|� ���|| _dS )a' Sets the validation_mode of this ValidationRequestPolicy. 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 ValidationRequestPolicy. :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 I s �c C s t | �S �N)r r r r r �__repr__b s z ValidationRequestPolicy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__e s zValidationRequestPolicy.__eq__c C s | |k S r r r r r r �__ne__k s zValidationRequestPolicy.__ne__N)�__name__� __module__�__qualname__�__doc__ZVALIDATION_MODE_ENFORCINGZVALIDATION_MODE_PERMISSIVEZVALIDATION_MODE_DISABLEDr �propertyr �setterr 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