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,3818 @@
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 pydantic import Field, StrictBool, StrictStr
20
+ from typing import Any, Optional
21
+ from typing_extensions import Annotated
22
+ from aind_metadata_service_async_client.models.job_settings import JobSettings
23
+ from aind_metadata_service_async_client.models.slims_workflow import SlimsWorkflow
24
+
25
+ from aind_metadata_service_async_client.api_client import ApiClient, RequestSerialized
26
+ from aind_metadata_service_async_client.api_response import ApiResponse
27
+ from aind_metadata_service_async_client.rest import RESTResponseType
28
+
29
+
30
+ class DefaultApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ async def get_bergamo_session(
45
+ self,
46
+ job_settings: JobSettings,
47
+ _request_timeout: Union[
48
+ None,
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Tuple[
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Annotated[StrictFloat, Field(gt=0)]
53
+ ]
54
+ ] = None,
55
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
+ _content_type: Optional[StrictStr] = None,
57
+ _headers: Optional[Dict[StrictStr, Any]] = None,
58
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
+ ) -> object:
60
+ """Get Bergamo Session
61
+
62
+ ## Session Return session metadata computed from aind-metadata-mapper.
63
+
64
+ :param job_settings: (required)
65
+ :type job_settings: JobSettings
66
+ :param _request_timeout: timeout setting for this request. If one
67
+ number provided, it will be total request
68
+ timeout. It can also be a pair (tuple) of
69
+ (connection, read) timeouts.
70
+ :type _request_timeout: int, tuple(int, int), optional
71
+ :param _request_auth: set to override the auth_settings for an a single
72
+ request; this effectively ignores the
73
+ authentication in the spec for a single request.
74
+ :type _request_auth: dict, optional
75
+ :param _content_type: force content-type for the request.
76
+ :type _content_type: str, Optional
77
+ :param _headers: set to override the headers for a single
78
+ request; this effectively ignores the headers
79
+ in the spec for a single request.
80
+ :type _headers: dict, optional
81
+ :param _host_index: set to override the host_index for a single
82
+ request; this effectively ignores the host_index
83
+ in the spec for a single request.
84
+ :type _host_index: int, optional
85
+ :return: Returns the result object.
86
+ """ # noqa: E501
87
+
88
+ _param = self._get_bergamo_session_serialize(
89
+ job_settings=job_settings,
90
+ _request_auth=_request_auth,
91
+ _content_type=_content_type,
92
+ _headers=_headers,
93
+ _host_index=_host_index
94
+ )
95
+
96
+ _response_types_map: Dict[str, Optional[str]] = {
97
+ '200': "object",
98
+ '422': "HTTPValidationError",
99
+ }
100
+ response_data = await self.api_client.call_api(
101
+ *_param,
102
+ _request_timeout=_request_timeout
103
+ )
104
+ await response_data.read()
105
+ return self.api_client.response_deserialize(
106
+ response_data=response_data,
107
+ response_types_map=_response_types_map,
108
+ ).data
109
+
110
+
111
+ @validate_call
112
+ async def get_bergamo_session_with_http_info(
113
+ self,
114
+ job_settings: JobSettings,
115
+ _request_timeout: Union[
116
+ None,
117
+ Annotated[StrictFloat, Field(gt=0)],
118
+ Tuple[
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Annotated[StrictFloat, Field(gt=0)]
121
+ ]
122
+ ] = None,
123
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
+ _content_type: Optional[StrictStr] = None,
125
+ _headers: Optional[Dict[StrictStr, Any]] = None,
126
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
+ ) -> ApiResponse[object]:
128
+ """Get Bergamo Session
129
+
130
+ ## Session Return session metadata computed from aind-metadata-mapper.
131
+
132
+ :param job_settings: (required)
133
+ :type job_settings: JobSettings
134
+ :param _request_timeout: timeout setting for this request. If one
135
+ number provided, it will be total request
136
+ timeout. It can also be a pair (tuple) of
137
+ (connection, read) timeouts.
138
+ :type _request_timeout: int, tuple(int, int), optional
139
+ :param _request_auth: set to override the auth_settings for an a single
140
+ request; this effectively ignores the
141
+ authentication in the spec for a single request.
142
+ :type _request_auth: dict, optional
143
+ :param _content_type: force content-type for the request.
144
+ :type _content_type: str, Optional
145
+ :param _headers: set to override the headers for a single
146
+ request; this effectively ignores the headers
147
+ in the spec for a single request.
148
+ :type _headers: dict, optional
149
+ :param _host_index: set to override the host_index for a single
150
+ request; this effectively ignores the host_index
151
+ in the spec for a single request.
152
+ :type _host_index: int, optional
153
+ :return: Returns the result object.
154
+ """ # noqa: E501
155
+
156
+ _param = self._get_bergamo_session_serialize(
157
+ job_settings=job_settings,
158
+ _request_auth=_request_auth,
159
+ _content_type=_content_type,
160
+ _headers=_headers,
161
+ _host_index=_host_index
162
+ )
163
+
164
+ _response_types_map: Dict[str, Optional[str]] = {
165
+ '200': "object",
166
+ '422': "HTTPValidationError",
167
+ }
168
+ response_data = await self.api_client.call_api(
169
+ *_param,
170
+ _request_timeout=_request_timeout
171
+ )
172
+ await response_data.read()
173
+ return self.api_client.response_deserialize(
174
+ response_data=response_data,
175
+ response_types_map=_response_types_map,
176
+ )
177
+
178
+
179
+ @validate_call
180
+ async def get_bergamo_session_without_preload_content(
181
+ self,
182
+ job_settings: JobSettings,
183
+ _request_timeout: Union[
184
+ None,
185
+ Annotated[StrictFloat, Field(gt=0)],
186
+ Tuple[
187
+ Annotated[StrictFloat, Field(gt=0)],
188
+ Annotated[StrictFloat, Field(gt=0)]
189
+ ]
190
+ ] = None,
191
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
192
+ _content_type: Optional[StrictStr] = None,
193
+ _headers: Optional[Dict[StrictStr, Any]] = None,
194
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
195
+ ) -> RESTResponseType:
196
+ """Get Bergamo Session
197
+
198
+ ## Session Return session metadata computed from aind-metadata-mapper.
199
+
200
+ :param job_settings: (required)
201
+ :type job_settings: JobSettings
202
+ :param _request_timeout: timeout setting for this request. If one
203
+ number provided, it will be total request
204
+ timeout. It can also be a pair (tuple) of
205
+ (connection, read) timeouts.
206
+ :type _request_timeout: int, tuple(int, int), optional
207
+ :param _request_auth: set to override the auth_settings for an a single
208
+ request; this effectively ignores the
209
+ authentication in the spec for a single request.
210
+ :type _request_auth: dict, optional
211
+ :param _content_type: force content-type for the request.
212
+ :type _content_type: str, Optional
213
+ :param _headers: set to override the headers for a single
214
+ request; this effectively ignores the headers
215
+ in the spec for a single request.
216
+ :type _headers: dict, optional
217
+ :param _host_index: set to override the host_index for a single
218
+ request; this effectively ignores the host_index
219
+ in the spec for a single request.
220
+ :type _host_index: int, optional
221
+ :return: Returns the result object.
222
+ """ # noqa: E501
223
+
224
+ _param = self._get_bergamo_session_serialize(
225
+ job_settings=job_settings,
226
+ _request_auth=_request_auth,
227
+ _content_type=_content_type,
228
+ _headers=_headers,
229
+ _host_index=_host_index
230
+ )
231
+
232
+ _response_types_map: Dict[str, Optional[str]] = {
233
+ '200': "object",
234
+ '422': "HTTPValidationError",
235
+ }
236
+ response_data = await self.api_client.call_api(
237
+ *_param,
238
+ _request_timeout=_request_timeout
239
+ )
240
+ return response_data.response
241
+
242
+
243
+ def _get_bergamo_session_serialize(
244
+ self,
245
+ job_settings,
246
+ _request_auth,
247
+ _content_type,
248
+ _headers,
249
+ _host_index,
250
+ ) -> RequestSerialized:
251
+
252
+ _host = None
253
+
254
+ _collection_formats: Dict[str, str] = {
255
+ }
256
+
257
+ _path_params: Dict[str, str] = {}
258
+ _query_params: List[Tuple[str, str]] = []
259
+ _header_params: Dict[str, Optional[str]] = _headers or {}
260
+ _form_params: List[Tuple[str, str]] = []
261
+ _files: Dict[
262
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
263
+ ] = {}
264
+ _body_params: Optional[bytes] = None
265
+
266
+ # process the path parameters
267
+ # process the query parameters
268
+ # process the header parameters
269
+ # process the form parameters
270
+ # process the body parameter
271
+ if job_settings is not None:
272
+ _body_params = job_settings
273
+
274
+
275
+ # set the HTTP header `Accept`
276
+ if 'Accept' not in _header_params:
277
+ _header_params['Accept'] = self.api_client.select_header_accept(
278
+ [
279
+ 'application/json'
280
+ ]
281
+ )
282
+
283
+ # set the HTTP header `Content-Type`
284
+ if _content_type:
285
+ _header_params['Content-Type'] = _content_type
286
+ else:
287
+ _default_content_type = (
288
+ self.api_client.select_header_content_type(
289
+ [
290
+ 'application/json'
291
+ ]
292
+ )
293
+ )
294
+ if _default_content_type is not None:
295
+ _header_params['Content-Type'] = _default_content_type
296
+
297
+ # authentication setting
298
+ _auth_settings: List[str] = [
299
+ ]
300
+
301
+ return self.api_client.param_serialize(
302
+ method='POST',
303
+ resource_path='/bergamo_session',
304
+ path_params=_path_params,
305
+ query_params=_query_params,
306
+ header_params=_header_params,
307
+ body=_body_params,
308
+ post_params=_form_params,
309
+ files=_files,
310
+ auth_settings=_auth_settings,
311
+ collection_formats=_collection_formats,
312
+ _host=_host,
313
+ _request_auth=_request_auth
314
+ )
315
+
316
+
317
+
318
+
319
+ @validate_call
320
+ async def get_funding(
321
+ self,
322
+ project_name: StrictStr,
323
+ subproject: Optional[StrictStr] = None,
324
+ _request_timeout: Union[
325
+ None,
326
+ Annotated[StrictFloat, Field(gt=0)],
327
+ Tuple[
328
+ Annotated[StrictFloat, Field(gt=0)],
329
+ Annotated[StrictFloat, Field(gt=0)]
330
+ ]
331
+ ] = None,
332
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
333
+ _content_type: Optional[StrictStr] = None,
334
+ _headers: Optional[Dict[StrictStr, Any]] = None,
335
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
336
+ ) -> object:
337
+ """Get Funding
338
+
339
+ ## Funding Return Funding metadata.
340
+
341
+ :param project_name: (required)
342
+ :type project_name: str
343
+ :param subproject:
344
+ :type subproject: str
345
+ :param _request_timeout: timeout setting for this request. If one
346
+ number provided, it will be total request
347
+ timeout. It can also be a pair (tuple) of
348
+ (connection, read) timeouts.
349
+ :type _request_timeout: int, tuple(int, int), optional
350
+ :param _request_auth: set to override the auth_settings for an a single
351
+ request; this effectively ignores the
352
+ authentication in the spec for a single request.
353
+ :type _request_auth: dict, optional
354
+ :param _content_type: force content-type for the request.
355
+ :type _content_type: str, Optional
356
+ :param _headers: set to override the headers for a single
357
+ request; this effectively ignores the headers
358
+ in the spec for a single request.
359
+ :type _headers: dict, optional
360
+ :param _host_index: set to override the host_index for a single
361
+ request; this effectively ignores the host_index
362
+ in the spec for a single request.
363
+ :type _host_index: int, optional
364
+ :return: Returns the result object.
365
+ """ # noqa: E501
366
+
367
+ _param = self._get_funding_serialize(
368
+ project_name=project_name,
369
+ subproject=subproject,
370
+ _request_auth=_request_auth,
371
+ _content_type=_content_type,
372
+ _headers=_headers,
373
+ _host_index=_host_index
374
+ )
375
+
376
+ _response_types_map: Dict[str, Optional[str]] = {
377
+ '200': "object",
378
+ '422': "HTTPValidationError",
379
+ }
380
+ response_data = await self.api_client.call_api(
381
+ *_param,
382
+ _request_timeout=_request_timeout
383
+ )
384
+ await response_data.read()
385
+ return self.api_client.response_deserialize(
386
+ response_data=response_data,
387
+ response_types_map=_response_types_map,
388
+ ).data
389
+
390
+
391
+ @validate_call
392
+ async def get_funding_with_http_info(
393
+ self,
394
+ project_name: StrictStr,
395
+ subproject: Optional[StrictStr] = None,
396
+ _request_timeout: Union[
397
+ None,
398
+ Annotated[StrictFloat, Field(gt=0)],
399
+ Tuple[
400
+ Annotated[StrictFloat, Field(gt=0)],
401
+ Annotated[StrictFloat, Field(gt=0)]
402
+ ]
403
+ ] = None,
404
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
405
+ _content_type: Optional[StrictStr] = None,
406
+ _headers: Optional[Dict[StrictStr, Any]] = None,
407
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
408
+ ) -> ApiResponse[object]:
409
+ """Get Funding
410
+
411
+ ## Funding Return Funding metadata.
412
+
413
+ :param project_name: (required)
414
+ :type project_name: str
415
+ :param subproject:
416
+ :type subproject: str
417
+ :param _request_timeout: timeout setting for this request. If one
418
+ number provided, it will be total request
419
+ timeout. It can also be a pair (tuple) of
420
+ (connection, read) timeouts.
421
+ :type _request_timeout: int, tuple(int, int), optional
422
+ :param _request_auth: set to override the auth_settings for an a single
423
+ request; this effectively ignores the
424
+ authentication in the spec for a single request.
425
+ :type _request_auth: dict, optional
426
+ :param _content_type: force content-type for the request.
427
+ :type _content_type: str, Optional
428
+ :param _headers: set to override the headers for a single
429
+ request; this effectively ignores the headers
430
+ in the spec for a single request.
431
+ :type _headers: dict, optional
432
+ :param _host_index: set to override the host_index for a single
433
+ request; this effectively ignores the host_index
434
+ in the spec for a single request.
435
+ :type _host_index: int, optional
436
+ :return: Returns the result object.
437
+ """ # noqa: E501
438
+
439
+ _param = self._get_funding_serialize(
440
+ project_name=project_name,
441
+ subproject=subproject,
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': "object",
450
+ '422': "HTTPValidationError",
451
+ }
452
+ response_data = await self.api_client.call_api(
453
+ *_param,
454
+ _request_timeout=_request_timeout
455
+ )
456
+ await response_data.read()
457
+ return self.api_client.response_deserialize(
458
+ response_data=response_data,
459
+ response_types_map=_response_types_map,
460
+ )
461
+
462
+
463
+ @validate_call
464
+ async def get_funding_without_preload_content(
465
+ self,
466
+ project_name: StrictStr,
467
+ subproject: Optional[StrictStr] = None,
468
+ _request_timeout: Union[
469
+ None,
470
+ Annotated[StrictFloat, Field(gt=0)],
471
+ Tuple[
472
+ Annotated[StrictFloat, Field(gt=0)],
473
+ Annotated[StrictFloat, Field(gt=0)]
474
+ ]
475
+ ] = None,
476
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
477
+ _content_type: Optional[StrictStr] = None,
478
+ _headers: Optional[Dict[StrictStr, Any]] = None,
479
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
480
+ ) -> RESTResponseType:
481
+ """Get Funding
482
+
483
+ ## Funding Return Funding metadata.
484
+
485
+ :param project_name: (required)
486
+ :type project_name: str
487
+ :param subproject:
488
+ :type subproject: str
489
+ :param _request_timeout: timeout setting for this request. If one
490
+ number provided, it will be total request
491
+ timeout. It can also be a pair (tuple) of
492
+ (connection, read) timeouts.
493
+ :type _request_timeout: int, tuple(int, int), optional
494
+ :param _request_auth: set to override the auth_settings for an a single
495
+ request; this effectively ignores the
496
+ authentication in the spec for a single request.
497
+ :type _request_auth: dict, optional
498
+ :param _content_type: force content-type for the request.
499
+ :type _content_type: str, Optional
500
+ :param _headers: set to override the headers for a single
501
+ request; this effectively ignores the headers
502
+ in the spec for a single request.
503
+ :type _headers: dict, optional
504
+ :param _host_index: set to override the host_index for a single
505
+ request; this effectively ignores the host_index
506
+ in the spec for a single request.
507
+ :type _host_index: int, optional
508
+ :return: Returns the result object.
509
+ """ # noqa: E501
510
+
511
+ _param = self._get_funding_serialize(
512
+ project_name=project_name,
513
+ subproject=subproject,
514
+ _request_auth=_request_auth,
515
+ _content_type=_content_type,
516
+ _headers=_headers,
517
+ _host_index=_host_index
518
+ )
519
+
520
+ _response_types_map: Dict[str, Optional[str]] = {
521
+ '200': "object",
522
+ '422': "HTTPValidationError",
523
+ }
524
+ response_data = await self.api_client.call_api(
525
+ *_param,
526
+ _request_timeout=_request_timeout
527
+ )
528
+ return response_data.response
529
+
530
+
531
+ def _get_funding_serialize(
532
+ self,
533
+ project_name,
534
+ subproject,
535
+ _request_auth,
536
+ _content_type,
537
+ _headers,
538
+ _host_index,
539
+ ) -> RequestSerialized:
540
+
541
+ _host = None
542
+
543
+ _collection_formats: Dict[str, str] = {
544
+ }
545
+
546
+ _path_params: Dict[str, str] = {}
547
+ _query_params: List[Tuple[str, str]] = []
548
+ _header_params: Dict[str, Optional[str]] = _headers or {}
549
+ _form_params: List[Tuple[str, str]] = []
550
+ _files: Dict[
551
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
552
+ ] = {}
553
+ _body_params: Optional[bytes] = None
554
+
555
+ # process the path parameters
556
+ if project_name is not None:
557
+ _path_params['project_name'] = project_name
558
+ # process the query parameters
559
+ if subproject is not None:
560
+
561
+ _query_params.append(('subproject', subproject))
562
+
563
+ # process the header parameters
564
+ # process the form parameters
565
+ # process the body parameter
566
+
567
+
568
+ # set the HTTP header `Accept`
569
+ if 'Accept' not in _header_params:
570
+ _header_params['Accept'] = self.api_client.select_header_accept(
571
+ [
572
+ 'application/json'
573
+ ]
574
+ )
575
+
576
+
577
+ # authentication setting
578
+ _auth_settings: List[str] = [
579
+ ]
580
+
581
+ return self.api_client.param_serialize(
582
+ method='GET',
583
+ resource_path='/funding/{project_name}',
584
+ path_params=_path_params,
585
+ query_params=_query_params,
586
+ header_params=_header_params,
587
+ body=_body_params,
588
+ post_params=_form_params,
589
+ files=_files,
590
+ auth_settings=_auth_settings,
591
+ collection_formats=_collection_formats,
592
+ _host=_host,
593
+ _request_auth=_request_auth
594
+ )
595
+
596
+
597
+
598
+
599
+ @validate_call
600
+ async def get_injection_materials(
601
+ self,
602
+ prep_lot_number: StrictStr,
603
+ _request_timeout: Union[
604
+ None,
605
+ Annotated[StrictFloat, Field(gt=0)],
606
+ Tuple[
607
+ Annotated[StrictFloat, Field(gt=0)],
608
+ Annotated[StrictFloat, Field(gt=0)]
609
+ ]
610
+ ] = None,
611
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
612
+ _content_type: Optional[StrictStr] = None,
613
+ _headers: Optional[Dict[StrictStr, Any]] = None,
614
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
615
+ ) -> object:
616
+ """Get Injection Materials
617
+
618
+ ## Injection Materials Return Injection Materials metadata.
619
+
620
+ :param prep_lot_number: (required)
621
+ :type prep_lot_number: str
622
+ :param _request_timeout: timeout setting for this request. If one
623
+ number provided, it will be total request
624
+ timeout. It can also be a pair (tuple) of
625
+ (connection, read) timeouts.
626
+ :type _request_timeout: int, tuple(int, int), optional
627
+ :param _request_auth: set to override the auth_settings for an a single
628
+ request; this effectively ignores the
629
+ authentication in the spec for a single request.
630
+ :type _request_auth: dict, optional
631
+ :param _content_type: force content-type for the request.
632
+ :type _content_type: str, Optional
633
+ :param _headers: set to override the headers for a single
634
+ request; this effectively ignores the headers
635
+ in the spec for a single request.
636
+ :type _headers: dict, optional
637
+ :param _host_index: set to override the host_index for a single
638
+ request; this effectively ignores the host_index
639
+ in the spec for a single request.
640
+ :type _host_index: int, optional
641
+ :return: Returns the result object.
642
+ """ # noqa: E501
643
+
644
+ _param = self._get_injection_materials_serialize(
645
+ prep_lot_number=prep_lot_number,
646
+ _request_auth=_request_auth,
647
+ _content_type=_content_type,
648
+ _headers=_headers,
649
+ _host_index=_host_index
650
+ )
651
+
652
+ _response_types_map: Dict[str, Optional[str]] = {
653
+ '200': "object",
654
+ '422': "HTTPValidationError",
655
+ }
656
+ response_data = await self.api_client.call_api(
657
+ *_param,
658
+ _request_timeout=_request_timeout
659
+ )
660
+ await response_data.read()
661
+ return self.api_client.response_deserialize(
662
+ response_data=response_data,
663
+ response_types_map=_response_types_map,
664
+ ).data
665
+
666
+
667
+ @validate_call
668
+ async def get_injection_materials_with_http_info(
669
+ self,
670
+ prep_lot_number: StrictStr,
671
+ _request_timeout: Union[
672
+ None,
673
+ Annotated[StrictFloat, Field(gt=0)],
674
+ Tuple[
675
+ Annotated[StrictFloat, Field(gt=0)],
676
+ Annotated[StrictFloat, Field(gt=0)]
677
+ ]
678
+ ] = None,
679
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
680
+ _content_type: Optional[StrictStr] = None,
681
+ _headers: Optional[Dict[StrictStr, Any]] = None,
682
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
683
+ ) -> ApiResponse[object]:
684
+ """Get Injection Materials
685
+
686
+ ## Injection Materials Return Injection Materials metadata.
687
+
688
+ :param prep_lot_number: (required)
689
+ :type prep_lot_number: str
690
+ :param _request_timeout: timeout setting for this request. If one
691
+ number provided, it will be total request
692
+ timeout. It can also be a pair (tuple) of
693
+ (connection, read) timeouts.
694
+ :type _request_timeout: int, tuple(int, int), optional
695
+ :param _request_auth: set to override the auth_settings for an a single
696
+ request; this effectively ignores the
697
+ authentication in the spec for a single request.
698
+ :type _request_auth: dict, optional
699
+ :param _content_type: force content-type for the request.
700
+ :type _content_type: str, Optional
701
+ :param _headers: set to override the headers for a single
702
+ request; this effectively ignores the headers
703
+ in the spec for a single request.
704
+ :type _headers: dict, optional
705
+ :param _host_index: set to override the host_index for a single
706
+ request; this effectively ignores the host_index
707
+ in the spec for a single request.
708
+ :type _host_index: int, optional
709
+ :return: Returns the result object.
710
+ """ # noqa: E501
711
+
712
+ _param = self._get_injection_materials_serialize(
713
+ prep_lot_number=prep_lot_number,
714
+ _request_auth=_request_auth,
715
+ _content_type=_content_type,
716
+ _headers=_headers,
717
+ _host_index=_host_index
718
+ )
719
+
720
+ _response_types_map: Dict[str, Optional[str]] = {
721
+ '200': "object",
722
+ '422': "HTTPValidationError",
723
+ }
724
+ response_data = await self.api_client.call_api(
725
+ *_param,
726
+ _request_timeout=_request_timeout
727
+ )
728
+ await response_data.read()
729
+ return self.api_client.response_deserialize(
730
+ response_data=response_data,
731
+ response_types_map=_response_types_map,
732
+ )
733
+
734
+
735
+ @validate_call
736
+ async def get_injection_materials_without_preload_content(
737
+ self,
738
+ prep_lot_number: StrictStr,
739
+ _request_timeout: Union[
740
+ None,
741
+ Annotated[StrictFloat, Field(gt=0)],
742
+ Tuple[
743
+ Annotated[StrictFloat, Field(gt=0)],
744
+ Annotated[StrictFloat, Field(gt=0)]
745
+ ]
746
+ ] = None,
747
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
748
+ _content_type: Optional[StrictStr] = None,
749
+ _headers: Optional[Dict[StrictStr, Any]] = None,
750
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
751
+ ) -> RESTResponseType:
752
+ """Get Injection Materials
753
+
754
+ ## Injection Materials Return Injection Materials metadata.
755
+
756
+ :param prep_lot_number: (required)
757
+ :type prep_lot_number: str
758
+ :param _request_timeout: timeout setting for this request. If one
759
+ number provided, it will be total request
760
+ timeout. It can also be a pair (tuple) of
761
+ (connection, read) timeouts.
762
+ :type _request_timeout: int, tuple(int, int), optional
763
+ :param _request_auth: set to override the auth_settings for an a single
764
+ request; this effectively ignores the
765
+ authentication in the spec for a single request.
766
+ :type _request_auth: dict, optional
767
+ :param _content_type: force content-type for the request.
768
+ :type _content_type: str, Optional
769
+ :param _headers: set to override the headers for a single
770
+ request; this effectively ignores the headers
771
+ in the spec for a single request.
772
+ :type _headers: dict, optional
773
+ :param _host_index: set to override the host_index for a single
774
+ request; this effectively ignores the host_index
775
+ in the spec for a single request.
776
+ :type _host_index: int, optional
777
+ :return: Returns the result object.
778
+ """ # noqa: E501
779
+
780
+ _param = self._get_injection_materials_serialize(
781
+ prep_lot_number=prep_lot_number,
782
+ _request_auth=_request_auth,
783
+ _content_type=_content_type,
784
+ _headers=_headers,
785
+ _host_index=_host_index
786
+ )
787
+
788
+ _response_types_map: Dict[str, Optional[str]] = {
789
+ '200': "object",
790
+ '422': "HTTPValidationError",
791
+ }
792
+ response_data = await self.api_client.call_api(
793
+ *_param,
794
+ _request_timeout=_request_timeout
795
+ )
796
+ return response_data.response
797
+
798
+
799
+ def _get_injection_materials_serialize(
800
+ self,
801
+ prep_lot_number,
802
+ _request_auth,
803
+ _content_type,
804
+ _headers,
805
+ _host_index,
806
+ ) -> RequestSerialized:
807
+
808
+ _host = None
809
+
810
+ _collection_formats: Dict[str, str] = {
811
+ }
812
+
813
+ _path_params: Dict[str, str] = {}
814
+ _query_params: List[Tuple[str, str]] = []
815
+ _header_params: Dict[str, Optional[str]] = _headers or {}
816
+ _form_params: List[Tuple[str, str]] = []
817
+ _files: Dict[
818
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
819
+ ] = {}
820
+ _body_params: Optional[bytes] = None
821
+
822
+ # process the path parameters
823
+ if prep_lot_number is not None:
824
+ _path_params['prep_lot_number'] = prep_lot_number
825
+ # process the query parameters
826
+ # process the header parameters
827
+ # process the form parameters
828
+ # process the body parameter
829
+
830
+
831
+ # set the HTTP header `Accept`
832
+ if 'Accept' not in _header_params:
833
+ _header_params['Accept'] = self.api_client.select_header_accept(
834
+ [
835
+ 'application/json'
836
+ ]
837
+ )
838
+
839
+
840
+ # authentication setting
841
+ _auth_settings: List[str] = [
842
+ ]
843
+
844
+ return self.api_client.param_serialize(
845
+ method='GET',
846
+ resource_path='/tars_injection_materials/{prep_lot_number}',
847
+ path_params=_path_params,
848
+ query_params=_query_params,
849
+ header_params=_header_params,
850
+ body=_body_params,
851
+ post_params=_form_params,
852
+ files=_files,
853
+ auth_settings=_auth_settings,
854
+ collection_formats=_collection_formats,
855
+ _host=_host,
856
+ _request_auth=_request_auth
857
+ )
858
+
859
+
860
+
861
+
862
+ @validate_call
863
+ async def get_instrument(
864
+ self,
865
+ instrument_id: StrictStr,
866
+ partial_match: Optional[StrictBool] = None,
867
+ _request_timeout: Union[
868
+ None,
869
+ Annotated[StrictFloat, Field(gt=0)],
870
+ Tuple[
871
+ Annotated[StrictFloat, Field(gt=0)],
872
+ Annotated[StrictFloat, Field(gt=0)]
873
+ ]
874
+ ] = None,
875
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
876
+ _content_type: Optional[StrictStr] = None,
877
+ _headers: Optional[Dict[StrictStr, Any]] = None,
878
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
879
+ ) -> object:
880
+ """Get Instrument
881
+
882
+ ## Instrument Return an Instrument.
883
+
884
+ :param instrument_id: (required)
885
+ :type instrument_id: str
886
+ :param partial_match:
887
+ :type partial_match: bool
888
+ :param _request_timeout: timeout setting for this request. If one
889
+ number provided, it will be total request
890
+ timeout. It can also be a pair (tuple) of
891
+ (connection, read) timeouts.
892
+ :type _request_timeout: int, tuple(int, int), optional
893
+ :param _request_auth: set to override the auth_settings for an a single
894
+ request; this effectively ignores the
895
+ authentication in the spec for a single request.
896
+ :type _request_auth: dict, optional
897
+ :param _content_type: force content-type for the request.
898
+ :type _content_type: str, Optional
899
+ :param _headers: set to override the headers for a single
900
+ request; this effectively ignores the headers
901
+ in the spec for a single request.
902
+ :type _headers: dict, optional
903
+ :param _host_index: set to override the host_index for a single
904
+ request; this effectively ignores the host_index
905
+ in the spec for a single request.
906
+ :type _host_index: int, optional
907
+ :return: Returns the result object.
908
+ """ # noqa: E501
909
+
910
+ _param = self._get_instrument_serialize(
911
+ instrument_id=instrument_id,
912
+ partial_match=partial_match,
913
+ _request_auth=_request_auth,
914
+ _content_type=_content_type,
915
+ _headers=_headers,
916
+ _host_index=_host_index
917
+ )
918
+
919
+ _response_types_map: Dict[str, Optional[str]] = {
920
+ '200': "object",
921
+ '422': "HTTPValidationError",
922
+ }
923
+ response_data = await self.api_client.call_api(
924
+ *_param,
925
+ _request_timeout=_request_timeout
926
+ )
927
+ await response_data.read()
928
+ return self.api_client.response_deserialize(
929
+ response_data=response_data,
930
+ response_types_map=_response_types_map,
931
+ ).data
932
+
933
+
934
+ @validate_call
935
+ async def get_instrument_with_http_info(
936
+ self,
937
+ instrument_id: StrictStr,
938
+ partial_match: Optional[StrictBool] = None,
939
+ _request_timeout: Union[
940
+ None,
941
+ Annotated[StrictFloat, Field(gt=0)],
942
+ Tuple[
943
+ Annotated[StrictFloat, Field(gt=0)],
944
+ Annotated[StrictFloat, Field(gt=0)]
945
+ ]
946
+ ] = None,
947
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
948
+ _content_type: Optional[StrictStr] = None,
949
+ _headers: Optional[Dict[StrictStr, Any]] = None,
950
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
951
+ ) -> ApiResponse[object]:
952
+ """Get Instrument
953
+
954
+ ## Instrument Return an Instrument.
955
+
956
+ :param instrument_id: (required)
957
+ :type instrument_id: str
958
+ :param partial_match:
959
+ :type partial_match: bool
960
+ :param _request_timeout: timeout setting for this request. If one
961
+ number provided, it will be total request
962
+ timeout. It can also be a pair (tuple) of
963
+ (connection, read) timeouts.
964
+ :type _request_timeout: int, tuple(int, int), optional
965
+ :param _request_auth: set to override the auth_settings for an a single
966
+ request; this effectively ignores the
967
+ authentication in the spec for a single request.
968
+ :type _request_auth: dict, optional
969
+ :param _content_type: force content-type for the request.
970
+ :type _content_type: str, Optional
971
+ :param _headers: set to override the headers for a single
972
+ request; this effectively ignores the headers
973
+ in the spec for a single request.
974
+ :type _headers: dict, optional
975
+ :param _host_index: set to override the host_index for a single
976
+ request; this effectively ignores the host_index
977
+ in the spec for a single request.
978
+ :type _host_index: int, optional
979
+ :return: Returns the result object.
980
+ """ # noqa: E501
981
+
982
+ _param = self._get_instrument_serialize(
983
+ instrument_id=instrument_id,
984
+ partial_match=partial_match,
985
+ _request_auth=_request_auth,
986
+ _content_type=_content_type,
987
+ _headers=_headers,
988
+ _host_index=_host_index
989
+ )
990
+
991
+ _response_types_map: Dict[str, Optional[str]] = {
992
+ '200': "object",
993
+ '422': "HTTPValidationError",
994
+ }
995
+ response_data = await self.api_client.call_api(
996
+ *_param,
997
+ _request_timeout=_request_timeout
998
+ )
999
+ await response_data.read()
1000
+ return self.api_client.response_deserialize(
1001
+ response_data=response_data,
1002
+ response_types_map=_response_types_map,
1003
+ )
1004
+
1005
+
1006
+ @validate_call
1007
+ async def get_instrument_without_preload_content(
1008
+ self,
1009
+ instrument_id: StrictStr,
1010
+ partial_match: Optional[StrictBool] = None,
1011
+ _request_timeout: Union[
1012
+ None,
1013
+ Annotated[StrictFloat, Field(gt=0)],
1014
+ Tuple[
1015
+ Annotated[StrictFloat, Field(gt=0)],
1016
+ Annotated[StrictFloat, Field(gt=0)]
1017
+ ]
1018
+ ] = None,
1019
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1020
+ _content_type: Optional[StrictStr] = None,
1021
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1022
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1023
+ ) -> RESTResponseType:
1024
+ """Get Instrument
1025
+
1026
+ ## Instrument Return an Instrument.
1027
+
1028
+ :param instrument_id: (required)
1029
+ :type instrument_id: str
1030
+ :param partial_match:
1031
+ :type partial_match: bool
1032
+ :param _request_timeout: timeout setting for this request. If one
1033
+ number provided, it will be total request
1034
+ timeout. It can also be a pair (tuple) of
1035
+ (connection, read) timeouts.
1036
+ :type _request_timeout: int, tuple(int, int), optional
1037
+ :param _request_auth: set to override the auth_settings for an a single
1038
+ request; this effectively ignores the
1039
+ authentication in the spec for a single request.
1040
+ :type _request_auth: dict, optional
1041
+ :param _content_type: force content-type for the request.
1042
+ :type _content_type: str, Optional
1043
+ :param _headers: set to override the headers for a single
1044
+ request; this effectively ignores the headers
1045
+ in the spec for a single request.
1046
+ :type _headers: dict, optional
1047
+ :param _host_index: set to override the host_index for a single
1048
+ request; this effectively ignores the host_index
1049
+ in the spec for a single request.
1050
+ :type _host_index: int, optional
1051
+ :return: Returns the result object.
1052
+ """ # noqa: E501
1053
+
1054
+ _param = self._get_instrument_serialize(
1055
+ instrument_id=instrument_id,
1056
+ partial_match=partial_match,
1057
+ _request_auth=_request_auth,
1058
+ _content_type=_content_type,
1059
+ _headers=_headers,
1060
+ _host_index=_host_index
1061
+ )
1062
+
1063
+ _response_types_map: Dict[str, Optional[str]] = {
1064
+ '200': "object",
1065
+ '422': "HTTPValidationError",
1066
+ }
1067
+ response_data = await self.api_client.call_api(
1068
+ *_param,
1069
+ _request_timeout=_request_timeout
1070
+ )
1071
+ return response_data.response
1072
+
1073
+
1074
+ def _get_instrument_serialize(
1075
+ self,
1076
+ instrument_id,
1077
+ partial_match,
1078
+ _request_auth,
1079
+ _content_type,
1080
+ _headers,
1081
+ _host_index,
1082
+ ) -> RequestSerialized:
1083
+
1084
+ _host = None
1085
+
1086
+ _collection_formats: Dict[str, str] = {
1087
+ }
1088
+
1089
+ _path_params: Dict[str, str] = {}
1090
+ _query_params: List[Tuple[str, str]] = []
1091
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1092
+ _form_params: List[Tuple[str, str]] = []
1093
+ _files: Dict[
1094
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1095
+ ] = {}
1096
+ _body_params: Optional[bytes] = None
1097
+
1098
+ # process the path parameters
1099
+ if instrument_id is not None:
1100
+ _path_params['instrument_id'] = instrument_id
1101
+ # process the query parameters
1102
+ if partial_match is not None:
1103
+
1104
+ _query_params.append(('partial_match', partial_match))
1105
+
1106
+ # process the header parameters
1107
+ # process the form parameters
1108
+ # process the body parameter
1109
+
1110
+
1111
+ # set the HTTP header `Accept`
1112
+ if 'Accept' not in _header_params:
1113
+ _header_params['Accept'] = self.api_client.select_header_accept(
1114
+ [
1115
+ 'application/json'
1116
+ ]
1117
+ )
1118
+
1119
+
1120
+ # authentication setting
1121
+ _auth_settings: List[str] = [
1122
+ ]
1123
+
1124
+ return self.api_client.param_serialize(
1125
+ method='GET',
1126
+ resource_path='/instrument/{instrument_id}',
1127
+ path_params=_path_params,
1128
+ query_params=_query_params,
1129
+ header_params=_header_params,
1130
+ body=_body_params,
1131
+ post_params=_form_params,
1132
+ files=_files,
1133
+ auth_settings=_auth_settings,
1134
+ collection_formats=_collection_formats,
1135
+ _host=_host,
1136
+ _request_auth=_request_auth
1137
+ )
1138
+
1139
+
1140
+
1141
+
1142
+ @validate_call
1143
+ async def get_intended_measurements(
1144
+ self,
1145
+ subject_id: StrictStr,
1146
+ _request_timeout: Union[
1147
+ None,
1148
+ Annotated[StrictFloat, Field(gt=0)],
1149
+ Tuple[
1150
+ Annotated[StrictFloat, Field(gt=0)],
1151
+ Annotated[StrictFloat, Field(gt=0)]
1152
+ ]
1153
+ ] = None,
1154
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1155
+ _content_type: Optional[StrictStr] = None,
1156
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1157
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1158
+ ) -> object:
1159
+ """Get Intended Measurements
1160
+
1161
+ ## Intended Measurements Return Intended Measurements metadata.
1162
+
1163
+ :param subject_id: (required)
1164
+ :type subject_id: str
1165
+ :param _request_timeout: timeout setting for this request. If one
1166
+ number provided, it will be total request
1167
+ timeout. It can also be a pair (tuple) of
1168
+ (connection, read) timeouts.
1169
+ :type _request_timeout: int, tuple(int, int), optional
1170
+ :param _request_auth: set to override the auth_settings for an a single
1171
+ request; this effectively ignores the
1172
+ authentication in the spec for a single request.
1173
+ :type _request_auth: dict, optional
1174
+ :param _content_type: force content-type for the request.
1175
+ :type _content_type: str, Optional
1176
+ :param _headers: set to override the headers for a single
1177
+ request; this effectively ignores the headers
1178
+ in the spec for a single request.
1179
+ :type _headers: dict, optional
1180
+ :param _host_index: set to override the host_index for a single
1181
+ request; this effectively ignores the host_index
1182
+ in the spec for a single request.
1183
+ :type _host_index: int, optional
1184
+ :return: Returns the result object.
1185
+ """ # noqa: E501
1186
+
1187
+ _param = self._get_intended_measurements_serialize(
1188
+ subject_id=subject_id,
1189
+ _request_auth=_request_auth,
1190
+ _content_type=_content_type,
1191
+ _headers=_headers,
1192
+ _host_index=_host_index
1193
+ )
1194
+
1195
+ _response_types_map: Dict[str, Optional[str]] = {
1196
+ '200': "object",
1197
+ '422': "HTTPValidationError",
1198
+ }
1199
+ response_data = await self.api_client.call_api(
1200
+ *_param,
1201
+ _request_timeout=_request_timeout
1202
+ )
1203
+ await response_data.read()
1204
+ return self.api_client.response_deserialize(
1205
+ response_data=response_data,
1206
+ response_types_map=_response_types_map,
1207
+ ).data
1208
+
1209
+
1210
+ @validate_call
1211
+ async def get_intended_measurements_with_http_info(
1212
+ self,
1213
+ subject_id: StrictStr,
1214
+ _request_timeout: Union[
1215
+ None,
1216
+ Annotated[StrictFloat, Field(gt=0)],
1217
+ Tuple[
1218
+ Annotated[StrictFloat, Field(gt=0)],
1219
+ Annotated[StrictFloat, Field(gt=0)]
1220
+ ]
1221
+ ] = None,
1222
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1223
+ _content_type: Optional[StrictStr] = None,
1224
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1225
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1226
+ ) -> ApiResponse[object]:
1227
+ """Get Intended Measurements
1228
+
1229
+ ## Intended Measurements Return Intended Measurements metadata.
1230
+
1231
+ :param subject_id: (required)
1232
+ :type subject_id: str
1233
+ :param _request_timeout: timeout setting for this request. If one
1234
+ number provided, it will be total request
1235
+ timeout. It can also be a pair (tuple) of
1236
+ (connection, read) timeouts.
1237
+ :type _request_timeout: int, tuple(int, int), optional
1238
+ :param _request_auth: set to override the auth_settings for an a single
1239
+ request; this effectively ignores the
1240
+ authentication in the spec for a single request.
1241
+ :type _request_auth: dict, optional
1242
+ :param _content_type: force content-type for the request.
1243
+ :type _content_type: str, Optional
1244
+ :param _headers: set to override the headers for a single
1245
+ request; this effectively ignores the headers
1246
+ in the spec for a single request.
1247
+ :type _headers: dict, optional
1248
+ :param _host_index: set to override the host_index for a single
1249
+ request; this effectively ignores the host_index
1250
+ in the spec for a single request.
1251
+ :type _host_index: int, optional
1252
+ :return: Returns the result object.
1253
+ """ # noqa: E501
1254
+
1255
+ _param = self._get_intended_measurements_serialize(
1256
+ subject_id=subject_id,
1257
+ _request_auth=_request_auth,
1258
+ _content_type=_content_type,
1259
+ _headers=_headers,
1260
+ _host_index=_host_index
1261
+ )
1262
+
1263
+ _response_types_map: Dict[str, Optional[str]] = {
1264
+ '200': "object",
1265
+ '422': "HTTPValidationError",
1266
+ }
1267
+ response_data = await self.api_client.call_api(
1268
+ *_param,
1269
+ _request_timeout=_request_timeout
1270
+ )
1271
+ await response_data.read()
1272
+ return self.api_client.response_deserialize(
1273
+ response_data=response_data,
1274
+ response_types_map=_response_types_map,
1275
+ )
1276
+
1277
+
1278
+ @validate_call
1279
+ async def get_intended_measurements_without_preload_content(
1280
+ self,
1281
+ subject_id: StrictStr,
1282
+ _request_timeout: Union[
1283
+ None,
1284
+ Annotated[StrictFloat, Field(gt=0)],
1285
+ Tuple[
1286
+ Annotated[StrictFloat, Field(gt=0)],
1287
+ Annotated[StrictFloat, Field(gt=0)]
1288
+ ]
1289
+ ] = None,
1290
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1291
+ _content_type: Optional[StrictStr] = None,
1292
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1293
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1294
+ ) -> RESTResponseType:
1295
+ """Get Intended Measurements
1296
+
1297
+ ## Intended Measurements Return Intended Measurements metadata.
1298
+
1299
+ :param subject_id: (required)
1300
+ :type subject_id: str
1301
+ :param _request_timeout: timeout setting for this request. If one
1302
+ number provided, it will be total request
1303
+ timeout. It can also be a pair (tuple) of
1304
+ (connection, read) timeouts.
1305
+ :type _request_timeout: int, tuple(int, int), optional
1306
+ :param _request_auth: set to override the auth_settings for an a single
1307
+ request; this effectively ignores the
1308
+ authentication in the spec for a single request.
1309
+ :type _request_auth: dict, optional
1310
+ :param _content_type: force content-type for the request.
1311
+ :type _content_type: str, Optional
1312
+ :param _headers: set to override the headers for a single
1313
+ request; this effectively ignores the headers
1314
+ in the spec for a single request.
1315
+ :type _headers: dict, optional
1316
+ :param _host_index: set to override the host_index for a single
1317
+ request; this effectively ignores the host_index
1318
+ in the spec for a single request.
1319
+ :type _host_index: int, optional
1320
+ :return: Returns the result object.
1321
+ """ # noqa: E501
1322
+
1323
+ _param = self._get_intended_measurements_serialize(
1324
+ subject_id=subject_id,
1325
+ _request_auth=_request_auth,
1326
+ _content_type=_content_type,
1327
+ _headers=_headers,
1328
+ _host_index=_host_index
1329
+ )
1330
+
1331
+ _response_types_map: Dict[str, Optional[str]] = {
1332
+ '200': "object",
1333
+ '422': "HTTPValidationError",
1334
+ }
1335
+ response_data = await self.api_client.call_api(
1336
+ *_param,
1337
+ _request_timeout=_request_timeout
1338
+ )
1339
+ return response_data.response
1340
+
1341
+
1342
+ def _get_intended_measurements_serialize(
1343
+ self,
1344
+ subject_id,
1345
+ _request_auth,
1346
+ _content_type,
1347
+ _headers,
1348
+ _host_index,
1349
+ ) -> RequestSerialized:
1350
+
1351
+ _host = None
1352
+
1353
+ _collection_formats: Dict[str, str] = {
1354
+ }
1355
+
1356
+ _path_params: Dict[str, str] = {}
1357
+ _query_params: List[Tuple[str, str]] = []
1358
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1359
+ _form_params: List[Tuple[str, str]] = []
1360
+ _files: Dict[
1361
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1362
+ ] = {}
1363
+ _body_params: Optional[bytes] = None
1364
+
1365
+ # process the path parameters
1366
+ if subject_id is not None:
1367
+ _path_params['subject_id'] = subject_id
1368
+ # process the query parameters
1369
+ # process the header parameters
1370
+ # process the form parameters
1371
+ # process the body parameter
1372
+
1373
+
1374
+ # set the HTTP header `Accept`
1375
+ if 'Accept' not in _header_params:
1376
+ _header_params['Accept'] = self.api_client.select_header_accept(
1377
+ [
1378
+ 'application/json'
1379
+ ]
1380
+ )
1381
+
1382
+
1383
+ # authentication setting
1384
+ _auth_settings: List[str] = [
1385
+ ]
1386
+
1387
+ return self.api_client.param_serialize(
1388
+ method='GET',
1389
+ resource_path='/intended_measurements/{subject_id}',
1390
+ path_params=_path_params,
1391
+ query_params=_query_params,
1392
+ header_params=_header_params,
1393
+ body=_body_params,
1394
+ post_params=_form_params,
1395
+ files=_files,
1396
+ auth_settings=_auth_settings,
1397
+ collection_formats=_collection_formats,
1398
+ _host=_host,
1399
+ _request_auth=_request_auth
1400
+ )
1401
+
1402
+
1403
+
1404
+
1405
+ @validate_call
1406
+ async def get_mgi_allele(
1407
+ self,
1408
+ allele_name: StrictStr,
1409
+ _request_timeout: Union[
1410
+ None,
1411
+ Annotated[StrictFloat, Field(gt=0)],
1412
+ Tuple[
1413
+ Annotated[StrictFloat, Field(gt=0)],
1414
+ Annotated[StrictFloat, Field(gt=0)]
1415
+ ]
1416
+ ] = None,
1417
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1418
+ _content_type: Optional[StrictStr] = None,
1419
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1420
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1421
+ ) -> object:
1422
+ """Get Mgi Allele
1423
+
1424
+ ## MGI Allele Return MGI Allele metadata.
1425
+
1426
+ :param allele_name: (required)
1427
+ :type allele_name: str
1428
+ :param _request_timeout: timeout setting for this request. If one
1429
+ number provided, it will be total request
1430
+ timeout. It can also be a pair (tuple) of
1431
+ (connection, read) timeouts.
1432
+ :type _request_timeout: int, tuple(int, int), optional
1433
+ :param _request_auth: set to override the auth_settings for an a single
1434
+ request; this effectively ignores the
1435
+ authentication in the spec for a single request.
1436
+ :type _request_auth: dict, optional
1437
+ :param _content_type: force content-type for the request.
1438
+ :type _content_type: str, Optional
1439
+ :param _headers: set to override the headers for a single
1440
+ request; this effectively ignores the headers
1441
+ in the spec for a single request.
1442
+ :type _headers: dict, optional
1443
+ :param _host_index: set to override the host_index for a single
1444
+ request; this effectively ignores the host_index
1445
+ in the spec for a single request.
1446
+ :type _host_index: int, optional
1447
+ :return: Returns the result object.
1448
+ """ # noqa: E501
1449
+
1450
+ _param = self._get_mgi_allele_serialize(
1451
+ allele_name=allele_name,
1452
+ _request_auth=_request_auth,
1453
+ _content_type=_content_type,
1454
+ _headers=_headers,
1455
+ _host_index=_host_index
1456
+ )
1457
+
1458
+ _response_types_map: Dict[str, Optional[str]] = {
1459
+ '200': "object",
1460
+ '422': "HTTPValidationError",
1461
+ }
1462
+ response_data = await self.api_client.call_api(
1463
+ *_param,
1464
+ _request_timeout=_request_timeout
1465
+ )
1466
+ await response_data.read()
1467
+ return self.api_client.response_deserialize(
1468
+ response_data=response_data,
1469
+ response_types_map=_response_types_map,
1470
+ ).data
1471
+
1472
+
1473
+ @validate_call
1474
+ async def get_mgi_allele_with_http_info(
1475
+ self,
1476
+ allele_name: StrictStr,
1477
+ _request_timeout: Union[
1478
+ None,
1479
+ Annotated[StrictFloat, Field(gt=0)],
1480
+ Tuple[
1481
+ Annotated[StrictFloat, Field(gt=0)],
1482
+ Annotated[StrictFloat, Field(gt=0)]
1483
+ ]
1484
+ ] = None,
1485
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1486
+ _content_type: Optional[StrictStr] = None,
1487
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1488
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1489
+ ) -> ApiResponse[object]:
1490
+ """Get Mgi Allele
1491
+
1492
+ ## MGI Allele Return MGI Allele metadata.
1493
+
1494
+ :param allele_name: (required)
1495
+ :type allele_name: str
1496
+ :param _request_timeout: timeout setting for this request. If one
1497
+ number provided, it will be total request
1498
+ timeout. It can also be a pair (tuple) of
1499
+ (connection, read) timeouts.
1500
+ :type _request_timeout: int, tuple(int, int), optional
1501
+ :param _request_auth: set to override the auth_settings for an a single
1502
+ request; this effectively ignores the
1503
+ authentication in the spec for a single request.
1504
+ :type _request_auth: dict, optional
1505
+ :param _content_type: force content-type for the request.
1506
+ :type _content_type: str, Optional
1507
+ :param _headers: set to override the headers for a single
1508
+ request; this effectively ignores the headers
1509
+ in the spec for a single request.
1510
+ :type _headers: dict, optional
1511
+ :param _host_index: set to override the host_index for a single
1512
+ request; this effectively ignores the host_index
1513
+ in the spec for a single request.
1514
+ :type _host_index: int, optional
1515
+ :return: Returns the result object.
1516
+ """ # noqa: E501
1517
+
1518
+ _param = self._get_mgi_allele_serialize(
1519
+ allele_name=allele_name,
1520
+ _request_auth=_request_auth,
1521
+ _content_type=_content_type,
1522
+ _headers=_headers,
1523
+ _host_index=_host_index
1524
+ )
1525
+
1526
+ _response_types_map: Dict[str, Optional[str]] = {
1527
+ '200': "object",
1528
+ '422': "HTTPValidationError",
1529
+ }
1530
+ response_data = await self.api_client.call_api(
1531
+ *_param,
1532
+ _request_timeout=_request_timeout
1533
+ )
1534
+ await response_data.read()
1535
+ return self.api_client.response_deserialize(
1536
+ response_data=response_data,
1537
+ response_types_map=_response_types_map,
1538
+ )
1539
+
1540
+
1541
+ @validate_call
1542
+ async def get_mgi_allele_without_preload_content(
1543
+ self,
1544
+ allele_name: StrictStr,
1545
+ _request_timeout: Union[
1546
+ None,
1547
+ Annotated[StrictFloat, Field(gt=0)],
1548
+ Tuple[
1549
+ Annotated[StrictFloat, Field(gt=0)],
1550
+ Annotated[StrictFloat, Field(gt=0)]
1551
+ ]
1552
+ ] = None,
1553
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1554
+ _content_type: Optional[StrictStr] = None,
1555
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1556
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1557
+ ) -> RESTResponseType:
1558
+ """Get Mgi Allele
1559
+
1560
+ ## MGI Allele Return MGI Allele metadata.
1561
+
1562
+ :param allele_name: (required)
1563
+ :type allele_name: str
1564
+ :param _request_timeout: timeout setting for this request. If one
1565
+ number provided, it will be total request
1566
+ timeout. It can also be a pair (tuple) of
1567
+ (connection, read) timeouts.
1568
+ :type _request_timeout: int, tuple(int, int), optional
1569
+ :param _request_auth: set to override the auth_settings for an a single
1570
+ request; this effectively ignores the
1571
+ authentication in the spec for a single request.
1572
+ :type _request_auth: dict, optional
1573
+ :param _content_type: force content-type for the request.
1574
+ :type _content_type: str, Optional
1575
+ :param _headers: set to override the headers for a single
1576
+ request; this effectively ignores the headers
1577
+ in the spec for a single request.
1578
+ :type _headers: dict, optional
1579
+ :param _host_index: set to override the host_index for a single
1580
+ request; this effectively ignores the host_index
1581
+ in the spec for a single request.
1582
+ :type _host_index: int, optional
1583
+ :return: Returns the result object.
1584
+ """ # noqa: E501
1585
+
1586
+ _param = self._get_mgi_allele_serialize(
1587
+ allele_name=allele_name,
1588
+ _request_auth=_request_auth,
1589
+ _content_type=_content_type,
1590
+ _headers=_headers,
1591
+ _host_index=_host_index
1592
+ )
1593
+
1594
+ _response_types_map: Dict[str, Optional[str]] = {
1595
+ '200': "object",
1596
+ '422': "HTTPValidationError",
1597
+ }
1598
+ response_data = await self.api_client.call_api(
1599
+ *_param,
1600
+ _request_timeout=_request_timeout
1601
+ )
1602
+ return response_data.response
1603
+
1604
+
1605
+ def _get_mgi_allele_serialize(
1606
+ self,
1607
+ allele_name,
1608
+ _request_auth,
1609
+ _content_type,
1610
+ _headers,
1611
+ _host_index,
1612
+ ) -> RequestSerialized:
1613
+
1614
+ _host = None
1615
+
1616
+ _collection_formats: Dict[str, str] = {
1617
+ }
1618
+
1619
+ _path_params: Dict[str, str] = {}
1620
+ _query_params: List[Tuple[str, str]] = []
1621
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1622
+ _form_params: List[Tuple[str, str]] = []
1623
+ _files: Dict[
1624
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1625
+ ] = {}
1626
+ _body_params: Optional[bytes] = None
1627
+
1628
+ # process the path parameters
1629
+ if allele_name is not None:
1630
+ _path_params['allele_name'] = allele_name
1631
+ # process the query parameters
1632
+ # process the header parameters
1633
+ # process the form parameters
1634
+ # process the body parameter
1635
+
1636
+
1637
+ # set the HTTP header `Accept`
1638
+ if 'Accept' not in _header_params:
1639
+ _header_params['Accept'] = self.api_client.select_header_accept(
1640
+ [
1641
+ 'application/json'
1642
+ ]
1643
+ )
1644
+
1645
+
1646
+ # authentication setting
1647
+ _auth_settings: List[str] = [
1648
+ ]
1649
+
1650
+ return self.api_client.param_serialize(
1651
+ method='GET',
1652
+ resource_path='/mgi_allele/{allele_name}',
1653
+ path_params=_path_params,
1654
+ query_params=_query_params,
1655
+ header_params=_header_params,
1656
+ body=_body_params,
1657
+ post_params=_form_params,
1658
+ files=_files,
1659
+ auth_settings=_auth_settings,
1660
+ collection_formats=_collection_formats,
1661
+ _host=_host,
1662
+ _request_auth=_request_auth
1663
+ )
1664
+
1665
+
1666
+
1667
+
1668
+ @validate_call
1669
+ async def get_perfusions(
1670
+ self,
1671
+ subject_id: StrictStr,
1672
+ _request_timeout: Union[
1673
+ None,
1674
+ Annotated[StrictFloat, Field(gt=0)],
1675
+ Tuple[
1676
+ Annotated[StrictFloat, Field(gt=0)],
1677
+ Annotated[StrictFloat, Field(gt=0)]
1678
+ ]
1679
+ ] = None,
1680
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1681
+ _content_type: Optional[StrictStr] = None,
1682
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1683
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1684
+ ) -> object:
1685
+ """Get Perfusions
1686
+
1687
+ ## Perfusions Return Perfusions metadata.
1688
+
1689
+ :param subject_id: (required)
1690
+ :type subject_id: str
1691
+ :param _request_timeout: timeout setting for this request. If one
1692
+ number provided, it will be total request
1693
+ timeout. It can also be a pair (tuple) of
1694
+ (connection, read) timeouts.
1695
+ :type _request_timeout: int, tuple(int, int), optional
1696
+ :param _request_auth: set to override the auth_settings for an a single
1697
+ request; this effectively ignores the
1698
+ authentication in the spec for a single request.
1699
+ :type _request_auth: dict, optional
1700
+ :param _content_type: force content-type for the request.
1701
+ :type _content_type: str, Optional
1702
+ :param _headers: set to override the headers for a single
1703
+ request; this effectively ignores the headers
1704
+ in the spec for a single request.
1705
+ :type _headers: dict, optional
1706
+ :param _host_index: set to override the host_index for a single
1707
+ request; this effectively ignores the host_index
1708
+ in the spec for a single request.
1709
+ :type _host_index: int, optional
1710
+ :return: Returns the result object.
1711
+ """ # noqa: E501
1712
+
1713
+ _param = self._get_perfusions_serialize(
1714
+ subject_id=subject_id,
1715
+ _request_auth=_request_auth,
1716
+ _content_type=_content_type,
1717
+ _headers=_headers,
1718
+ _host_index=_host_index
1719
+ )
1720
+
1721
+ _response_types_map: Dict[str, Optional[str]] = {
1722
+ '200': "object",
1723
+ '422': "HTTPValidationError",
1724
+ }
1725
+ response_data = await self.api_client.call_api(
1726
+ *_param,
1727
+ _request_timeout=_request_timeout
1728
+ )
1729
+ await response_data.read()
1730
+ return self.api_client.response_deserialize(
1731
+ response_data=response_data,
1732
+ response_types_map=_response_types_map,
1733
+ ).data
1734
+
1735
+
1736
+ @validate_call
1737
+ async def get_perfusions_with_http_info(
1738
+ self,
1739
+ subject_id: StrictStr,
1740
+ _request_timeout: Union[
1741
+ None,
1742
+ Annotated[StrictFloat, Field(gt=0)],
1743
+ Tuple[
1744
+ Annotated[StrictFloat, Field(gt=0)],
1745
+ Annotated[StrictFloat, Field(gt=0)]
1746
+ ]
1747
+ ] = None,
1748
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1749
+ _content_type: Optional[StrictStr] = None,
1750
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1751
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1752
+ ) -> ApiResponse[object]:
1753
+ """Get Perfusions
1754
+
1755
+ ## Perfusions Return Perfusions metadata.
1756
+
1757
+ :param subject_id: (required)
1758
+ :type subject_id: str
1759
+ :param _request_timeout: timeout setting for this request. If one
1760
+ number provided, it will be total request
1761
+ timeout. It can also be a pair (tuple) of
1762
+ (connection, read) timeouts.
1763
+ :type _request_timeout: int, tuple(int, int), optional
1764
+ :param _request_auth: set to override the auth_settings for an a single
1765
+ request; this effectively ignores the
1766
+ authentication in the spec for a single request.
1767
+ :type _request_auth: dict, optional
1768
+ :param _content_type: force content-type for the request.
1769
+ :type _content_type: str, Optional
1770
+ :param _headers: set to override the headers for a single
1771
+ request; this effectively ignores the headers
1772
+ in the spec for a single request.
1773
+ :type _headers: dict, optional
1774
+ :param _host_index: set to override the host_index for a single
1775
+ request; this effectively ignores the host_index
1776
+ in the spec for a single request.
1777
+ :type _host_index: int, optional
1778
+ :return: Returns the result object.
1779
+ """ # noqa: E501
1780
+
1781
+ _param = self._get_perfusions_serialize(
1782
+ subject_id=subject_id,
1783
+ _request_auth=_request_auth,
1784
+ _content_type=_content_type,
1785
+ _headers=_headers,
1786
+ _host_index=_host_index
1787
+ )
1788
+
1789
+ _response_types_map: Dict[str, Optional[str]] = {
1790
+ '200': "object",
1791
+ '422': "HTTPValidationError",
1792
+ }
1793
+ response_data = await self.api_client.call_api(
1794
+ *_param,
1795
+ _request_timeout=_request_timeout
1796
+ )
1797
+ await response_data.read()
1798
+ return self.api_client.response_deserialize(
1799
+ response_data=response_data,
1800
+ response_types_map=_response_types_map,
1801
+ )
1802
+
1803
+
1804
+ @validate_call
1805
+ async def get_perfusions_without_preload_content(
1806
+ self,
1807
+ subject_id: StrictStr,
1808
+ _request_timeout: Union[
1809
+ None,
1810
+ Annotated[StrictFloat, Field(gt=0)],
1811
+ Tuple[
1812
+ Annotated[StrictFloat, Field(gt=0)],
1813
+ Annotated[StrictFloat, Field(gt=0)]
1814
+ ]
1815
+ ] = None,
1816
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1817
+ _content_type: Optional[StrictStr] = None,
1818
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1819
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1820
+ ) -> RESTResponseType:
1821
+ """Get Perfusions
1822
+
1823
+ ## Perfusions Return Perfusions metadata.
1824
+
1825
+ :param subject_id: (required)
1826
+ :type subject_id: str
1827
+ :param _request_timeout: timeout setting for this request. If one
1828
+ number provided, it will be total request
1829
+ timeout. It can also be a pair (tuple) of
1830
+ (connection, read) timeouts.
1831
+ :type _request_timeout: int, tuple(int, int), optional
1832
+ :param _request_auth: set to override the auth_settings for an a single
1833
+ request; this effectively ignores the
1834
+ authentication in the spec for a single request.
1835
+ :type _request_auth: dict, optional
1836
+ :param _content_type: force content-type for the request.
1837
+ :type _content_type: str, Optional
1838
+ :param _headers: set to override the headers for a single
1839
+ request; this effectively ignores the headers
1840
+ in the spec for a single request.
1841
+ :type _headers: dict, optional
1842
+ :param _host_index: set to override the host_index for a single
1843
+ request; this effectively ignores the host_index
1844
+ in the spec for a single request.
1845
+ :type _host_index: int, optional
1846
+ :return: Returns the result object.
1847
+ """ # noqa: E501
1848
+
1849
+ _param = self._get_perfusions_serialize(
1850
+ subject_id=subject_id,
1851
+ _request_auth=_request_auth,
1852
+ _content_type=_content_type,
1853
+ _headers=_headers,
1854
+ _host_index=_host_index
1855
+ )
1856
+
1857
+ _response_types_map: Dict[str, Optional[str]] = {
1858
+ '200': "object",
1859
+ '422': "HTTPValidationError",
1860
+ }
1861
+ response_data = await self.api_client.call_api(
1862
+ *_param,
1863
+ _request_timeout=_request_timeout
1864
+ )
1865
+ return response_data.response
1866
+
1867
+
1868
+ def _get_perfusions_serialize(
1869
+ self,
1870
+ subject_id,
1871
+ _request_auth,
1872
+ _content_type,
1873
+ _headers,
1874
+ _host_index,
1875
+ ) -> RequestSerialized:
1876
+
1877
+ _host = None
1878
+
1879
+ _collection_formats: Dict[str, str] = {
1880
+ }
1881
+
1882
+ _path_params: Dict[str, str] = {}
1883
+ _query_params: List[Tuple[str, str]] = []
1884
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1885
+ _form_params: List[Tuple[str, str]] = []
1886
+ _files: Dict[
1887
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1888
+ ] = {}
1889
+ _body_params: Optional[bytes] = None
1890
+
1891
+ # process the path parameters
1892
+ if subject_id is not None:
1893
+ _path_params['subject_id'] = subject_id
1894
+ # process the query parameters
1895
+ # process the header parameters
1896
+ # process the form parameters
1897
+ # process the body parameter
1898
+
1899
+
1900
+ # set the HTTP header `Accept`
1901
+ if 'Accept' not in _header_params:
1902
+ _header_params['Accept'] = self.api_client.select_header_accept(
1903
+ [
1904
+ 'application/json'
1905
+ ]
1906
+ )
1907
+
1908
+
1909
+ # authentication setting
1910
+ _auth_settings: List[str] = [
1911
+ ]
1912
+
1913
+ return self.api_client.param_serialize(
1914
+ method='GET',
1915
+ resource_path='/perfusions/{subject_id}',
1916
+ path_params=_path_params,
1917
+ query_params=_query_params,
1918
+ header_params=_header_params,
1919
+ body=_body_params,
1920
+ post_params=_form_params,
1921
+ files=_files,
1922
+ auth_settings=_auth_settings,
1923
+ collection_formats=_collection_formats,
1924
+ _host=_host,
1925
+ _request_auth=_request_auth
1926
+ )
1927
+
1928
+
1929
+
1930
+
1931
+ @validate_call
1932
+ async def get_procedures(
1933
+ self,
1934
+ subject_id: StrictStr,
1935
+ _request_timeout: Union[
1936
+ None,
1937
+ Annotated[StrictFloat, Field(gt=0)],
1938
+ Tuple[
1939
+ Annotated[StrictFloat, Field(gt=0)],
1940
+ Annotated[StrictFloat, Field(gt=0)]
1941
+ ]
1942
+ ] = None,
1943
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1944
+ _content_type: Optional[StrictStr] = None,
1945
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1946
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1947
+ ) -> object:
1948
+ """Get Procedures
1949
+
1950
+ ## Procedures Return Procedure metadata.
1951
+
1952
+ :param subject_id: (required)
1953
+ :type subject_id: str
1954
+ :param _request_timeout: timeout setting for this request. If one
1955
+ number provided, it will be total request
1956
+ timeout. It can also be a pair (tuple) of
1957
+ (connection, read) timeouts.
1958
+ :type _request_timeout: int, tuple(int, int), optional
1959
+ :param _request_auth: set to override the auth_settings for an a single
1960
+ request; this effectively ignores the
1961
+ authentication in the spec for a single request.
1962
+ :type _request_auth: dict, optional
1963
+ :param _content_type: force content-type for the request.
1964
+ :type _content_type: str, Optional
1965
+ :param _headers: set to override the headers for a single
1966
+ request; this effectively ignores the headers
1967
+ in the spec for a single request.
1968
+ :type _headers: dict, optional
1969
+ :param _host_index: set to override the host_index for a single
1970
+ request; this effectively ignores the host_index
1971
+ in the spec for a single request.
1972
+ :type _host_index: int, optional
1973
+ :return: Returns the result object.
1974
+ """ # noqa: E501
1975
+
1976
+ _param = self._get_procedures_serialize(
1977
+ subject_id=subject_id,
1978
+ _request_auth=_request_auth,
1979
+ _content_type=_content_type,
1980
+ _headers=_headers,
1981
+ _host_index=_host_index
1982
+ )
1983
+
1984
+ _response_types_map: Dict[str, Optional[str]] = {
1985
+ '200': "object",
1986
+ '422': "HTTPValidationError",
1987
+ }
1988
+ response_data = await self.api_client.call_api(
1989
+ *_param,
1990
+ _request_timeout=_request_timeout
1991
+ )
1992
+ await response_data.read()
1993
+ return self.api_client.response_deserialize(
1994
+ response_data=response_data,
1995
+ response_types_map=_response_types_map,
1996
+ ).data
1997
+
1998
+
1999
+ @validate_call
2000
+ async def get_procedures_with_http_info(
2001
+ self,
2002
+ subject_id: StrictStr,
2003
+ _request_timeout: Union[
2004
+ None,
2005
+ Annotated[StrictFloat, Field(gt=0)],
2006
+ Tuple[
2007
+ Annotated[StrictFloat, Field(gt=0)],
2008
+ Annotated[StrictFloat, Field(gt=0)]
2009
+ ]
2010
+ ] = None,
2011
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2012
+ _content_type: Optional[StrictStr] = None,
2013
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2014
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2015
+ ) -> ApiResponse[object]:
2016
+ """Get Procedures
2017
+
2018
+ ## Procedures Return Procedure metadata.
2019
+
2020
+ :param subject_id: (required)
2021
+ :type subject_id: str
2022
+ :param _request_timeout: timeout setting for this request. If one
2023
+ number provided, it will be total request
2024
+ timeout. It can also be a pair (tuple) of
2025
+ (connection, read) timeouts.
2026
+ :type _request_timeout: int, tuple(int, int), optional
2027
+ :param _request_auth: set to override the auth_settings for an a single
2028
+ request; this effectively ignores the
2029
+ authentication in the spec for a single request.
2030
+ :type _request_auth: dict, optional
2031
+ :param _content_type: force content-type for the request.
2032
+ :type _content_type: str, Optional
2033
+ :param _headers: set to override the headers for a single
2034
+ request; this effectively ignores the headers
2035
+ in the spec for a single request.
2036
+ :type _headers: dict, optional
2037
+ :param _host_index: set to override the host_index for a single
2038
+ request; this effectively ignores the host_index
2039
+ in the spec for a single request.
2040
+ :type _host_index: int, optional
2041
+ :return: Returns the result object.
2042
+ """ # noqa: E501
2043
+
2044
+ _param = self._get_procedures_serialize(
2045
+ subject_id=subject_id,
2046
+ _request_auth=_request_auth,
2047
+ _content_type=_content_type,
2048
+ _headers=_headers,
2049
+ _host_index=_host_index
2050
+ )
2051
+
2052
+ _response_types_map: Dict[str, Optional[str]] = {
2053
+ '200': "object",
2054
+ '422': "HTTPValidationError",
2055
+ }
2056
+ response_data = await self.api_client.call_api(
2057
+ *_param,
2058
+ _request_timeout=_request_timeout
2059
+ )
2060
+ await response_data.read()
2061
+ return self.api_client.response_deserialize(
2062
+ response_data=response_data,
2063
+ response_types_map=_response_types_map,
2064
+ )
2065
+
2066
+
2067
+ @validate_call
2068
+ async def get_procedures_without_preload_content(
2069
+ self,
2070
+ subject_id: StrictStr,
2071
+ _request_timeout: Union[
2072
+ None,
2073
+ Annotated[StrictFloat, Field(gt=0)],
2074
+ Tuple[
2075
+ Annotated[StrictFloat, Field(gt=0)],
2076
+ Annotated[StrictFloat, Field(gt=0)]
2077
+ ]
2078
+ ] = None,
2079
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2080
+ _content_type: Optional[StrictStr] = None,
2081
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2082
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2083
+ ) -> RESTResponseType:
2084
+ """Get Procedures
2085
+
2086
+ ## Procedures Return Procedure metadata.
2087
+
2088
+ :param subject_id: (required)
2089
+ :type subject_id: str
2090
+ :param _request_timeout: timeout setting for this request. If one
2091
+ number provided, it will be total request
2092
+ timeout. It can also be a pair (tuple) of
2093
+ (connection, read) timeouts.
2094
+ :type _request_timeout: int, tuple(int, int), optional
2095
+ :param _request_auth: set to override the auth_settings for an a single
2096
+ request; this effectively ignores the
2097
+ authentication in the spec for a single request.
2098
+ :type _request_auth: dict, optional
2099
+ :param _content_type: force content-type for the request.
2100
+ :type _content_type: str, Optional
2101
+ :param _headers: set to override the headers for a single
2102
+ request; this effectively ignores the headers
2103
+ in the spec for a single request.
2104
+ :type _headers: dict, optional
2105
+ :param _host_index: set to override the host_index for a single
2106
+ request; this effectively ignores the host_index
2107
+ in the spec for a single request.
2108
+ :type _host_index: int, optional
2109
+ :return: Returns the result object.
2110
+ """ # noqa: E501
2111
+
2112
+ _param = self._get_procedures_serialize(
2113
+ subject_id=subject_id,
2114
+ _request_auth=_request_auth,
2115
+ _content_type=_content_type,
2116
+ _headers=_headers,
2117
+ _host_index=_host_index
2118
+ )
2119
+
2120
+ _response_types_map: Dict[str, Optional[str]] = {
2121
+ '200': "object",
2122
+ '422': "HTTPValidationError",
2123
+ }
2124
+ response_data = await self.api_client.call_api(
2125
+ *_param,
2126
+ _request_timeout=_request_timeout
2127
+ )
2128
+ return response_data.response
2129
+
2130
+
2131
+ def _get_procedures_serialize(
2132
+ self,
2133
+ subject_id,
2134
+ _request_auth,
2135
+ _content_type,
2136
+ _headers,
2137
+ _host_index,
2138
+ ) -> RequestSerialized:
2139
+
2140
+ _host = None
2141
+
2142
+ _collection_formats: Dict[str, str] = {
2143
+ }
2144
+
2145
+ _path_params: Dict[str, str] = {}
2146
+ _query_params: List[Tuple[str, str]] = []
2147
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2148
+ _form_params: List[Tuple[str, str]] = []
2149
+ _files: Dict[
2150
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2151
+ ] = {}
2152
+ _body_params: Optional[bytes] = None
2153
+
2154
+ # process the path parameters
2155
+ if subject_id is not None:
2156
+ _path_params['subject_id'] = subject_id
2157
+ # process the query parameters
2158
+ # process the header parameters
2159
+ # process the form parameters
2160
+ # process the body parameter
2161
+
2162
+
2163
+ # set the HTTP header `Accept`
2164
+ if 'Accept' not in _header_params:
2165
+ _header_params['Accept'] = self.api_client.select_header_accept(
2166
+ [
2167
+ 'application/json'
2168
+ ]
2169
+ )
2170
+
2171
+
2172
+ # authentication setting
2173
+ _auth_settings: List[str] = [
2174
+ ]
2175
+
2176
+ return self.api_client.param_serialize(
2177
+ method='GET',
2178
+ resource_path='/procedures/{subject_id}',
2179
+ path_params=_path_params,
2180
+ query_params=_query_params,
2181
+ header_params=_header_params,
2182
+ body=_body_params,
2183
+ post_params=_form_params,
2184
+ files=_files,
2185
+ auth_settings=_auth_settings,
2186
+ collection_formats=_collection_formats,
2187
+ _host=_host,
2188
+ _request_auth=_request_auth
2189
+ )
2190
+
2191
+
2192
+
2193
+
2194
+ @validate_call
2195
+ async def get_project_names(
2196
+ self,
2197
+ _request_timeout: Union[
2198
+ None,
2199
+ Annotated[StrictFloat, Field(gt=0)],
2200
+ Tuple[
2201
+ Annotated[StrictFloat, Field(gt=0)],
2202
+ Annotated[StrictFloat, Field(gt=0)]
2203
+ ]
2204
+ ] = None,
2205
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2206
+ _content_type: Optional[StrictStr] = None,
2207
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2208
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2209
+ ) -> object:
2210
+ """Get Project Names
2211
+
2212
+ Get a list of project names from the Smartsheet API.
2213
+
2214
+ :param _request_timeout: timeout setting for this request. If one
2215
+ number provided, it will be total request
2216
+ timeout. It can also be a pair (tuple) of
2217
+ (connection, read) timeouts.
2218
+ :type _request_timeout: int, tuple(int, int), optional
2219
+ :param _request_auth: set to override the auth_settings for an a single
2220
+ request; this effectively ignores the
2221
+ authentication in the spec for a single request.
2222
+ :type _request_auth: dict, optional
2223
+ :param _content_type: force content-type for the request.
2224
+ :type _content_type: str, Optional
2225
+ :param _headers: set to override the headers for a single
2226
+ request; this effectively ignores the headers
2227
+ in the spec for a single request.
2228
+ :type _headers: dict, optional
2229
+ :param _host_index: set to override the host_index for a single
2230
+ request; this effectively ignores the host_index
2231
+ in the spec for a single request.
2232
+ :type _host_index: int, optional
2233
+ :return: Returns the result object.
2234
+ """ # noqa: E501
2235
+
2236
+ _param = self._get_project_names_serialize(
2237
+ _request_auth=_request_auth,
2238
+ _content_type=_content_type,
2239
+ _headers=_headers,
2240
+ _host_index=_host_index
2241
+ )
2242
+
2243
+ _response_types_map: Dict[str, Optional[str]] = {
2244
+ '200': "object",
2245
+ }
2246
+ response_data = await self.api_client.call_api(
2247
+ *_param,
2248
+ _request_timeout=_request_timeout
2249
+ )
2250
+ await response_data.read()
2251
+ return self.api_client.response_deserialize(
2252
+ response_data=response_data,
2253
+ response_types_map=_response_types_map,
2254
+ ).data
2255
+
2256
+
2257
+ @validate_call
2258
+ async def get_project_names_with_http_info(
2259
+ self,
2260
+ _request_timeout: Union[
2261
+ None,
2262
+ Annotated[StrictFloat, Field(gt=0)],
2263
+ Tuple[
2264
+ Annotated[StrictFloat, Field(gt=0)],
2265
+ Annotated[StrictFloat, Field(gt=0)]
2266
+ ]
2267
+ ] = None,
2268
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2269
+ _content_type: Optional[StrictStr] = None,
2270
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2271
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2272
+ ) -> ApiResponse[object]:
2273
+ """Get Project Names
2274
+
2275
+ Get a list of project names from the Smartsheet API.
2276
+
2277
+ :param _request_timeout: timeout setting for this request. If one
2278
+ number provided, it will be total request
2279
+ timeout. It can also be a pair (tuple) of
2280
+ (connection, read) timeouts.
2281
+ :type _request_timeout: int, tuple(int, int), optional
2282
+ :param _request_auth: set to override the auth_settings for an a single
2283
+ request; this effectively ignores the
2284
+ authentication in the spec for a single request.
2285
+ :type _request_auth: dict, optional
2286
+ :param _content_type: force content-type for the request.
2287
+ :type _content_type: str, Optional
2288
+ :param _headers: set to override the headers for a single
2289
+ request; this effectively ignores the headers
2290
+ in the spec for a single request.
2291
+ :type _headers: dict, optional
2292
+ :param _host_index: set to override the host_index for a single
2293
+ request; this effectively ignores the host_index
2294
+ in the spec for a single request.
2295
+ :type _host_index: int, optional
2296
+ :return: Returns the result object.
2297
+ """ # noqa: E501
2298
+
2299
+ _param = self._get_project_names_serialize(
2300
+ _request_auth=_request_auth,
2301
+ _content_type=_content_type,
2302
+ _headers=_headers,
2303
+ _host_index=_host_index
2304
+ )
2305
+
2306
+ _response_types_map: Dict[str, Optional[str]] = {
2307
+ '200': "object",
2308
+ }
2309
+ response_data = await self.api_client.call_api(
2310
+ *_param,
2311
+ _request_timeout=_request_timeout
2312
+ )
2313
+ await response_data.read()
2314
+ return self.api_client.response_deserialize(
2315
+ response_data=response_data,
2316
+ response_types_map=_response_types_map,
2317
+ )
2318
+
2319
+
2320
+ @validate_call
2321
+ async def get_project_names_without_preload_content(
2322
+ self,
2323
+ _request_timeout: Union[
2324
+ None,
2325
+ Annotated[StrictFloat, Field(gt=0)],
2326
+ Tuple[
2327
+ Annotated[StrictFloat, Field(gt=0)],
2328
+ Annotated[StrictFloat, Field(gt=0)]
2329
+ ]
2330
+ ] = None,
2331
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2332
+ _content_type: Optional[StrictStr] = None,
2333
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2334
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2335
+ ) -> RESTResponseType:
2336
+ """Get Project Names
2337
+
2338
+ Get a list of project names from the Smartsheet API.
2339
+
2340
+ :param _request_timeout: timeout setting for this request. If one
2341
+ number provided, it will be total request
2342
+ timeout. It can also be a pair (tuple) of
2343
+ (connection, read) timeouts.
2344
+ :type _request_timeout: int, tuple(int, int), optional
2345
+ :param _request_auth: set to override the auth_settings for an a single
2346
+ request; this effectively ignores the
2347
+ authentication in the spec for a single request.
2348
+ :type _request_auth: dict, optional
2349
+ :param _content_type: force content-type for the request.
2350
+ :type _content_type: str, Optional
2351
+ :param _headers: set to override the headers for a single
2352
+ request; this effectively ignores the headers
2353
+ in the spec for a single request.
2354
+ :type _headers: dict, optional
2355
+ :param _host_index: set to override the host_index for a single
2356
+ request; this effectively ignores the host_index
2357
+ in the spec for a single request.
2358
+ :type _host_index: int, optional
2359
+ :return: Returns the result object.
2360
+ """ # noqa: E501
2361
+
2362
+ _param = self._get_project_names_serialize(
2363
+ _request_auth=_request_auth,
2364
+ _content_type=_content_type,
2365
+ _headers=_headers,
2366
+ _host_index=_host_index
2367
+ )
2368
+
2369
+ _response_types_map: Dict[str, Optional[str]] = {
2370
+ '200': "object",
2371
+ }
2372
+ response_data = await self.api_client.call_api(
2373
+ *_param,
2374
+ _request_timeout=_request_timeout
2375
+ )
2376
+ return response_data.response
2377
+
2378
+
2379
+ def _get_project_names_serialize(
2380
+ self,
2381
+ _request_auth,
2382
+ _content_type,
2383
+ _headers,
2384
+ _host_index,
2385
+ ) -> RequestSerialized:
2386
+
2387
+ _host = None
2388
+
2389
+ _collection_formats: Dict[str, str] = {
2390
+ }
2391
+
2392
+ _path_params: Dict[str, str] = {}
2393
+ _query_params: List[Tuple[str, str]] = []
2394
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2395
+ _form_params: List[Tuple[str, str]] = []
2396
+ _files: Dict[
2397
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2398
+ ] = {}
2399
+ _body_params: Optional[bytes] = None
2400
+
2401
+ # process the path parameters
2402
+ # process the query parameters
2403
+ # process the header parameters
2404
+ # process the form parameters
2405
+ # process the body parameter
2406
+
2407
+
2408
+ # set the HTTP header `Accept`
2409
+ if 'Accept' not in _header_params:
2410
+ _header_params['Accept'] = self.api_client.select_header_accept(
2411
+ [
2412
+ 'application/json'
2413
+ ]
2414
+ )
2415
+
2416
+
2417
+ # authentication setting
2418
+ _auth_settings: List[str] = [
2419
+ ]
2420
+
2421
+ return self.api_client.param_serialize(
2422
+ method='GET',
2423
+ resource_path='/project_names',
2424
+ path_params=_path_params,
2425
+ query_params=_query_params,
2426
+ header_params=_header_params,
2427
+ body=_body_params,
2428
+ post_params=_form_params,
2429
+ files=_files,
2430
+ auth_settings=_auth_settings,
2431
+ collection_formats=_collection_formats,
2432
+ _host=_host,
2433
+ _request_auth=_request_auth
2434
+ )
2435
+
2436
+
2437
+
2438
+
2439
+ @validate_call
2440
+ async def get_protocols(
2441
+ self,
2442
+ protocol_name: StrictStr,
2443
+ _request_timeout: Union[
2444
+ None,
2445
+ Annotated[StrictFloat, Field(gt=0)],
2446
+ Tuple[
2447
+ Annotated[StrictFloat, Field(gt=0)],
2448
+ Annotated[StrictFloat, Field(gt=0)]
2449
+ ]
2450
+ ] = None,
2451
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2452
+ _content_type: Optional[StrictStr] = None,
2453
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2454
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2455
+ ) -> object:
2456
+ """Get Protocols
2457
+
2458
+ ## Protocols Return Protocols metadata.
2459
+
2460
+ :param protocol_name: (required)
2461
+ :type protocol_name: str
2462
+ :param _request_timeout: timeout setting for this request. If one
2463
+ number provided, it will be total request
2464
+ timeout. It can also be a pair (tuple) of
2465
+ (connection, read) timeouts.
2466
+ :type _request_timeout: int, tuple(int, int), optional
2467
+ :param _request_auth: set to override the auth_settings for an a single
2468
+ request; this effectively ignores the
2469
+ authentication in the spec for a single request.
2470
+ :type _request_auth: dict, optional
2471
+ :param _content_type: force content-type for the request.
2472
+ :type _content_type: str, Optional
2473
+ :param _headers: set to override the headers for a single
2474
+ request; this effectively ignores the headers
2475
+ in the spec for a single request.
2476
+ :type _headers: dict, optional
2477
+ :param _host_index: set to override the host_index for a single
2478
+ request; this effectively ignores the host_index
2479
+ in the spec for a single request.
2480
+ :type _host_index: int, optional
2481
+ :return: Returns the result object.
2482
+ """ # noqa: E501
2483
+
2484
+ _param = self._get_protocols_serialize(
2485
+ protocol_name=protocol_name,
2486
+ _request_auth=_request_auth,
2487
+ _content_type=_content_type,
2488
+ _headers=_headers,
2489
+ _host_index=_host_index
2490
+ )
2491
+
2492
+ _response_types_map: Dict[str, Optional[str]] = {
2493
+ '200': "object",
2494
+ '422': "HTTPValidationError",
2495
+ }
2496
+ response_data = await self.api_client.call_api(
2497
+ *_param,
2498
+ _request_timeout=_request_timeout
2499
+ )
2500
+ await response_data.read()
2501
+ return self.api_client.response_deserialize(
2502
+ response_data=response_data,
2503
+ response_types_map=_response_types_map,
2504
+ ).data
2505
+
2506
+
2507
+ @validate_call
2508
+ async def get_protocols_with_http_info(
2509
+ self,
2510
+ protocol_name: StrictStr,
2511
+ _request_timeout: Union[
2512
+ None,
2513
+ Annotated[StrictFloat, Field(gt=0)],
2514
+ Tuple[
2515
+ Annotated[StrictFloat, Field(gt=0)],
2516
+ Annotated[StrictFloat, Field(gt=0)]
2517
+ ]
2518
+ ] = None,
2519
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2520
+ _content_type: Optional[StrictStr] = None,
2521
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2522
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2523
+ ) -> ApiResponse[object]:
2524
+ """Get Protocols
2525
+
2526
+ ## Protocols Return Protocols metadata.
2527
+
2528
+ :param protocol_name: (required)
2529
+ :type protocol_name: str
2530
+ :param _request_timeout: timeout setting for this request. If one
2531
+ number provided, it will be total request
2532
+ timeout. It can also be a pair (tuple) of
2533
+ (connection, read) timeouts.
2534
+ :type _request_timeout: int, tuple(int, int), optional
2535
+ :param _request_auth: set to override the auth_settings for an a single
2536
+ request; this effectively ignores the
2537
+ authentication in the spec for a single request.
2538
+ :type _request_auth: dict, optional
2539
+ :param _content_type: force content-type for the request.
2540
+ :type _content_type: str, Optional
2541
+ :param _headers: set to override the headers for a single
2542
+ request; this effectively ignores the headers
2543
+ in the spec for a single request.
2544
+ :type _headers: dict, optional
2545
+ :param _host_index: set to override the host_index for a single
2546
+ request; this effectively ignores the host_index
2547
+ in the spec for a single request.
2548
+ :type _host_index: int, optional
2549
+ :return: Returns the result object.
2550
+ """ # noqa: E501
2551
+
2552
+ _param = self._get_protocols_serialize(
2553
+ protocol_name=protocol_name,
2554
+ _request_auth=_request_auth,
2555
+ _content_type=_content_type,
2556
+ _headers=_headers,
2557
+ _host_index=_host_index
2558
+ )
2559
+
2560
+ _response_types_map: Dict[str, Optional[str]] = {
2561
+ '200': "object",
2562
+ '422': "HTTPValidationError",
2563
+ }
2564
+ response_data = await self.api_client.call_api(
2565
+ *_param,
2566
+ _request_timeout=_request_timeout
2567
+ )
2568
+ await response_data.read()
2569
+ return self.api_client.response_deserialize(
2570
+ response_data=response_data,
2571
+ response_types_map=_response_types_map,
2572
+ )
2573
+
2574
+
2575
+ @validate_call
2576
+ async def get_protocols_without_preload_content(
2577
+ self,
2578
+ protocol_name: StrictStr,
2579
+ _request_timeout: Union[
2580
+ None,
2581
+ Annotated[StrictFloat, Field(gt=0)],
2582
+ Tuple[
2583
+ Annotated[StrictFloat, Field(gt=0)],
2584
+ Annotated[StrictFloat, Field(gt=0)]
2585
+ ]
2586
+ ] = None,
2587
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2588
+ _content_type: Optional[StrictStr] = None,
2589
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2590
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2591
+ ) -> RESTResponseType:
2592
+ """Get Protocols
2593
+
2594
+ ## Protocols Return Protocols metadata.
2595
+
2596
+ :param protocol_name: (required)
2597
+ :type protocol_name: str
2598
+ :param _request_timeout: timeout setting for this request. If one
2599
+ number provided, it will be total request
2600
+ timeout. It can also be a pair (tuple) of
2601
+ (connection, read) timeouts.
2602
+ :type _request_timeout: int, tuple(int, int), optional
2603
+ :param _request_auth: set to override the auth_settings for an a single
2604
+ request; this effectively ignores the
2605
+ authentication in the spec for a single request.
2606
+ :type _request_auth: dict, optional
2607
+ :param _content_type: force content-type for the request.
2608
+ :type _content_type: str, Optional
2609
+ :param _headers: set to override the headers for a single
2610
+ request; this effectively ignores the headers
2611
+ in the spec for a single request.
2612
+ :type _headers: dict, optional
2613
+ :param _host_index: set to override the host_index for a single
2614
+ request; this effectively ignores the host_index
2615
+ in the spec for a single request.
2616
+ :type _host_index: int, optional
2617
+ :return: Returns the result object.
2618
+ """ # noqa: E501
2619
+
2620
+ _param = self._get_protocols_serialize(
2621
+ protocol_name=protocol_name,
2622
+ _request_auth=_request_auth,
2623
+ _content_type=_content_type,
2624
+ _headers=_headers,
2625
+ _host_index=_host_index
2626
+ )
2627
+
2628
+ _response_types_map: Dict[str, Optional[str]] = {
2629
+ '200': "object",
2630
+ '422': "HTTPValidationError",
2631
+ }
2632
+ response_data = await self.api_client.call_api(
2633
+ *_param,
2634
+ _request_timeout=_request_timeout
2635
+ )
2636
+ return response_data.response
2637
+
2638
+
2639
+ def _get_protocols_serialize(
2640
+ self,
2641
+ protocol_name,
2642
+ _request_auth,
2643
+ _content_type,
2644
+ _headers,
2645
+ _host_index,
2646
+ ) -> RequestSerialized:
2647
+
2648
+ _host = None
2649
+
2650
+ _collection_formats: Dict[str, str] = {
2651
+ }
2652
+
2653
+ _path_params: Dict[str, str] = {}
2654
+ _query_params: List[Tuple[str, str]] = []
2655
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2656
+ _form_params: List[Tuple[str, str]] = []
2657
+ _files: Dict[
2658
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2659
+ ] = {}
2660
+ _body_params: Optional[bytes] = None
2661
+
2662
+ # process the path parameters
2663
+ if protocol_name is not None:
2664
+ _path_params['protocol_name'] = protocol_name
2665
+ # process the query parameters
2666
+ # process the header parameters
2667
+ # process the form parameters
2668
+ # process the body parameter
2669
+
2670
+
2671
+ # set the HTTP header `Accept`
2672
+ if 'Accept' not in _header_params:
2673
+ _header_params['Accept'] = self.api_client.select_header_accept(
2674
+ [
2675
+ 'application/json'
2676
+ ]
2677
+ )
2678
+
2679
+
2680
+ # authentication setting
2681
+ _auth_settings: List[str] = [
2682
+ ]
2683
+
2684
+ return self.api_client.param_serialize(
2685
+ method='GET',
2686
+ resource_path='/protocols/{protocol_name}',
2687
+ path_params=_path_params,
2688
+ query_params=_query_params,
2689
+ header_params=_header_params,
2690
+ body=_body_params,
2691
+ post_params=_form_params,
2692
+ files=_files,
2693
+ auth_settings=_auth_settings,
2694
+ collection_formats=_collection_formats,
2695
+ _host=_host,
2696
+ _request_auth=_request_auth
2697
+ )
2698
+
2699
+
2700
+
2701
+
2702
+ @validate_call
2703
+ async def get_rig(
2704
+ self,
2705
+ rig_id: StrictStr,
2706
+ partial_match: Optional[StrictBool] = None,
2707
+ _request_timeout: Union[
2708
+ None,
2709
+ Annotated[StrictFloat, Field(gt=0)],
2710
+ Tuple[
2711
+ Annotated[StrictFloat, Field(gt=0)],
2712
+ Annotated[StrictFloat, Field(gt=0)]
2713
+ ]
2714
+ ] = None,
2715
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2716
+ _content_type: Optional[StrictStr] = None,
2717
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2718
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2719
+ ) -> object:
2720
+ """Get Rig
2721
+
2722
+ ## Rig Return a Rig.
2723
+
2724
+ :param rig_id: (required)
2725
+ :type rig_id: str
2726
+ :param partial_match:
2727
+ :type partial_match: bool
2728
+ :param _request_timeout: timeout setting for this request. If one
2729
+ number provided, it will be total request
2730
+ timeout. It can also be a pair (tuple) of
2731
+ (connection, read) timeouts.
2732
+ :type _request_timeout: int, tuple(int, int), optional
2733
+ :param _request_auth: set to override the auth_settings for an a single
2734
+ request; this effectively ignores the
2735
+ authentication in the spec for a single request.
2736
+ :type _request_auth: dict, optional
2737
+ :param _content_type: force content-type for the request.
2738
+ :type _content_type: str, Optional
2739
+ :param _headers: set to override the headers for a single
2740
+ request; this effectively ignores the headers
2741
+ in the spec for a single request.
2742
+ :type _headers: dict, optional
2743
+ :param _host_index: set to override the host_index for a single
2744
+ request; this effectively ignores the host_index
2745
+ in the spec for a single request.
2746
+ :type _host_index: int, optional
2747
+ :return: Returns the result object.
2748
+ """ # noqa: E501
2749
+
2750
+ _param = self._get_rig_serialize(
2751
+ rig_id=rig_id,
2752
+ partial_match=partial_match,
2753
+ _request_auth=_request_auth,
2754
+ _content_type=_content_type,
2755
+ _headers=_headers,
2756
+ _host_index=_host_index
2757
+ )
2758
+
2759
+ _response_types_map: Dict[str, Optional[str]] = {
2760
+ '200': "object",
2761
+ '422': "HTTPValidationError",
2762
+ }
2763
+ response_data = await self.api_client.call_api(
2764
+ *_param,
2765
+ _request_timeout=_request_timeout
2766
+ )
2767
+ await response_data.read()
2768
+ return self.api_client.response_deserialize(
2769
+ response_data=response_data,
2770
+ response_types_map=_response_types_map,
2771
+ ).data
2772
+
2773
+
2774
+ @validate_call
2775
+ async def get_rig_with_http_info(
2776
+ self,
2777
+ rig_id: StrictStr,
2778
+ partial_match: Optional[StrictBool] = None,
2779
+ _request_timeout: Union[
2780
+ None,
2781
+ Annotated[StrictFloat, Field(gt=0)],
2782
+ Tuple[
2783
+ Annotated[StrictFloat, Field(gt=0)],
2784
+ Annotated[StrictFloat, Field(gt=0)]
2785
+ ]
2786
+ ] = None,
2787
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2788
+ _content_type: Optional[StrictStr] = None,
2789
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2790
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2791
+ ) -> ApiResponse[object]:
2792
+ """Get Rig
2793
+
2794
+ ## Rig Return a Rig.
2795
+
2796
+ :param rig_id: (required)
2797
+ :type rig_id: str
2798
+ :param partial_match:
2799
+ :type partial_match: bool
2800
+ :param _request_timeout: timeout setting for this request. If one
2801
+ number provided, it will be total request
2802
+ timeout. It can also be a pair (tuple) of
2803
+ (connection, read) timeouts.
2804
+ :type _request_timeout: int, tuple(int, int), optional
2805
+ :param _request_auth: set to override the auth_settings for an a single
2806
+ request; this effectively ignores the
2807
+ authentication in the spec for a single request.
2808
+ :type _request_auth: dict, optional
2809
+ :param _content_type: force content-type for the request.
2810
+ :type _content_type: str, Optional
2811
+ :param _headers: set to override the headers for a single
2812
+ request; this effectively ignores the headers
2813
+ in the spec for a single request.
2814
+ :type _headers: dict, optional
2815
+ :param _host_index: set to override the host_index for a single
2816
+ request; this effectively ignores the host_index
2817
+ in the spec for a single request.
2818
+ :type _host_index: int, optional
2819
+ :return: Returns the result object.
2820
+ """ # noqa: E501
2821
+
2822
+ _param = self._get_rig_serialize(
2823
+ rig_id=rig_id,
2824
+ partial_match=partial_match,
2825
+ _request_auth=_request_auth,
2826
+ _content_type=_content_type,
2827
+ _headers=_headers,
2828
+ _host_index=_host_index
2829
+ )
2830
+
2831
+ _response_types_map: Dict[str, Optional[str]] = {
2832
+ '200': "object",
2833
+ '422': "HTTPValidationError",
2834
+ }
2835
+ response_data = await self.api_client.call_api(
2836
+ *_param,
2837
+ _request_timeout=_request_timeout
2838
+ )
2839
+ await response_data.read()
2840
+ return self.api_client.response_deserialize(
2841
+ response_data=response_data,
2842
+ response_types_map=_response_types_map,
2843
+ )
2844
+
2845
+
2846
+ @validate_call
2847
+ async def get_rig_without_preload_content(
2848
+ self,
2849
+ rig_id: StrictStr,
2850
+ partial_match: Optional[StrictBool] = None,
2851
+ _request_timeout: Union[
2852
+ None,
2853
+ Annotated[StrictFloat, Field(gt=0)],
2854
+ Tuple[
2855
+ Annotated[StrictFloat, Field(gt=0)],
2856
+ Annotated[StrictFloat, Field(gt=0)]
2857
+ ]
2858
+ ] = None,
2859
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2860
+ _content_type: Optional[StrictStr] = None,
2861
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2862
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2863
+ ) -> RESTResponseType:
2864
+ """Get Rig
2865
+
2866
+ ## Rig Return a Rig.
2867
+
2868
+ :param rig_id: (required)
2869
+ :type rig_id: str
2870
+ :param partial_match:
2871
+ :type partial_match: bool
2872
+ :param _request_timeout: timeout setting for this request. If one
2873
+ number provided, it will be total request
2874
+ timeout. It can also be a pair (tuple) of
2875
+ (connection, read) timeouts.
2876
+ :type _request_timeout: int, tuple(int, int), optional
2877
+ :param _request_auth: set to override the auth_settings for an a single
2878
+ request; this effectively ignores the
2879
+ authentication in the spec for a single request.
2880
+ :type _request_auth: dict, optional
2881
+ :param _content_type: force content-type for the request.
2882
+ :type _content_type: str, Optional
2883
+ :param _headers: set to override the headers for a single
2884
+ request; this effectively ignores the headers
2885
+ in the spec for a single request.
2886
+ :type _headers: dict, optional
2887
+ :param _host_index: set to override the host_index for a single
2888
+ request; this effectively ignores the host_index
2889
+ in the spec for a single request.
2890
+ :type _host_index: int, optional
2891
+ :return: Returns the result object.
2892
+ """ # noqa: E501
2893
+
2894
+ _param = self._get_rig_serialize(
2895
+ rig_id=rig_id,
2896
+ partial_match=partial_match,
2897
+ _request_auth=_request_auth,
2898
+ _content_type=_content_type,
2899
+ _headers=_headers,
2900
+ _host_index=_host_index
2901
+ )
2902
+
2903
+ _response_types_map: Dict[str, Optional[str]] = {
2904
+ '200': "object",
2905
+ '422': "HTTPValidationError",
2906
+ }
2907
+ response_data = await self.api_client.call_api(
2908
+ *_param,
2909
+ _request_timeout=_request_timeout
2910
+ )
2911
+ return response_data.response
2912
+
2913
+
2914
+ def _get_rig_serialize(
2915
+ self,
2916
+ rig_id,
2917
+ partial_match,
2918
+ _request_auth,
2919
+ _content_type,
2920
+ _headers,
2921
+ _host_index,
2922
+ ) -> RequestSerialized:
2923
+
2924
+ _host = None
2925
+
2926
+ _collection_formats: Dict[str, str] = {
2927
+ }
2928
+
2929
+ _path_params: Dict[str, str] = {}
2930
+ _query_params: List[Tuple[str, str]] = []
2931
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2932
+ _form_params: List[Tuple[str, str]] = []
2933
+ _files: Dict[
2934
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2935
+ ] = {}
2936
+ _body_params: Optional[bytes] = None
2937
+
2938
+ # process the path parameters
2939
+ if rig_id is not None:
2940
+ _path_params['rig_id'] = rig_id
2941
+ # process the query parameters
2942
+ if partial_match is not None:
2943
+
2944
+ _query_params.append(('partial_match', partial_match))
2945
+
2946
+ # process the header parameters
2947
+ # process the form parameters
2948
+ # process the body parameter
2949
+
2950
+
2951
+ # set the HTTP header `Accept`
2952
+ if 'Accept' not in _header_params:
2953
+ _header_params['Accept'] = self.api_client.select_header_accept(
2954
+ [
2955
+ 'application/json'
2956
+ ]
2957
+ )
2958
+
2959
+
2960
+ # authentication setting
2961
+ _auth_settings: List[str] = [
2962
+ ]
2963
+
2964
+ return self.api_client.param_serialize(
2965
+ method='GET',
2966
+ resource_path='/rig/{rig_id}',
2967
+ path_params=_path_params,
2968
+ query_params=_query_params,
2969
+ header_params=_header_params,
2970
+ body=_body_params,
2971
+ post_params=_form_params,
2972
+ files=_files,
2973
+ auth_settings=_auth_settings,
2974
+ collection_formats=_collection_formats,
2975
+ _host=_host,
2976
+ _request_auth=_request_auth
2977
+ )
2978
+
2979
+
2980
+
2981
+
2982
+ @validate_call
2983
+ async def get_slims_workflow(
2984
+ self,
2985
+ workflow: Annotated[SlimsWorkflow, Field(description="The SLIMS workflow to query.")],
2986
+ subject_id: Annotated[Optional[StrictStr], Field(description="Subject ID to filter the data.")] = None,
2987
+ session_name: Annotated[Optional[StrictStr], Field(description="Name of the session (only for ecephys sessions).")] = None,
2988
+ start_date_gte: Annotated[Optional[StrictStr], Field(description="Experiment run created on or after. (ISO format)")] = None,
2989
+ end_date_lte: Annotated[Optional[StrictStr], Field(description="Experiment run created on or before. (ISO format)")] = None,
2990
+ _request_timeout: Union[
2991
+ None,
2992
+ Annotated[StrictFloat, Field(gt=0)],
2993
+ Tuple[
2994
+ Annotated[StrictFloat, Field(gt=0)],
2995
+ Annotated[StrictFloat, Field(gt=0)]
2996
+ ]
2997
+ ] = None,
2998
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2999
+ _content_type: Optional[StrictStr] = None,
3000
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3001
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3002
+ ) -> object:
3003
+ """Get Slims Workflow
3004
+
3005
+ ## SLIMS Return information from SLIMS.
3006
+
3007
+ :param workflow: The SLIMS workflow to query. (required)
3008
+ :type workflow: SlimsWorkflow
3009
+ :param subject_id: Subject ID to filter the data.
3010
+ :type subject_id: str
3011
+ :param session_name: Name of the session (only for ecephys sessions).
3012
+ :type session_name: str
3013
+ :param start_date_gte: Experiment run created on or after. (ISO format)
3014
+ :type start_date_gte: str
3015
+ :param end_date_lte: Experiment run created on or before. (ISO format)
3016
+ :type end_date_lte: str
3017
+ :param _request_timeout: timeout setting for this request. If one
3018
+ number provided, it will be total request
3019
+ timeout. It can also be a pair (tuple) of
3020
+ (connection, read) timeouts.
3021
+ :type _request_timeout: int, tuple(int, int), optional
3022
+ :param _request_auth: set to override the auth_settings for an a single
3023
+ request; this effectively ignores the
3024
+ authentication in the spec for a single request.
3025
+ :type _request_auth: dict, optional
3026
+ :param _content_type: force content-type for the request.
3027
+ :type _content_type: str, Optional
3028
+ :param _headers: set to override the headers for a single
3029
+ request; this effectively ignores the headers
3030
+ in the spec for a single request.
3031
+ :type _headers: dict, optional
3032
+ :param _host_index: set to override the host_index for a single
3033
+ request; this effectively ignores the host_index
3034
+ in the spec for a single request.
3035
+ :type _host_index: int, optional
3036
+ :return: Returns the result object.
3037
+ """ # noqa: E501
3038
+
3039
+ _param = self._get_slims_workflow_serialize(
3040
+ workflow=workflow,
3041
+ subject_id=subject_id,
3042
+ session_name=session_name,
3043
+ start_date_gte=start_date_gte,
3044
+ end_date_lte=end_date_lte,
3045
+ _request_auth=_request_auth,
3046
+ _content_type=_content_type,
3047
+ _headers=_headers,
3048
+ _host_index=_host_index
3049
+ )
3050
+
3051
+ _response_types_map: Dict[str, Optional[str]] = {
3052
+ '200': "object",
3053
+ '422': "HTTPValidationError",
3054
+ }
3055
+ response_data = await self.api_client.call_api(
3056
+ *_param,
3057
+ _request_timeout=_request_timeout
3058
+ )
3059
+ await response_data.read()
3060
+ return self.api_client.response_deserialize(
3061
+ response_data=response_data,
3062
+ response_types_map=_response_types_map,
3063
+ ).data
3064
+
3065
+
3066
+ @validate_call
3067
+ async def get_slims_workflow_with_http_info(
3068
+ self,
3069
+ workflow: Annotated[SlimsWorkflow, Field(description="The SLIMS workflow to query.")],
3070
+ subject_id: Annotated[Optional[StrictStr], Field(description="Subject ID to filter the data.")] = None,
3071
+ session_name: Annotated[Optional[StrictStr], Field(description="Name of the session (only for ecephys sessions).")] = None,
3072
+ start_date_gte: Annotated[Optional[StrictStr], Field(description="Experiment run created on or after. (ISO format)")] = None,
3073
+ end_date_lte: Annotated[Optional[StrictStr], Field(description="Experiment run created on or before. (ISO format)")] = None,
3074
+ _request_timeout: Union[
3075
+ None,
3076
+ Annotated[StrictFloat, Field(gt=0)],
3077
+ Tuple[
3078
+ Annotated[StrictFloat, Field(gt=0)],
3079
+ Annotated[StrictFloat, Field(gt=0)]
3080
+ ]
3081
+ ] = None,
3082
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3083
+ _content_type: Optional[StrictStr] = None,
3084
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3085
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3086
+ ) -> ApiResponse[object]:
3087
+ """Get Slims Workflow
3088
+
3089
+ ## SLIMS Return information from SLIMS.
3090
+
3091
+ :param workflow: The SLIMS workflow to query. (required)
3092
+ :type workflow: SlimsWorkflow
3093
+ :param subject_id: Subject ID to filter the data.
3094
+ :type subject_id: str
3095
+ :param session_name: Name of the session (only for ecephys sessions).
3096
+ :type session_name: str
3097
+ :param start_date_gte: Experiment run created on or after. (ISO format)
3098
+ :type start_date_gte: str
3099
+ :param end_date_lte: Experiment run created on or before. (ISO format)
3100
+ :type end_date_lte: str
3101
+ :param _request_timeout: timeout setting for this request. If one
3102
+ number provided, it will be total request
3103
+ timeout. It can also be a pair (tuple) of
3104
+ (connection, read) timeouts.
3105
+ :type _request_timeout: int, tuple(int, int), optional
3106
+ :param _request_auth: set to override the auth_settings for an a single
3107
+ request; this effectively ignores the
3108
+ authentication in the spec for a single request.
3109
+ :type _request_auth: dict, optional
3110
+ :param _content_type: force content-type for the request.
3111
+ :type _content_type: str, Optional
3112
+ :param _headers: set to override the headers for a single
3113
+ request; this effectively ignores the headers
3114
+ in the spec for a single request.
3115
+ :type _headers: dict, optional
3116
+ :param _host_index: set to override the host_index for a single
3117
+ request; this effectively ignores the host_index
3118
+ in the spec for a single request.
3119
+ :type _host_index: int, optional
3120
+ :return: Returns the result object.
3121
+ """ # noqa: E501
3122
+
3123
+ _param = self._get_slims_workflow_serialize(
3124
+ workflow=workflow,
3125
+ subject_id=subject_id,
3126
+ session_name=session_name,
3127
+ start_date_gte=start_date_gte,
3128
+ end_date_lte=end_date_lte,
3129
+ _request_auth=_request_auth,
3130
+ _content_type=_content_type,
3131
+ _headers=_headers,
3132
+ _host_index=_host_index
3133
+ )
3134
+
3135
+ _response_types_map: Dict[str, Optional[str]] = {
3136
+ '200': "object",
3137
+ '422': "HTTPValidationError",
3138
+ }
3139
+ response_data = await self.api_client.call_api(
3140
+ *_param,
3141
+ _request_timeout=_request_timeout
3142
+ )
3143
+ await response_data.read()
3144
+ return self.api_client.response_deserialize(
3145
+ response_data=response_data,
3146
+ response_types_map=_response_types_map,
3147
+ )
3148
+
3149
+
3150
+ @validate_call
3151
+ async def get_slims_workflow_without_preload_content(
3152
+ self,
3153
+ workflow: Annotated[SlimsWorkflow, Field(description="The SLIMS workflow to query.")],
3154
+ subject_id: Annotated[Optional[StrictStr], Field(description="Subject ID to filter the data.")] = None,
3155
+ session_name: Annotated[Optional[StrictStr], Field(description="Name of the session (only for ecephys sessions).")] = None,
3156
+ start_date_gte: Annotated[Optional[StrictStr], Field(description="Experiment run created on or after. (ISO format)")] = None,
3157
+ end_date_lte: Annotated[Optional[StrictStr], Field(description="Experiment run created on or before. (ISO format)")] = None,
3158
+ _request_timeout: Union[
3159
+ None,
3160
+ Annotated[StrictFloat, Field(gt=0)],
3161
+ Tuple[
3162
+ Annotated[StrictFloat, Field(gt=0)],
3163
+ Annotated[StrictFloat, Field(gt=0)]
3164
+ ]
3165
+ ] = None,
3166
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3167
+ _content_type: Optional[StrictStr] = None,
3168
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3169
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3170
+ ) -> RESTResponseType:
3171
+ """Get Slims Workflow
3172
+
3173
+ ## SLIMS Return information from SLIMS.
3174
+
3175
+ :param workflow: The SLIMS workflow to query. (required)
3176
+ :type workflow: SlimsWorkflow
3177
+ :param subject_id: Subject ID to filter the data.
3178
+ :type subject_id: str
3179
+ :param session_name: Name of the session (only for ecephys sessions).
3180
+ :type session_name: str
3181
+ :param start_date_gte: Experiment run created on or after. (ISO format)
3182
+ :type start_date_gte: str
3183
+ :param end_date_lte: Experiment run created on or before. (ISO format)
3184
+ :type end_date_lte: str
3185
+ :param _request_timeout: timeout setting for this request. If one
3186
+ number provided, it will be total request
3187
+ timeout. It can also be a pair (tuple) of
3188
+ (connection, read) timeouts.
3189
+ :type _request_timeout: int, tuple(int, int), optional
3190
+ :param _request_auth: set to override the auth_settings for an a single
3191
+ request; this effectively ignores the
3192
+ authentication in the spec for a single request.
3193
+ :type _request_auth: dict, optional
3194
+ :param _content_type: force content-type for the request.
3195
+ :type _content_type: str, Optional
3196
+ :param _headers: set to override the headers for a single
3197
+ request; this effectively ignores the headers
3198
+ in the spec for a single request.
3199
+ :type _headers: dict, optional
3200
+ :param _host_index: set to override the host_index for a single
3201
+ request; this effectively ignores the host_index
3202
+ in the spec for a single request.
3203
+ :type _host_index: int, optional
3204
+ :return: Returns the result object.
3205
+ """ # noqa: E501
3206
+
3207
+ _param = self._get_slims_workflow_serialize(
3208
+ workflow=workflow,
3209
+ subject_id=subject_id,
3210
+ session_name=session_name,
3211
+ start_date_gte=start_date_gte,
3212
+ end_date_lte=end_date_lte,
3213
+ _request_auth=_request_auth,
3214
+ _content_type=_content_type,
3215
+ _headers=_headers,
3216
+ _host_index=_host_index
3217
+ )
3218
+
3219
+ _response_types_map: Dict[str, Optional[str]] = {
3220
+ '200': "object",
3221
+ '422': "HTTPValidationError",
3222
+ }
3223
+ response_data = await self.api_client.call_api(
3224
+ *_param,
3225
+ _request_timeout=_request_timeout
3226
+ )
3227
+ return response_data.response
3228
+
3229
+
3230
+ def _get_slims_workflow_serialize(
3231
+ self,
3232
+ workflow,
3233
+ subject_id,
3234
+ session_name,
3235
+ start_date_gte,
3236
+ end_date_lte,
3237
+ _request_auth,
3238
+ _content_type,
3239
+ _headers,
3240
+ _host_index,
3241
+ ) -> RequestSerialized:
3242
+
3243
+ _host = None
3244
+
3245
+ _collection_formats: Dict[str, str] = {
3246
+ }
3247
+
3248
+ _path_params: Dict[str, str] = {}
3249
+ _query_params: List[Tuple[str, str]] = []
3250
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3251
+ _form_params: List[Tuple[str, str]] = []
3252
+ _files: Dict[
3253
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3254
+ ] = {}
3255
+ _body_params: Optional[bytes] = None
3256
+
3257
+ # process the path parameters
3258
+ if workflow is not None:
3259
+ _path_params['workflow'] = workflow.value
3260
+ # process the query parameters
3261
+ if subject_id is not None:
3262
+
3263
+ _query_params.append(('subject_id', subject_id))
3264
+
3265
+ if session_name is not None:
3266
+
3267
+ _query_params.append(('session_name', session_name))
3268
+
3269
+ if start_date_gte is not None:
3270
+
3271
+ _query_params.append(('start_date_gte', start_date_gte))
3272
+
3273
+ if end_date_lte is not None:
3274
+
3275
+ _query_params.append(('end_date_lte', end_date_lte))
3276
+
3277
+ # process the header parameters
3278
+ # process the form parameters
3279
+ # process the body parameter
3280
+
3281
+
3282
+ # set the HTTP header `Accept`
3283
+ if 'Accept' not in _header_params:
3284
+ _header_params['Accept'] = self.api_client.select_header_accept(
3285
+ [
3286
+ 'application/json'
3287
+ ]
3288
+ )
3289
+
3290
+
3291
+ # authentication setting
3292
+ _auth_settings: List[str] = [
3293
+ ]
3294
+
3295
+ return self.api_client.param_serialize(
3296
+ method='GET',
3297
+ resource_path='/slims/{workflow}',
3298
+ path_params=_path_params,
3299
+ query_params=_query_params,
3300
+ header_params=_header_params,
3301
+ body=_body_params,
3302
+ post_params=_form_params,
3303
+ files=_files,
3304
+ auth_settings=_auth_settings,
3305
+ collection_formats=_collection_formats,
3306
+ _host=_host,
3307
+ _request_auth=_request_auth
3308
+ )
3309
+
3310
+
3311
+
3312
+
3313
+ @validate_call
3314
+ async def get_subject(
3315
+ self,
3316
+ subject_id: StrictStr,
3317
+ _request_timeout: Union[
3318
+ None,
3319
+ Annotated[StrictFloat, Field(gt=0)],
3320
+ Tuple[
3321
+ Annotated[StrictFloat, Field(gt=0)],
3322
+ Annotated[StrictFloat, Field(gt=0)]
3323
+ ]
3324
+ ] = None,
3325
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3326
+ _content_type: Optional[StrictStr] = None,
3327
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3328
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3329
+ ) -> object:
3330
+ """Get Subject
3331
+
3332
+ ## Subject Return Subject metadata.
3333
+
3334
+ :param subject_id: (required)
3335
+ :type subject_id: str
3336
+ :param _request_timeout: timeout setting for this request. If one
3337
+ number provided, it will be total request
3338
+ timeout. It can also be a pair (tuple) of
3339
+ (connection, read) timeouts.
3340
+ :type _request_timeout: int, tuple(int, int), optional
3341
+ :param _request_auth: set to override the auth_settings for an a single
3342
+ request; this effectively ignores the
3343
+ authentication in the spec for a single request.
3344
+ :type _request_auth: dict, optional
3345
+ :param _content_type: force content-type for the request.
3346
+ :type _content_type: str, Optional
3347
+ :param _headers: set to override the headers for a single
3348
+ request; this effectively ignores the headers
3349
+ in the spec for a single request.
3350
+ :type _headers: dict, optional
3351
+ :param _host_index: set to override the host_index for a single
3352
+ request; this effectively ignores the host_index
3353
+ in the spec for a single request.
3354
+ :type _host_index: int, optional
3355
+ :return: Returns the result object.
3356
+ """ # noqa: E501
3357
+
3358
+ _param = self._get_subject_serialize(
3359
+ subject_id=subject_id,
3360
+ _request_auth=_request_auth,
3361
+ _content_type=_content_type,
3362
+ _headers=_headers,
3363
+ _host_index=_host_index
3364
+ )
3365
+
3366
+ _response_types_map: Dict[str, Optional[str]] = {
3367
+ '200': "object",
3368
+ '422': "HTTPValidationError",
3369
+ }
3370
+ response_data = await self.api_client.call_api(
3371
+ *_param,
3372
+ _request_timeout=_request_timeout
3373
+ )
3374
+ await response_data.read()
3375
+ return self.api_client.response_deserialize(
3376
+ response_data=response_data,
3377
+ response_types_map=_response_types_map,
3378
+ ).data
3379
+
3380
+
3381
+ @validate_call
3382
+ async def get_subject_with_http_info(
3383
+ self,
3384
+ subject_id: StrictStr,
3385
+ _request_timeout: Union[
3386
+ None,
3387
+ Annotated[StrictFloat, Field(gt=0)],
3388
+ Tuple[
3389
+ Annotated[StrictFloat, Field(gt=0)],
3390
+ Annotated[StrictFloat, Field(gt=0)]
3391
+ ]
3392
+ ] = None,
3393
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3394
+ _content_type: Optional[StrictStr] = None,
3395
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3396
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3397
+ ) -> ApiResponse[object]:
3398
+ """Get Subject
3399
+
3400
+ ## Subject Return Subject metadata.
3401
+
3402
+ :param subject_id: (required)
3403
+ :type subject_id: str
3404
+ :param _request_timeout: timeout setting for this request. If one
3405
+ number provided, it will be total request
3406
+ timeout. It can also be a pair (tuple) of
3407
+ (connection, read) timeouts.
3408
+ :type _request_timeout: int, tuple(int, int), optional
3409
+ :param _request_auth: set to override the auth_settings for an a single
3410
+ request; this effectively ignores the
3411
+ authentication in the spec for a single request.
3412
+ :type _request_auth: dict, optional
3413
+ :param _content_type: force content-type for the request.
3414
+ :type _content_type: str, Optional
3415
+ :param _headers: set to override the headers for a single
3416
+ request; this effectively ignores the headers
3417
+ in the spec for a single request.
3418
+ :type _headers: dict, optional
3419
+ :param _host_index: set to override the host_index for a single
3420
+ request; this effectively ignores the host_index
3421
+ in the spec for a single request.
3422
+ :type _host_index: int, optional
3423
+ :return: Returns the result object.
3424
+ """ # noqa: E501
3425
+
3426
+ _param = self._get_subject_serialize(
3427
+ subject_id=subject_id,
3428
+ _request_auth=_request_auth,
3429
+ _content_type=_content_type,
3430
+ _headers=_headers,
3431
+ _host_index=_host_index
3432
+ )
3433
+
3434
+ _response_types_map: Dict[str, Optional[str]] = {
3435
+ '200': "object",
3436
+ '422': "HTTPValidationError",
3437
+ }
3438
+ response_data = await self.api_client.call_api(
3439
+ *_param,
3440
+ _request_timeout=_request_timeout
3441
+ )
3442
+ await response_data.read()
3443
+ return self.api_client.response_deserialize(
3444
+ response_data=response_data,
3445
+ response_types_map=_response_types_map,
3446
+ )
3447
+
3448
+
3449
+ @validate_call
3450
+ async def get_subject_without_preload_content(
3451
+ self,
3452
+ subject_id: StrictStr,
3453
+ _request_timeout: Union[
3454
+ None,
3455
+ Annotated[StrictFloat, Field(gt=0)],
3456
+ Tuple[
3457
+ Annotated[StrictFloat, Field(gt=0)],
3458
+ Annotated[StrictFloat, Field(gt=0)]
3459
+ ]
3460
+ ] = None,
3461
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3462
+ _content_type: Optional[StrictStr] = None,
3463
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3464
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3465
+ ) -> RESTResponseType:
3466
+ """Get Subject
3467
+
3468
+ ## Subject Return Subject metadata.
3469
+
3470
+ :param subject_id: (required)
3471
+ :type subject_id: str
3472
+ :param _request_timeout: timeout setting for this request. If one
3473
+ number provided, it will be total request
3474
+ timeout. It can also be a pair (tuple) of
3475
+ (connection, read) timeouts.
3476
+ :type _request_timeout: int, tuple(int, int), optional
3477
+ :param _request_auth: set to override the auth_settings for an a single
3478
+ request; this effectively ignores the
3479
+ authentication in the spec for a single request.
3480
+ :type _request_auth: dict, optional
3481
+ :param _content_type: force content-type for the request.
3482
+ :type _content_type: str, Optional
3483
+ :param _headers: set to override the headers for a single
3484
+ request; this effectively ignores the headers
3485
+ in the spec for a single request.
3486
+ :type _headers: dict, optional
3487
+ :param _host_index: set to override the host_index for a single
3488
+ request; this effectively ignores the host_index
3489
+ in the spec for a single request.
3490
+ :type _host_index: int, optional
3491
+ :return: Returns the result object.
3492
+ """ # noqa: E501
3493
+
3494
+ _param = self._get_subject_serialize(
3495
+ subject_id=subject_id,
3496
+ _request_auth=_request_auth,
3497
+ _content_type=_content_type,
3498
+ _headers=_headers,
3499
+ _host_index=_host_index
3500
+ )
3501
+
3502
+ _response_types_map: Dict[str, Optional[str]] = {
3503
+ '200': "object",
3504
+ '422': "HTTPValidationError",
3505
+ }
3506
+ response_data = await self.api_client.call_api(
3507
+ *_param,
3508
+ _request_timeout=_request_timeout
3509
+ )
3510
+ return response_data.response
3511
+
3512
+
3513
+ def _get_subject_serialize(
3514
+ self,
3515
+ subject_id,
3516
+ _request_auth,
3517
+ _content_type,
3518
+ _headers,
3519
+ _host_index,
3520
+ ) -> RequestSerialized:
3521
+
3522
+ _host = None
3523
+
3524
+ _collection_formats: Dict[str, str] = {
3525
+ }
3526
+
3527
+ _path_params: Dict[str, str] = {}
3528
+ _query_params: List[Tuple[str, str]] = []
3529
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3530
+ _form_params: List[Tuple[str, str]] = []
3531
+ _files: Dict[
3532
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3533
+ ] = {}
3534
+ _body_params: Optional[bytes] = None
3535
+
3536
+ # process the path parameters
3537
+ if subject_id is not None:
3538
+ _path_params['subject_id'] = subject_id
3539
+ # process the query parameters
3540
+ # process the header parameters
3541
+ # process the form parameters
3542
+ # process the body parameter
3543
+
3544
+
3545
+ # set the HTTP header `Accept`
3546
+ if 'Accept' not in _header_params:
3547
+ _header_params['Accept'] = self.api_client.select_header_accept(
3548
+ [
3549
+ 'application/json'
3550
+ ]
3551
+ )
3552
+
3553
+
3554
+ # authentication setting
3555
+ _auth_settings: List[str] = [
3556
+ ]
3557
+
3558
+ return self.api_client.param_serialize(
3559
+ method='GET',
3560
+ resource_path='/subject/{subject_id}',
3561
+ path_params=_path_params,
3562
+ query_params=_query_params,
3563
+ header_params=_header_params,
3564
+ body=_body_params,
3565
+ post_params=_form_params,
3566
+ files=_files,
3567
+ auth_settings=_auth_settings,
3568
+ collection_formats=_collection_formats,
3569
+ _host=_host,
3570
+ _request_auth=_request_auth
3571
+ )
3572
+
3573
+
3574
+
3575
+
3576
+ @validate_call
3577
+ async def index(
3578
+ self,
3579
+ _request_timeout: Union[
3580
+ None,
3581
+ Annotated[StrictFloat, Field(gt=0)],
3582
+ Tuple[
3583
+ Annotated[StrictFloat, Field(gt=0)],
3584
+ Annotated[StrictFloat, Field(gt=0)]
3585
+ ]
3586
+ ] = None,
3587
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3588
+ _content_type: Optional[StrictStr] = None,
3589
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3590
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3591
+ ) -> object:
3592
+ """Index
3593
+
3594
+ Returns the index page with search UIs for enabled endpoints.
3595
+
3596
+ :param _request_timeout: timeout setting for this request. If one
3597
+ number provided, it will be total request
3598
+ timeout. It can also be a pair (tuple) of
3599
+ (connection, read) timeouts.
3600
+ :type _request_timeout: int, tuple(int, int), optional
3601
+ :param _request_auth: set to override the auth_settings for an a single
3602
+ request; this effectively ignores the
3603
+ authentication in the spec for a single request.
3604
+ :type _request_auth: dict, optional
3605
+ :param _content_type: force content-type for the request.
3606
+ :type _content_type: str, Optional
3607
+ :param _headers: set to override the headers for a single
3608
+ request; this effectively ignores the headers
3609
+ in the spec for a single request.
3610
+ :type _headers: dict, optional
3611
+ :param _host_index: set to override the host_index for a single
3612
+ request; this effectively ignores the host_index
3613
+ in the spec for a single request.
3614
+ :type _host_index: int, optional
3615
+ :return: Returns the result object.
3616
+ """ # noqa: E501
3617
+
3618
+ _param = self._index_serialize(
3619
+ _request_auth=_request_auth,
3620
+ _content_type=_content_type,
3621
+ _headers=_headers,
3622
+ _host_index=_host_index
3623
+ )
3624
+
3625
+ _response_types_map: Dict[str, Optional[str]] = {
3626
+ '200': "object",
3627
+ }
3628
+ response_data = await self.api_client.call_api(
3629
+ *_param,
3630
+ _request_timeout=_request_timeout
3631
+ )
3632
+ await response_data.read()
3633
+ return self.api_client.response_deserialize(
3634
+ response_data=response_data,
3635
+ response_types_map=_response_types_map,
3636
+ ).data
3637
+
3638
+
3639
+ @validate_call
3640
+ async def index_with_http_info(
3641
+ self,
3642
+ _request_timeout: Union[
3643
+ None,
3644
+ Annotated[StrictFloat, Field(gt=0)],
3645
+ Tuple[
3646
+ Annotated[StrictFloat, Field(gt=0)],
3647
+ Annotated[StrictFloat, Field(gt=0)]
3648
+ ]
3649
+ ] = None,
3650
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3651
+ _content_type: Optional[StrictStr] = None,
3652
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3653
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3654
+ ) -> ApiResponse[object]:
3655
+ """Index
3656
+
3657
+ Returns the index page with search UIs for enabled endpoints.
3658
+
3659
+ :param _request_timeout: timeout setting for this request. If one
3660
+ number provided, it will be total request
3661
+ timeout. It can also be a pair (tuple) of
3662
+ (connection, read) timeouts.
3663
+ :type _request_timeout: int, tuple(int, int), optional
3664
+ :param _request_auth: set to override the auth_settings for an a single
3665
+ request; this effectively ignores the
3666
+ authentication in the spec for a single request.
3667
+ :type _request_auth: dict, optional
3668
+ :param _content_type: force content-type for the request.
3669
+ :type _content_type: str, Optional
3670
+ :param _headers: set to override the headers for a single
3671
+ request; this effectively ignores the headers
3672
+ in the spec for a single request.
3673
+ :type _headers: dict, optional
3674
+ :param _host_index: set to override the host_index for a single
3675
+ request; this effectively ignores the host_index
3676
+ in the spec for a single request.
3677
+ :type _host_index: int, optional
3678
+ :return: Returns the result object.
3679
+ """ # noqa: E501
3680
+
3681
+ _param = self._index_serialize(
3682
+ _request_auth=_request_auth,
3683
+ _content_type=_content_type,
3684
+ _headers=_headers,
3685
+ _host_index=_host_index
3686
+ )
3687
+
3688
+ _response_types_map: Dict[str, Optional[str]] = {
3689
+ '200': "object",
3690
+ }
3691
+ response_data = await self.api_client.call_api(
3692
+ *_param,
3693
+ _request_timeout=_request_timeout
3694
+ )
3695
+ await response_data.read()
3696
+ return self.api_client.response_deserialize(
3697
+ response_data=response_data,
3698
+ response_types_map=_response_types_map,
3699
+ )
3700
+
3701
+
3702
+ @validate_call
3703
+ async def index_without_preload_content(
3704
+ self,
3705
+ _request_timeout: Union[
3706
+ None,
3707
+ Annotated[StrictFloat, Field(gt=0)],
3708
+ Tuple[
3709
+ Annotated[StrictFloat, Field(gt=0)],
3710
+ Annotated[StrictFloat, Field(gt=0)]
3711
+ ]
3712
+ ] = None,
3713
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3714
+ _content_type: Optional[StrictStr] = None,
3715
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3716
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3717
+ ) -> RESTResponseType:
3718
+ """Index
3719
+
3720
+ Returns the index page with search UIs for enabled endpoints.
3721
+
3722
+ :param _request_timeout: timeout setting for this request. If one
3723
+ number provided, it will be total request
3724
+ timeout. It can also be a pair (tuple) of
3725
+ (connection, read) timeouts.
3726
+ :type _request_timeout: int, tuple(int, int), optional
3727
+ :param _request_auth: set to override the auth_settings for an a single
3728
+ request; this effectively ignores the
3729
+ authentication in the spec for a single request.
3730
+ :type _request_auth: dict, optional
3731
+ :param _content_type: force content-type for the request.
3732
+ :type _content_type: str, Optional
3733
+ :param _headers: set to override the headers for a single
3734
+ request; this effectively ignores the headers
3735
+ in the spec for a single request.
3736
+ :type _headers: dict, optional
3737
+ :param _host_index: set to override the host_index for a single
3738
+ request; this effectively ignores the host_index
3739
+ in the spec for a single request.
3740
+ :type _host_index: int, optional
3741
+ :return: Returns the result object.
3742
+ """ # noqa: E501
3743
+
3744
+ _param = self._index_serialize(
3745
+ _request_auth=_request_auth,
3746
+ _content_type=_content_type,
3747
+ _headers=_headers,
3748
+ _host_index=_host_index
3749
+ )
3750
+
3751
+ _response_types_map: Dict[str, Optional[str]] = {
3752
+ '200': "object",
3753
+ }
3754
+ response_data = await self.api_client.call_api(
3755
+ *_param,
3756
+ _request_timeout=_request_timeout
3757
+ )
3758
+ return response_data.response
3759
+
3760
+
3761
+ def _index_serialize(
3762
+ self,
3763
+ _request_auth,
3764
+ _content_type,
3765
+ _headers,
3766
+ _host_index,
3767
+ ) -> RequestSerialized:
3768
+
3769
+ _host = None
3770
+
3771
+ _collection_formats: Dict[str, str] = {
3772
+ }
3773
+
3774
+ _path_params: Dict[str, str] = {}
3775
+ _query_params: List[Tuple[str, str]] = []
3776
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3777
+ _form_params: List[Tuple[str, str]] = []
3778
+ _files: Dict[
3779
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3780
+ ] = {}
3781
+ _body_params: Optional[bytes] = None
3782
+
3783
+ # process the path parameters
3784
+ # process the query parameters
3785
+ # process the header parameters
3786
+ # process the form parameters
3787
+ # process the body parameter
3788
+
3789
+
3790
+ # set the HTTP header `Accept`
3791
+ if 'Accept' not in _header_params:
3792
+ _header_params['Accept'] = self.api_client.select_header_accept(
3793
+ [
3794
+ 'application/json'
3795
+ ]
3796
+ )
3797
+
3798
+
3799
+ # authentication setting
3800
+ _auth_settings: List[str] = [
3801
+ ]
3802
+
3803
+ return self.api_client.param_serialize(
3804
+ method='GET',
3805
+ resource_path='/',
3806
+ path_params=_path_params,
3807
+ query_params=_query_params,
3808
+ header_params=_header_params,
3809
+ body=_body_params,
3810
+ post_params=_form_params,
3811
+ files=_files,
3812
+ auth_settings=_auth_settings,
3813
+ collection_formats=_collection_formats,
3814
+ _host=_host,
3815
+ _request_auth=_request_auth
3816
+ )
3817
+
3818
+