roboto.action_runtime.action_input.file_resolver#
Module Contents#
- class roboto.action_runtime.action_input.file_resolver.InputFileResolver(roboto_client=None, roboto_search=None)#
Looks up the files an action invocation runs on, from the file selectors declared as its inputs.
A selector names files by ID, by name, by path within a dataset, or with a RoboQL query; every field it populates is looked up and the matches are returned together.
resolve_allreturns each file once, whileresolverepeats a file that matches on more than one field.- Parameters:
roboto_client (Optional[roboto.http.RobotoClient])
roboto_search (Optional[roboto.roboto_search.RobotoSearch])
- resolve(selector)#
Looks up the files one selector names.
A
dataset_idnarrows the lookup only alongsidepaths; every other field ignores it, with a warning.- Parameters:
selector (roboto.domain.actions.FileSelector)
- Return type:
list[roboto.domain.files.File]
- resolve_all(file_selectors)#
- Parameters:
file_selectors (collections.abc.Sequence[roboto.domain.actions.FileSelector])
- Return type:
list[roboto.domain.files.File]
- roboto_client = None#
- roboto_search#
- roboto.action_runtime.action_input.file_resolver.log#