keystone.limit.backends package

keystone.limit.backends package

Submodules

keystone.limit.backends.base module

class keystone.limit.backends.base.UnifiedLimitDriverBase[source]

Bases: object

create_limits(limits)[source]

Create new limits.

Parameters:

limits – a list of dictionaries representing limits to create.

Returns:

all the limits.

Raises:
create_registered_limits(registered_limits)[source]

Create new registered limits.

Parameters:registered_limits – a list of dictionaries representing limits to create.
Returns:all the registered limits.
Raises:keystone.exception.Conflict – If a duplicate registered limit exists.
delete_limit(limit_id)[source]

Delete an existing limit.

Parameters:limit_id – the limit id to delete.
Raises:keystone.exception.LimitNotFound – If limit doesn’t exist.
delete_registered_limit(registered_limit_id)[source]

Delete an existing registered limit.

Parameters:registered_limit_id – the registered limit id to delete.
Raises:keystone.exception.RegisteredLimitNotFound – If registered limit doesn’t exist.
get_limit(limit_id)[source]

Get a limit.

Parameters:limit_id – the limit id to get.
Returns:a dictionary representing a limit reference.
Raises:keystone.exception.LimitNotFound – If limit doesn’t exist.
get_registered_limit(registered_limit_id)[source]

Get a registered limit.

Parameters:registered_limit_id – the registered limit id to get.
Returns:a dictionary representing a registered limit reference.
Raises:keystone.exception.RegisteredLimitNotFound – If registered limit doesn’t exist.
list_limits(hints)[source]

List all limits.

Parameters:hints – contains the list of filters yet to be satisfied. Any filters satisfied here will be removed so that the caller will know if any filters remain.
Returns:a list of dictionaries or an empty list.
list_registered_limits(hints)[source]

List all registered limits.

Parameters:hints – contains the list of filters yet to be satisfied. Any filters satisfied here will be removed so that the caller will know if any filters remain.
Returns:a list of dictionaries or an empty registered limit.
update_limits(limits)[source]

Update existing limits.

Parameters:

limits – a list of dictionaries representing limits to update.

Returns:

all the limits.

Raises:
update_registered_limits(registered_limits)[source]

Update existing registered limits.

Parameters:

registered_limits – a list of dictionaries representing limits to update.

Returns:

all the registered limits.

Raises:

keystone.limit.backends.sql module

class keystone.limit.backends.sql.LimitModel(*args, **kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.ModelDictMixin

attributes = ['id', 'project_id', 'service_id', 'region_id', 'resource_name', 'resource_limit']
id
project_id
region_id
resource_limit
resource_name
service_id
class keystone.limit.backends.sql.RegisteredLimitModel(*args, **kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.ModelDictMixin

attributes = ['id', 'service_id', 'region_id', 'resource_name', 'default_limit']
default_limit
id
region_id
resource_name
service_id
class keystone.limit.backends.sql.UnifiedLimit[source]

Bases: keystone.limit.backends.base.UnifiedLimitDriverBase

create_limits(*args, **kwargs)[source]
create_registered_limits(*args, **kwargs)[source]
delete_limit(limit_id)[source]
delete_registered_limit(registered_limit_id)[source]
get_limit(limit_id)[source]
get_registered_limit(registered_limit_id)[source]
list_limits(hints, *args, **kwargs)[source]
list_registered_limits(hints, *args, **kwargs)[source]
update_limits(*args, **kwargs)[source]
update_registered_limits(*args, **kwargs)[source]

Module contents

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.