Bases: object
Create a role inference rule.
Raises: | keystone.exception.RoleNotFound: If the role doesn’t exist. |
---|
Create a new role.
Raises keystone.exception.Conflict: | |
---|---|
If a duplicate role exists. |
Delete a role inference rule.
Raises keystone.exception.ImpliedRoleNotFound: | |
---|---|
If the implied role doesn’t exist. |
Delete an existing role.
Raises keystone.exception.RoleNotFound: | |
---|---|
If the role doesn’t exist. |
Get a role inference rule.
Raises keystone.exception.ImpliedRoleNotFound: | |
---|---|
If the implied role doesn’t exist. |
Get a role by ID.
Returns: | role_ref |
---|---|
Raises keystone.exception.RoleNotFound: | |
If the role doesn’t exist. |
List roles in the system.
Parameters: | hints – filter hints which the driver should implement if at all possible. |
---|---|
Returns: | a list of role_refs or an empty list. |
List roles for the provided list of ids.
Parameters: | role_ids – list of ids |
---|---|
Returns: | 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 an existing role.
Raises: |
|
---|
Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.DictBase
Bases: keystone.assignment.role_backends.base.RoleDriverBase