Role
class flow_api.role.Role
(select=None, init=None, by=name, **kwargs
)
Base class: Resource
A Role which can be assigned to records which have an identity.
A role can be created with system.role('rolename').save()
inside the
handler
function of a flow script using the system
reference.
See the corresponding Resources class at Role
Parameters
Name | Type | Description |
---|---|---|
**kwargs | ||
by | ||
init | ||
select |
Constants
RESOURCE = roleMethods
add_identity (identity, propagate=True)
add_permission (project=None, record=None, operation=None)
add_tag (tag)
archive ()
clone (update=None, **kwargs)
delete (permanently=False)
exists ()
export ()
get (*fields, default=None)
get_dict (*fields, default=None)
get_identities (limit=1000, offset=0, order=None)
get_identity_created_by ()
get_identity_modified_by ()
get_permissions (limit=None, offset=0, order=None)
get_tags (limit=1000, offset=0, order=None)
load (*fields)
remove_identity (identity)
remove_permission (permission)
remove_tag (tag)
restore ()
save (update=None, **kwargs)
set (key, value)