step_rest_client 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. step_rest_client/__init__.py +136 -0
  2. step_rest_client/api/__init__.py +26 -0
  3. step_rest_client/api/assets_api.py +7960 -0
  4. step_rest_client/api/attributes_api.py +340 -0
  5. step_rest_client/api/background_process_types_api.py +640 -0
  6. step_rest_client/api/background_processes_api.py +1577 -0
  7. step_rest_client/api/classifications_api.py +7991 -0
  8. step_rest_client/api/data_container_types_api.py +340 -0
  9. step_rest_client/api/data_type_groups_api.py +340 -0
  10. step_rest_client/api/entities_api.py +8680 -0
  11. step_rest_client/api/event_processors_api.py +3337 -0
  12. step_rest_client/api/export_api.py +383 -0
  13. step_rest_client/api/gateway_integration_endpoints_api.py +1232 -0
  14. step_rest_client/api/import_api.py +390 -0
  15. step_rest_client/api/inbound_integration_endpoints_api.py +2815 -0
  16. step_rest_client/api/lists_of_values_api.py +642 -0
  17. step_rest_client/api/object_types_api.py +340 -0
  18. step_rest_client/api/outbound_integration_endpoints_api.py +3655 -0
  19. step_rest_client/api/products_api.py +8007 -0
  20. step_rest_client/api/reference_types_api.py +340 -0
  21. step_rest_client/api/reporting_api.py +707 -0
  22. step_rest_client/api/units_api.py +340 -0
  23. step_rest_client/api/workflow_tasks_api.py +1887 -0
  24. step_rest_client/api/workflows_api.py +1270 -0
  25. step_rest_client/api_client.py +797 -0
  26. step_rest_client/api_response.py +21 -0
  27. step_rest_client/configuration.py +597 -0
  28. step_rest_client/exceptions.py +216 -0
  29. step_rest_client/models/__init__.py +98 -0
  30. step_rest_client/models/amount.py +89 -0
  31. step_rest_client/models/and_condition.py +107 -0
  32. step_rest_client/models/approval_response.py +87 -0
  33. step_rest_client/models/approval_status.py +99 -0
  34. step_rest_client/models/asset.py +129 -0
  35. step_rest_client/models/attribute.py +120 -0
  36. step_rest_client/models/attribute_link.py +102 -0
  37. step_rest_client/models/background_process.py +139 -0
  38. step_rest_client/models/background_process_attachment_metadata.py +105 -0
  39. step_rest_client/models/background_process_identification.py +89 -0
  40. step_rest_client/models/background_process_type.py +89 -0
  41. step_rest_client/models/classification.py +135 -0
  42. step_rest_client/models/condition.py +265 -0
  43. step_rest_client/models/data_container.py +139 -0
  44. step_rest_client/models/data_container_entry.py +117 -0
  45. step_rest_client/models/data_container_object_condition.py +181 -0
  46. step_rest_client/models/data_container_type.py +106 -0
  47. step_rest_client/models/data_type_group.py +108 -0
  48. step_rest_client/models/endpoint_statistics.py +109 -0
  49. step_rest_client/models/endpoint_status.py +99 -0
  50. step_rest_client/models/entity.py +142 -0
  51. step_rest_client/models/error.py +91 -0
  52. step_rest_client/models/event_processor.py +93 -0
  53. step_rest_client/models/event_processor_statistics.py +97 -0
  54. step_rest_client/models/event_processor_status.py +99 -0
  55. step_rest_client/models/event_queue_status.py +89 -0
  56. step_rest_client/models/execution_report_entry.py +103 -0
  57. step_rest_client/models/export_specification.py +89 -0
  58. step_rest_client/models/find_similar_business_rule_result.py +91 -0
  59. step_rest_client/models/find_similar_entities_request.py +95 -0
  60. step_rest_client/models/find_similar_entities_response.py +103 -0
  61. step_rest_client/models/find_similar_entities_response_record.py +95 -0
  62. step_rest_client/models/find_similar_execution_report.py +103 -0
  63. step_rest_client/models/gateway_integration_endpoint.py +93 -0
  64. step_rest_client/models/has_data_container_object_condition.py +106 -0
  65. step_rest_client/models/has_reference_to_condition.py +108 -0
  66. step_rest_client/models/id_condition.py +105 -0
  67. step_rest_client/models/inbound_integration_endpoint.py +93 -0
  68. step_rest_client/models/incoming_reference_entry.py +118 -0
  69. step_rest_client/models/list_of_values.py +110 -0
  70. step_rest_client/models/list_of_values_entry.py +91 -0
  71. step_rest_client/models/lov_value_condition.py +100 -0
  72. step_rest_client/models/match_and_merge_execution_report.py +119 -0
  73. step_rest_client/models/match_and_merge_general_execution_report.py +91 -0
  74. step_rest_client/models/match_and_merge_potential_duplicate.py +93 -0
  75. step_rest_client/models/match_and_merge_record_in.py +95 -0
  76. step_rest_client/models/match_and_merge_record_out.py +117 -0
  77. step_rest_client/models/match_and_merge_response.py +103 -0
  78. step_rest_client/models/multi_data_container.py +101 -0
  79. step_rest_client/models/multi_reference.py +97 -0
  80. step_rest_client/models/multi_value.py +103 -0
  81. step_rest_client/models/name_condition.py +107 -0
  82. step_rest_client/models/numeric_value_condition.py +111 -0
  83. step_rest_client/models/object_type.py +104 -0
  84. step_rest_client/models/object_type_condition.py +96 -0
  85. step_rest_client/models/or_condition.py +107 -0
  86. step_rest_client/models/outbound_integration_endpoint.py +93 -0
  87. step_rest_client/models/product.py +150 -0
  88. step_rest_client/models/query.py +91 -0
  89. step_rest_client/models/query_result.py +99 -0
  90. step_rest_client/models/reference.py +139 -0
  91. step_rest_client/models/reference_entry.py +141 -0
  92. step_rest_client/models/reference_metadata_condition.py +181 -0
  93. step_rest_client/models/reference_type.py +114 -0
  94. step_rest_client/models/rejected_by_business_condition.py +93 -0
  95. step_rest_client/models/simple_below_condition.py +105 -0
  96. step_rest_client/models/single_data_container.py +97 -0
  97. step_rest_client/models/single_reference.py +93 -0
  98. step_rest_client/models/single_value.py +103 -0
  99. step_rest_client/models/status_flag.py +89 -0
  100. step_rest_client/models/text_value_condition.py +111 -0
  101. step_rest_client/models/trigger_workflow_event.py +93 -0
  102. step_rest_client/models/unit.py +104 -0
  103. step_rest_client/models/value.py +137 -0
  104. step_rest_client/models/value_entry.py +91 -0
  105. step_rest_client/models/workflow.py +91 -0
  106. step_rest_client/models/workflow_event.py +89 -0
  107. step_rest_client/models/workflow_instance.py +87 -0
  108. step_rest_client/models/workflow_instance_creation.py +93 -0
  109. step_rest_client/models/workflow_node.py +99 -0
  110. step_rest_client/models/workflow_task.py +113 -0
  111. step_rest_client/models/workflow_task_query.py +101 -0
  112. step_rest_client/py.typed +0 -0
  113. step_rest_client/rest.py +258 -0
  114. step_rest_client-1.0.0.dist-info/METADATA +23 -0
  115. step_rest_client-1.0.0.dist-info/RECORD +117 -0
  116. step_rest_client-1.0.0.dist-info/WHEEL +5 -0
  117. step_rest_client-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1577 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STEP REST API V2
5
+
6
+ <h1>About</h1><p>The STEP REST API V2 provides read and write access to a set of core STEP objects using the HTTP operations GET, PUT, POST, PATCH and DELETE.</p><h1>Resource Representation</h1><p>With the exception of a few resource operations for retrieving and uploading binary data, all request and response bodies are JSON, compliant with the schema documented here.</p><h1>Context and Workspace</h1><p>All requests are handled in a specific STEP context and workspace and both can be specified via query parameters available for all resource operations. A context must always be specified while requests per default will be handled in the &quot;Main&quot; workspace.</p><h1>Polymorphism</h1><p>In STEP, attributes, reference types and data container types can all be either single- or multivalued. The STEP REST API V2 uses polymorphism to address this complexity with resources that include values, references and data containers specified to produce and consume a common &quot;abstract&quot; supertype that always will be one of either the single- or multivalued subtype.<br/>As an example, the GET /entities/{id}/values/{attributeId} resource operation is specified to return a &quot;Value&quot; but as evident from the model, the &quot;Value&quot; will always be &quot;oneOf&quot; either &quot;SingleValue&quot;, that has a &quot;value&quot; property for which the value is an object, or &quot;MultiValue&quot;, that has a &quot;values&quot; property for which the value is an array.<br/>Clients are advised to use the presence or absence of the plural array property (&quot;values&quot;, &quot;references&quot; and &quot;dataContainers&quot;) to determine the concrete type.</p><h1>Authentication</h1><p>The REST API is protected by HTTP Basic Authentication or if OAuth2-based authentication is enabled (SaaS customers only), by Bearer Authentication. With Basic Authentication, user name and password are supplied with each request and it is therefore highly recommended to only use the API in conjunction with HTTPS. For more information about OAuth2-based authentication for SaaS customers, please see the STEP Authentication Guide.</p><h1>Versioning</h1><p>The STEP REST API V2 is versioned using semantic versioning. Stibo Systems reserve the right to make non-breaking, minor / patch changes in any release without warning and clients must be coded / configured to be 'tolerant' and capable of handling such changes.</p><p>Examples of breaking, major changes:</p><ul><li>Renaming of a property</li><li>Removal of a property</li><li>Property type change</li><li>Addition of new property required for write operations</li><li>Marking existing property as required for write operations</li><li>Removal of resource or resource operation</li><li>Materially different behavior for existing resource operation</li></ul><p>Examples of non-breaking, minor / patch changes:</p><ul><li>Addition of new properties in request responses</li><li>Addition of new query parameter not required for write operations</li><li>Addition of new resource or resource operation</li><li>Bug fixes that do not change the schema or resource operations as described here</li><li>Inclusion of a response body for resource operations specified to return a 200 response with no body</li><li>Change of response &quot;Model&quot; / &quot;schema&quot; to type extending the previously specified type</li><li>Renaming a &quot;Model&quot; / &quot;schema&quot; type</li></ul><p>In addition, error message texts may change without warning within the same version. Client program logic should not depend upon the message content.</p><h1>Error Handling</h1><p>The STEP REST API V2 responds with standard HTTP status codes, with 2** responses indicating a success, 4** responses indicating a client error and 5** indicating a server error. Notice that this specification does not specify common error responses like 500 (internal server error) or 401 (unauthorized) for the individual resource operations. Clients should however be capable of handling such responses.</p><p>Error responses have a JSON response body (see Error schema below) containing HTTP status code information in addition to a message providing details about the error. As mentioned above, client program logic should not depend upon the message content.</p><p>The specific status codes used in the API are:</p><ul><li>200 (OK): Success, response may or may not have a body</li><li>201 (Created): Entity successfully created, response may or may not have a body</li><li>400 (Bad request): The server cannot or will not process the request due to an apparent client error</li><li>401 (Unauthorized): Returned only in relation to failed authentication</li><li>404 (Not Found): Returned only in relation to objects specified via path parameters (variable parts of the URL). If STEP objects referenced in request bodies or via query parameters cannot be found, the response will be 400.</li><li>429 (Too Many Requests): Clients are per default limited to 100 requests per second. Returned if the rate limit is exceeded.</li><li>500 (Internal Server Error): Unexpected error (could potentially cover an issue that rightfully should be a 400)</li></ul>
7
+
8
+ The version of the OpenAPI document: 1.3.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictBytes, StrictStr
20
+ from typing import List, Optional, Tuple, Union
21
+ from typing_extensions import Annotated
22
+ from step_rest_client.models.background_process import BackgroundProcess
23
+ from step_rest_client.models.background_process_attachment_metadata import BackgroundProcessAttachmentMetadata
24
+ from step_rest_client.models.execution_report_entry import ExecutionReportEntry
25
+
26
+ from step_rest_client.api_client import ApiClient, RequestSerialized
27
+ from step_rest_client.api_response import ApiResponse
28
+ from step_rest_client.rest import RESTResponseType
29
+
30
+
31
+ class BackgroundProcessesApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ def background_processes_id_attachments_attachment_id_content_get(
46
+ self,
47
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
48
+ attachment_id: Annotated[StrictStr, Field(description="ID of the attachment")],
49
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
50
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
51
+ _request_timeout: Union[
52
+ None,
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Tuple[
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Annotated[StrictFloat, Field(gt=0)]
57
+ ]
58
+ ] = None,
59
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
60
+ _content_type: Optional[StrictStr] = None,
61
+ _headers: Optional[Dict[StrictStr, Any]] = None,
62
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
+ ) -> bytearray:
64
+ """Returns the background process attachment content
65
+
66
+ Operation for downloading attachment content for a specific background process attachment
67
+
68
+ :param id: ID of the background process for which to retrieve data (required)
69
+ :type id: str
70
+ :param attachment_id: ID of the attachment (required)
71
+ :type attachment_id: str
72
+ :param context: ID of the context in which to perform the operation (required)
73
+ :type context: str
74
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
75
+ :type workspace: str
76
+ :param _request_timeout: timeout setting for this request. If one
77
+ number provided, it will be total request
78
+ timeout. It can also be a pair (tuple) of
79
+ (connection, read) timeouts.
80
+ :type _request_timeout: int, tuple(int, int), optional
81
+ :param _request_auth: set to override the auth_settings for an a single
82
+ request; this effectively ignores the
83
+ authentication in the spec for a single request.
84
+ :type _request_auth: dict, optional
85
+ :param _content_type: force content-type for the request.
86
+ :type _content_type: str, Optional
87
+ :param _headers: set to override the headers for a single
88
+ request; this effectively ignores the headers
89
+ in the spec for a single request.
90
+ :type _headers: dict, optional
91
+ :param _host_index: set to override the host_index for a single
92
+ request; this effectively ignores the host_index
93
+ in the spec for a single request.
94
+ :type _host_index: int, optional
95
+ :return: Returns the result object.
96
+ """ # noqa: E501
97
+
98
+ _param = self._background_processes_id_attachments_attachment_id_content_get_serialize(
99
+ id=id,
100
+ attachment_id=attachment_id,
101
+ context=context,
102
+ workspace=workspace,
103
+ _request_auth=_request_auth,
104
+ _content_type=_content_type,
105
+ _headers=_headers,
106
+ _host_index=_host_index
107
+ )
108
+
109
+ _response_types_map: Dict[str, Optional[str]] = {
110
+ '200': "bytearray",
111
+ '400': "Error",
112
+ '404': "Error",
113
+ }
114
+ response_data = self.api_client.call_api(
115
+ *_param,
116
+ _request_timeout=_request_timeout
117
+ )
118
+ response_data.read()
119
+ return self.api_client.response_deserialize(
120
+ response_data=response_data,
121
+ response_types_map=_response_types_map,
122
+ ).data
123
+
124
+
125
+ @validate_call
126
+ def background_processes_id_attachments_attachment_id_content_get_with_http_info(
127
+ self,
128
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
129
+ attachment_id: Annotated[StrictStr, Field(description="ID of the attachment")],
130
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
131
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
132
+ _request_timeout: Union[
133
+ None,
134
+ Annotated[StrictFloat, Field(gt=0)],
135
+ Tuple[
136
+ Annotated[StrictFloat, Field(gt=0)],
137
+ Annotated[StrictFloat, Field(gt=0)]
138
+ ]
139
+ ] = None,
140
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
141
+ _content_type: Optional[StrictStr] = None,
142
+ _headers: Optional[Dict[StrictStr, Any]] = None,
143
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
144
+ ) -> ApiResponse[bytearray]:
145
+ """Returns the background process attachment content
146
+
147
+ Operation for downloading attachment content for a specific background process attachment
148
+
149
+ :param id: ID of the background process for which to retrieve data (required)
150
+ :type id: str
151
+ :param attachment_id: ID of the attachment (required)
152
+ :type attachment_id: str
153
+ :param context: ID of the context in which to perform the operation (required)
154
+ :type context: str
155
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
156
+ :type workspace: str
157
+ :param _request_timeout: timeout setting for this request. If one
158
+ number provided, it will be total request
159
+ timeout. It can also be a pair (tuple) of
160
+ (connection, read) timeouts.
161
+ :type _request_timeout: int, tuple(int, int), optional
162
+ :param _request_auth: set to override the auth_settings for an a single
163
+ request; this effectively ignores the
164
+ authentication in the spec for a single request.
165
+ :type _request_auth: dict, optional
166
+ :param _content_type: force content-type for the request.
167
+ :type _content_type: str, Optional
168
+ :param _headers: set to override the headers for a single
169
+ request; this effectively ignores the headers
170
+ in the spec for a single request.
171
+ :type _headers: dict, optional
172
+ :param _host_index: set to override the host_index for a single
173
+ request; this effectively ignores the host_index
174
+ in the spec for a single request.
175
+ :type _host_index: int, optional
176
+ :return: Returns the result object.
177
+ """ # noqa: E501
178
+
179
+ _param = self._background_processes_id_attachments_attachment_id_content_get_serialize(
180
+ id=id,
181
+ attachment_id=attachment_id,
182
+ context=context,
183
+ workspace=workspace,
184
+ _request_auth=_request_auth,
185
+ _content_type=_content_type,
186
+ _headers=_headers,
187
+ _host_index=_host_index
188
+ )
189
+
190
+ _response_types_map: Dict[str, Optional[str]] = {
191
+ '200': "bytearray",
192
+ '400': "Error",
193
+ '404': "Error",
194
+ }
195
+ response_data = self.api_client.call_api(
196
+ *_param,
197
+ _request_timeout=_request_timeout
198
+ )
199
+ response_data.read()
200
+ return self.api_client.response_deserialize(
201
+ response_data=response_data,
202
+ response_types_map=_response_types_map,
203
+ )
204
+
205
+
206
+ @validate_call
207
+ def background_processes_id_attachments_attachment_id_content_get_without_preload_content(
208
+ self,
209
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
210
+ attachment_id: Annotated[StrictStr, Field(description="ID of the attachment")],
211
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
212
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
213
+ _request_timeout: Union[
214
+ None,
215
+ Annotated[StrictFloat, Field(gt=0)],
216
+ Tuple[
217
+ Annotated[StrictFloat, Field(gt=0)],
218
+ Annotated[StrictFloat, Field(gt=0)]
219
+ ]
220
+ ] = None,
221
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
222
+ _content_type: Optional[StrictStr] = None,
223
+ _headers: Optional[Dict[StrictStr, Any]] = None,
224
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
225
+ ) -> RESTResponseType:
226
+ """Returns the background process attachment content
227
+
228
+ Operation for downloading attachment content for a specific background process attachment
229
+
230
+ :param id: ID of the background process for which to retrieve data (required)
231
+ :type id: str
232
+ :param attachment_id: ID of the attachment (required)
233
+ :type attachment_id: str
234
+ :param context: ID of the context in which to perform the operation (required)
235
+ :type context: str
236
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
237
+ :type workspace: str
238
+ :param _request_timeout: timeout setting for this request. If one
239
+ number provided, it will be total request
240
+ timeout. It can also be a pair (tuple) of
241
+ (connection, read) timeouts.
242
+ :type _request_timeout: int, tuple(int, int), optional
243
+ :param _request_auth: set to override the auth_settings for an a single
244
+ request; this effectively ignores the
245
+ authentication in the spec for a single request.
246
+ :type _request_auth: dict, optional
247
+ :param _content_type: force content-type for the request.
248
+ :type _content_type: str, Optional
249
+ :param _headers: set to override the headers for a single
250
+ request; this effectively ignores the headers
251
+ in the spec for a single request.
252
+ :type _headers: dict, optional
253
+ :param _host_index: set to override the host_index for a single
254
+ request; this effectively ignores the host_index
255
+ in the spec for a single request.
256
+ :type _host_index: int, optional
257
+ :return: Returns the result object.
258
+ """ # noqa: E501
259
+
260
+ _param = self._background_processes_id_attachments_attachment_id_content_get_serialize(
261
+ id=id,
262
+ attachment_id=attachment_id,
263
+ context=context,
264
+ workspace=workspace,
265
+ _request_auth=_request_auth,
266
+ _content_type=_content_type,
267
+ _headers=_headers,
268
+ _host_index=_host_index
269
+ )
270
+
271
+ _response_types_map: Dict[str, Optional[str]] = {
272
+ '200': "bytearray",
273
+ '400': "Error",
274
+ '404': "Error",
275
+ }
276
+ response_data = self.api_client.call_api(
277
+ *_param,
278
+ _request_timeout=_request_timeout
279
+ )
280
+ return response_data.response
281
+
282
+
283
+ def _background_processes_id_attachments_attachment_id_content_get_serialize(
284
+ self,
285
+ id,
286
+ attachment_id,
287
+ context,
288
+ workspace,
289
+ _request_auth,
290
+ _content_type,
291
+ _headers,
292
+ _host_index,
293
+ ) -> RequestSerialized:
294
+
295
+ _host = None
296
+
297
+ _collection_formats: Dict[str, str] = {
298
+ }
299
+
300
+ _path_params: Dict[str, str] = {}
301
+ _query_params: List[Tuple[str, str]] = []
302
+ _header_params: Dict[str, Optional[str]] = _headers or {}
303
+ _form_params: List[Tuple[str, str]] = []
304
+ _files: Dict[
305
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
306
+ ] = {}
307
+ _body_params: Optional[bytes] = None
308
+
309
+ # process the path parameters
310
+ if id is not None:
311
+ _path_params['id'] = id
312
+ if attachment_id is not None:
313
+ _path_params['attachmentId'] = attachment_id
314
+ # process the query parameters
315
+ if context is not None:
316
+
317
+ _query_params.append(('context', context))
318
+
319
+ if workspace is not None:
320
+
321
+ _query_params.append(('workspace', workspace))
322
+
323
+ # process the header parameters
324
+ # process the form parameters
325
+ # process the body parameter
326
+
327
+
328
+ # set the HTTP header `Accept`
329
+ if 'Accept' not in _header_params:
330
+ _header_params['Accept'] = self.api_client.select_header_accept(
331
+ [
332
+ 'application/octet-stream',
333
+ 'application/json'
334
+ ]
335
+ )
336
+
337
+
338
+ # authentication setting
339
+ _auth_settings: List[str] = [
340
+ 'basicAuth'
341
+ ]
342
+
343
+ return self.api_client.param_serialize(
344
+ method='GET',
345
+ resource_path='/background-processes/{id}/attachments/{attachmentId}/content',
346
+ path_params=_path_params,
347
+ query_params=_query_params,
348
+ header_params=_header_params,
349
+ body=_body_params,
350
+ post_params=_form_params,
351
+ files=_files,
352
+ auth_settings=_auth_settings,
353
+ collection_formats=_collection_formats,
354
+ _host=_host,
355
+ _request_auth=_request_auth
356
+ )
357
+
358
+
359
+
360
+
361
+ @validate_call
362
+ def background_processes_id_attachments_attachment_id_get(
363
+ self,
364
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
365
+ attachment_id: Annotated[StrictStr, Field(description="ID of the attachment")],
366
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
367
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
368
+ _request_timeout: Union[
369
+ None,
370
+ Annotated[StrictFloat, Field(gt=0)],
371
+ Tuple[
372
+ Annotated[StrictFloat, Field(gt=0)],
373
+ Annotated[StrictFloat, Field(gt=0)]
374
+ ]
375
+ ] = None,
376
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
377
+ _content_type: Optional[StrictStr] = None,
378
+ _headers: Optional[Dict[StrictStr, Any]] = None,
379
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
380
+ ) -> BackgroundProcessAttachmentMetadata:
381
+ """Returns attachment metadata for a specific attachment
382
+
383
+ Operation for retrieving an attachment metadata object for a specific attachment. Should only be called for succeeded background processes.
384
+
385
+ :param id: ID of the background process for which to retrieve data (required)
386
+ :type id: str
387
+ :param attachment_id: ID of the attachment (required)
388
+ :type attachment_id: str
389
+ :param context: ID of the context in which to perform the operation (required)
390
+ :type context: str
391
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
392
+ :type workspace: str
393
+ :param _request_timeout: timeout setting for this request. If one
394
+ number provided, it will be total request
395
+ timeout. It can also be a pair (tuple) of
396
+ (connection, read) timeouts.
397
+ :type _request_timeout: int, tuple(int, int), optional
398
+ :param _request_auth: set to override the auth_settings for an a single
399
+ request; this effectively ignores the
400
+ authentication in the spec for a single request.
401
+ :type _request_auth: dict, optional
402
+ :param _content_type: force content-type for the request.
403
+ :type _content_type: str, Optional
404
+ :param _headers: set to override the headers for a single
405
+ request; this effectively ignores the headers
406
+ in the spec for a single request.
407
+ :type _headers: dict, optional
408
+ :param _host_index: set to override the host_index for a single
409
+ request; this effectively ignores the host_index
410
+ in the spec for a single request.
411
+ :type _host_index: int, optional
412
+ :return: Returns the result object.
413
+ """ # noqa: E501
414
+
415
+ _param = self._background_processes_id_attachments_attachment_id_get_serialize(
416
+ id=id,
417
+ attachment_id=attachment_id,
418
+ context=context,
419
+ workspace=workspace,
420
+ _request_auth=_request_auth,
421
+ _content_type=_content_type,
422
+ _headers=_headers,
423
+ _host_index=_host_index
424
+ )
425
+
426
+ _response_types_map: Dict[str, Optional[str]] = {
427
+ '200': "BackgroundProcessAttachmentMetadata",
428
+ '400': "Error",
429
+ '404': "Error",
430
+ }
431
+ response_data = self.api_client.call_api(
432
+ *_param,
433
+ _request_timeout=_request_timeout
434
+ )
435
+ response_data.read()
436
+ return self.api_client.response_deserialize(
437
+ response_data=response_data,
438
+ response_types_map=_response_types_map,
439
+ ).data
440
+
441
+
442
+ @validate_call
443
+ def background_processes_id_attachments_attachment_id_get_with_http_info(
444
+ self,
445
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
446
+ attachment_id: Annotated[StrictStr, Field(description="ID of the attachment")],
447
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
448
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
449
+ _request_timeout: Union[
450
+ None,
451
+ Annotated[StrictFloat, Field(gt=0)],
452
+ Tuple[
453
+ Annotated[StrictFloat, Field(gt=0)],
454
+ Annotated[StrictFloat, Field(gt=0)]
455
+ ]
456
+ ] = None,
457
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
458
+ _content_type: Optional[StrictStr] = None,
459
+ _headers: Optional[Dict[StrictStr, Any]] = None,
460
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
461
+ ) -> ApiResponse[BackgroundProcessAttachmentMetadata]:
462
+ """Returns attachment metadata for a specific attachment
463
+
464
+ Operation for retrieving an attachment metadata object for a specific attachment. Should only be called for succeeded background processes.
465
+
466
+ :param id: ID of the background process for which to retrieve data (required)
467
+ :type id: str
468
+ :param attachment_id: ID of the attachment (required)
469
+ :type attachment_id: str
470
+ :param context: ID of the context in which to perform the operation (required)
471
+ :type context: str
472
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
473
+ :type workspace: str
474
+ :param _request_timeout: timeout setting for this request. If one
475
+ number provided, it will be total request
476
+ timeout. It can also be a pair (tuple) of
477
+ (connection, read) timeouts.
478
+ :type _request_timeout: int, tuple(int, int), optional
479
+ :param _request_auth: set to override the auth_settings for an a single
480
+ request; this effectively ignores the
481
+ authentication in the spec for a single request.
482
+ :type _request_auth: dict, optional
483
+ :param _content_type: force content-type for the request.
484
+ :type _content_type: str, Optional
485
+ :param _headers: set to override the headers for a single
486
+ request; this effectively ignores the headers
487
+ in the spec for a single request.
488
+ :type _headers: dict, optional
489
+ :param _host_index: set to override the host_index for a single
490
+ request; this effectively ignores the host_index
491
+ in the spec for a single request.
492
+ :type _host_index: int, optional
493
+ :return: Returns the result object.
494
+ """ # noqa: E501
495
+
496
+ _param = self._background_processes_id_attachments_attachment_id_get_serialize(
497
+ id=id,
498
+ attachment_id=attachment_id,
499
+ context=context,
500
+ workspace=workspace,
501
+ _request_auth=_request_auth,
502
+ _content_type=_content_type,
503
+ _headers=_headers,
504
+ _host_index=_host_index
505
+ )
506
+
507
+ _response_types_map: Dict[str, Optional[str]] = {
508
+ '200': "BackgroundProcessAttachmentMetadata",
509
+ '400': "Error",
510
+ '404': "Error",
511
+ }
512
+ response_data = self.api_client.call_api(
513
+ *_param,
514
+ _request_timeout=_request_timeout
515
+ )
516
+ response_data.read()
517
+ return self.api_client.response_deserialize(
518
+ response_data=response_data,
519
+ response_types_map=_response_types_map,
520
+ )
521
+
522
+
523
+ @validate_call
524
+ def background_processes_id_attachments_attachment_id_get_without_preload_content(
525
+ self,
526
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
527
+ attachment_id: Annotated[StrictStr, Field(description="ID of the attachment")],
528
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
529
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
530
+ _request_timeout: Union[
531
+ None,
532
+ Annotated[StrictFloat, Field(gt=0)],
533
+ Tuple[
534
+ Annotated[StrictFloat, Field(gt=0)],
535
+ Annotated[StrictFloat, Field(gt=0)]
536
+ ]
537
+ ] = None,
538
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
539
+ _content_type: Optional[StrictStr] = None,
540
+ _headers: Optional[Dict[StrictStr, Any]] = None,
541
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
542
+ ) -> RESTResponseType:
543
+ """Returns attachment metadata for a specific attachment
544
+
545
+ Operation for retrieving an attachment metadata object for a specific attachment. Should only be called for succeeded background processes.
546
+
547
+ :param id: ID of the background process for which to retrieve data (required)
548
+ :type id: str
549
+ :param attachment_id: ID of the attachment (required)
550
+ :type attachment_id: str
551
+ :param context: ID of the context in which to perform the operation (required)
552
+ :type context: str
553
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
554
+ :type workspace: str
555
+ :param _request_timeout: timeout setting for this request. If one
556
+ number provided, it will be total request
557
+ timeout. It can also be a pair (tuple) of
558
+ (connection, read) timeouts.
559
+ :type _request_timeout: int, tuple(int, int), optional
560
+ :param _request_auth: set to override the auth_settings for an a single
561
+ request; this effectively ignores the
562
+ authentication in the spec for a single request.
563
+ :type _request_auth: dict, optional
564
+ :param _content_type: force content-type for the request.
565
+ :type _content_type: str, Optional
566
+ :param _headers: set to override the headers for a single
567
+ request; this effectively ignores the headers
568
+ in the spec for a single request.
569
+ :type _headers: dict, optional
570
+ :param _host_index: set to override the host_index for a single
571
+ request; this effectively ignores the host_index
572
+ in the spec for a single request.
573
+ :type _host_index: int, optional
574
+ :return: Returns the result object.
575
+ """ # noqa: E501
576
+
577
+ _param = self._background_processes_id_attachments_attachment_id_get_serialize(
578
+ id=id,
579
+ attachment_id=attachment_id,
580
+ context=context,
581
+ workspace=workspace,
582
+ _request_auth=_request_auth,
583
+ _content_type=_content_type,
584
+ _headers=_headers,
585
+ _host_index=_host_index
586
+ )
587
+
588
+ _response_types_map: Dict[str, Optional[str]] = {
589
+ '200': "BackgroundProcessAttachmentMetadata",
590
+ '400': "Error",
591
+ '404': "Error",
592
+ }
593
+ response_data = self.api_client.call_api(
594
+ *_param,
595
+ _request_timeout=_request_timeout
596
+ )
597
+ return response_data.response
598
+
599
+
600
+ def _background_processes_id_attachments_attachment_id_get_serialize(
601
+ self,
602
+ id,
603
+ attachment_id,
604
+ context,
605
+ workspace,
606
+ _request_auth,
607
+ _content_type,
608
+ _headers,
609
+ _host_index,
610
+ ) -> RequestSerialized:
611
+
612
+ _host = None
613
+
614
+ _collection_formats: Dict[str, str] = {
615
+ }
616
+
617
+ _path_params: Dict[str, str] = {}
618
+ _query_params: List[Tuple[str, str]] = []
619
+ _header_params: Dict[str, Optional[str]] = _headers or {}
620
+ _form_params: List[Tuple[str, str]] = []
621
+ _files: Dict[
622
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
623
+ ] = {}
624
+ _body_params: Optional[bytes] = None
625
+
626
+ # process the path parameters
627
+ if id is not None:
628
+ _path_params['id'] = id
629
+ if attachment_id is not None:
630
+ _path_params['attachmentId'] = attachment_id
631
+ # process the query parameters
632
+ if context is not None:
633
+
634
+ _query_params.append(('context', context))
635
+
636
+ if workspace is not None:
637
+
638
+ _query_params.append(('workspace', workspace))
639
+
640
+ # process the header parameters
641
+ # process the form parameters
642
+ # process the body parameter
643
+
644
+
645
+ # set the HTTP header `Accept`
646
+ if 'Accept' not in _header_params:
647
+ _header_params['Accept'] = self.api_client.select_header_accept(
648
+ [
649
+ 'application/json'
650
+ ]
651
+ )
652
+
653
+
654
+ # authentication setting
655
+ _auth_settings: List[str] = [
656
+ 'basicAuth'
657
+ ]
658
+
659
+ return self.api_client.param_serialize(
660
+ method='GET',
661
+ resource_path='/background-processes/{id}/attachments/{attachmentId}',
662
+ path_params=_path_params,
663
+ query_params=_query_params,
664
+ header_params=_header_params,
665
+ body=_body_params,
666
+ post_params=_form_params,
667
+ files=_files,
668
+ auth_settings=_auth_settings,
669
+ collection_formats=_collection_formats,
670
+ _host=_host,
671
+ _request_auth=_request_auth
672
+ )
673
+
674
+
675
+
676
+
677
+ @validate_call
678
+ def background_processes_id_attachments_get(
679
+ self,
680
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
681
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
682
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
683
+ _request_timeout: Union[
684
+ None,
685
+ Annotated[StrictFloat, Field(gt=0)],
686
+ Tuple[
687
+ Annotated[StrictFloat, Field(gt=0)],
688
+ Annotated[StrictFloat, Field(gt=0)]
689
+ ]
690
+ ] = None,
691
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
692
+ _content_type: Optional[StrictStr] = None,
693
+ _headers: Optional[Dict[StrictStr, Any]] = None,
694
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
695
+ ) -> List[BackgroundProcessAttachmentMetadata]:
696
+ """Returns information about available background process attachments
697
+
698
+ Operation for retrieving information about available attachments for a specific background process instance
699
+
700
+ :param id: ID of the background process for which to retrieve data (required)
701
+ :type id: str
702
+ :param context: ID of the context in which to perform the operation (required)
703
+ :type context: str
704
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
705
+ :type workspace: str
706
+ :param _request_timeout: timeout setting for this request. If one
707
+ number provided, it will be total request
708
+ timeout. It can also be a pair (tuple) of
709
+ (connection, read) timeouts.
710
+ :type _request_timeout: int, tuple(int, int), optional
711
+ :param _request_auth: set to override the auth_settings for an a single
712
+ request; this effectively ignores the
713
+ authentication in the spec for a single request.
714
+ :type _request_auth: dict, optional
715
+ :param _content_type: force content-type for the request.
716
+ :type _content_type: str, Optional
717
+ :param _headers: set to override the headers for a single
718
+ request; this effectively ignores the headers
719
+ in the spec for a single request.
720
+ :type _headers: dict, optional
721
+ :param _host_index: set to override the host_index for a single
722
+ request; this effectively ignores the host_index
723
+ in the spec for a single request.
724
+ :type _host_index: int, optional
725
+ :return: Returns the result object.
726
+ """ # noqa: E501
727
+
728
+ _param = self._background_processes_id_attachments_get_serialize(
729
+ id=id,
730
+ context=context,
731
+ workspace=workspace,
732
+ _request_auth=_request_auth,
733
+ _content_type=_content_type,
734
+ _headers=_headers,
735
+ _host_index=_host_index
736
+ )
737
+
738
+ _response_types_map: Dict[str, Optional[str]] = {
739
+ '200': "List[BackgroundProcessAttachmentMetadata]",
740
+ '400': "Error",
741
+ '404': "Error",
742
+ }
743
+ response_data = self.api_client.call_api(
744
+ *_param,
745
+ _request_timeout=_request_timeout
746
+ )
747
+ response_data.read()
748
+ return self.api_client.response_deserialize(
749
+ response_data=response_data,
750
+ response_types_map=_response_types_map,
751
+ ).data
752
+
753
+
754
+ @validate_call
755
+ def background_processes_id_attachments_get_with_http_info(
756
+ self,
757
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
758
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
759
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
760
+ _request_timeout: Union[
761
+ None,
762
+ Annotated[StrictFloat, Field(gt=0)],
763
+ Tuple[
764
+ Annotated[StrictFloat, Field(gt=0)],
765
+ Annotated[StrictFloat, Field(gt=0)]
766
+ ]
767
+ ] = None,
768
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
769
+ _content_type: Optional[StrictStr] = None,
770
+ _headers: Optional[Dict[StrictStr, Any]] = None,
771
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
772
+ ) -> ApiResponse[List[BackgroundProcessAttachmentMetadata]]:
773
+ """Returns information about available background process attachments
774
+
775
+ Operation for retrieving information about available attachments for a specific background process instance
776
+
777
+ :param id: ID of the background process for which to retrieve data (required)
778
+ :type id: str
779
+ :param context: ID of the context in which to perform the operation (required)
780
+ :type context: str
781
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
782
+ :type workspace: str
783
+ :param _request_timeout: timeout setting for this request. If one
784
+ number provided, it will be total request
785
+ timeout. It can also be a pair (tuple) of
786
+ (connection, read) timeouts.
787
+ :type _request_timeout: int, tuple(int, int), optional
788
+ :param _request_auth: set to override the auth_settings for an a single
789
+ request; this effectively ignores the
790
+ authentication in the spec for a single request.
791
+ :type _request_auth: dict, optional
792
+ :param _content_type: force content-type for the request.
793
+ :type _content_type: str, Optional
794
+ :param _headers: set to override the headers for a single
795
+ request; this effectively ignores the headers
796
+ in the spec for a single request.
797
+ :type _headers: dict, optional
798
+ :param _host_index: set to override the host_index for a single
799
+ request; this effectively ignores the host_index
800
+ in the spec for a single request.
801
+ :type _host_index: int, optional
802
+ :return: Returns the result object.
803
+ """ # noqa: E501
804
+
805
+ _param = self._background_processes_id_attachments_get_serialize(
806
+ id=id,
807
+ context=context,
808
+ workspace=workspace,
809
+ _request_auth=_request_auth,
810
+ _content_type=_content_type,
811
+ _headers=_headers,
812
+ _host_index=_host_index
813
+ )
814
+
815
+ _response_types_map: Dict[str, Optional[str]] = {
816
+ '200': "List[BackgroundProcessAttachmentMetadata]",
817
+ '400': "Error",
818
+ '404': "Error",
819
+ }
820
+ response_data = self.api_client.call_api(
821
+ *_param,
822
+ _request_timeout=_request_timeout
823
+ )
824
+ response_data.read()
825
+ return self.api_client.response_deserialize(
826
+ response_data=response_data,
827
+ response_types_map=_response_types_map,
828
+ )
829
+
830
+
831
+ @validate_call
832
+ def background_processes_id_attachments_get_without_preload_content(
833
+ self,
834
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
835
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
836
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
837
+ _request_timeout: Union[
838
+ None,
839
+ Annotated[StrictFloat, Field(gt=0)],
840
+ Tuple[
841
+ Annotated[StrictFloat, Field(gt=0)],
842
+ Annotated[StrictFloat, Field(gt=0)]
843
+ ]
844
+ ] = None,
845
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
846
+ _content_type: Optional[StrictStr] = None,
847
+ _headers: Optional[Dict[StrictStr, Any]] = None,
848
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
849
+ ) -> RESTResponseType:
850
+ """Returns information about available background process attachments
851
+
852
+ Operation for retrieving information about available attachments for a specific background process instance
853
+
854
+ :param id: ID of the background process for which to retrieve data (required)
855
+ :type id: str
856
+ :param context: ID of the context in which to perform the operation (required)
857
+ :type context: str
858
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
859
+ :type workspace: str
860
+ :param _request_timeout: timeout setting for this request. If one
861
+ number provided, it will be total request
862
+ timeout. It can also be a pair (tuple) of
863
+ (connection, read) timeouts.
864
+ :type _request_timeout: int, tuple(int, int), optional
865
+ :param _request_auth: set to override the auth_settings for an a single
866
+ request; this effectively ignores the
867
+ authentication in the spec for a single request.
868
+ :type _request_auth: dict, optional
869
+ :param _content_type: force content-type for the request.
870
+ :type _content_type: str, Optional
871
+ :param _headers: set to override the headers for a single
872
+ request; this effectively ignores the headers
873
+ in the spec for a single request.
874
+ :type _headers: dict, optional
875
+ :param _host_index: set to override the host_index for a single
876
+ request; this effectively ignores the host_index
877
+ in the spec for a single request.
878
+ :type _host_index: int, optional
879
+ :return: Returns the result object.
880
+ """ # noqa: E501
881
+
882
+ _param = self._background_processes_id_attachments_get_serialize(
883
+ id=id,
884
+ context=context,
885
+ workspace=workspace,
886
+ _request_auth=_request_auth,
887
+ _content_type=_content_type,
888
+ _headers=_headers,
889
+ _host_index=_host_index
890
+ )
891
+
892
+ _response_types_map: Dict[str, Optional[str]] = {
893
+ '200': "List[BackgroundProcessAttachmentMetadata]",
894
+ '400': "Error",
895
+ '404': "Error",
896
+ }
897
+ response_data = self.api_client.call_api(
898
+ *_param,
899
+ _request_timeout=_request_timeout
900
+ )
901
+ return response_data.response
902
+
903
+
904
+ def _background_processes_id_attachments_get_serialize(
905
+ self,
906
+ id,
907
+ context,
908
+ workspace,
909
+ _request_auth,
910
+ _content_type,
911
+ _headers,
912
+ _host_index,
913
+ ) -> RequestSerialized:
914
+
915
+ _host = None
916
+
917
+ _collection_formats: Dict[str, str] = {
918
+ }
919
+
920
+ _path_params: Dict[str, str] = {}
921
+ _query_params: List[Tuple[str, str]] = []
922
+ _header_params: Dict[str, Optional[str]] = _headers or {}
923
+ _form_params: List[Tuple[str, str]] = []
924
+ _files: Dict[
925
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
926
+ ] = {}
927
+ _body_params: Optional[bytes] = None
928
+
929
+ # process the path parameters
930
+ if id is not None:
931
+ _path_params['id'] = id
932
+ # process the query parameters
933
+ if context is not None:
934
+
935
+ _query_params.append(('context', context))
936
+
937
+ if workspace is not None:
938
+
939
+ _query_params.append(('workspace', workspace))
940
+
941
+ # process the header parameters
942
+ # process the form parameters
943
+ # process the body parameter
944
+
945
+
946
+ # set the HTTP header `Accept`
947
+ if 'Accept' not in _header_params:
948
+ _header_params['Accept'] = self.api_client.select_header_accept(
949
+ [
950
+ 'application/json'
951
+ ]
952
+ )
953
+
954
+
955
+ # authentication setting
956
+ _auth_settings: List[str] = [
957
+ 'basicAuth'
958
+ ]
959
+
960
+ return self.api_client.param_serialize(
961
+ method='GET',
962
+ resource_path='/background-processes/{id}/attachments',
963
+ path_params=_path_params,
964
+ query_params=_query_params,
965
+ header_params=_header_params,
966
+ body=_body_params,
967
+ post_params=_form_params,
968
+ files=_files,
969
+ auth_settings=_auth_settings,
970
+ collection_formats=_collection_formats,
971
+ _host=_host,
972
+ _request_auth=_request_auth
973
+ )
974
+
975
+
976
+
977
+
978
+ @validate_call
979
+ def background_processes_id_execution_report_get(
980
+ self,
981
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve the execution report")],
982
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
983
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
984
+ _request_timeout: Union[
985
+ None,
986
+ Annotated[StrictFloat, Field(gt=0)],
987
+ Tuple[
988
+ Annotated[StrictFloat, Field(gt=0)],
989
+ Annotated[StrictFloat, Field(gt=0)]
990
+ ]
991
+ ] = None,
992
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
993
+ _content_type: Optional[StrictStr] = None,
994
+ _headers: Optional[Dict[StrictStr, Any]] = None,
995
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
996
+ ) -> List[ExecutionReportEntry]:
997
+ """Returns a streamed array of execution report entries (ExecutionReportEntry)
998
+
999
+ Operation for retrieving the execution report for a specific background process as a streamed array of execution report entries (ExecutionReportEntry)
1000
+
1001
+ :param id: ID of the background process for which to retrieve the execution report (required)
1002
+ :type id: str
1003
+ :param context: ID of the context in which to perform the operation (required)
1004
+ :type context: str
1005
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
1006
+ :type workspace: str
1007
+ :param _request_timeout: timeout setting for this request. If one
1008
+ number provided, it will be total request
1009
+ timeout. It can also be a pair (tuple) of
1010
+ (connection, read) timeouts.
1011
+ :type _request_timeout: int, tuple(int, int), optional
1012
+ :param _request_auth: set to override the auth_settings for an a single
1013
+ request; this effectively ignores the
1014
+ authentication in the spec for a single request.
1015
+ :type _request_auth: dict, optional
1016
+ :param _content_type: force content-type for the request.
1017
+ :type _content_type: str, Optional
1018
+ :param _headers: set to override the headers for a single
1019
+ request; this effectively ignores the headers
1020
+ in the spec for a single request.
1021
+ :type _headers: dict, optional
1022
+ :param _host_index: set to override the host_index for a single
1023
+ request; this effectively ignores the host_index
1024
+ in the spec for a single request.
1025
+ :type _host_index: int, optional
1026
+ :return: Returns the result object.
1027
+ """ # noqa: E501
1028
+
1029
+ _param = self._background_processes_id_execution_report_get_serialize(
1030
+ id=id,
1031
+ context=context,
1032
+ workspace=workspace,
1033
+ _request_auth=_request_auth,
1034
+ _content_type=_content_type,
1035
+ _headers=_headers,
1036
+ _host_index=_host_index
1037
+ )
1038
+
1039
+ _response_types_map: Dict[str, Optional[str]] = {
1040
+ '200': "List[ExecutionReportEntry]",
1041
+ '400': "Error",
1042
+ '404': "Error",
1043
+ }
1044
+ response_data = self.api_client.call_api(
1045
+ *_param,
1046
+ _request_timeout=_request_timeout
1047
+ )
1048
+ response_data.read()
1049
+ return self.api_client.response_deserialize(
1050
+ response_data=response_data,
1051
+ response_types_map=_response_types_map,
1052
+ ).data
1053
+
1054
+
1055
+ @validate_call
1056
+ def background_processes_id_execution_report_get_with_http_info(
1057
+ self,
1058
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve the execution report")],
1059
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
1060
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
1061
+ _request_timeout: Union[
1062
+ None,
1063
+ Annotated[StrictFloat, Field(gt=0)],
1064
+ Tuple[
1065
+ Annotated[StrictFloat, Field(gt=0)],
1066
+ Annotated[StrictFloat, Field(gt=0)]
1067
+ ]
1068
+ ] = None,
1069
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1070
+ _content_type: Optional[StrictStr] = None,
1071
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1072
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1073
+ ) -> ApiResponse[List[ExecutionReportEntry]]:
1074
+ """Returns a streamed array of execution report entries (ExecutionReportEntry)
1075
+
1076
+ Operation for retrieving the execution report for a specific background process as a streamed array of execution report entries (ExecutionReportEntry)
1077
+
1078
+ :param id: ID of the background process for which to retrieve the execution report (required)
1079
+ :type id: str
1080
+ :param context: ID of the context in which to perform the operation (required)
1081
+ :type context: str
1082
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
1083
+ :type workspace: str
1084
+ :param _request_timeout: timeout setting for this request. If one
1085
+ number provided, it will be total request
1086
+ timeout. It can also be a pair (tuple) of
1087
+ (connection, read) timeouts.
1088
+ :type _request_timeout: int, tuple(int, int), optional
1089
+ :param _request_auth: set to override the auth_settings for an a single
1090
+ request; this effectively ignores the
1091
+ authentication in the spec for a single request.
1092
+ :type _request_auth: dict, optional
1093
+ :param _content_type: force content-type for the request.
1094
+ :type _content_type: str, Optional
1095
+ :param _headers: set to override the headers for a single
1096
+ request; this effectively ignores the headers
1097
+ in the spec for a single request.
1098
+ :type _headers: dict, optional
1099
+ :param _host_index: set to override the host_index for a single
1100
+ request; this effectively ignores the host_index
1101
+ in the spec for a single request.
1102
+ :type _host_index: int, optional
1103
+ :return: Returns the result object.
1104
+ """ # noqa: E501
1105
+
1106
+ _param = self._background_processes_id_execution_report_get_serialize(
1107
+ id=id,
1108
+ context=context,
1109
+ workspace=workspace,
1110
+ _request_auth=_request_auth,
1111
+ _content_type=_content_type,
1112
+ _headers=_headers,
1113
+ _host_index=_host_index
1114
+ )
1115
+
1116
+ _response_types_map: Dict[str, Optional[str]] = {
1117
+ '200': "List[ExecutionReportEntry]",
1118
+ '400': "Error",
1119
+ '404': "Error",
1120
+ }
1121
+ response_data = self.api_client.call_api(
1122
+ *_param,
1123
+ _request_timeout=_request_timeout
1124
+ )
1125
+ response_data.read()
1126
+ return self.api_client.response_deserialize(
1127
+ response_data=response_data,
1128
+ response_types_map=_response_types_map,
1129
+ )
1130
+
1131
+
1132
+ @validate_call
1133
+ def background_processes_id_execution_report_get_without_preload_content(
1134
+ self,
1135
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve the execution report")],
1136
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
1137
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
1138
+ _request_timeout: Union[
1139
+ None,
1140
+ Annotated[StrictFloat, Field(gt=0)],
1141
+ Tuple[
1142
+ Annotated[StrictFloat, Field(gt=0)],
1143
+ Annotated[StrictFloat, Field(gt=0)]
1144
+ ]
1145
+ ] = None,
1146
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1147
+ _content_type: Optional[StrictStr] = None,
1148
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1149
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1150
+ ) -> RESTResponseType:
1151
+ """Returns a streamed array of execution report entries (ExecutionReportEntry)
1152
+
1153
+ Operation for retrieving the execution report for a specific background process as a streamed array of execution report entries (ExecutionReportEntry)
1154
+
1155
+ :param id: ID of the background process for which to retrieve the execution report (required)
1156
+ :type id: str
1157
+ :param context: ID of the context in which to perform the operation (required)
1158
+ :type context: str
1159
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
1160
+ :type workspace: str
1161
+ :param _request_timeout: timeout setting for this request. If one
1162
+ number provided, it will be total request
1163
+ timeout. It can also be a pair (tuple) of
1164
+ (connection, read) timeouts.
1165
+ :type _request_timeout: int, tuple(int, int), optional
1166
+ :param _request_auth: set to override the auth_settings for an a single
1167
+ request; this effectively ignores the
1168
+ authentication in the spec for a single request.
1169
+ :type _request_auth: dict, optional
1170
+ :param _content_type: force content-type for the request.
1171
+ :type _content_type: str, Optional
1172
+ :param _headers: set to override the headers for a single
1173
+ request; this effectively ignores the headers
1174
+ in the spec for a single request.
1175
+ :type _headers: dict, optional
1176
+ :param _host_index: set to override the host_index for a single
1177
+ request; this effectively ignores the host_index
1178
+ in the spec for a single request.
1179
+ :type _host_index: int, optional
1180
+ :return: Returns the result object.
1181
+ """ # noqa: E501
1182
+
1183
+ _param = self._background_processes_id_execution_report_get_serialize(
1184
+ id=id,
1185
+ context=context,
1186
+ workspace=workspace,
1187
+ _request_auth=_request_auth,
1188
+ _content_type=_content_type,
1189
+ _headers=_headers,
1190
+ _host_index=_host_index
1191
+ )
1192
+
1193
+ _response_types_map: Dict[str, Optional[str]] = {
1194
+ '200': "List[ExecutionReportEntry]",
1195
+ '400': "Error",
1196
+ '404': "Error",
1197
+ }
1198
+ response_data = self.api_client.call_api(
1199
+ *_param,
1200
+ _request_timeout=_request_timeout
1201
+ )
1202
+ return response_data.response
1203
+
1204
+
1205
+ def _background_processes_id_execution_report_get_serialize(
1206
+ self,
1207
+ id,
1208
+ context,
1209
+ workspace,
1210
+ _request_auth,
1211
+ _content_type,
1212
+ _headers,
1213
+ _host_index,
1214
+ ) -> RequestSerialized:
1215
+
1216
+ _host = None
1217
+
1218
+ _collection_formats: Dict[str, str] = {
1219
+ }
1220
+
1221
+ _path_params: Dict[str, str] = {}
1222
+ _query_params: List[Tuple[str, str]] = []
1223
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1224
+ _form_params: List[Tuple[str, str]] = []
1225
+ _files: Dict[
1226
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1227
+ ] = {}
1228
+ _body_params: Optional[bytes] = None
1229
+
1230
+ # process the path parameters
1231
+ if id is not None:
1232
+ _path_params['id'] = id
1233
+ # process the query parameters
1234
+ if context is not None:
1235
+
1236
+ _query_params.append(('context', context))
1237
+
1238
+ if workspace is not None:
1239
+
1240
+ _query_params.append(('workspace', workspace))
1241
+
1242
+ # process the header parameters
1243
+ # process the form parameters
1244
+ # process the body parameter
1245
+
1246
+
1247
+ # set the HTTP header `Accept`
1248
+ if 'Accept' not in _header_params:
1249
+ _header_params['Accept'] = self.api_client.select_header_accept(
1250
+ [
1251
+ 'application/json'
1252
+ ]
1253
+ )
1254
+
1255
+
1256
+ # authentication setting
1257
+ _auth_settings: List[str] = [
1258
+ 'basicAuth'
1259
+ ]
1260
+
1261
+ return self.api_client.param_serialize(
1262
+ method='GET',
1263
+ resource_path='/background-processes/{id}/execution-report',
1264
+ path_params=_path_params,
1265
+ query_params=_query_params,
1266
+ header_params=_header_params,
1267
+ body=_body_params,
1268
+ post_params=_form_params,
1269
+ files=_files,
1270
+ auth_settings=_auth_settings,
1271
+ collection_formats=_collection_formats,
1272
+ _host=_host,
1273
+ _request_auth=_request_auth
1274
+ )
1275
+
1276
+
1277
+
1278
+
1279
+ @validate_call
1280
+ def background_processes_id_get(
1281
+ self,
1282
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
1283
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
1284
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
1285
+ _request_timeout: Union[
1286
+ None,
1287
+ Annotated[StrictFloat, Field(gt=0)],
1288
+ Tuple[
1289
+ Annotated[StrictFloat, Field(gt=0)],
1290
+ Annotated[StrictFloat, Field(gt=0)]
1291
+ ]
1292
+ ] = None,
1293
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1294
+ _content_type: Optional[StrictStr] = None,
1295
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1296
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1297
+ ) -> BackgroundProcess:
1298
+ """Returns the background process with the specified ID
1299
+
1300
+ Operation for retrieving information about a specific background process instance
1301
+
1302
+ :param id: ID of the background process for which to retrieve data (required)
1303
+ :type id: str
1304
+ :param context: ID of the context in which to perform the operation (required)
1305
+ :type context: str
1306
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
1307
+ :type workspace: str
1308
+ :param _request_timeout: timeout setting for this request. If one
1309
+ number provided, it will be total request
1310
+ timeout. It can also be a pair (tuple) of
1311
+ (connection, read) timeouts.
1312
+ :type _request_timeout: int, tuple(int, int), optional
1313
+ :param _request_auth: set to override the auth_settings for an a single
1314
+ request; this effectively ignores the
1315
+ authentication in the spec for a single request.
1316
+ :type _request_auth: dict, optional
1317
+ :param _content_type: force content-type for the request.
1318
+ :type _content_type: str, Optional
1319
+ :param _headers: set to override the headers for a single
1320
+ request; this effectively ignores the headers
1321
+ in the spec for a single request.
1322
+ :type _headers: dict, optional
1323
+ :param _host_index: set to override the host_index for a single
1324
+ request; this effectively ignores the host_index
1325
+ in the spec for a single request.
1326
+ :type _host_index: int, optional
1327
+ :return: Returns the result object.
1328
+ """ # noqa: E501
1329
+
1330
+ _param = self._background_processes_id_get_serialize(
1331
+ id=id,
1332
+ context=context,
1333
+ workspace=workspace,
1334
+ _request_auth=_request_auth,
1335
+ _content_type=_content_type,
1336
+ _headers=_headers,
1337
+ _host_index=_host_index
1338
+ )
1339
+
1340
+ _response_types_map: Dict[str, Optional[str]] = {
1341
+ '200': "BackgroundProcess",
1342
+ '400': "Error",
1343
+ '404': "Error",
1344
+ }
1345
+ response_data = self.api_client.call_api(
1346
+ *_param,
1347
+ _request_timeout=_request_timeout
1348
+ )
1349
+ response_data.read()
1350
+ return self.api_client.response_deserialize(
1351
+ response_data=response_data,
1352
+ response_types_map=_response_types_map,
1353
+ ).data
1354
+
1355
+
1356
+ @validate_call
1357
+ def background_processes_id_get_with_http_info(
1358
+ self,
1359
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
1360
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
1361
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
1362
+ _request_timeout: Union[
1363
+ None,
1364
+ Annotated[StrictFloat, Field(gt=0)],
1365
+ Tuple[
1366
+ Annotated[StrictFloat, Field(gt=0)],
1367
+ Annotated[StrictFloat, Field(gt=0)]
1368
+ ]
1369
+ ] = None,
1370
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1371
+ _content_type: Optional[StrictStr] = None,
1372
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1373
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1374
+ ) -> ApiResponse[BackgroundProcess]:
1375
+ """Returns the background process with the specified ID
1376
+
1377
+ Operation for retrieving information about a specific background process instance
1378
+
1379
+ :param id: ID of the background process for which to retrieve data (required)
1380
+ :type id: str
1381
+ :param context: ID of the context in which to perform the operation (required)
1382
+ :type context: str
1383
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
1384
+ :type workspace: str
1385
+ :param _request_timeout: timeout setting for this request. If one
1386
+ number provided, it will be total request
1387
+ timeout. It can also be a pair (tuple) of
1388
+ (connection, read) timeouts.
1389
+ :type _request_timeout: int, tuple(int, int), optional
1390
+ :param _request_auth: set to override the auth_settings for an a single
1391
+ request; this effectively ignores the
1392
+ authentication in the spec for a single request.
1393
+ :type _request_auth: dict, optional
1394
+ :param _content_type: force content-type for the request.
1395
+ :type _content_type: str, Optional
1396
+ :param _headers: set to override the headers for a single
1397
+ request; this effectively ignores the headers
1398
+ in the spec for a single request.
1399
+ :type _headers: dict, optional
1400
+ :param _host_index: set to override the host_index for a single
1401
+ request; this effectively ignores the host_index
1402
+ in the spec for a single request.
1403
+ :type _host_index: int, optional
1404
+ :return: Returns the result object.
1405
+ """ # noqa: E501
1406
+
1407
+ _param = self._background_processes_id_get_serialize(
1408
+ id=id,
1409
+ context=context,
1410
+ workspace=workspace,
1411
+ _request_auth=_request_auth,
1412
+ _content_type=_content_type,
1413
+ _headers=_headers,
1414
+ _host_index=_host_index
1415
+ )
1416
+
1417
+ _response_types_map: Dict[str, Optional[str]] = {
1418
+ '200': "BackgroundProcess",
1419
+ '400': "Error",
1420
+ '404': "Error",
1421
+ }
1422
+ response_data = self.api_client.call_api(
1423
+ *_param,
1424
+ _request_timeout=_request_timeout
1425
+ )
1426
+ response_data.read()
1427
+ return self.api_client.response_deserialize(
1428
+ response_data=response_data,
1429
+ response_types_map=_response_types_map,
1430
+ )
1431
+
1432
+
1433
+ @validate_call
1434
+ def background_processes_id_get_without_preload_content(
1435
+ self,
1436
+ id: Annotated[StrictStr, Field(description="ID of the background process for which to retrieve data")],
1437
+ context: Annotated[StrictStr, Field(description="ID of the context in which to perform the operation")],
1438
+ workspace: Annotated[Optional[StrictStr], Field(description="ID of the workspace in which to perform the operation. Defaults to \"Main\".")] = None,
1439
+ _request_timeout: Union[
1440
+ None,
1441
+ Annotated[StrictFloat, Field(gt=0)],
1442
+ Tuple[
1443
+ Annotated[StrictFloat, Field(gt=0)],
1444
+ Annotated[StrictFloat, Field(gt=0)]
1445
+ ]
1446
+ ] = None,
1447
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1448
+ _content_type: Optional[StrictStr] = None,
1449
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1450
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1451
+ ) -> RESTResponseType:
1452
+ """Returns the background process with the specified ID
1453
+
1454
+ Operation for retrieving information about a specific background process instance
1455
+
1456
+ :param id: ID of the background process for which to retrieve data (required)
1457
+ :type id: str
1458
+ :param context: ID of the context in which to perform the operation (required)
1459
+ :type context: str
1460
+ :param workspace: ID of the workspace in which to perform the operation. Defaults to \"Main\".
1461
+ :type workspace: str
1462
+ :param _request_timeout: timeout setting for this request. If one
1463
+ number provided, it will be total request
1464
+ timeout. It can also be a pair (tuple) of
1465
+ (connection, read) timeouts.
1466
+ :type _request_timeout: int, tuple(int, int), optional
1467
+ :param _request_auth: set to override the auth_settings for an a single
1468
+ request; this effectively ignores the
1469
+ authentication in the spec for a single request.
1470
+ :type _request_auth: dict, optional
1471
+ :param _content_type: force content-type for the request.
1472
+ :type _content_type: str, Optional
1473
+ :param _headers: set to override the headers for a single
1474
+ request; this effectively ignores the headers
1475
+ in the spec for a single request.
1476
+ :type _headers: dict, optional
1477
+ :param _host_index: set to override the host_index for a single
1478
+ request; this effectively ignores the host_index
1479
+ in the spec for a single request.
1480
+ :type _host_index: int, optional
1481
+ :return: Returns the result object.
1482
+ """ # noqa: E501
1483
+
1484
+ _param = self._background_processes_id_get_serialize(
1485
+ id=id,
1486
+ context=context,
1487
+ workspace=workspace,
1488
+ _request_auth=_request_auth,
1489
+ _content_type=_content_type,
1490
+ _headers=_headers,
1491
+ _host_index=_host_index
1492
+ )
1493
+
1494
+ _response_types_map: Dict[str, Optional[str]] = {
1495
+ '200': "BackgroundProcess",
1496
+ '400': "Error",
1497
+ '404': "Error",
1498
+ }
1499
+ response_data = self.api_client.call_api(
1500
+ *_param,
1501
+ _request_timeout=_request_timeout
1502
+ )
1503
+ return response_data.response
1504
+
1505
+
1506
+ def _background_processes_id_get_serialize(
1507
+ self,
1508
+ id,
1509
+ context,
1510
+ workspace,
1511
+ _request_auth,
1512
+ _content_type,
1513
+ _headers,
1514
+ _host_index,
1515
+ ) -> RequestSerialized:
1516
+
1517
+ _host = None
1518
+
1519
+ _collection_formats: Dict[str, str] = {
1520
+ }
1521
+
1522
+ _path_params: Dict[str, str] = {}
1523
+ _query_params: List[Tuple[str, str]] = []
1524
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1525
+ _form_params: List[Tuple[str, str]] = []
1526
+ _files: Dict[
1527
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1528
+ ] = {}
1529
+ _body_params: Optional[bytes] = None
1530
+
1531
+ # process the path parameters
1532
+ if id is not None:
1533
+ _path_params['id'] = id
1534
+ # process the query parameters
1535
+ if context is not None:
1536
+
1537
+ _query_params.append(('context', context))
1538
+
1539
+ if workspace is not None:
1540
+
1541
+ _query_params.append(('workspace', workspace))
1542
+
1543
+ # process the header parameters
1544
+ # process the form parameters
1545
+ # process the body parameter
1546
+
1547
+
1548
+ # set the HTTP header `Accept`
1549
+ if 'Accept' not in _header_params:
1550
+ _header_params['Accept'] = self.api_client.select_header_accept(
1551
+ [
1552
+ 'application/json'
1553
+ ]
1554
+ )
1555
+
1556
+
1557
+ # authentication setting
1558
+ _auth_settings: List[str] = [
1559
+ 'basicAuth'
1560
+ ]
1561
+
1562
+ return self.api_client.param_serialize(
1563
+ method='GET',
1564
+ resource_path='/background-processes/{id}',
1565
+ path_params=_path_params,
1566
+ query_params=_query_params,
1567
+ header_params=_header_params,
1568
+ body=_body_params,
1569
+ post_params=_form_params,
1570
+ files=_files,
1571
+ auth_settings=_auth_settings,
1572
+ collection_formats=_collection_formats,
1573
+ _host=_host,
1574
+ _request_auth=_request_auth
1575
+ )
1576
+
1577
+