keystone.limit.models.strict_two_level module

class keystone.limit.models.strict_two_level.StrictTwoLevelModel[source]

Bases: ModelBase

DESCRIPTION: str = 'This model requires project hierarchy never exceeds a depth of two'
MAX_PROJECT_TREE_DEPTH: ty.Optional[int] = 2
NAME: str = 'strict_two_level'
check_limit(limits)[source]

Check the input limits satisfy the related project tree or not.

  1. Ensure the input is legal.

  2. Ensure the input will not break the exist limit tree.