📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
libexec
›
oracle-cloud-agent
›
plugins
›
osms
›
oci
›
apigateway
›
📁 models
📍
Lokasi:
/usr/libexec/oracle-cloud-agent/plugins/osms/oci/apigateway/models
💾
Free:
45.7 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: body_validation_request_policy.pyc
a N��fP � @ 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 ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zdd� Z dd� Zdd� ZdS )�BodyValidationRequestPolicyzU Validate the payload body of the incoming API requests on a specific route. � ENFORCING� PERMISSIVE�DISABLEDc K s2 dddd�| _ dddd�| _d| _d| _d| _dS ) a Initializes a new BodyValidationRequestPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param required: The value to assign to the required property of this BodyValidationRequestPolicy. :type required: bool :param content: The value to assign to the content property of this BodyValidationRequestPolicy. :type content: dict(str, ContentValidation) :param validation_mode: The value to assign to the validation_mode property of this BodyValidationRequestPolicy. Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" :type validation_mode: str �boolzdict(str, ContentValidation)�str)�required�content�validation_moder r �validationModeN)� swagger_types� attribute_map� _required�_content�_validation_mode)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/apigateway/models/body_validation_request_policy.py�__init__ s ��z$BodyValidationRequestPolicy.__init__c C s | j S )z� Gets the required of this BodyValidationRequestPolicy. Determines if the request body is required in the request. :return: The required of this BodyValidationRequestPolicy. :rtype: bool �r �r r r r r ? s z$BodyValidationRequestPolicy.requiredc C s || _ dS )z� Sets the required of this BodyValidationRequestPolicy. Determines if the request body is required in the request. :param required: The required of this BodyValidationRequestPolicy. :type: bool Nr )r r r r r r K s c C s | j S )a� **[Required]** Gets the content of this BodyValidationRequestPolicy. The content of the request body. The key is a `media type range`__ subset restricted to the following schema key ::= ( / ( "*" "/" "*" ) / ( type "/" "*" ) / ( type "/" subtype ) ) For requests that match multiple keys, only the most specific key is applicable. e.g. `text/plain` overrides `text/*` __ https://tools.ietf.org/html/rfc7231#appendix-D :return: The content of this BodyValidationRequestPolicy. :rtype: dict(str, ContentValidation) �r r r r r r W s z#BodyValidationRequestPolicy.contentc C s || _ dS )a� Sets the content of this BodyValidationRequestPolicy. The content of the request body. The key is a `media type range`__ subset restricted to the following schema key ::= ( / ( "*" "/" "*" ) / ( type "/" "*" ) / ( type "/" subtype ) ) For requests that match multiple keys, only the most specific key is applicable. e.g. `text/plain` overrides `text/*` __ https://tools.ietf.org/html/rfc7231#appendix-D :param content: The content of this BodyValidationRequestPolicy. :type: dict(str, ContentValidation) Nr )r r r r r r o s c C s | j S )av Gets the validation_mode of this BodyValidationRequestPolicy. 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 BodyValidationRequestPolicy. :rtype: str )r r r r r r � s z+BodyValidationRequestPolicy.validation_modec C s* g d�}t ||�s td�|���|| _dS )a/ Sets the validation_mode of this BodyValidationRequestPolicy. 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 BodyValidationRequestPolicy. :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 � s ��c C s t | �S �N)r r r r r �__repr__� s z$BodyValidationRequestPolicy.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z"BodyValidationRequestPolicy.__eq__c C s | |k S r r r# r r r �__ne__� s z"BodyValidationRequestPolicy.__ne__N)�__name__� __module__�__qualname__�__doc__�VALIDATION_MODE_ENFORCING�VALIDATION_MODE_PERMISSIVE�VALIDATION_MODE_DISABLEDr �propertyr �setterr r r! r% r&