keystone.limit.models.flat module

keystone.limit.models.flat module

class keystone.limit.models.flat.FlatModel[source]

Bases: keystone.limit.models.base.ModelBase

DESCRIPTION = 'Limit enforcement and validation does not take project hierarchy into consideration.'
MAX_PROJECT_TREE_DEPTH = None
NAME = 'flat'
check_limit(limits)[source]

Check the new creating or updating limits if satisfy the model.

Parameters:limits (A list of the limits. Each limit is a dictionary reference containing all limit attributes.) – A list of the limit references to be checked.
Raises:keystone.exception.InvalidLimit – If any of the input limits doesn’t satisfy the limit model.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.