neops_workflow_engine_client 0.35.0__tar.gz → 0.37.0__tar.gz

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 (23) hide show
  1. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/PKG-INFO +5 -4
  2. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/README.md +4 -3
  3. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/__init__.py +1 -1
  4. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api/blackboard_api.py +40 -6
  5. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api_client.py +1 -1
  6. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/configuration.py +1 -1
  7. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/models/job_definition_dto.py +2 -2
  8. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/pyproject.toml +1 -1
  9. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api/__init__.py +0 -0
  10. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api/default_api.py +0 -0
  11. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api/function_block_api.py +0 -0
  12. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api/health_api.py +0 -0
  13. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api/workflows_api.py +0 -0
  14. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/api_response.py +0 -0
  15. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/exceptions.py +0 -0
  16. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/models/__init__.py +0 -0
  17. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/models/execute_workflow_dto.py +0 -0
  18. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/models/health_response.py +0 -0
  19. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/models/job_result_dto.py +0 -0
  20. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/models/register_function_block_dto.py +0 -0
  21. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/models/workflow_dto.py +0 -0
  22. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/py.typed +0 -0
  23. {neops_workflow_engine_client-0.35.0 → neops_workflow_engine_client-0.37.0}/neops_workflow_engine_client/rest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neops_workflow_engine_client
3
- Version: 0.35.0
3
+ Version: 0.37.0
4
4
  Summary: Neops Workflow Engine
5
5
  Home-page: https://github.com/GIT_USER_ID/GIT_REPO_ID
6
6
  License: NoLicense
@@ -29,7 +29,7 @@ Neops workflow engine API documentation
29
29
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
30
30
 
31
31
  - API version: 1.0
32
- - Package version: 0.35.0
32
+ - Package version: 0.37.0
33
33
  - Generator version: 7.9.0
34
34
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
35
35
 
@@ -92,9 +92,10 @@ configuration = neops_workflow_engine_client.Configuration(
92
92
  with neops_workflow_engine_client.ApiClient(configuration) as api_client:
93
93
  # Create an instance of the API class
94
94
  api_instance = neops_workflow_engine_client.BlackboardApi(api_client)
95
+ request_body = ['request_body_example'] # List[str] |
95
96
 
96
97
  try:
97
- api_response = api_instance.blackboard_controller_poll_job()
98
+ api_response = api_instance.blackboard_controller_poll_job(request_body)
98
99
  print("The response of BlackboardApi->blackboard_controller_poll_job:\n")
99
100
  pprint(api_response)
100
101
  except ApiException as e:
@@ -108,7 +109,7 @@ All URIs are relative to *http://localhost*
108
109
 
109
110
  Class | Method | HTTP request | Description
110
111
  ------------ | ------------- | ------------- | -------------
111
- *BlackboardApi* | [**blackboard_controller_poll_job**](docs/BlackboardApi.md#blackboard_controller_poll_job) | **GET** /blackboard/job |
112
+ *BlackboardApi* | [**blackboard_controller_poll_job**](docs/BlackboardApi.md#blackboard_controller_poll_job) | **POST** /blackboard/job |
112
113
  *BlackboardApi* | [**blackboard_controller_push_job_result**](docs/BlackboardApi.md#blackboard_controller_push_job_result) | **POST** /blackboard/job/result |
113
114
  *DefaultApi* | [**app_controller_get_hello**](docs/DefaultApi.md#app_controller_get_hello) | **GET** / |
114
115
  *FunctionBlockApi* | [**function_blocks_controller_find_all**](docs/FunctionBlockApi.md#function_blocks_controller_find_all) | **GET** /function-blocks/list | List all registered function blocks
@@ -4,7 +4,7 @@ Neops workflow engine API documentation
4
4
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
5
 
6
6
  - API version: 1.0
7
- - Package version: 0.35.0
7
+ - Package version: 0.37.0
8
8
  - Generator version: 7.9.0
9
9
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
10
10
 
@@ -67,9 +67,10 @@ configuration = neops_workflow_engine_client.Configuration(
67
67
  with neops_workflow_engine_client.ApiClient(configuration) as api_client:
68
68
  # Create an instance of the API class
69
69
  api_instance = neops_workflow_engine_client.BlackboardApi(api_client)
70
+ request_body = ['request_body_example'] # List[str] |
70
71
 
71
72
  try:
72
- api_response = api_instance.blackboard_controller_poll_job()
73
+ api_response = api_instance.blackboard_controller_poll_job(request_body)
73
74
  print("The response of BlackboardApi->blackboard_controller_poll_job:\n")
74
75
  pprint(api_response)
75
76
  except ApiException as e:
@@ -83,7 +84,7 @@ All URIs are relative to *http://localhost*
83
84
 
84
85
  Class | Method | HTTP request | Description
85
86
  ------------ | ------------- | ------------- | -------------
86
- *BlackboardApi* | [**blackboard_controller_poll_job**](docs/BlackboardApi.md#blackboard_controller_poll_job) | **GET** /blackboard/job |
87
+ *BlackboardApi* | [**blackboard_controller_poll_job**](docs/BlackboardApi.md#blackboard_controller_poll_job) | **POST** /blackboard/job |
87
88
  *BlackboardApi* | [**blackboard_controller_push_job_result**](docs/BlackboardApi.md#blackboard_controller_push_job_result) | **POST** /blackboard/job/result |
88
89
  *DefaultApi* | [**app_controller_get_hello**](docs/DefaultApi.md#app_controller_get_hello) | **GET** / |
89
90
  *FunctionBlockApi* | [**function_blocks_controller_find_all**](docs/FunctionBlockApi.md#function_blocks_controller_find_all) | **GET** /function-blocks/list | List all registered function blocks
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.35.0"
17
+ __version__ = "0.37.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from neops_workflow_engine_client.api.blackboard_api import BlackboardApi
@@ -16,6 +16,8 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
+ from pydantic import StrictStr
20
+ from typing import List
19
21
  from neops_workflow_engine_client.models.job_definition_dto import JobDefinitionDto
20
22
  from neops_workflow_engine_client.models.job_result_dto import JobResultDto
21
23
 
@@ -40,6 +42,7 @@ class BlackboardApi:
40
42
  @validate_call
41
43
  def blackboard_controller_poll_job(
42
44
  self,
45
+ request_body: List[StrictStr],
43
46
  _request_timeout: Union[
44
47
  None,
45
48
  Annotated[StrictFloat, Field(gt=0)],
@@ -52,10 +55,12 @@ class BlackboardApi:
52
55
  _content_type: Optional[StrictStr] = None,
53
56
  _headers: Optional[Dict[StrictStr, Any]] = None,
54
57
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
55
- ) -> JobDefinitionDto:
58
+ ) -> List[JobDefinitionDto]:
56
59
  """blackboard_controller_poll_job
57
60
 
58
61
 
62
+ :param request_body: (required)
63
+ :type request_body: List[str]
59
64
  :param _request_timeout: timeout setting for this request. If one
60
65
  number provided, it will be total request
61
66
  timeout. It can also be a pair (tuple) of
@@ -79,6 +84,7 @@ class BlackboardApi:
79
84
  """ # noqa: E501
80
85
 
81
86
  _param = self._blackboard_controller_poll_job_serialize(
87
+ request_body=request_body,
82
88
  _request_auth=_request_auth,
83
89
  _content_type=_content_type,
84
90
  _headers=_headers,
@@ -86,7 +92,8 @@ class BlackboardApi:
86
92
  )
87
93
 
88
94
  _response_types_map: Dict[str, Optional[str]] = {
89
- '200': "JobDefinitionDto",
95
+ '200': "List[JobDefinitionDto]",
96
+ '201': "List[JobDefinitionDto]",
90
97
  }
91
98
  response_data = self.api_client.call_api(
92
99
  *_param,
@@ -102,6 +109,7 @@ class BlackboardApi:
102
109
  @validate_call
103
110
  def blackboard_controller_poll_job_with_http_info(
104
111
  self,
112
+ request_body: List[StrictStr],
105
113
  _request_timeout: Union[
106
114
  None,
107
115
  Annotated[StrictFloat, Field(gt=0)],
@@ -114,10 +122,12 @@ class BlackboardApi:
114
122
  _content_type: Optional[StrictStr] = None,
115
123
  _headers: Optional[Dict[StrictStr, Any]] = None,
116
124
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
117
- ) -> ApiResponse[JobDefinitionDto]:
125
+ ) -> ApiResponse[List[JobDefinitionDto]]:
118
126
  """blackboard_controller_poll_job
119
127
 
120
128
 
129
+ :param request_body: (required)
130
+ :type request_body: List[str]
121
131
  :param _request_timeout: timeout setting for this request. If one
122
132
  number provided, it will be total request
123
133
  timeout. It can also be a pair (tuple) of
@@ -141,6 +151,7 @@ class BlackboardApi:
141
151
  """ # noqa: E501
142
152
 
143
153
  _param = self._blackboard_controller_poll_job_serialize(
154
+ request_body=request_body,
144
155
  _request_auth=_request_auth,
145
156
  _content_type=_content_type,
146
157
  _headers=_headers,
@@ -148,7 +159,8 @@ class BlackboardApi:
148
159
  )
149
160
 
150
161
  _response_types_map: Dict[str, Optional[str]] = {
151
- '200': "JobDefinitionDto",
162
+ '200': "List[JobDefinitionDto]",
163
+ '201': "List[JobDefinitionDto]",
152
164
  }
153
165
  response_data = self.api_client.call_api(
154
166
  *_param,
@@ -164,6 +176,7 @@ class BlackboardApi:
164
176
  @validate_call
165
177
  def blackboard_controller_poll_job_without_preload_content(
166
178
  self,
179
+ request_body: List[StrictStr],
167
180
  _request_timeout: Union[
168
181
  None,
169
182
  Annotated[StrictFloat, Field(gt=0)],
@@ -180,6 +193,8 @@ class BlackboardApi:
180
193
  """blackboard_controller_poll_job
181
194
 
182
195
 
196
+ :param request_body: (required)
197
+ :type request_body: List[str]
183
198
  :param _request_timeout: timeout setting for this request. If one
184
199
  number provided, it will be total request
185
200
  timeout. It can also be a pair (tuple) of
@@ -203,6 +218,7 @@ class BlackboardApi:
203
218
  """ # noqa: E501
204
219
 
205
220
  _param = self._blackboard_controller_poll_job_serialize(
221
+ request_body=request_body,
206
222
  _request_auth=_request_auth,
207
223
  _content_type=_content_type,
208
224
  _headers=_headers,
@@ -210,7 +226,8 @@ class BlackboardApi:
210
226
  )
211
227
 
212
228
  _response_types_map: Dict[str, Optional[str]] = {
213
- '200': "JobDefinitionDto",
229
+ '200': "List[JobDefinitionDto]",
230
+ '201': "List[JobDefinitionDto]",
214
231
  }
215
232
  response_data = self.api_client.call_api(
216
233
  *_param,
@@ -221,6 +238,7 @@ class BlackboardApi:
221
238
 
222
239
  def _blackboard_controller_poll_job_serialize(
223
240
  self,
241
+ request_body,
224
242
  _request_auth,
225
243
  _content_type,
226
244
  _headers,
@@ -230,6 +248,7 @@ class BlackboardApi:
230
248
  _host = None
231
249
 
232
250
  _collection_formats: Dict[str, str] = {
251
+ 'request_body': '',
233
252
  }
234
253
 
235
254
  _path_params: Dict[str, str] = {}
@@ -246,6 +265,8 @@ class BlackboardApi:
246
265
  # process the header parameters
247
266
  # process the form parameters
248
267
  # process the body parameter
268
+ if request_body is not None:
269
+ _body_params = request_body
249
270
 
250
271
 
251
272
  # set the HTTP header `Accept`
@@ -256,13 +277,26 @@ class BlackboardApi:
256
277
  ]
257
278
  )
258
279
 
280
+ # set the HTTP header `Content-Type`
281
+ if _content_type:
282
+ _header_params['Content-Type'] = _content_type
283
+ else:
284
+ _default_content_type = (
285
+ self.api_client.select_header_content_type(
286
+ [
287
+ 'application/json'
288
+ ]
289
+ )
290
+ )
291
+ if _default_content_type is not None:
292
+ _header_params['Content-Type'] = _default_content_type
259
293
 
260
294
  # authentication setting
261
295
  _auth_settings: List[str] = [
262
296
  ]
263
297
 
264
298
  return self.api_client.param_serialize(
265
- method='GET',
299
+ method='POST',
266
300
  resource_path='/blackboard/job',
267
301
  path_params=_path_params,
268
302
  query_params=_query_params,
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/0.35.0/python'
93
+ self.user_agent = 'OpenAPI-Generator/0.37.0/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -384,7 +384,7 @@ class Configuration:
384
384
  "OS: {env}\n"\
385
385
  "Python Version: {pyversion}\n"\
386
386
  "Version of the API: 1.0\n"\
387
- "SDK Package Version: 0.35.0".\
387
+ "SDK Package Version: 0.37.0".\
388
388
  format(env=sys.platform, pyversion=sys.version)
389
389
 
390
390
  def get_host_settings(self):
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field
21
- from typing import Any, ClassVar, Dict, List, Optional
21
+ from typing import Any, ClassVar, Dict, List
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
@@ -26,7 +26,7 @@ class JobDefinitionDto(BaseModel):
26
26
  """
27
27
  JobDefinitionDto
28
28
  """ # noqa: E501
29
- parametrized_function_block: Optional[Dict[str, Any]] = Field(default=None, alias="parametrizedFunctionBlock")
29
+ parametrized_function_block: Dict[str, Any] = Field(alias="parametrizedFunctionBlock")
30
30
  __properties: ClassVar[List[str]] = ["parametrizedFunctionBlock"]
31
31
 
32
32
  model_config = ConfigDict(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "neops_workflow_engine_client"
3
- version = "0.35.0"
3
+ version = "0.37.0"
4
4
  description = "Neops Workflow Engine"
5
5
  authors = ["OpenAPI Generator Community <team@openapitools.org>"]
6
6
  license = "NoLicense"