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
Name | Type | Description |
---|---|---|
allow_deleted | bool | |
allow_normal | bool | |
by | str | |
cls | typing.Union[ type, NoneType ] | |
commit | bool | |
debug | bool | if set, the content of the data being written will be logged. |
init | typing.Union[ dict, NoneType ] | |
order | typing.Union[ flow_api.system.NotSet, int ] | The priority of the static wrapper. |
params | typing.Union[ flow_api.system.NotSet, typing.Any ] | The parameters for the wrapper. |
resource_id | typing.Union[ flow_api.system.NotSet, str ] | Reference to the resource the wrapper is mapped to. |
select | typing.Union[ str, NoneType ] | |
wrapper_id | typing.Union[ flow_api.system.NotSet, str ] | Reference to the wrapper the resource is mapped to. |
Constants
RESOURCE = resource_wrapperMethods
clone
details
delete
details
exists
details
export
details
get
details
get_dict
details
resource
details
restore
details
save
details
wrapper
details