neops_workflow_engine_client 0.32.0__tar.gz → 0.35.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.
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/PKG-INFO +21 -17
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/README.md +20 -16
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/__init__.py +4 -2
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/api/__init__.py +1 -1
- neops_workflow_engine_client-0.32.0/neops_workflow_engine_client/api/job_api.py → neops_workflow_engine_client-0.35.0/neops_workflow_engine_client/api/blackboard_api.py +23 -23
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/api/default_api.py +13 -5
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/api/function_block_api.py +14 -14
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/api/health_api.py +3 -3
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/api/workflows_api.py +134 -154
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/api_client.py +1 -1
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/configuration.py +1 -1
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/models/__init__.py +2 -0
- neops_workflow_engine_client-0.35.0/neops_workflow_engine_client/models/execute_workflow_dto.py +93 -0
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/models/health_response.py +2 -2
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/models/job_definition_dto.py +2 -2
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/models/job_result_dto.py +2 -2
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/models/register_function_block_dto.py +11 -11
- neops_workflow_engine_client-0.35.0/neops_workflow_engine_client/models/workflow_dto.py +107 -0
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/pyproject.toml +1 -1
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/api_response.py +0 -0
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/exceptions.py +0 -0
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.0}/neops_workflow_engine_client/py.typed +0 -0
- {neops_workflow_engine_client-0.32.0 → neops_workflow_engine_client-0.35.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.
|
|
3
|
+
Version: 0.35.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.
|
|
32
|
+
- Package version: 0.35.0
|
|
33
33
|
- Generator version: 7.9.0
|
|
34
34
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
35
35
|
|
|
@@ -91,12 +91,14 @@ configuration = neops_workflow_engine_client.Configuration(
|
|
|
91
91
|
# Enter a context with an instance of the API client
|
|
92
92
|
with neops_workflow_engine_client.ApiClient(configuration) as api_client:
|
|
93
93
|
# Create an instance of the API class
|
|
94
|
-
api_instance = neops_workflow_engine_client.
|
|
94
|
+
api_instance = neops_workflow_engine_client.BlackboardApi(api_client)
|
|
95
95
|
|
|
96
96
|
try:
|
|
97
|
-
api_instance.
|
|
97
|
+
api_response = api_instance.blackboard_controller_poll_job()
|
|
98
|
+
print("The response of BlackboardApi->blackboard_controller_poll_job:\n")
|
|
99
|
+
pprint(api_response)
|
|
98
100
|
except ApiException as e:
|
|
99
|
-
print("Exception when calling
|
|
101
|
+
print("Exception when calling BlackboardApi->blackboard_controller_poll_job: %s\n" % e)
|
|
100
102
|
|
|
101
103
|
```
|
|
102
104
|
|
|
@@ -106,27 +108,29 @@ All URIs are relative to *http://localhost*
|
|
|
106
108
|
|
|
107
109
|
Class | Method | HTTP request | Description
|
|
108
110
|
------------ | ------------- | ------------- | -------------
|
|
111
|
+
*BlackboardApi* | [**blackboard_controller_poll_job**](docs/BlackboardApi.md#blackboard_controller_poll_job) | **GET** /blackboard/job |
|
|
112
|
+
*BlackboardApi* | [**blackboard_controller_push_job_result**](docs/BlackboardApi.md#blackboard_controller_push_job_result) | **POST** /blackboard/job/result |
|
|
109
113
|
*DefaultApi* | [**app_controller_get_hello**](docs/DefaultApi.md#app_controller_get_hello) | **GET** / |
|
|
110
|
-
*FunctionBlockApi* | [**function_blocks_controller_find_all**](docs/FunctionBlockApi.md#function_blocks_controller_find_all) | **GET** /function-blocks |
|
|
111
|
-
*FunctionBlockApi* | [**function_blocks_controller_find_one**](docs/FunctionBlockApi.md#function_blocks_controller_find_one) | **GET** /function-blocks/{id} |
|
|
112
|
-
*FunctionBlockApi* | [**function_blocks_controller_register**](docs/FunctionBlockApi.md#function_blocks_controller_register) | **POST** /function-blocks |
|
|
113
|
-
*FunctionBlockApi* | [**function_blocks_controller_unregister**](docs/FunctionBlockApi.md#function_blocks_controller_unregister) | **DELETE** /function-blocks/{id} |
|
|
114
|
-
*HealthApi* | [**health_controller_healthy**](docs/HealthApi.md#health_controller_healthy) | **GET** /health |
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*WorkflowsApi* | [**
|
|
118
|
-
*WorkflowsApi* | [**
|
|
119
|
-
*WorkflowsApi* | [**
|
|
120
|
-
*WorkflowsApi* | [**workflow_controller_remove**](docs/WorkflowsApi.md#workflow_controller_remove) | **DELETE** /workflow/{id} |
|
|
121
|
-
*WorkflowsApi* | [**workflow_controller_update**](docs/WorkflowsApi.md#workflow_controller_update) | **PATCH** /workflow/{id} |
|
|
114
|
+
*FunctionBlockApi* | [**function_blocks_controller_find_all**](docs/FunctionBlockApi.md#function_blocks_controller_find_all) | **GET** /function-blocks/list | List all registered function blocks
|
|
115
|
+
*FunctionBlockApi* | [**function_blocks_controller_find_one**](docs/FunctionBlockApi.md#function_blocks_controller_find_one) | **GET** /function-blocks/{id} | Get a function block by id
|
|
116
|
+
*FunctionBlockApi* | [**function_blocks_controller_register**](docs/FunctionBlockApi.md#function_blocks_controller_register) | **POST** /function-blocks/register | Register a function block
|
|
117
|
+
*FunctionBlockApi* | [**function_blocks_controller_unregister**](docs/FunctionBlockApi.md#function_blocks_controller_unregister) | **DELETE** /function-blocks/{id} | Unregister a function block
|
|
118
|
+
*HealthApi* | [**health_controller_healthy**](docs/HealthApi.md#health_controller_healthy) | **GET** /health | Check health of task engine
|
|
119
|
+
*WorkflowsApi* | [**workflow_controller_execute**](docs/WorkflowsApi.md#workflow_controller_execute) | **POST** /workflow | Execute a workflow
|
|
120
|
+
*WorkflowsApi* | [**workflow_controller_ge_all**](docs/WorkflowsApi.md#workflow_controller_ge_all) | **GET** /workflow/failed | List all failed workflows
|
|
121
|
+
*WorkflowsApi* | [**workflow_controller_get_all**](docs/WorkflowsApi.md#workflow_controller_get_all) | **GET** /workflow/all | List all workflows
|
|
122
|
+
*WorkflowsApi* | [**workflow_controller_get_running**](docs/WorkflowsApi.md#workflow_controller_get_running) | **GET** /workflow/running | List all running workflows
|
|
123
|
+
*WorkflowsApi* | [**workflow_controller_remove**](docs/WorkflowsApi.md#workflow_controller_remove) | **DELETE** /workflow/{id} | Stop a workflow
|
|
122
124
|
|
|
123
125
|
|
|
124
126
|
## Documentation For Models
|
|
125
127
|
|
|
128
|
+
- [ExecuteWorkflowDto](docs/ExecuteWorkflowDto.md)
|
|
126
129
|
- [HealthResponse](docs/HealthResponse.md)
|
|
127
130
|
- [JobDefinitionDto](docs/JobDefinitionDto.md)
|
|
128
131
|
- [JobResultDto](docs/JobResultDto.md)
|
|
129
132
|
- [RegisterFunctionBlockDto](docs/RegisterFunctionBlockDto.md)
|
|
133
|
+
- [WorkflowDto](docs/WorkflowDto.md)
|
|
130
134
|
|
|
131
135
|
|
|
132
136
|
<a id="documentation-for-authorization"></a>
|
|
@@ -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.
|
|
7
|
+
- Package version: 0.35.0
|
|
8
8
|
- Generator version: 7.9.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
|
|
@@ -66,12 +66,14 @@ configuration = neops_workflow_engine_client.Configuration(
|
|
|
66
66
|
# Enter a context with an instance of the API client
|
|
67
67
|
with neops_workflow_engine_client.ApiClient(configuration) as api_client:
|
|
68
68
|
# Create an instance of the API class
|
|
69
|
-
api_instance = neops_workflow_engine_client.
|
|
69
|
+
api_instance = neops_workflow_engine_client.BlackboardApi(api_client)
|
|
70
70
|
|
|
71
71
|
try:
|
|
72
|
-
api_instance.
|
|
72
|
+
api_response = api_instance.blackboard_controller_poll_job()
|
|
73
|
+
print("The response of BlackboardApi->blackboard_controller_poll_job:\n")
|
|
74
|
+
pprint(api_response)
|
|
73
75
|
except ApiException as e:
|
|
74
|
-
print("Exception when calling
|
|
76
|
+
print("Exception when calling BlackboardApi->blackboard_controller_poll_job: %s\n" % e)
|
|
75
77
|
|
|
76
78
|
```
|
|
77
79
|
|
|
@@ -81,27 +83,29 @@ All URIs are relative to *http://localhost*
|
|
|
81
83
|
|
|
82
84
|
Class | Method | HTTP request | Description
|
|
83
85
|
------------ | ------------- | ------------- | -------------
|
|
86
|
+
*BlackboardApi* | [**blackboard_controller_poll_job**](docs/BlackboardApi.md#blackboard_controller_poll_job) | **GET** /blackboard/job |
|
|
87
|
+
*BlackboardApi* | [**blackboard_controller_push_job_result**](docs/BlackboardApi.md#blackboard_controller_push_job_result) | **POST** /blackboard/job/result |
|
|
84
88
|
*DefaultApi* | [**app_controller_get_hello**](docs/DefaultApi.md#app_controller_get_hello) | **GET** / |
|
|
85
|
-
*FunctionBlockApi* | [**function_blocks_controller_find_all**](docs/FunctionBlockApi.md#function_blocks_controller_find_all) | **GET** /function-blocks |
|
|
86
|
-
*FunctionBlockApi* | [**function_blocks_controller_find_one**](docs/FunctionBlockApi.md#function_blocks_controller_find_one) | **GET** /function-blocks/{id} |
|
|
87
|
-
*FunctionBlockApi* | [**function_blocks_controller_register**](docs/FunctionBlockApi.md#function_blocks_controller_register) | **POST** /function-blocks |
|
|
88
|
-
*FunctionBlockApi* | [**function_blocks_controller_unregister**](docs/FunctionBlockApi.md#function_blocks_controller_unregister) | **DELETE** /function-blocks/{id} |
|
|
89
|
-
*HealthApi* | [**health_controller_healthy**](docs/HealthApi.md#health_controller_healthy) | **GET** /health |
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*WorkflowsApi* | [**
|
|
93
|
-
*WorkflowsApi* | [**
|
|
94
|
-
*WorkflowsApi* | [**
|
|
95
|
-
*WorkflowsApi* | [**workflow_controller_remove**](docs/WorkflowsApi.md#workflow_controller_remove) | **DELETE** /workflow/{id} |
|
|
96
|
-
*WorkflowsApi* | [**workflow_controller_update**](docs/WorkflowsApi.md#workflow_controller_update) | **PATCH** /workflow/{id} |
|
|
89
|
+
*FunctionBlockApi* | [**function_blocks_controller_find_all**](docs/FunctionBlockApi.md#function_blocks_controller_find_all) | **GET** /function-blocks/list | List all registered function blocks
|
|
90
|
+
*FunctionBlockApi* | [**function_blocks_controller_find_one**](docs/FunctionBlockApi.md#function_blocks_controller_find_one) | **GET** /function-blocks/{id} | Get a function block by id
|
|
91
|
+
*FunctionBlockApi* | [**function_blocks_controller_register**](docs/FunctionBlockApi.md#function_blocks_controller_register) | **POST** /function-blocks/register | Register a function block
|
|
92
|
+
*FunctionBlockApi* | [**function_blocks_controller_unregister**](docs/FunctionBlockApi.md#function_blocks_controller_unregister) | **DELETE** /function-blocks/{id} | Unregister a function block
|
|
93
|
+
*HealthApi* | [**health_controller_healthy**](docs/HealthApi.md#health_controller_healthy) | **GET** /health | Check health of task engine
|
|
94
|
+
*WorkflowsApi* | [**workflow_controller_execute**](docs/WorkflowsApi.md#workflow_controller_execute) | **POST** /workflow | Execute a workflow
|
|
95
|
+
*WorkflowsApi* | [**workflow_controller_ge_all**](docs/WorkflowsApi.md#workflow_controller_ge_all) | **GET** /workflow/failed | List all failed workflows
|
|
96
|
+
*WorkflowsApi* | [**workflow_controller_get_all**](docs/WorkflowsApi.md#workflow_controller_get_all) | **GET** /workflow/all | List all workflows
|
|
97
|
+
*WorkflowsApi* | [**workflow_controller_get_running**](docs/WorkflowsApi.md#workflow_controller_get_running) | **GET** /workflow/running | List all running workflows
|
|
98
|
+
*WorkflowsApi* | [**workflow_controller_remove**](docs/WorkflowsApi.md#workflow_controller_remove) | **DELETE** /workflow/{id} | Stop a workflow
|
|
97
99
|
|
|
98
100
|
|
|
99
101
|
## Documentation For Models
|
|
100
102
|
|
|
103
|
+
- [ExecuteWorkflowDto](docs/ExecuteWorkflowDto.md)
|
|
101
104
|
- [HealthResponse](docs/HealthResponse.md)
|
|
102
105
|
- [JobDefinitionDto](docs/JobDefinitionDto.md)
|
|
103
106
|
- [JobResultDto](docs/JobResultDto.md)
|
|
104
107
|
- [RegisterFunctionBlockDto](docs/RegisterFunctionBlockDto.md)
|
|
108
|
+
- [WorkflowDto](docs/WorkflowDto.md)
|
|
105
109
|
|
|
106
110
|
|
|
107
111
|
<a id="documentation-for-authorization"></a>
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "0.
|
|
17
|
+
__version__ = "0.35.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
|
+
from neops_workflow_engine_client.api.blackboard_api import BlackboardApi
|
|
20
21
|
from neops_workflow_engine_client.api.default_api import DefaultApi
|
|
21
22
|
from neops_workflow_engine_client.api.function_block_api import FunctionBlockApi
|
|
22
23
|
from neops_workflow_engine_client.api.health_api import HealthApi
|
|
23
|
-
from neops_workflow_engine_client.api.job_api import JobApi
|
|
24
24
|
from neops_workflow_engine_client.api.workflows_api import WorkflowsApi
|
|
25
25
|
|
|
26
26
|
# import ApiClient
|
|
@@ -35,7 +35,9 @@ from neops_workflow_engine_client.exceptions import ApiAttributeError
|
|
|
35
35
|
from neops_workflow_engine_client.exceptions import ApiException
|
|
36
36
|
|
|
37
37
|
# import models into sdk package
|
|
38
|
+
from neops_workflow_engine_client.models.execute_workflow_dto import ExecuteWorkflowDto
|
|
38
39
|
from neops_workflow_engine_client.models.health_response import HealthResponse
|
|
39
40
|
from neops_workflow_engine_client.models.job_definition_dto import JobDefinitionDto
|
|
40
41
|
from neops_workflow_engine_client.models.job_result_dto import JobResultDto
|
|
41
42
|
from neops_workflow_engine_client.models.register_function_block_dto import RegisterFunctionBlockDto
|
|
43
|
+
from neops_workflow_engine_client.models.workflow_dto import WorkflowDto
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
2
|
|
|
3
3
|
# import apis into api package
|
|
4
|
+
from neops_workflow_engine_client.api.blackboard_api import BlackboardApi
|
|
4
5
|
from neops_workflow_engine_client.api.default_api import DefaultApi
|
|
5
6
|
from neops_workflow_engine_client.api.function_block_api import FunctionBlockApi
|
|
6
7
|
from neops_workflow_engine_client.api.health_api import HealthApi
|
|
7
|
-
from neops_workflow_engine_client.api.job_api import JobApi
|
|
8
8
|
from neops_workflow_engine_client.api.workflows_api import WorkflowsApi
|
|
9
9
|
|
|
@@ -24,7 +24,7 @@ from neops_workflow_engine_client.api_response import ApiResponse
|
|
|
24
24
|
from neops_workflow_engine_client.rest import RESTResponseType
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class BlackboardApi:
|
|
28
28
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
29
|
Ref: https://openapi-generator.tech
|
|
30
30
|
|
|
@@ -38,7 +38,7 @@ class JobApi:
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
@validate_call
|
|
41
|
-
def
|
|
41
|
+
def blackboard_controller_poll_job(
|
|
42
42
|
self,
|
|
43
43
|
_request_timeout: Union[
|
|
44
44
|
None,
|
|
@@ -53,7 +53,7 @@ class JobApi:
|
|
|
53
53
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
54
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
55
|
) -> JobDefinitionDto:
|
|
56
|
-
"""
|
|
56
|
+
"""blackboard_controller_poll_job
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -78,7 +78,7 @@ class JobApi:
|
|
|
78
78
|
:return: Returns the result object.
|
|
79
79
|
""" # noqa: E501
|
|
80
80
|
|
|
81
|
-
_param = self.
|
|
81
|
+
_param = self._blackboard_controller_poll_job_serialize(
|
|
82
82
|
_request_auth=_request_auth,
|
|
83
83
|
_content_type=_content_type,
|
|
84
84
|
_headers=_headers,
|
|
@@ -100,7 +100,7 @@ class JobApi:
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
@validate_call
|
|
103
|
-
def
|
|
103
|
+
def blackboard_controller_poll_job_with_http_info(
|
|
104
104
|
self,
|
|
105
105
|
_request_timeout: Union[
|
|
106
106
|
None,
|
|
@@ -115,7 +115,7 @@ class JobApi:
|
|
|
115
115
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
116
116
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
117
117
|
) -> ApiResponse[JobDefinitionDto]:
|
|
118
|
-
"""
|
|
118
|
+
"""blackboard_controller_poll_job
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -140,7 +140,7 @@ class JobApi:
|
|
|
140
140
|
:return: Returns the result object.
|
|
141
141
|
""" # noqa: E501
|
|
142
142
|
|
|
143
|
-
_param = self.
|
|
143
|
+
_param = self._blackboard_controller_poll_job_serialize(
|
|
144
144
|
_request_auth=_request_auth,
|
|
145
145
|
_content_type=_content_type,
|
|
146
146
|
_headers=_headers,
|
|
@@ -162,7 +162,7 @@ class JobApi:
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
@validate_call
|
|
165
|
-
def
|
|
165
|
+
def blackboard_controller_poll_job_without_preload_content(
|
|
166
166
|
self,
|
|
167
167
|
_request_timeout: Union[
|
|
168
168
|
None,
|
|
@@ -177,7 +177,7 @@ class JobApi:
|
|
|
177
177
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
178
178
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
179
179
|
) -> RESTResponseType:
|
|
180
|
-
"""
|
|
180
|
+
"""blackboard_controller_poll_job
|
|
181
181
|
|
|
182
182
|
|
|
183
183
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -202,7 +202,7 @@ class JobApi:
|
|
|
202
202
|
:return: Returns the result object.
|
|
203
203
|
""" # noqa: E501
|
|
204
204
|
|
|
205
|
-
_param = self.
|
|
205
|
+
_param = self._blackboard_controller_poll_job_serialize(
|
|
206
206
|
_request_auth=_request_auth,
|
|
207
207
|
_content_type=_content_type,
|
|
208
208
|
_headers=_headers,
|
|
@@ -219,7 +219,7 @@ class JobApi:
|
|
|
219
219
|
return response_data.response
|
|
220
220
|
|
|
221
221
|
|
|
222
|
-
def
|
|
222
|
+
def _blackboard_controller_poll_job_serialize(
|
|
223
223
|
self,
|
|
224
224
|
_request_auth,
|
|
225
225
|
_content_type,
|
|
@@ -263,7 +263,7 @@ class JobApi:
|
|
|
263
263
|
|
|
264
264
|
return self.api_client.param_serialize(
|
|
265
265
|
method='GET',
|
|
266
|
-
resource_path='/job',
|
|
266
|
+
resource_path='/blackboard/job',
|
|
267
267
|
path_params=_path_params,
|
|
268
268
|
query_params=_query_params,
|
|
269
269
|
header_params=_header_params,
|
|
@@ -280,7 +280,7 @@ class JobApi:
|
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
@validate_call
|
|
283
|
-
def
|
|
283
|
+
def blackboard_controller_push_job_result(
|
|
284
284
|
self,
|
|
285
285
|
job_result_dto: JobResultDto,
|
|
286
286
|
_request_timeout: Union[
|
|
@@ -296,7 +296,7 @@ class JobApi:
|
|
|
296
296
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
297
297
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
298
298
|
) -> None:
|
|
299
|
-
"""
|
|
299
|
+
"""blackboard_controller_push_job_result
|
|
300
300
|
|
|
301
301
|
|
|
302
302
|
:param job_result_dto: (required)
|
|
@@ -323,7 +323,7 @@ class JobApi:
|
|
|
323
323
|
:return: Returns the result object.
|
|
324
324
|
""" # noqa: E501
|
|
325
325
|
|
|
326
|
-
_param = self.
|
|
326
|
+
_param = self._blackboard_controller_push_job_result_serialize(
|
|
327
327
|
job_result_dto=job_result_dto,
|
|
328
328
|
_request_auth=_request_auth,
|
|
329
329
|
_content_type=_content_type,
|
|
@@ -346,7 +346,7 @@ class JobApi:
|
|
|
346
346
|
|
|
347
347
|
|
|
348
348
|
@validate_call
|
|
349
|
-
def
|
|
349
|
+
def blackboard_controller_push_job_result_with_http_info(
|
|
350
350
|
self,
|
|
351
351
|
job_result_dto: JobResultDto,
|
|
352
352
|
_request_timeout: Union[
|
|
@@ -362,7 +362,7 @@ class JobApi:
|
|
|
362
362
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
363
363
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
364
364
|
) -> ApiResponse[None]:
|
|
365
|
-
"""
|
|
365
|
+
"""blackboard_controller_push_job_result
|
|
366
366
|
|
|
367
367
|
|
|
368
368
|
:param job_result_dto: (required)
|
|
@@ -389,7 +389,7 @@ class JobApi:
|
|
|
389
389
|
:return: Returns the result object.
|
|
390
390
|
""" # noqa: E501
|
|
391
391
|
|
|
392
|
-
_param = self.
|
|
392
|
+
_param = self._blackboard_controller_push_job_result_serialize(
|
|
393
393
|
job_result_dto=job_result_dto,
|
|
394
394
|
_request_auth=_request_auth,
|
|
395
395
|
_content_type=_content_type,
|
|
@@ -412,7 +412,7 @@ class JobApi:
|
|
|
412
412
|
|
|
413
413
|
|
|
414
414
|
@validate_call
|
|
415
|
-
def
|
|
415
|
+
def blackboard_controller_push_job_result_without_preload_content(
|
|
416
416
|
self,
|
|
417
417
|
job_result_dto: JobResultDto,
|
|
418
418
|
_request_timeout: Union[
|
|
@@ -428,7 +428,7 @@ class JobApi:
|
|
|
428
428
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
429
429
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
430
430
|
) -> RESTResponseType:
|
|
431
|
-
"""
|
|
431
|
+
"""blackboard_controller_push_job_result
|
|
432
432
|
|
|
433
433
|
|
|
434
434
|
:param job_result_dto: (required)
|
|
@@ -455,7 +455,7 @@ class JobApi:
|
|
|
455
455
|
:return: Returns the result object.
|
|
456
456
|
""" # noqa: E501
|
|
457
457
|
|
|
458
|
-
_param = self.
|
|
458
|
+
_param = self._blackboard_controller_push_job_result_serialize(
|
|
459
459
|
job_result_dto=job_result_dto,
|
|
460
460
|
_request_auth=_request_auth,
|
|
461
461
|
_content_type=_content_type,
|
|
@@ -473,7 +473,7 @@ class JobApi:
|
|
|
473
473
|
return response_data.response
|
|
474
474
|
|
|
475
475
|
|
|
476
|
-
def
|
|
476
|
+
def _blackboard_controller_push_job_result_serialize(
|
|
477
477
|
self,
|
|
478
478
|
job_result_dto,
|
|
479
479
|
_request_auth,
|
|
@@ -526,7 +526,7 @@ class JobApi:
|
|
|
526
526
|
|
|
527
527
|
return self.api_client.param_serialize(
|
|
528
528
|
method='POST',
|
|
529
|
-
resource_path='/job',
|
|
529
|
+
resource_path='/blackboard/job/result',
|
|
530
530
|
path_params=_path_params,
|
|
531
531
|
query_params=_query_params,
|
|
532
532
|
header_params=_header_params,
|
|
@@ -16,6 +16,7 @@ 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
|
|
19
20
|
|
|
20
21
|
from neops_workflow_engine_client.api_client import ApiClient, RequestSerialized
|
|
21
22
|
from neops_workflow_engine_client.api_response import ApiResponse
|
|
@@ -50,7 +51,7 @@ class DefaultApi:
|
|
|
50
51
|
_content_type: Optional[StrictStr] = None,
|
|
51
52
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
52
53
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
53
|
-
) ->
|
|
54
|
+
) -> str:
|
|
54
55
|
"""app_controller_get_hello
|
|
55
56
|
|
|
56
57
|
|
|
@@ -84,7 +85,7 @@ class DefaultApi:
|
|
|
84
85
|
)
|
|
85
86
|
|
|
86
87
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
87
|
-
'200':
|
|
88
|
+
'200': "str",
|
|
88
89
|
}
|
|
89
90
|
response_data = self.api_client.call_api(
|
|
90
91
|
*_param,
|
|
@@ -112,7 +113,7 @@ class DefaultApi:
|
|
|
112
113
|
_content_type: Optional[StrictStr] = None,
|
|
113
114
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
114
115
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
115
|
-
) -> ApiResponse[
|
|
116
|
+
) -> ApiResponse[str]:
|
|
116
117
|
"""app_controller_get_hello
|
|
117
118
|
|
|
118
119
|
|
|
@@ -146,7 +147,7 @@ class DefaultApi:
|
|
|
146
147
|
)
|
|
147
148
|
|
|
148
149
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
149
|
-
'200':
|
|
150
|
+
'200': "str",
|
|
150
151
|
}
|
|
151
152
|
response_data = self.api_client.call_api(
|
|
152
153
|
*_param,
|
|
@@ -208,7 +209,7 @@ class DefaultApi:
|
|
|
208
209
|
)
|
|
209
210
|
|
|
210
211
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
211
|
-
'200':
|
|
212
|
+
'200': "str",
|
|
212
213
|
}
|
|
213
214
|
response_data = self.api_client.call_api(
|
|
214
215
|
*_param,
|
|
@@ -246,6 +247,13 @@ class DefaultApi:
|
|
|
246
247
|
# process the body parameter
|
|
247
248
|
|
|
248
249
|
|
|
250
|
+
# set the HTTP header `Accept`
|
|
251
|
+
if 'Accept' not in _header_params:
|
|
252
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
253
|
+
[
|
|
254
|
+
'application/json'
|
|
255
|
+
]
|
|
256
|
+
)
|
|
249
257
|
|
|
250
258
|
|
|
251
259
|
# authentication setting
|
|
@@ -54,7 +54,7 @@ class FunctionBlockApi:
|
|
|
54
54
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
55
55
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
56
56
|
) -> List[RegisterFunctionBlockDto]:
|
|
57
|
-
"""
|
|
57
|
+
"""List all registered function blocks
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -116,7 +116,7 @@ class FunctionBlockApi:
|
|
|
116
116
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
117
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
118
|
) -> ApiResponse[List[RegisterFunctionBlockDto]]:
|
|
119
|
-
"""
|
|
119
|
+
"""List all registered function blocks
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -178,7 +178,7 @@ class FunctionBlockApi:
|
|
|
178
178
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
179
179
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
180
180
|
) -> RESTResponseType:
|
|
181
|
-
"""
|
|
181
|
+
"""List all registered function blocks
|
|
182
182
|
|
|
183
183
|
|
|
184
184
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -264,7 +264,7 @@ class FunctionBlockApi:
|
|
|
264
264
|
|
|
265
265
|
return self.api_client.param_serialize(
|
|
266
266
|
method='GET',
|
|
267
|
-
resource_path='/function-blocks',
|
|
267
|
+
resource_path='/function-blocks/list',
|
|
268
268
|
path_params=_path_params,
|
|
269
269
|
query_params=_query_params,
|
|
270
270
|
header_params=_header_params,
|
|
@@ -297,7 +297,7 @@ class FunctionBlockApi:
|
|
|
297
297
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
298
298
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
299
299
|
) -> RegisterFunctionBlockDto:
|
|
300
|
-
"""
|
|
300
|
+
"""Get a function block by id
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
:param id: (required)
|
|
@@ -363,7 +363,7 @@ class FunctionBlockApi:
|
|
|
363
363
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
364
364
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
365
365
|
) -> ApiResponse[RegisterFunctionBlockDto]:
|
|
366
|
-
"""
|
|
366
|
+
"""Get a function block by id
|
|
367
367
|
|
|
368
368
|
|
|
369
369
|
:param id: (required)
|
|
@@ -429,7 +429,7 @@ class FunctionBlockApi:
|
|
|
429
429
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
430
430
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
431
431
|
) -> RESTResponseType:
|
|
432
|
-
"""
|
|
432
|
+
"""Get a function block by id
|
|
433
433
|
|
|
434
434
|
|
|
435
435
|
:param id: (required)
|
|
@@ -554,7 +554,7 @@ class FunctionBlockApi:
|
|
|
554
554
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
555
555
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
556
556
|
) -> None:
|
|
557
|
-
"""
|
|
557
|
+
"""Register a function block
|
|
558
558
|
|
|
559
559
|
|
|
560
560
|
:param register_function_block_dto: (required)
|
|
@@ -620,7 +620,7 @@ class FunctionBlockApi:
|
|
|
620
620
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
621
621
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
622
622
|
) -> ApiResponse[None]:
|
|
623
|
-
"""
|
|
623
|
+
"""Register a function block
|
|
624
624
|
|
|
625
625
|
|
|
626
626
|
:param register_function_block_dto: (required)
|
|
@@ -686,7 +686,7 @@ class FunctionBlockApi:
|
|
|
686
686
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
687
687
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
688
688
|
) -> RESTResponseType:
|
|
689
|
-
"""
|
|
689
|
+
"""Register a function block
|
|
690
690
|
|
|
691
691
|
|
|
692
692
|
:param register_function_block_dto: (required)
|
|
@@ -784,7 +784,7 @@ class FunctionBlockApi:
|
|
|
784
784
|
|
|
785
785
|
return self.api_client.param_serialize(
|
|
786
786
|
method='POST',
|
|
787
|
-
resource_path='/function-blocks',
|
|
787
|
+
resource_path='/function-blocks/register',
|
|
788
788
|
path_params=_path_params,
|
|
789
789
|
query_params=_query_params,
|
|
790
790
|
header_params=_header_params,
|
|
@@ -817,7 +817,7 @@ class FunctionBlockApi:
|
|
|
817
817
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
818
818
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
819
819
|
) -> None:
|
|
820
|
-
"""
|
|
820
|
+
"""Unregister a function block
|
|
821
821
|
|
|
822
822
|
|
|
823
823
|
:param id: (required)
|
|
@@ -883,7 +883,7 @@ class FunctionBlockApi:
|
|
|
883
883
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
884
884
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
885
885
|
) -> ApiResponse[None]:
|
|
886
|
-
"""
|
|
886
|
+
"""Unregister a function block
|
|
887
887
|
|
|
888
888
|
|
|
889
889
|
:param id: (required)
|
|
@@ -949,7 +949,7 @@ class FunctionBlockApi:
|
|
|
949
949
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
950
950
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
951
951
|
) -> RESTResponseType:
|
|
952
|
-
"""
|
|
952
|
+
"""Unregister a function block
|
|
953
953
|
|
|
954
954
|
|
|
955
955
|
:param id: (required)
|
|
@@ -52,7 +52,7 @@ class HealthApi:
|
|
|
52
52
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
53
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
54
|
) -> HealthResponse:
|
|
55
|
-
"""
|
|
55
|
+
"""Check health of task engine
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -114,7 +114,7 @@ class HealthApi:
|
|
|
114
114
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
115
115
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
116
116
|
) -> ApiResponse[HealthResponse]:
|
|
117
|
-
"""
|
|
117
|
+
"""Check health of task engine
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -176,7 +176,7 @@ class HealthApi:
|
|
|
176
176
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
177
177
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
178
178
|
) -> RESTResponseType:
|
|
179
|
-
"""
|
|
179
|
+
"""Check health of task engine
|
|
180
180
|
|
|
181
181
|
|
|
182
182
|
:param _request_timeout: timeout setting for this request. If one
|