Class Restriction (1.48.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. e.g.: color.
allow_list MutableSequence[str]
The attributes to allow in this namespace. e.g.: 'red'
deny_list MutableSequence[str]
The attributes to deny in this namespace. e.g.: 'blue'

Methods

Restriction

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

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