ValidationRequestPolicy

class oci.apigateway.models.ValidationRequestPolicy(**kwargs)

Bases: object

Top-level validation policy mixin (not directly used).

Attributes

VALIDATION_MODE_DISABLED A constant which can be used with the validation_mode property of a ValidationRequestPolicy.
VALIDATION_MODE_ENFORCING A constant which can be used with the validation_mode property of a ValidationRequestPolicy.
VALIDATION_MODE_PERMISSIVE A constant which can be used with the validation_mode property of a ValidationRequestPolicy.
validation_mode Gets the validation_mode of this ValidationRequestPolicy.

Methods

__init__(**kwargs) Initializes a new ValidationRequestPolicy object with values from keyword arguments.
VALIDATION_MODE_DISABLED = 'DISABLED'

A constant which can be used with the validation_mode property of a ValidationRequestPolicy. This constant has a value of “DISABLED”

VALIDATION_MODE_ENFORCING = 'ENFORCING'

A constant which can be used with the validation_mode property of a ValidationRequestPolicy. This constant has a value of “ENFORCING”

VALIDATION_MODE_PERMISSIVE = 'PERMISSIVE'

A constant which can be used with the validation_mode property of a ValidationRequestPolicy. This constant has a value of “PERMISSIVE”

__init__(**kwargs)

Initializes a new ValidationRequestPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:validation_mode (str) – The value to assign to the validation_mode property of this ValidationRequestPolicy. Allowed values for this property are: “ENFORCING”, “PERMISSIVE”, “DISABLED”
validation_mode

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”

Returns:The validation_mode of this ValidationRequestPolicy.
Return type:str