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_all returns each file once, while resolve repeats a file that matches on more than one field.

Parameters:
resolve(selector)#

Looks up the files one selector names.

A dataset_id narrows the lookup only alongside paths; 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.action_runtime.action_input.file_resolver.log#