Class Restriction (1.18.2)

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 Sequence[str]
The attributes to allow in this namespace. eg: 'red'
deny_list Sequence[str]
The attributes to deny in this namespace. eg: 'blue'

Inheritance

builtins.object > proto.message.Message > Restriction