Class Restriction (1.32.0)

Restriction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Restriction of a datapoint which describe its attributes(tokens) from each of several attribute categories(namespaces).

Attributes

NameDescription
namespace str
The namespace of this restriction. eg: color.
allow_list MutableSequence[str]
The attributes to allow in this namespace. eg: 'red'
deny_list MutableSequence[str]
The attributes to deny in this namespace. eg: 'blue'