EnumTagDefinitionValidator

class oci.identity.models.EnumTagDefinitionValidator(**kwargs)

Bases: oci.identity.models.base_tag_definition_validator.BaseTagDefinitionValidator

Validates the 'value' set for a definedTag is contained in the list of allowable 'values'.

If the 'validatorType' is 'ENUM', then at least one valid value must be specified in the 'values' array.

VALIDATOR_TYPE_DEFAULT = 'DEFAULT'
VALIDATOR_TYPE_ENUM = 'ENUM'
__init__(**kwargs)

Initializes a new EnumTagDefinitionValidator 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 EnumTagDefinitionValidator. Allowed values for this property are: "ENUM", "DEFAULT"
  • values (list[str]) -- The value to assign to the values property of this EnumTagDefinitionValidator.
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

[Required] Gets the validator_type of this BaseTagDefinitionValidator. The primitive that any value set for this definedTag must be parseable as.

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 BaseTagDefinitionValidator.
Return type:str
values

Gets the values of this EnumTagDefinitionValidator. The list of allowed values for a definedTag value.

Returns:The values of this EnumTagDefinitionValidator.
Return type:list[str]