EnumSecurityAttributeValidator

class oci.security_attribute.models.EnumSecurityAttributeValidator(**kwargs)

Bases: BaseSecurityAttributeValidator

Used to validate the value set for a security attribute and contains the list of allowable values.

You must specify at least one valid value in the values array. You can’t have blank or or empty strings (“”). Duplicate values are not allowed.

Attributes:

VALIDATOR_TYPE_DEFAULT

A constant which can be used with the validator_type property of a BaseSecurityAttributeValidator.

VALIDATOR_TYPE_ENUM

A constant which can be used with the validator_type property of a BaseSecurityAttributeValidator.

validator_type

[Required] Gets the validator_type of this BaseSecurityAttributeValidator.

values

Gets the values of this EnumSecurityAttributeValidator.

Methods:

__init__(**kwargs)

Initializes a new EnumSecurityAttributeValidator 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.

VALIDATOR_TYPE_DEFAULT = 'DEFAULT'

A constant which can be used with the validator_type property of a BaseSecurityAttributeValidator. This constant has a value of “DEFAULT”

VALIDATOR_TYPE_ENUM = 'ENUM'

A constant which can be used with the validator_type property of a BaseSecurityAttributeValidator. This constant has a value of “ENUM”

__init__(**kwargs)

Initializes a new EnumSecurityAttributeValidator object with values from keyword arguments. The default value of the validator_type attribute of this class is ENUM and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • validator_type (str) – The value to assign to the validator_type property of this EnumSecurityAttributeValidator. Allowed values for this property are: “ENUM”, “DEFAULT”

  • values (list[str]) – The value to assign to the values property of this EnumSecurityAttributeValidator.

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.

property validator_type

[Required] Gets the validator_type of this BaseSecurityAttributeValidator. Specifies the type of validation: a static value (no validation) or a list.

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

Returns

The validator_type of this BaseSecurityAttributeValidator.

Return type

str

property values

Gets the values of this EnumSecurityAttributeValidator. The list of allowed values for a security attribute value.

Returns

The values of this EnumSecurityAttributeValidator.

Return type

list[str]