keystone.assignment.role_backends.sql.
Role
[source]¶Bases: keystone.assignment.role_backends.base.RoleDriverBase
create_implied_role
(prior_role_id, implied_role_id)[source]¶Create a role inference rule.
keystone.exception.RoleNotFound: If the role doesn’t exist.
create_role
(role_id, role)[source]¶Create a new role.
keystone.exception.Conflict – If a duplicate role exists.
delete_implied_role
(prior_role_id, implied_role_id)[source]¶Delete a role inference rule.
keystone.exception.ImpliedRoleNotFound – If the implied role doesn’t exist.
delete_role
(role_id)[source]¶Delete an existing role.
keystone.exception.RoleNotFound – If the role doesn’t exist.
get_implied_role
(prior_role_id, implied_role_id)[source]¶Get a role inference rule.
keystone.exception.ImpliedRoleNotFound – If the implied role doesn’t exist.
get_role
(role_id)[source]¶Get a role by ID.
role_ref
keystone.exception.RoleNotFound – If the role doesn’t exist.
list_roles
(hints)[source]¶List roles in the system.
hints – filter hints which the driver should implement if at all possible.
a list of role_refs or an empty list.
list_roles_from_ids
(ids)[source]¶List roles for the provided list of ids.
role_ids – list of ids
a list of role_refs.
This method is used internally by the assignment manager to bulk read a set of roles given their ids.
update_role
(role_id, role)[source]¶Update an existing role.
keystone.exception.RoleNotFound – If the role doesn’t exist.
keystone.exception.Conflict – If a duplicate role exists.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.