asteroid-odyssey 0.1.22__py3-none-any.whl → 1.0.1__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.
- asteroid_odyssey/__init__.py +20 -34
- asteroid_odyssey/client.py +387 -337
- asteroid_odyssey/openapi_client/__init__.py +73 -0
- asteroid_odyssey/openapi_client/api/__init__.py +7 -0
- asteroid_odyssey/openapi_client/api/api_api.py +516 -0
- asteroid_odyssey/openapi_client/api/execution_api.py +335 -0
- asteroid_odyssey/openapi_client/api/sdk_api.py +1434 -0
- asteroid_odyssey/openapi_client/api_client.py +801 -0
- asteroid_odyssey/openapi_client/api_response.py +21 -0
- asteroid_odyssey/openapi_client/configuration.py +606 -0
- asteroid_odyssey/openapi_client/exceptions.py +216 -0
- asteroid_odyssey/openapi_client/models/__init__.py +27 -0
- asteroid_odyssey/openapi_client/models/browser_session_recording_response.py +87 -0
- asteroid_odyssey/openapi_client/models/error_response.py +87 -0
- asteroid_odyssey/openapi_client/models/execution_response.py +87 -0
- asteroid_odyssey/openapi_client/models/execution_result.py +101 -0
- asteroid_odyssey/openapi_client/models/execution_result_response.py +100 -0
- asteroid_odyssey/openapi_client/models/execution_status_response.py +95 -0
- asteroid_odyssey/openapi_client/models/health_check200_response.py +87 -0
- asteroid_odyssey/openapi_client/models/health_check500_response.py +87 -0
- asteroid_odyssey/openapi_client/models/status.py +43 -0
- asteroid_odyssey/openapi_client/models/structured_agent_execution_request.py +89 -0
- asteroid_odyssey/openapi_client/models/upload_execution_files200_response.py +89 -0
- asteroid_odyssey/openapi_client/rest.py +258 -0
- asteroid_odyssey-1.0.1.dist-info/METADATA +208 -0
- asteroid_odyssey-1.0.1.dist-info/RECORD +29 -0
- {asteroid_odyssey-0.1.22.dist-info → asteroid_odyssey-1.0.1.dist-info}/WHEEL +1 -1
- asteroid_odyssey/api/generated/asteroid_agents_api_client/__init__.py +0 -8
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/__init__.py +0 -1
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/agent/get_agents.py +0 -127
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/get_open_api.py +0 -79
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/health_check.py +0 -131
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/get_credentials_public_key.py +0 -127
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/delete_execution.py +0 -156
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_browser_session.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_files.py +0 -159
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_progress.py +0 -159
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_executions_for_workflow.py +0 -156
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/update_execution_status.py +0 -115
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/set_slack_channel.py +0 -107
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/queue_optimisation_job.py +0 -103
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/add_workflow_credential.py +0 -111
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/create_workflow.py +0 -174
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow.py +0 -156
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow_credentials.py +0 -96
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/execute_workflow.py +0 -179
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_agent_workflow_executions.py +0 -155
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_credentials.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_versions.py +0 -159
- asteroid_odyssey/api/generated/asteroid_agents_api_client/client.py +0 -268
- asteroid_odyssey/api/generated/asteroid_agents_api_client/errors.py +0 -16
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/__init__.py +0 -61
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/agent.py +0 -90
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/browser_session.py +0 -136
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request.py +0 -126
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_fields.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_provider.py +0 -9
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credential.py +0 -66
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_request.py +0 -72
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_response.py +0 -80
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_200.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_404.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_200.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_404.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution.py +0 -147
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_dynamic_data.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_result.py +0 -43
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_status.py +0 -89
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/file.py +0 -127
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_200.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_500.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/optimisation_request.py +0 -59
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/progress_update.py +0 -77
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/result_schema.py +0 -51
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/slack_channel_request.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/status.py +0 -13
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow.py +0 -152
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution.py +0 -82
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution_request.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_fields.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/py.typed +0 -1
- asteroid_odyssey/api/generated/asteroid_agents_api_client/types.py +0 -45
- asteroid_odyssey/exceptions.py +0 -15
- asteroid_odyssey-0.1.22.dist-info/METADATA +0 -31
- asteroid_odyssey-0.1.22.dist-info/RECORD +0 -72
- asteroid_odyssey-0.1.22.dist-info/entry_points.txt +0 -2
- /asteroid_odyssey/{api/generated/asteroid_agents_api_client/api/agent/__init__.py → openapi_client/py.typed} +0 -0
- {asteroid_odyssey-0.1.22.dist-info → asteroid_odyssey-1.0.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Asteroid Agents API
|
|
7
|
+
|
|
8
|
+
Version 1 of the Asteroid Agents API
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: v1.0.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"APIApi",
|
|
22
|
+
"ExecutionApi",
|
|
23
|
+
"SDKApi",
|
|
24
|
+
"ApiResponse",
|
|
25
|
+
"ApiClient",
|
|
26
|
+
"Configuration",
|
|
27
|
+
"OpenApiException",
|
|
28
|
+
"ApiTypeError",
|
|
29
|
+
"ApiValueError",
|
|
30
|
+
"ApiKeyError",
|
|
31
|
+
"ApiAttributeError",
|
|
32
|
+
"ApiException",
|
|
33
|
+
"BrowserSessionRecordingResponse",
|
|
34
|
+
"ErrorResponse",
|
|
35
|
+
"ExecutionResponse",
|
|
36
|
+
"ExecutionResult",
|
|
37
|
+
"ExecutionResultResponse",
|
|
38
|
+
"ExecutionStatusResponse",
|
|
39
|
+
"HealthCheck200Response",
|
|
40
|
+
"HealthCheck500Response",
|
|
41
|
+
"Status",
|
|
42
|
+
"StructuredAgentExecutionRequest",
|
|
43
|
+
"UploadExecutionFiles200Response",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
# import apis into sdk package
|
|
47
|
+
from openapi_client.api.api_api import APIApi as APIApi
|
|
48
|
+
from openapi_client.api.execution_api import ExecutionApi as ExecutionApi
|
|
49
|
+
from openapi_client.api.sdk_api import SDKApi as SDKApi
|
|
50
|
+
|
|
51
|
+
# import ApiClient
|
|
52
|
+
from openapi_client.api_response import ApiResponse as ApiResponse
|
|
53
|
+
from openapi_client.api_client import ApiClient as ApiClient
|
|
54
|
+
from openapi_client.configuration import Configuration as Configuration
|
|
55
|
+
from openapi_client.exceptions import OpenApiException as OpenApiException
|
|
56
|
+
from openapi_client.exceptions import ApiTypeError as ApiTypeError
|
|
57
|
+
from openapi_client.exceptions import ApiValueError as ApiValueError
|
|
58
|
+
from openapi_client.exceptions import ApiKeyError as ApiKeyError
|
|
59
|
+
from openapi_client.exceptions import ApiAttributeError as ApiAttributeError
|
|
60
|
+
from openapi_client.exceptions import ApiException as ApiException
|
|
61
|
+
|
|
62
|
+
# import models into sdk package
|
|
63
|
+
from openapi_client.models.browser_session_recording_response import BrowserSessionRecordingResponse as BrowserSessionRecordingResponse
|
|
64
|
+
from openapi_client.models.error_response import ErrorResponse as ErrorResponse
|
|
65
|
+
from openapi_client.models.execution_response import ExecutionResponse as ExecutionResponse
|
|
66
|
+
from openapi_client.models.execution_result import ExecutionResult as ExecutionResult
|
|
67
|
+
from openapi_client.models.execution_result_response import ExecutionResultResponse as ExecutionResultResponse
|
|
68
|
+
from openapi_client.models.execution_status_response import ExecutionStatusResponse as ExecutionStatusResponse
|
|
69
|
+
from openapi_client.models.health_check200_response import HealthCheck200Response as HealthCheck200Response
|
|
70
|
+
from openapi_client.models.health_check500_response import HealthCheck500Response as HealthCheck500Response
|
|
71
|
+
from openapi_client.models.status import Status as Status
|
|
72
|
+
from openapi_client.models.structured_agent_execution_request import StructuredAgentExecutionRequest as StructuredAgentExecutionRequest
|
|
73
|
+
from openapi_client.models.upload_execution_files200_response import UploadExecutionFiles200Response as UploadExecutionFiles200Response
|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Asteroid Agents API
|
|
5
|
+
|
|
6
|
+
Version 1 of the Asteroid Agents API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1.0.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 openapi_client.models.health_check200_response import HealthCheck200Response
|
|
20
|
+
|
|
21
|
+
from openapi_client.api_client import ApiClient, RequestSerialized
|
|
22
|
+
from openapi_client.api_response import ApiResponse
|
|
23
|
+
from openapi_client.rest import RESTResponseType
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class APIApi:
|
|
27
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
28
|
+
Ref: https://openapi-generator.tech
|
|
29
|
+
|
|
30
|
+
Do not edit the class manually.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, api_client=None) -> None:
|
|
34
|
+
if api_client is None:
|
|
35
|
+
api_client = ApiClient.get_default()
|
|
36
|
+
self.api_client = api_client
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@validate_call
|
|
40
|
+
def get_open_api(
|
|
41
|
+
self,
|
|
42
|
+
_request_timeout: Union[
|
|
43
|
+
None,
|
|
44
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
45
|
+
Tuple[
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
+
]
|
|
49
|
+
] = None,
|
|
50
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
+
_content_type: Optional[StrictStr] = None,
|
|
52
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
+
) -> None:
|
|
55
|
+
"""Get the OpenAPI schema
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
59
|
+
number provided, it will be total request
|
|
60
|
+
timeout. It can also be a pair (tuple) of
|
|
61
|
+
(connection, read) timeouts.
|
|
62
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
63
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
64
|
+
request; this effectively ignores the
|
|
65
|
+
authentication in the spec for a single request.
|
|
66
|
+
:type _request_auth: dict, optional
|
|
67
|
+
:param _content_type: force content-type for the request.
|
|
68
|
+
:type _content_type: str, Optional
|
|
69
|
+
:param _headers: set to override the headers for a single
|
|
70
|
+
request; this effectively ignores the headers
|
|
71
|
+
in the spec for a single request.
|
|
72
|
+
:type _headers: dict, optional
|
|
73
|
+
:param _host_index: set to override the host_index for a single
|
|
74
|
+
request; this effectively ignores the host_index
|
|
75
|
+
in the spec for a single request.
|
|
76
|
+
:type _host_index: int, optional
|
|
77
|
+
:return: Returns the result object.
|
|
78
|
+
""" # noqa: E501
|
|
79
|
+
|
|
80
|
+
_param = self._get_open_api_serialize(
|
|
81
|
+
_request_auth=_request_auth,
|
|
82
|
+
_content_type=_content_type,
|
|
83
|
+
_headers=_headers,
|
|
84
|
+
_host_index=_host_index
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
+
'200': None,
|
|
89
|
+
}
|
|
90
|
+
response_data = self.api_client.call_api(
|
|
91
|
+
*_param,
|
|
92
|
+
_request_timeout=_request_timeout
|
|
93
|
+
)
|
|
94
|
+
response_data.read()
|
|
95
|
+
return self.api_client.response_deserialize(
|
|
96
|
+
response_data=response_data,
|
|
97
|
+
response_types_map=_response_types_map,
|
|
98
|
+
).data
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
@validate_call
|
|
102
|
+
def get_open_api_with_http_info(
|
|
103
|
+
self,
|
|
104
|
+
_request_timeout: Union[
|
|
105
|
+
None,
|
|
106
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
107
|
+
Tuple[
|
|
108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
110
|
+
]
|
|
111
|
+
] = None,
|
|
112
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
113
|
+
_content_type: Optional[StrictStr] = None,
|
|
114
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
116
|
+
) -> ApiResponse[None]:
|
|
117
|
+
"""Get the OpenAPI schema
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
121
|
+
number provided, it will be total request
|
|
122
|
+
timeout. It can also be a pair (tuple) of
|
|
123
|
+
(connection, read) timeouts.
|
|
124
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
125
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
126
|
+
request; this effectively ignores the
|
|
127
|
+
authentication in the spec for a single request.
|
|
128
|
+
:type _request_auth: dict, optional
|
|
129
|
+
:param _content_type: force content-type for the request.
|
|
130
|
+
:type _content_type: str, Optional
|
|
131
|
+
:param _headers: set to override the headers for a single
|
|
132
|
+
request; this effectively ignores the headers
|
|
133
|
+
in the spec for a single request.
|
|
134
|
+
:type _headers: dict, optional
|
|
135
|
+
:param _host_index: set to override the host_index for a single
|
|
136
|
+
request; this effectively ignores the host_index
|
|
137
|
+
in the spec for a single request.
|
|
138
|
+
:type _host_index: int, optional
|
|
139
|
+
:return: Returns the result object.
|
|
140
|
+
""" # noqa: E501
|
|
141
|
+
|
|
142
|
+
_param = self._get_open_api_serialize(
|
|
143
|
+
_request_auth=_request_auth,
|
|
144
|
+
_content_type=_content_type,
|
|
145
|
+
_headers=_headers,
|
|
146
|
+
_host_index=_host_index
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
150
|
+
'200': None,
|
|
151
|
+
}
|
|
152
|
+
response_data = self.api_client.call_api(
|
|
153
|
+
*_param,
|
|
154
|
+
_request_timeout=_request_timeout
|
|
155
|
+
)
|
|
156
|
+
response_data.read()
|
|
157
|
+
return self.api_client.response_deserialize(
|
|
158
|
+
response_data=response_data,
|
|
159
|
+
response_types_map=_response_types_map,
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
@validate_call
|
|
164
|
+
def get_open_api_without_preload_content(
|
|
165
|
+
self,
|
|
166
|
+
_request_timeout: Union[
|
|
167
|
+
None,
|
|
168
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
169
|
+
Tuple[
|
|
170
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
171
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
172
|
+
]
|
|
173
|
+
] = None,
|
|
174
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
175
|
+
_content_type: Optional[StrictStr] = None,
|
|
176
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
177
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
178
|
+
) -> RESTResponseType:
|
|
179
|
+
"""Get the OpenAPI schema
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
183
|
+
number provided, it will be total request
|
|
184
|
+
timeout. It can also be a pair (tuple) of
|
|
185
|
+
(connection, read) timeouts.
|
|
186
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
187
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
188
|
+
request; this effectively ignores the
|
|
189
|
+
authentication in the spec for a single request.
|
|
190
|
+
:type _request_auth: dict, optional
|
|
191
|
+
:param _content_type: force content-type for the request.
|
|
192
|
+
:type _content_type: str, Optional
|
|
193
|
+
:param _headers: set to override the headers for a single
|
|
194
|
+
request; this effectively ignores the headers
|
|
195
|
+
in the spec for a single request.
|
|
196
|
+
:type _headers: dict, optional
|
|
197
|
+
:param _host_index: set to override the host_index for a single
|
|
198
|
+
request; this effectively ignores the host_index
|
|
199
|
+
in the spec for a single request.
|
|
200
|
+
:type _host_index: int, optional
|
|
201
|
+
:return: Returns the result object.
|
|
202
|
+
""" # noqa: E501
|
|
203
|
+
|
|
204
|
+
_param = self._get_open_api_serialize(
|
|
205
|
+
_request_auth=_request_auth,
|
|
206
|
+
_content_type=_content_type,
|
|
207
|
+
_headers=_headers,
|
|
208
|
+
_host_index=_host_index
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
212
|
+
'200': None,
|
|
213
|
+
}
|
|
214
|
+
response_data = self.api_client.call_api(
|
|
215
|
+
*_param,
|
|
216
|
+
_request_timeout=_request_timeout
|
|
217
|
+
)
|
|
218
|
+
return response_data.response
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def _get_open_api_serialize(
|
|
222
|
+
self,
|
|
223
|
+
_request_auth,
|
|
224
|
+
_content_type,
|
|
225
|
+
_headers,
|
|
226
|
+
_host_index,
|
|
227
|
+
) -> RequestSerialized:
|
|
228
|
+
|
|
229
|
+
_host = None
|
|
230
|
+
|
|
231
|
+
_collection_formats: Dict[str, str] = {
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
_path_params: Dict[str, str] = {}
|
|
235
|
+
_query_params: List[Tuple[str, str]] = []
|
|
236
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
237
|
+
_form_params: List[Tuple[str, str]] = []
|
|
238
|
+
_files: Dict[
|
|
239
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
240
|
+
] = {}
|
|
241
|
+
_body_params: Optional[bytes] = None
|
|
242
|
+
|
|
243
|
+
# process the path parameters
|
|
244
|
+
# process the query parameters
|
|
245
|
+
# process the header parameters
|
|
246
|
+
# process the form parameters
|
|
247
|
+
# process the body parameter
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
# authentication setting
|
|
253
|
+
_auth_settings: List[str] = [
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
return self.api_client.param_serialize(
|
|
257
|
+
method='GET',
|
|
258
|
+
resource_path='/openapi.yaml',
|
|
259
|
+
path_params=_path_params,
|
|
260
|
+
query_params=_query_params,
|
|
261
|
+
header_params=_header_params,
|
|
262
|
+
body=_body_params,
|
|
263
|
+
post_params=_form_params,
|
|
264
|
+
files=_files,
|
|
265
|
+
auth_settings=_auth_settings,
|
|
266
|
+
collection_formats=_collection_formats,
|
|
267
|
+
_host=_host,
|
|
268
|
+
_request_auth=_request_auth
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
@validate_call
|
|
275
|
+
def health_check(
|
|
276
|
+
self,
|
|
277
|
+
_request_timeout: Union[
|
|
278
|
+
None,
|
|
279
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
280
|
+
Tuple[
|
|
281
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
282
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
283
|
+
]
|
|
284
|
+
] = None,
|
|
285
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
286
|
+
_content_type: Optional[StrictStr] = None,
|
|
287
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
288
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
289
|
+
) -> HealthCheck200Response:
|
|
290
|
+
"""Check the health of the API
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
294
|
+
number provided, it will be total request
|
|
295
|
+
timeout. It can also be a pair (tuple) of
|
|
296
|
+
(connection, read) timeouts.
|
|
297
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
298
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
299
|
+
request; this effectively ignores the
|
|
300
|
+
authentication in the spec for a single request.
|
|
301
|
+
:type _request_auth: dict, optional
|
|
302
|
+
:param _content_type: force content-type for the request.
|
|
303
|
+
:type _content_type: str, Optional
|
|
304
|
+
:param _headers: set to override the headers for a single
|
|
305
|
+
request; this effectively ignores the headers
|
|
306
|
+
in the spec for a single request.
|
|
307
|
+
:type _headers: dict, optional
|
|
308
|
+
:param _host_index: set to override the host_index for a single
|
|
309
|
+
request; this effectively ignores the host_index
|
|
310
|
+
in the spec for a single request.
|
|
311
|
+
:type _host_index: int, optional
|
|
312
|
+
:return: Returns the result object.
|
|
313
|
+
""" # noqa: E501
|
|
314
|
+
|
|
315
|
+
_param = self._health_check_serialize(
|
|
316
|
+
_request_auth=_request_auth,
|
|
317
|
+
_content_type=_content_type,
|
|
318
|
+
_headers=_headers,
|
|
319
|
+
_host_index=_host_index
|
|
320
|
+
)
|
|
321
|
+
|
|
322
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
323
|
+
'200': "HealthCheck200Response",
|
|
324
|
+
'500': "HealthCheck500Response",
|
|
325
|
+
}
|
|
326
|
+
response_data = self.api_client.call_api(
|
|
327
|
+
*_param,
|
|
328
|
+
_request_timeout=_request_timeout
|
|
329
|
+
)
|
|
330
|
+
response_data.read()
|
|
331
|
+
return self.api_client.response_deserialize(
|
|
332
|
+
response_data=response_data,
|
|
333
|
+
response_types_map=_response_types_map,
|
|
334
|
+
).data
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
@validate_call
|
|
338
|
+
def health_check_with_http_info(
|
|
339
|
+
self,
|
|
340
|
+
_request_timeout: Union[
|
|
341
|
+
None,
|
|
342
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
343
|
+
Tuple[
|
|
344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
345
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
346
|
+
]
|
|
347
|
+
] = None,
|
|
348
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
349
|
+
_content_type: Optional[StrictStr] = None,
|
|
350
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
351
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
352
|
+
) -> ApiResponse[HealthCheck200Response]:
|
|
353
|
+
"""Check the health of the API
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
357
|
+
number provided, it will be total request
|
|
358
|
+
timeout. It can also be a pair (tuple) of
|
|
359
|
+
(connection, read) timeouts.
|
|
360
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
361
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
362
|
+
request; this effectively ignores the
|
|
363
|
+
authentication in the spec for a single request.
|
|
364
|
+
:type _request_auth: dict, optional
|
|
365
|
+
:param _content_type: force content-type for the request.
|
|
366
|
+
:type _content_type: str, Optional
|
|
367
|
+
:param _headers: set to override the headers for a single
|
|
368
|
+
request; this effectively ignores the headers
|
|
369
|
+
in the spec for a single request.
|
|
370
|
+
:type _headers: dict, optional
|
|
371
|
+
:param _host_index: set to override the host_index for a single
|
|
372
|
+
request; this effectively ignores the host_index
|
|
373
|
+
in the spec for a single request.
|
|
374
|
+
:type _host_index: int, optional
|
|
375
|
+
:return: Returns the result object.
|
|
376
|
+
""" # noqa: E501
|
|
377
|
+
|
|
378
|
+
_param = self._health_check_serialize(
|
|
379
|
+
_request_auth=_request_auth,
|
|
380
|
+
_content_type=_content_type,
|
|
381
|
+
_headers=_headers,
|
|
382
|
+
_host_index=_host_index
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
386
|
+
'200': "HealthCheck200Response",
|
|
387
|
+
'500': "HealthCheck500Response",
|
|
388
|
+
}
|
|
389
|
+
response_data = self.api_client.call_api(
|
|
390
|
+
*_param,
|
|
391
|
+
_request_timeout=_request_timeout
|
|
392
|
+
)
|
|
393
|
+
response_data.read()
|
|
394
|
+
return self.api_client.response_deserialize(
|
|
395
|
+
response_data=response_data,
|
|
396
|
+
response_types_map=_response_types_map,
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
@validate_call
|
|
401
|
+
def health_check_without_preload_content(
|
|
402
|
+
self,
|
|
403
|
+
_request_timeout: Union[
|
|
404
|
+
None,
|
|
405
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
406
|
+
Tuple[
|
|
407
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
408
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
409
|
+
]
|
|
410
|
+
] = None,
|
|
411
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
412
|
+
_content_type: Optional[StrictStr] = None,
|
|
413
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
414
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
415
|
+
) -> RESTResponseType:
|
|
416
|
+
"""Check the health of the API
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
420
|
+
number provided, it will be total request
|
|
421
|
+
timeout. It can also be a pair (tuple) of
|
|
422
|
+
(connection, read) timeouts.
|
|
423
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
424
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
425
|
+
request; this effectively ignores the
|
|
426
|
+
authentication in the spec for a single request.
|
|
427
|
+
:type _request_auth: dict, optional
|
|
428
|
+
:param _content_type: force content-type for the request.
|
|
429
|
+
:type _content_type: str, Optional
|
|
430
|
+
:param _headers: set to override the headers for a single
|
|
431
|
+
request; this effectively ignores the headers
|
|
432
|
+
in the spec for a single request.
|
|
433
|
+
:type _headers: dict, optional
|
|
434
|
+
:param _host_index: set to override the host_index for a single
|
|
435
|
+
request; this effectively ignores the host_index
|
|
436
|
+
in the spec for a single request.
|
|
437
|
+
:type _host_index: int, optional
|
|
438
|
+
:return: Returns the result object.
|
|
439
|
+
""" # noqa: E501
|
|
440
|
+
|
|
441
|
+
_param = self._health_check_serialize(
|
|
442
|
+
_request_auth=_request_auth,
|
|
443
|
+
_content_type=_content_type,
|
|
444
|
+
_headers=_headers,
|
|
445
|
+
_host_index=_host_index
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
449
|
+
'200': "HealthCheck200Response",
|
|
450
|
+
'500': "HealthCheck500Response",
|
|
451
|
+
}
|
|
452
|
+
response_data = self.api_client.call_api(
|
|
453
|
+
*_param,
|
|
454
|
+
_request_timeout=_request_timeout
|
|
455
|
+
)
|
|
456
|
+
return response_data.response
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
def _health_check_serialize(
|
|
460
|
+
self,
|
|
461
|
+
_request_auth,
|
|
462
|
+
_content_type,
|
|
463
|
+
_headers,
|
|
464
|
+
_host_index,
|
|
465
|
+
) -> RequestSerialized:
|
|
466
|
+
|
|
467
|
+
_host = None
|
|
468
|
+
|
|
469
|
+
_collection_formats: Dict[str, str] = {
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
_path_params: Dict[str, str] = {}
|
|
473
|
+
_query_params: List[Tuple[str, str]] = []
|
|
474
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
475
|
+
_form_params: List[Tuple[str, str]] = []
|
|
476
|
+
_files: Dict[
|
|
477
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
478
|
+
] = {}
|
|
479
|
+
_body_params: Optional[bytes] = None
|
|
480
|
+
|
|
481
|
+
# process the path parameters
|
|
482
|
+
# process the query parameters
|
|
483
|
+
# process the header parameters
|
|
484
|
+
# process the form parameters
|
|
485
|
+
# process the body parameter
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
# set the HTTP header `Accept`
|
|
489
|
+
if 'Accept' not in _header_params:
|
|
490
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
491
|
+
[
|
|
492
|
+
'application/json'
|
|
493
|
+
]
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
# authentication setting
|
|
498
|
+
_auth_settings: List[str] = [
|
|
499
|
+
]
|
|
500
|
+
|
|
501
|
+
return self.api_client.param_serialize(
|
|
502
|
+
method='GET',
|
|
503
|
+
resource_path='/health',
|
|
504
|
+
path_params=_path_params,
|
|
505
|
+
query_params=_query_params,
|
|
506
|
+
header_params=_header_params,
|
|
507
|
+
body=_body_params,
|
|
508
|
+
post_params=_form_params,
|
|
509
|
+
files=_files,
|
|
510
|
+
auth_settings=_auth_settings,
|
|
511
|
+
collection_formats=_collection_formats,
|
|
512
|
+
_host=_host,
|
|
513
|
+
_request_auth=_request_auth
|
|
514
|
+
)
|
|
515
|
+
|
|
516
|
+
|