Skip to main content
Version: 12 - TBD

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
clsOptional
commitbool
debugboolif set, the content of the data being written will be logged.
initOptional
orderUnionThe priority of the static wrapper.
paramsUnionThe parameters for the wrapper.
resource_idUnionReference to the resource the wrapper is mapped to.
selectOptional
wrapper_idUnionReference to the wrapper the resource is mapped to.

Constants

RESOURCE = resource_wrapper

Methods

clone

delete

exists

export

get

get_dict

resource

restore

save

wrapper