ruạṛ
a N��fa � @ 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�str�validationModeN)� swagger_types� attribute_map�_validation_mode)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/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 1 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 {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r G s ��c C s t | �S �N)r r r r r �__repr__a s z ValidationRequestPolicy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__d s zValidationRequestPolicy.__eq__c C s | |k S r r r r r r �__ne__j s zValidationRequestPolicy.__ne__N)�__name__� __module__�__qualname__�__doc__�VALIDATION_MODE_ENFORCING�VALIDATION_MODE_PERMISSIVE�VALIDATION_MODE_DISABLEDr �propertyr �setterr r r r r r r r s r N)�oci.utilr r r �oci.decoratorsr �objectr r r r r �<module> s
cải xoăn