Skip to main content
Version: 9 - Germknödel

RolePermission

class flow_api.role_permission.RolePermission(select=None, cls=None, init=None, by='id', allow_normal=True, allow_deleted=False, operation=<class 'flow_api.system.NotSet'>, project_id=<class 'flow_api.system.NotSet'>, role_id=<class 'flow_api.system.NotSet'>, table_type=<class 'flow_api.system.NotSet'>, debug=False)

Base class: Row

The RolePermission class allows for defining which operations are allowed on which tables.

Parameters

NameTypeDescription
allow_deletedbool
allow_normalbool
bystr
clstyping.Union[ type, NoneType ]
debugboolif set, the content of the data being written will be logged.
inittyping.Union[ dict, NoneType ]
operationtyping.Union[ flow_api.system.NotSet, str, NoneType ]Which operation the role_permission permits.
project_idtyping.Union[ flow_api.system.NotSet, str, NoneType ]In which project the role_permission permits operations.
role_idtyping.Union[ flow_api.system.NotSet, str ]Reference to the role this role_permission belongs to.
selecttyping.Union[ str, NoneType ]
table_typetyping.Union[ flow_api.system.NotSet, str, NoneType ]For which table the role_permission permits operations.

Constants

RESOURCE = role_permission

Methods

clone

delete

exists

export

get

get_dict

project

restore

role

save