The congress.context
Module¶
RequestContext: context for requests that persist through congress.
-
class
congress.context.
RequestContext
(user_id, tenant_id, is_admin=None, read_deleted='no', roles=None, timestamp=None, load_admin_roles=True, request_id=None, tenant_name=None, user_name=None, overwrite=True, **kwargs)¶ Bases:
oslo_context.context.RequestContext
Security context and request information.
Represents the user taking a given action within the system.
-
elevated
(read_deleted=None)¶ Return a version of this context with admin flag set.
-
classmethod
from_dict
(values)¶
-
project_id
¶
-
read_deleted
¶
-
tenant_id
¶
-
to_dict
()¶
-
user_id
¶
-
-
congress.context.
get_admin_context
(read_deleted='no', load_admin_roles=True)¶