Skip to main content
Version: 12 - TBD

RolePermission

class flow_api.role_permission.RolePermission(select=None, cls=None, init=None, by='id', allow_normal=True, allow_deleted=False, commit=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
clsOptional
commitbool
debugboolif set, the content of the data being written will be logged.
initOptional
operationUnionWhich operation the role_permission permits.
project_idUnionIn which project the role_permission permits operations.
role_idUnionReference to the role this role_permission belongs to.
selectOptional
table_typeUnionFor which table the role_permission permits operations.

Constants

RESOURCE = role_permission

Methods

clone

delete

exists

export

get

get_dict

project

restore

role

save