aind-metadata-service-async-client 1.0.7__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.

Potentially problematic release.


This version of aind-metadata-service-async-client might be problematic. Click here for more details.

Files changed (33) hide show
  1. aind_metadata_service_async_client/__init__.py +52 -0
  2. aind_metadata_service_async_client/api/__init__.py +6 -0
  3. aind_metadata_service_async_client/api/default_api.py +3818 -0
  4. aind_metadata_service_async_client/api/healthcheck_api.py +281 -0
  5. aind_metadata_service_async_client/api_client.py +800 -0
  6. aind_metadata_service_async_client/api_response.py +21 -0
  7. aind_metadata_service_async_client/configuration.py +568 -0
  8. aind_metadata_service_async_client/exceptions.py +216 -0
  9. aind_metadata_service_async_client/models/__init__.py +34 -0
  10. aind_metadata_service_async_client/models/anyof_schema1_validator.py +144 -0
  11. aind_metadata_service_async_client/models/average_hit_rate.py +144 -0
  12. aind_metadata_service_async_client/models/fov_coordinate_ap.py +144 -0
  13. aind_metadata_service_async_client/models/fov_coordinate_ml.py +112 -0
  14. aind_metadata_service_async_client/models/health_check.py +99 -0
  15. aind_metadata_service_async_client/models/hit_rate_trials010.py +144 -0
  16. aind_metadata_service_async_client/models/hit_rate_trials2040.py +144 -0
  17. aind_metadata_service_async_client/models/http_validation_error.py +95 -0
  18. aind_metadata_service_async_client/models/input_source.py +122 -0
  19. aind_metadata_service_async_client/models/job_settings.py +369 -0
  20. aind_metadata_service_async_client/models/job_settings_starting_lickport_position_inner.py +138 -0
  21. aind_metadata_service_async_client/models/output_directory.py +108 -0
  22. aind_metadata_service_async_client/models/slims_workflow.py +40 -0
  23. aind_metadata_service_async_client/models/total_hits.py +144 -0
  24. aind_metadata_service_async_client/models/trial_num.py +144 -0
  25. aind_metadata_service_async_client/models/user_settings_config_file.py +108 -0
  26. aind_metadata_service_async_client/models/validation_error.py +99 -0
  27. aind_metadata_service_async_client/models/validation_error_loc_inner.py +138 -0
  28. aind_metadata_service_async_client/py.typed +0 -0
  29. aind_metadata_service_async_client/rest.py +213 -0
  30. aind_metadata_service_async_client-1.0.7.dist-info/METADATA +25 -0
  31. aind_metadata_service_async_client-1.0.7.dist-info/RECORD +33 -0
  32. aind_metadata_service_async_client-1.0.7.dist-info/WHEEL +5 -0
  33. aind_metadata_service_async_client-1.0.7.dist-info/top_level.txt +1 -0
@@ -0,0 +1,281 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ aind-metadata-service
5
+
6
+ ## aind-metadata-service Service to pull data from example backend.
7
+
8
+ The version of the OpenAPI document: 1.0.7
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 aind_metadata_service_async_client.models.health_check import HealthCheck
20
+
21
+ from aind_metadata_service_async_client.api_client import ApiClient, RequestSerialized
22
+ from aind_metadata_service_async_client.api_response import ApiResponse
23
+ from aind_metadata_service_async_client.rest import RESTResponseType
24
+
25
+
26
+ class HealthcheckApi:
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
+ async def get_health(
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
+ ) -> HealthCheck:
55
+ """Perform a Health Check
56
+
57
+ ## Endpoint to perform a healthcheck on. Returns: HealthCheck: Returns a JSON response with the health status
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._get_health_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': "HealthCheck",
90
+ }
91
+ response_data = await self.api_client.call_api(
92
+ *_param,
93
+ _request_timeout=_request_timeout
94
+ )
95
+ await 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
+ async def get_health_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[HealthCheck]:
118
+ """Perform a Health Check
119
+
120
+ ## Endpoint to perform a healthcheck on. Returns: HealthCheck: Returns a JSON response with the health status
121
+
122
+ :param _request_timeout: timeout setting for this request. If one
123
+ number provided, it will be total request
124
+ timeout. It can also be a pair (tuple) of
125
+ (connection, read) timeouts.
126
+ :type _request_timeout: int, tuple(int, int), optional
127
+ :param _request_auth: set to override the auth_settings for an a single
128
+ request; this effectively ignores the
129
+ authentication in the spec for a single request.
130
+ :type _request_auth: dict, optional
131
+ :param _content_type: force content-type for the request.
132
+ :type _content_type: str, Optional
133
+ :param _headers: set to override the headers for a single
134
+ request; this effectively ignores the headers
135
+ in the spec for a single request.
136
+ :type _headers: dict, optional
137
+ :param _host_index: set to override the host_index for a single
138
+ request; this effectively ignores the host_index
139
+ in the spec for a single request.
140
+ :type _host_index: int, optional
141
+ :return: Returns the result object.
142
+ """ # noqa: E501
143
+
144
+ _param = self._get_health_serialize(
145
+ _request_auth=_request_auth,
146
+ _content_type=_content_type,
147
+ _headers=_headers,
148
+ _host_index=_host_index
149
+ )
150
+
151
+ _response_types_map: Dict[str, Optional[str]] = {
152
+ '200': "HealthCheck",
153
+ }
154
+ response_data = await self.api_client.call_api(
155
+ *_param,
156
+ _request_timeout=_request_timeout
157
+ )
158
+ await response_data.read()
159
+ return self.api_client.response_deserialize(
160
+ response_data=response_data,
161
+ response_types_map=_response_types_map,
162
+ )
163
+
164
+
165
+ @validate_call
166
+ async def get_health_without_preload_content(
167
+ self,
168
+ _request_timeout: Union[
169
+ None,
170
+ Annotated[StrictFloat, Field(gt=0)],
171
+ Tuple[
172
+ Annotated[StrictFloat, Field(gt=0)],
173
+ Annotated[StrictFloat, Field(gt=0)]
174
+ ]
175
+ ] = None,
176
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
177
+ _content_type: Optional[StrictStr] = None,
178
+ _headers: Optional[Dict[StrictStr, Any]] = None,
179
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
180
+ ) -> RESTResponseType:
181
+ """Perform a Health Check
182
+
183
+ ## Endpoint to perform a healthcheck on. Returns: HealthCheck: Returns a JSON response with the health status
184
+
185
+ :param _request_timeout: timeout setting for this request. If one
186
+ number provided, it will be total request
187
+ timeout. It can also be a pair (tuple) of
188
+ (connection, read) timeouts.
189
+ :type _request_timeout: int, tuple(int, int), optional
190
+ :param _request_auth: set to override the auth_settings for an a single
191
+ request; this effectively ignores the
192
+ authentication in the spec for a single request.
193
+ :type _request_auth: dict, optional
194
+ :param _content_type: force content-type for the request.
195
+ :type _content_type: str, Optional
196
+ :param _headers: set to override the headers for a single
197
+ request; this effectively ignores the headers
198
+ in the spec for a single request.
199
+ :type _headers: dict, optional
200
+ :param _host_index: set to override the host_index for a single
201
+ request; this effectively ignores the host_index
202
+ in the spec for a single request.
203
+ :type _host_index: int, optional
204
+ :return: Returns the result object.
205
+ """ # noqa: E501
206
+
207
+ _param = self._get_health_serialize(
208
+ _request_auth=_request_auth,
209
+ _content_type=_content_type,
210
+ _headers=_headers,
211
+ _host_index=_host_index
212
+ )
213
+
214
+ _response_types_map: Dict[str, Optional[str]] = {
215
+ '200': "HealthCheck",
216
+ }
217
+ response_data = await self.api_client.call_api(
218
+ *_param,
219
+ _request_timeout=_request_timeout
220
+ )
221
+ return response_data.response
222
+
223
+
224
+ def _get_health_serialize(
225
+ self,
226
+ _request_auth,
227
+ _content_type,
228
+ _headers,
229
+ _host_index,
230
+ ) -> RequestSerialized:
231
+
232
+ _host = None
233
+
234
+ _collection_formats: Dict[str, str] = {
235
+ }
236
+
237
+ _path_params: Dict[str, str] = {}
238
+ _query_params: List[Tuple[str, str]] = []
239
+ _header_params: Dict[str, Optional[str]] = _headers or {}
240
+ _form_params: List[Tuple[str, str]] = []
241
+ _files: Dict[
242
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
243
+ ] = {}
244
+ _body_params: Optional[bytes] = None
245
+
246
+ # process the path parameters
247
+ # process the query parameters
248
+ # process the header parameters
249
+ # process the form parameters
250
+ # process the body parameter
251
+
252
+
253
+ # set the HTTP header `Accept`
254
+ if 'Accept' not in _header_params:
255
+ _header_params['Accept'] = self.api_client.select_header_accept(
256
+ [
257
+ 'application/json'
258
+ ]
259
+ )
260
+
261
+
262
+ # authentication setting
263
+ _auth_settings: List[str] = [
264
+ ]
265
+
266
+ return self.api_client.param_serialize(
267
+ method='GET',
268
+ resource_path='/healthcheck',
269
+ path_params=_path_params,
270
+ query_params=_query_params,
271
+ header_params=_header_params,
272
+ body=_body_params,
273
+ post_params=_form_params,
274
+ files=_files,
275
+ auth_settings=_auth_settings,
276
+ collection_formats=_collection_formats,
277
+ _host=_host,
278
+ _request_auth=_request_auth
279
+ )
280
+
281
+