keystone.limit.models.strict_two_level module

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

Bases: keystone.limit.models.base.ModelBase

DESCRIPTION = 'This model requires project hierarchy never exceeds a depth of two'
MAX_PROJECT_TREE_DEPTH = 2
NAME = '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.