@@ -112,51 +112,6 @@ def ext_federation(self) -> FederationExtension:
112
112
return FederationExtension (self ._data )
113
113
114
114
115
- class UserDefinedProcessListingResponse (list ):
116
- """
117
- Container for process metadata listing received
118
- from a ``GET /process_graphs`` request.
119
-
120
- .. note::
121
- This object mimics a simple list of collection metadata dictionaries,
122
- which was the original return API of
123
- :py:meth:`~openeo.rest.connection.Connection.list_user_defined_processes()`,
124
- but now also provides methods/properties to access additional response data.
125
-
126
- :param response_data: response data from a ``GET /process_graphs`` request
127
-
128
- .. seealso:: :py:meth:`openeo.rest.connection.Connection.list_user_defined_processes()`
129
-
130
- .. versionadded:: 0.38.0
131
- """
132
-
133
- # TODO: this is a copy of ProcessListingResponse, but with different class name
134
-
135
- __slots__ = ["_data" ]
136
-
137
- def __init__ (self , response_data : dict , * , warn_on_federation_missing : bool = True ):
138
- self ._data = response_data
139
- # Mimic original list of process metadata dictionaries
140
- super ().__init__ (response_data ["processes" ])
141
- if warn_on_federation_missing :
142
- self .ext_federation .warn_on_missing (resource_name = "process listing" )
143
-
144
- def _repr_html_ (self ):
145
- return render_component (
146
- component = "processes" , data = self , parameters = {"show-graph" : True , "provide-download" : False }
147
- )
148
-
149
- @property
150
- def links (self ) -> List [Link ]:
151
- """Get links related to this resource."""
152
- return [Link .from_dict (d ) for d in self ._data .get ("links" , [])]
153
-
154
- @property
155
- def ext_federation (self ) -> FederationExtension :
156
- """Accessor for federation extension data related to this resource."""
157
- return FederationExtension (self ._data )
158
-
159
-
160
115
class JobListingResponse (list ):
161
116
"""
162
117
Container for job metadata listing received
0 commit comments