@@ -26,9 +26,12 @@ def build_process_dict(
26
26
categories : Optional [List [str ]] = None ,
27
27
examples : Optional [List [dict ]] = None ,
28
28
links : Optional [List [dict ]] = None ,
29
+ default_synchronous_options : Optional [dict ] = None ,
30
+ default_job_options : Optional [dict ] = None ,
31
+ default_service_options : Optional [dict ] = None ,
29
32
) -> dict :
30
33
"""
31
- Build a dictionary describing a process with metadaa (`process_graph`, `parameters`, `description`, ...)
34
+ Build a dictionary describing a process with metadata (`process_graph`, `parameters`, `description`, ...)
32
35
33
36
:param process_graph: dict or builder representing a process graph
34
37
:param process_id: identifier of the process
@@ -39,7 +42,19 @@ def build_process_dict(
39
42
:param categories: list of categories
40
43
:param examples: list of examples, may be used for unit tests
41
44
:param links: list of links related to the process
45
+ :param default_synchronous_options: default processing options for synchronous processing
46
+ (per `Processing Parameters Extension <https://github.com/Open-EO/openeo-api/tree/draft/extensions/processing-parameters>`_)
47
+ :param default_job_options: default options for batch job execution
48
+ (per `Processing Parameters Extension <https://github.com/Open-EO/openeo-api/tree/draft/extensions/processing-parameters>`_)
49
+ :param default_service_options: default options for secondary service related processing
50
+ (per `Processing Parameters Extension <https://github.com/Open-EO/openeo-api/tree/draft/extensions/processing-parameters>`_)
51
+
42
52
:return: dictionary in openEO "process graph with metadata" format
53
+
54
+ .. versionchanged:: 0.39.0
55
+ Added ``default_synchronous_options``, ``default_job_options`` and ``default_service_options`` arguments
56
+ (per `Processing Parameters Extension <https://github.com/Open-EO/openeo-api/tree/draft/extensions/processing-parameters>`_)
57
+
43
58
"""
44
59
process = dict_no_none (
45
60
process_graph = as_flat_graph (process_graph ),
@@ -49,7 +64,10 @@ def build_process_dict(
49
64
returns = returns ,
50
65
categories = categories ,
51
66
examples = examples ,
52
- links = links
67
+ links = links ,
68
+ default_synchronous_options = default_synchronous_options ,
69
+ default_job_options = default_job_options ,
70
+ default_service_options = default_service_options ,
53
71
)
54
72
if parameters is not None :
55
73
process ["parameters" ] = [
0 commit comments