Skip to main content
Version: 10 - Vanillekipferl

ResourceWrapper

class flow_api.resource_wrapper.ResourceWrapper(select=None, cls=None, init=None, by='id', allow_normal=True, allow_deleted=False, commit=False, order=<class 'flow_api.system.NotSet'>, params=<class 'flow_api.system.NotSet'>, resource_id=<class 'flow_api.system.NotSet'>, wrapper_id=<class 'flow_api.system.NotSet'>, debug=False)

Base class: Row

Mapping a wrapper to a resource. Used for defining static wrappers.

Parameters

NameTypeDescription
allow_deletedbool
allow_normalbool
bystr
clstyping.Union[ type, NoneType ]
commitbool
debugboolif set, the content of the data being written will be logged.
inittyping.Union[ dict, NoneType ]
ordertyping.Union[ flow_api.system.NotSet, int ]The priority of the static wrapper.
paramstyping.Union[ flow_api.system.NotSet, typing.Any ]The parameters for the wrapper.
resource_idtyping.Union[ flow_api.system.NotSet, str ]Reference to the resource the wrapper is mapped to.
selecttyping.Union[ str, NoneType ]
wrapper_idtyping.Union[ flow_api.system.NotSet, str ]Reference to the wrapper the resource is mapped to.

Constants

RESOURCE = resource_wrapper

Methods

clone

delete

exists

export

get

get_dict

resource

restore

save

wrapper