neops_workflow_engine_client 0.30.0__tar.gz → 0.32.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.30.0 → neops_workflow_engine_client-0.32.0}/PKG-INFO +11 -2
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/README.md +10 -1
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/__init__.py +5 -1
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/api/__init__.py +2 -0
- neops_workflow_engine_client-0.32.0/neops_workflow_engine_client/api/job_api.py +542 -0
- neops_workflow_engine_client-0.32.0/neops_workflow_engine_client/api/workflows_api.py +1313 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/api_client.py +1 -1
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/configuration.py +1 -1
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/models/__init__.py +2 -0
- neops_workflow_engine_client-0.32.0/neops_workflow_engine_client/models/job_definition_dto.py +87 -0
- neops_workflow_engine_client-0.32.0/neops_workflow_engine_client/models/job_result_dto.py +87 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/pyproject.toml +1 -1
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/api/default_api.py +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/api/function_block_api.py +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/api/health_api.py +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/api_response.py +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/exceptions.py +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/models/health_response.py +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/models/register_function_block_dto.py +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.0}/neops_workflow_engine_client/py.typed +0 -0
- {neops_workflow_engine_client-0.30.0 → neops_workflow_engine_client-0.32.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.32.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.32.0
|
|
33
33
|
- Generator version: 7.9.0
|
|
34
34
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
35
35
|
|
|
@@ -112,11 +112,20 @@ Class | Method | HTTP request | Description
|
|
|
112
112
|
*FunctionBlockApi* | [**function_blocks_controller_register**](docs/FunctionBlockApi.md#function_blocks_controller_register) | **POST** /function-blocks |
|
|
113
113
|
*FunctionBlockApi* | [**function_blocks_controller_unregister**](docs/FunctionBlockApi.md#function_blocks_controller_unregister) | **DELETE** /function-blocks/{id} |
|
|
114
114
|
*HealthApi* | [**health_controller_healthy**](docs/HealthApi.md#health_controller_healthy) | **GET** /health |
|
|
115
|
+
*JobApi* | [**job_controller_poll_job**](docs/JobApi.md#job_controller_poll_job) | **GET** /job |
|
|
116
|
+
*JobApi* | [**job_controller_push_job_result**](docs/JobApi.md#job_controller_push_job_result) | **POST** /job |
|
|
117
|
+
*WorkflowsApi* | [**workflow_controller_create**](docs/WorkflowsApi.md#workflow_controller_create) | **POST** /workflow |
|
|
118
|
+
*WorkflowsApi* | [**workflow_controller_find_all**](docs/WorkflowsApi.md#workflow_controller_find_all) | **GET** /workflow |
|
|
119
|
+
*WorkflowsApi* | [**workflow_controller_find_one**](docs/WorkflowsApi.md#workflow_controller_find_one) | **GET** /workflow/{id} |
|
|
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} |
|
|
115
122
|
|
|
116
123
|
|
|
117
124
|
## Documentation For Models
|
|
118
125
|
|
|
119
126
|
- [HealthResponse](docs/HealthResponse.md)
|
|
127
|
+
- [JobDefinitionDto](docs/JobDefinitionDto.md)
|
|
128
|
+
- [JobResultDto](docs/JobResultDto.md)
|
|
120
129
|
- [RegisterFunctionBlockDto](docs/RegisterFunctionBlockDto.md)
|
|
121
130
|
|
|
122
131
|
|
|
@@ -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.32.0
|
|
8
8
|
- Generator version: 7.9.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
|
|
@@ -87,11 +87,20 @@ Class | Method | HTTP request | Description
|
|
|
87
87
|
*FunctionBlockApi* | [**function_blocks_controller_register**](docs/FunctionBlockApi.md#function_blocks_controller_register) | **POST** /function-blocks |
|
|
88
88
|
*FunctionBlockApi* | [**function_blocks_controller_unregister**](docs/FunctionBlockApi.md#function_blocks_controller_unregister) | **DELETE** /function-blocks/{id} |
|
|
89
89
|
*HealthApi* | [**health_controller_healthy**](docs/HealthApi.md#health_controller_healthy) | **GET** /health |
|
|
90
|
+
*JobApi* | [**job_controller_poll_job**](docs/JobApi.md#job_controller_poll_job) | **GET** /job |
|
|
91
|
+
*JobApi* | [**job_controller_push_job_result**](docs/JobApi.md#job_controller_push_job_result) | **POST** /job |
|
|
92
|
+
*WorkflowsApi* | [**workflow_controller_create**](docs/WorkflowsApi.md#workflow_controller_create) | **POST** /workflow |
|
|
93
|
+
*WorkflowsApi* | [**workflow_controller_find_all**](docs/WorkflowsApi.md#workflow_controller_find_all) | **GET** /workflow |
|
|
94
|
+
*WorkflowsApi* | [**workflow_controller_find_one**](docs/WorkflowsApi.md#workflow_controller_find_one) | **GET** /workflow/{id} |
|
|
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} |
|
|
90
97
|
|
|
91
98
|
|
|
92
99
|
## Documentation For Models
|
|
93
100
|
|
|
94
101
|
- [HealthResponse](docs/HealthResponse.md)
|
|
102
|
+
- [JobDefinitionDto](docs/JobDefinitionDto.md)
|
|
103
|
+
- [JobResultDto](docs/JobResultDto.md)
|
|
95
104
|
- [RegisterFunctionBlockDto](docs/RegisterFunctionBlockDto.md)
|
|
96
105
|
|
|
97
106
|
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "0.
|
|
17
|
+
__version__ = "0.32.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from neops_workflow_engine_client.api.default_api import DefaultApi
|
|
21
21
|
from neops_workflow_engine_client.api.function_block_api import FunctionBlockApi
|
|
22
22
|
from neops_workflow_engine_client.api.health_api import HealthApi
|
|
23
|
+
from neops_workflow_engine_client.api.job_api import JobApi
|
|
24
|
+
from neops_workflow_engine_client.api.workflows_api import WorkflowsApi
|
|
23
25
|
|
|
24
26
|
# import ApiClient
|
|
25
27
|
from neops_workflow_engine_client.api_response import ApiResponse
|
|
@@ -34,4 +36,6 @@ from neops_workflow_engine_client.exceptions import ApiException
|
|
|
34
36
|
|
|
35
37
|
# import models into sdk package
|
|
36
38
|
from neops_workflow_engine_client.models.health_response import HealthResponse
|
|
39
|
+
from neops_workflow_engine_client.models.job_definition_dto import JobDefinitionDto
|
|
40
|
+
from neops_workflow_engine_client.models.job_result_dto import JobResultDto
|
|
37
41
|
from neops_workflow_engine_client.models.register_function_block_dto import RegisterFunctionBlockDto
|
|
@@ -4,4 +4,6 @@
|
|
|
4
4
|
from neops_workflow_engine_client.api.default_api import DefaultApi
|
|
5
5
|
from neops_workflow_engine_client.api.function_block_api import FunctionBlockApi
|
|
6
6
|
from neops_workflow_engine_client.api.health_api import HealthApi
|
|
7
|
+
from neops_workflow_engine_client.api.job_api import JobApi
|
|
8
|
+
from neops_workflow_engine_client.api.workflows_api import WorkflowsApi
|
|
7
9
|
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neops Workflow Engine
|
|
5
|
+
|
|
6
|
+
Neops workflow engine API documentation
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.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 neops_workflow_engine_client.models.job_definition_dto import JobDefinitionDto
|
|
20
|
+
from neops_workflow_engine_client.models.job_result_dto import JobResultDto
|
|
21
|
+
|
|
22
|
+
from neops_workflow_engine_client.api_client import ApiClient, RequestSerialized
|
|
23
|
+
from neops_workflow_engine_client.api_response import ApiResponse
|
|
24
|
+
from neops_workflow_engine_client.rest import RESTResponseType
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class JobApi:
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None) -> None:
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient.get_default()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@validate_call
|
|
41
|
+
def job_controller_poll_job(
|
|
42
|
+
self,
|
|
43
|
+
_request_timeout: Union[
|
|
44
|
+
None,
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Tuple[
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
49
|
+
]
|
|
50
|
+
] = None,
|
|
51
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
52
|
+
_content_type: Optional[StrictStr] = None,
|
|
53
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
|
+
) -> JobDefinitionDto:
|
|
56
|
+
"""job_controller_poll_job
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
60
|
+
number provided, it will be total request
|
|
61
|
+
timeout. It can also be a pair (tuple) of
|
|
62
|
+
(connection, read) timeouts.
|
|
63
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
64
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
65
|
+
request; this effectively ignores the
|
|
66
|
+
authentication in the spec for a single request.
|
|
67
|
+
:type _request_auth: dict, optional
|
|
68
|
+
:param _content_type: force content-type for the request.
|
|
69
|
+
:type _content_type: str, Optional
|
|
70
|
+
:param _headers: set to override the headers for a single
|
|
71
|
+
request; this effectively ignores the headers
|
|
72
|
+
in the spec for a single request.
|
|
73
|
+
:type _headers: dict, optional
|
|
74
|
+
:param _host_index: set to override the host_index for a single
|
|
75
|
+
request; this effectively ignores the host_index
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _host_index: int, optional
|
|
78
|
+
:return: Returns the result object.
|
|
79
|
+
""" # noqa: E501
|
|
80
|
+
|
|
81
|
+
_param = self._job_controller_poll_job_serialize(
|
|
82
|
+
_request_auth=_request_auth,
|
|
83
|
+
_content_type=_content_type,
|
|
84
|
+
_headers=_headers,
|
|
85
|
+
_host_index=_host_index
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
89
|
+
'200': "JobDefinitionDto",
|
|
90
|
+
}
|
|
91
|
+
response_data = self.api_client.call_api(
|
|
92
|
+
*_param,
|
|
93
|
+
_request_timeout=_request_timeout
|
|
94
|
+
)
|
|
95
|
+
response_data.read()
|
|
96
|
+
return self.api_client.response_deserialize(
|
|
97
|
+
response_data=response_data,
|
|
98
|
+
response_types_map=_response_types_map,
|
|
99
|
+
).data
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@validate_call
|
|
103
|
+
def job_controller_poll_job_with_http_info(
|
|
104
|
+
self,
|
|
105
|
+
_request_timeout: Union[
|
|
106
|
+
None,
|
|
107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
108
|
+
Tuple[
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
111
|
+
]
|
|
112
|
+
] = None,
|
|
113
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
114
|
+
_content_type: Optional[StrictStr] = None,
|
|
115
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
116
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
117
|
+
) -> ApiResponse[JobDefinitionDto]:
|
|
118
|
+
"""job_controller_poll_job
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
122
|
+
number provided, it will be total request
|
|
123
|
+
timeout. It can also be a pair (tuple) of
|
|
124
|
+
(connection, read) timeouts.
|
|
125
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
126
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
127
|
+
request; this effectively ignores the
|
|
128
|
+
authentication in the spec for a single request.
|
|
129
|
+
:type _request_auth: dict, optional
|
|
130
|
+
:param _content_type: force content-type for the request.
|
|
131
|
+
:type _content_type: str, Optional
|
|
132
|
+
:param _headers: set to override the headers for a single
|
|
133
|
+
request; this effectively ignores the headers
|
|
134
|
+
in the spec for a single request.
|
|
135
|
+
:type _headers: dict, optional
|
|
136
|
+
:param _host_index: set to override the host_index for a single
|
|
137
|
+
request; this effectively ignores the host_index
|
|
138
|
+
in the spec for a single request.
|
|
139
|
+
:type _host_index: int, optional
|
|
140
|
+
:return: Returns the result object.
|
|
141
|
+
""" # noqa: E501
|
|
142
|
+
|
|
143
|
+
_param = self._job_controller_poll_job_serialize(
|
|
144
|
+
_request_auth=_request_auth,
|
|
145
|
+
_content_type=_content_type,
|
|
146
|
+
_headers=_headers,
|
|
147
|
+
_host_index=_host_index
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
151
|
+
'200': "JobDefinitionDto",
|
|
152
|
+
}
|
|
153
|
+
response_data = self.api_client.call_api(
|
|
154
|
+
*_param,
|
|
155
|
+
_request_timeout=_request_timeout
|
|
156
|
+
)
|
|
157
|
+
response_data.read()
|
|
158
|
+
return self.api_client.response_deserialize(
|
|
159
|
+
response_data=response_data,
|
|
160
|
+
response_types_map=_response_types_map,
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
@validate_call
|
|
165
|
+
def job_controller_poll_job_without_preload_content(
|
|
166
|
+
self,
|
|
167
|
+
_request_timeout: Union[
|
|
168
|
+
None,
|
|
169
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
170
|
+
Tuple[
|
|
171
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
173
|
+
]
|
|
174
|
+
] = None,
|
|
175
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
176
|
+
_content_type: Optional[StrictStr] = None,
|
|
177
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
178
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
179
|
+
) -> RESTResponseType:
|
|
180
|
+
"""job_controller_poll_job
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
184
|
+
number provided, it will be total request
|
|
185
|
+
timeout. It can also be a pair (tuple) of
|
|
186
|
+
(connection, read) timeouts.
|
|
187
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
188
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
189
|
+
request; this effectively ignores the
|
|
190
|
+
authentication in the spec for a single request.
|
|
191
|
+
:type _request_auth: dict, optional
|
|
192
|
+
:param _content_type: force content-type for the request.
|
|
193
|
+
:type _content_type: str, Optional
|
|
194
|
+
:param _headers: set to override the headers for a single
|
|
195
|
+
request; this effectively ignores the headers
|
|
196
|
+
in the spec for a single request.
|
|
197
|
+
:type _headers: dict, optional
|
|
198
|
+
:param _host_index: set to override the host_index for a single
|
|
199
|
+
request; this effectively ignores the host_index
|
|
200
|
+
in the spec for a single request.
|
|
201
|
+
:type _host_index: int, optional
|
|
202
|
+
:return: Returns the result object.
|
|
203
|
+
""" # noqa: E501
|
|
204
|
+
|
|
205
|
+
_param = self._job_controller_poll_job_serialize(
|
|
206
|
+
_request_auth=_request_auth,
|
|
207
|
+
_content_type=_content_type,
|
|
208
|
+
_headers=_headers,
|
|
209
|
+
_host_index=_host_index
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
213
|
+
'200': "JobDefinitionDto",
|
|
214
|
+
}
|
|
215
|
+
response_data = self.api_client.call_api(
|
|
216
|
+
*_param,
|
|
217
|
+
_request_timeout=_request_timeout
|
|
218
|
+
)
|
|
219
|
+
return response_data.response
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
def _job_controller_poll_job_serialize(
|
|
223
|
+
self,
|
|
224
|
+
_request_auth,
|
|
225
|
+
_content_type,
|
|
226
|
+
_headers,
|
|
227
|
+
_host_index,
|
|
228
|
+
) -> RequestSerialized:
|
|
229
|
+
|
|
230
|
+
_host = None
|
|
231
|
+
|
|
232
|
+
_collection_formats: Dict[str, str] = {
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
_path_params: Dict[str, str] = {}
|
|
236
|
+
_query_params: List[Tuple[str, str]] = []
|
|
237
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
238
|
+
_form_params: List[Tuple[str, str]] = []
|
|
239
|
+
_files: Dict[
|
|
240
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
241
|
+
] = {}
|
|
242
|
+
_body_params: Optional[bytes] = None
|
|
243
|
+
|
|
244
|
+
# process the path parameters
|
|
245
|
+
# process the query parameters
|
|
246
|
+
# process the header parameters
|
|
247
|
+
# process the form parameters
|
|
248
|
+
# process the body parameter
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
# set the HTTP header `Accept`
|
|
252
|
+
if 'Accept' not in _header_params:
|
|
253
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
254
|
+
[
|
|
255
|
+
'application/json'
|
|
256
|
+
]
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
# authentication setting
|
|
261
|
+
_auth_settings: List[str] = [
|
|
262
|
+
]
|
|
263
|
+
|
|
264
|
+
return self.api_client.param_serialize(
|
|
265
|
+
method='GET',
|
|
266
|
+
resource_path='/job',
|
|
267
|
+
path_params=_path_params,
|
|
268
|
+
query_params=_query_params,
|
|
269
|
+
header_params=_header_params,
|
|
270
|
+
body=_body_params,
|
|
271
|
+
post_params=_form_params,
|
|
272
|
+
files=_files,
|
|
273
|
+
auth_settings=_auth_settings,
|
|
274
|
+
collection_formats=_collection_formats,
|
|
275
|
+
_host=_host,
|
|
276
|
+
_request_auth=_request_auth
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
@validate_call
|
|
283
|
+
def job_controller_push_job_result(
|
|
284
|
+
self,
|
|
285
|
+
job_result_dto: JobResultDto,
|
|
286
|
+
_request_timeout: Union[
|
|
287
|
+
None,
|
|
288
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
289
|
+
Tuple[
|
|
290
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
291
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
292
|
+
]
|
|
293
|
+
] = None,
|
|
294
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
295
|
+
_content_type: Optional[StrictStr] = None,
|
|
296
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
297
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
298
|
+
) -> None:
|
|
299
|
+
"""job_controller_push_job_result
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
:param job_result_dto: (required)
|
|
303
|
+
:type job_result_dto: JobResultDto
|
|
304
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
305
|
+
number provided, it will be total request
|
|
306
|
+
timeout. It can also be a pair (tuple) of
|
|
307
|
+
(connection, read) timeouts.
|
|
308
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
309
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
310
|
+
request; this effectively ignores the
|
|
311
|
+
authentication in the spec for a single request.
|
|
312
|
+
:type _request_auth: dict, optional
|
|
313
|
+
:param _content_type: force content-type for the request.
|
|
314
|
+
:type _content_type: str, Optional
|
|
315
|
+
:param _headers: set to override the headers for a single
|
|
316
|
+
request; this effectively ignores the headers
|
|
317
|
+
in the spec for a single request.
|
|
318
|
+
:type _headers: dict, optional
|
|
319
|
+
:param _host_index: set to override the host_index for a single
|
|
320
|
+
request; this effectively ignores the host_index
|
|
321
|
+
in the spec for a single request.
|
|
322
|
+
:type _host_index: int, optional
|
|
323
|
+
:return: Returns the result object.
|
|
324
|
+
""" # noqa: E501
|
|
325
|
+
|
|
326
|
+
_param = self._job_controller_push_job_result_serialize(
|
|
327
|
+
job_result_dto=job_result_dto,
|
|
328
|
+
_request_auth=_request_auth,
|
|
329
|
+
_content_type=_content_type,
|
|
330
|
+
_headers=_headers,
|
|
331
|
+
_host_index=_host_index
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
335
|
+
'201': None,
|
|
336
|
+
}
|
|
337
|
+
response_data = self.api_client.call_api(
|
|
338
|
+
*_param,
|
|
339
|
+
_request_timeout=_request_timeout
|
|
340
|
+
)
|
|
341
|
+
response_data.read()
|
|
342
|
+
return self.api_client.response_deserialize(
|
|
343
|
+
response_data=response_data,
|
|
344
|
+
response_types_map=_response_types_map,
|
|
345
|
+
).data
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
@validate_call
|
|
349
|
+
def job_controller_push_job_result_with_http_info(
|
|
350
|
+
self,
|
|
351
|
+
job_result_dto: JobResultDto,
|
|
352
|
+
_request_timeout: Union[
|
|
353
|
+
None,
|
|
354
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
355
|
+
Tuple[
|
|
356
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
357
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
358
|
+
]
|
|
359
|
+
] = None,
|
|
360
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
361
|
+
_content_type: Optional[StrictStr] = None,
|
|
362
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
363
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
364
|
+
) -> ApiResponse[None]:
|
|
365
|
+
"""job_controller_push_job_result
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
:param job_result_dto: (required)
|
|
369
|
+
:type job_result_dto: JobResultDto
|
|
370
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
371
|
+
number provided, it will be total request
|
|
372
|
+
timeout. It can also be a pair (tuple) of
|
|
373
|
+
(connection, read) timeouts.
|
|
374
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
375
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
376
|
+
request; this effectively ignores the
|
|
377
|
+
authentication in the spec for a single request.
|
|
378
|
+
:type _request_auth: dict, optional
|
|
379
|
+
:param _content_type: force content-type for the request.
|
|
380
|
+
:type _content_type: str, Optional
|
|
381
|
+
:param _headers: set to override the headers for a single
|
|
382
|
+
request; this effectively ignores the headers
|
|
383
|
+
in the spec for a single request.
|
|
384
|
+
:type _headers: dict, optional
|
|
385
|
+
:param _host_index: set to override the host_index for a single
|
|
386
|
+
request; this effectively ignores the host_index
|
|
387
|
+
in the spec for a single request.
|
|
388
|
+
:type _host_index: int, optional
|
|
389
|
+
:return: Returns the result object.
|
|
390
|
+
""" # noqa: E501
|
|
391
|
+
|
|
392
|
+
_param = self._job_controller_push_job_result_serialize(
|
|
393
|
+
job_result_dto=job_result_dto,
|
|
394
|
+
_request_auth=_request_auth,
|
|
395
|
+
_content_type=_content_type,
|
|
396
|
+
_headers=_headers,
|
|
397
|
+
_host_index=_host_index
|
|
398
|
+
)
|
|
399
|
+
|
|
400
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
401
|
+
'201': None,
|
|
402
|
+
}
|
|
403
|
+
response_data = self.api_client.call_api(
|
|
404
|
+
*_param,
|
|
405
|
+
_request_timeout=_request_timeout
|
|
406
|
+
)
|
|
407
|
+
response_data.read()
|
|
408
|
+
return self.api_client.response_deserialize(
|
|
409
|
+
response_data=response_data,
|
|
410
|
+
response_types_map=_response_types_map,
|
|
411
|
+
)
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
@validate_call
|
|
415
|
+
def job_controller_push_job_result_without_preload_content(
|
|
416
|
+
self,
|
|
417
|
+
job_result_dto: JobResultDto,
|
|
418
|
+
_request_timeout: Union[
|
|
419
|
+
None,
|
|
420
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
421
|
+
Tuple[
|
|
422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
423
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
424
|
+
]
|
|
425
|
+
] = None,
|
|
426
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
427
|
+
_content_type: Optional[StrictStr] = None,
|
|
428
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
429
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
430
|
+
) -> RESTResponseType:
|
|
431
|
+
"""job_controller_push_job_result
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
:param job_result_dto: (required)
|
|
435
|
+
:type job_result_dto: JobResultDto
|
|
436
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
437
|
+
number provided, it will be total request
|
|
438
|
+
timeout. It can also be a pair (tuple) of
|
|
439
|
+
(connection, read) timeouts.
|
|
440
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
441
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
442
|
+
request; this effectively ignores the
|
|
443
|
+
authentication in the spec for a single request.
|
|
444
|
+
:type _request_auth: dict, optional
|
|
445
|
+
:param _content_type: force content-type for the request.
|
|
446
|
+
:type _content_type: str, Optional
|
|
447
|
+
:param _headers: set to override the headers for a single
|
|
448
|
+
request; this effectively ignores the headers
|
|
449
|
+
in the spec for a single request.
|
|
450
|
+
:type _headers: dict, optional
|
|
451
|
+
:param _host_index: set to override the host_index for a single
|
|
452
|
+
request; this effectively ignores the host_index
|
|
453
|
+
in the spec for a single request.
|
|
454
|
+
:type _host_index: int, optional
|
|
455
|
+
:return: Returns the result object.
|
|
456
|
+
""" # noqa: E501
|
|
457
|
+
|
|
458
|
+
_param = self._job_controller_push_job_result_serialize(
|
|
459
|
+
job_result_dto=job_result_dto,
|
|
460
|
+
_request_auth=_request_auth,
|
|
461
|
+
_content_type=_content_type,
|
|
462
|
+
_headers=_headers,
|
|
463
|
+
_host_index=_host_index
|
|
464
|
+
)
|
|
465
|
+
|
|
466
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
467
|
+
'201': None,
|
|
468
|
+
}
|
|
469
|
+
response_data = self.api_client.call_api(
|
|
470
|
+
*_param,
|
|
471
|
+
_request_timeout=_request_timeout
|
|
472
|
+
)
|
|
473
|
+
return response_data.response
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
def _job_controller_push_job_result_serialize(
|
|
477
|
+
self,
|
|
478
|
+
job_result_dto,
|
|
479
|
+
_request_auth,
|
|
480
|
+
_content_type,
|
|
481
|
+
_headers,
|
|
482
|
+
_host_index,
|
|
483
|
+
) -> RequestSerialized:
|
|
484
|
+
|
|
485
|
+
_host = None
|
|
486
|
+
|
|
487
|
+
_collection_formats: Dict[str, str] = {
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
_path_params: Dict[str, str] = {}
|
|
491
|
+
_query_params: List[Tuple[str, str]] = []
|
|
492
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
493
|
+
_form_params: List[Tuple[str, str]] = []
|
|
494
|
+
_files: Dict[
|
|
495
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
496
|
+
] = {}
|
|
497
|
+
_body_params: Optional[bytes] = None
|
|
498
|
+
|
|
499
|
+
# process the path parameters
|
|
500
|
+
# process the query parameters
|
|
501
|
+
# process the header parameters
|
|
502
|
+
# process the form parameters
|
|
503
|
+
# process the body parameter
|
|
504
|
+
if job_result_dto is not None:
|
|
505
|
+
_body_params = job_result_dto
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
# set the HTTP header `Content-Type`
|
|
510
|
+
if _content_type:
|
|
511
|
+
_header_params['Content-Type'] = _content_type
|
|
512
|
+
else:
|
|
513
|
+
_default_content_type = (
|
|
514
|
+
self.api_client.select_header_content_type(
|
|
515
|
+
[
|
|
516
|
+
'application/json'
|
|
517
|
+
]
|
|
518
|
+
)
|
|
519
|
+
)
|
|
520
|
+
if _default_content_type is not None:
|
|
521
|
+
_header_params['Content-Type'] = _default_content_type
|
|
522
|
+
|
|
523
|
+
# authentication setting
|
|
524
|
+
_auth_settings: List[str] = [
|
|
525
|
+
]
|
|
526
|
+
|
|
527
|
+
return self.api_client.param_serialize(
|
|
528
|
+
method='POST',
|
|
529
|
+
resource_path='/job',
|
|
530
|
+
path_params=_path_params,
|
|
531
|
+
query_params=_query_params,
|
|
532
|
+
header_params=_header_params,
|
|
533
|
+
body=_body_params,
|
|
534
|
+
post_params=_form_params,
|
|
535
|
+
files=_files,
|
|
536
|
+
auth_settings=_auth_settings,
|
|
537
|
+
collection_formats=_collection_formats,
|
|
538
|
+
_host=_host,
|
|
539
|
+
_request_auth=_request_auth
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
|