keystone.policy.backends.sql module

class keystone.policy.backends.sql.Policy[source]

Bases: keystone.policy.backends.rules.Policy

create_policy(**kwargs)[source]

Store a policy blob.

Raises

keystone.exception.Conflict – If a duplicate policy exists.

delete_policy(policy_id)[source]

Remove a policy blob.

Raises

keystone.exception.PolicyNotFound – If the policy doesn’t exist.

get_policy(policy_id)[source]

Retrieve a specific policy blob.

Raises

keystone.exception.PolicyNotFound – If the policy doesn’t exist.

list_policies()[source]

List all policies.

update_policy(**kwargs)[source]

Update a policy blob.

Raises

keystone.exception.PolicyNotFound – If the policy doesn’t exist.

class keystone.policy.backends.sql.PolicyModel(*args, **kwargs)[source]

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

attributes = ['id', 'blob', 'type']
blob
extra
id
type