ContentValidation

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

Bases: object

Content validation properties.

Attributes

VALIDATION_TYPE_NONE A constant which can be used with the validation_type property of a ContentValidation.
validation_type [Required] Gets the validation_type of this ContentValidation.

Methods

__init__(**kwargs) Initializes a new ContentValidation object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
VALIDATION_TYPE_NONE = 'NONE'

A constant which can be used with the validation_type property of a ContentValidation. This constant has a value of “NONE”

__init__(**kwargs)

Initializes a new ContentValidation object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:validation_type (str) – The value to assign to the validation_type property of this ContentValidation. Allowed values for this property are: “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

validation_type

[Required] Gets the validation_type of this ContentValidation. Validation type defines the content validation method.

Make the validation to first parse the body as the respective format.

Allowed values for this property are: “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The validation_type of this ContentValidation.
Return type:str