aind-metadata-service-async-client 2.1.1__tar.gz → 2.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

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-2.1.1 → aind_metadata_service_async_client-2.2.0}/PKG-INFO +1 -1
  2. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/README.md +9 -7
  3. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/__init__.py +2 -2
  4. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/api/default_api.py +509 -1
  5. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/api/healthcheck_api.py +1 -1
  6. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/api_client.py +2 -2
  7. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/configuration.py +3 -3
  8. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/exceptions.py +1 -1
  9. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/models/__init__.py +1 -1
  10. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/models/health_check.py +3 -3
  11. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/models/http_validation_error.py +1 -1
  12. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/models/slims_workflow.py +1 -1
  13. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/models/validation_error.py +1 -1
  14. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/models/validation_error_loc_inner.py +1 -1
  15. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/rest.py +1 -1
  16. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client.egg-info/PKG-INFO +1 -1
  17. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/pyproject.toml +1 -1
  18. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/setup.py +2 -2
  19. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/test/test_default_api.py +15 -1
  20. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/test/test_health_check.py +2 -2
  21. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/test/test_healthcheck_api.py +1 -1
  22. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/test/test_http_validation_error.py +1 -1
  23. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/test/test_slims_workflow.py +1 -1
  24. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/test/test_validation_error.py +1 -1
  25. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/test/test_validation_error_loc_inner.py +1 -1
  26. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/api/__init__.py +0 -0
  27. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/api_response.py +0 -0
  28. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client/py.typed +0 -0
  29. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client.egg-info/SOURCES.txt +0 -0
  30. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client.egg-info/dependency_links.txt +0 -0
  31. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client.egg-info/requires.txt +0 -0
  32. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/aind_metadata_service_async_client.egg-info/top_level.txt +0 -0
  33. {aind_metadata_service_async_client-2.1.1 → aind_metadata_service_async_client-2.2.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aind-metadata-service-async-client
3
- Version: 2.1.1
3
+ Version: 2.2.0
4
4
  Summary: aind-metadata-service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -8,8 +8,8 @@ Service to pull data from example backend.
8
8
 
9
9
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
10
10
 
11
- - API version: 2.1.1
12
- - Package version: 2.1.1
11
+ - API version: 2.2.0
12
+ - Package version: 2.2.0
13
13
  - Generator version: 7.13.0
14
14
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
15
15
 
@@ -72,15 +72,15 @@ configuration = aind_metadata_service_async_client.Configuration(
72
72
  async with aind_metadata_service_async_client.ApiClient(configuration) as api_client:
73
73
  # Create an instance of the API class
74
74
  api_instance = aind_metadata_service_async_client.DefaultApi(api_client)
75
- subject_id = '823508' # str |
75
+ project_name = 'Discovery-Neuromodulator circuit dynamics during foraging' # str |
76
76
 
77
77
  try:
78
- # Get Procedures
79
- api_response = await api_instance.get_procedures(subject_id)
80
- print("The response of DefaultApi->get_procedures:\n")
78
+ # Get Funding
79
+ api_response = await api_instance.get_funding(project_name)
80
+ print("The response of DefaultApi->get_funding:\n")
81
81
  pprint(api_response)
82
82
  except ApiException as e:
83
- print("Exception when calling DefaultApi->get_procedures: %s\n" % e)
83
+ print("Exception when calling DefaultApi->get_funding: %s\n" % e)
84
84
 
85
85
  ```
86
86
 
@@ -90,7 +90,9 @@ All URIs are relative to *http://localhost*
90
90
 
91
91
  Class | Method | HTTP request | Description
92
92
  ------------ | ------------- | ------------- | -------------
93
+ *DefaultApi* | [**get_funding**](docs/DefaultApi.md#get_funding) | **GET** /api/v2/funding/{project_name} | Get Funding
93
94
  *DefaultApi* | [**get_procedures**](docs/DefaultApi.md#get_procedures) | **GET** /api/v2/procedures/{subject_id} | Get Procedures
95
+ *DefaultApi* | [**get_project_names**](docs/DefaultApi.md#get_project_names) | **GET** /api/v2/project_names | Get Project Names
94
96
  *DefaultApi* | [**get_subject**](docs/DefaultApi.md#get_subject) | **GET** /api/v2/subject/{subject_id} | Get Subject
95
97
  *DefaultApi* | [**get_v1_bergamo_session**](docs/DefaultApi.md#get_v1_bergamo_session) | **POST** /bergamo_session | Get V1 Bergamo Session
96
98
  *DefaultApi* | [**get_v1_funding**](docs/DefaultApi.md#get_v1_funding) | **GET** /funding/{project_name} | Get V1 Funding
@@ -7,14 +7,14 @@
7
7
 
8
8
  ## aind-metadata-service Service to pull data from example backend.
9
9
 
10
- The version of the OpenAPI document: 2.1.1
10
+ The version of the OpenAPI document: 2.2.0
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
13
  Do not edit the class manually.
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "2.1.1"
17
+ __version__ = "2.2.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from aind_metadata_service_async_client.api.default_api import DefaultApi
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -39,6 +39,269 @@ class DefaultApi:
39
39
  self.api_client = api_client
40
40
 
41
41
 
42
+ @validate_call
43
+ async def get_funding(
44
+ self,
45
+ project_name: StrictStr,
46
+ _request_timeout: Union[
47
+ None,
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Tuple[
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Annotated[StrictFloat, Field(gt=0)]
52
+ ]
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> object:
59
+ """Get Funding
60
+
61
+ ## Funding Return Funding metadata.
62
+
63
+ :param project_name: (required)
64
+ :type project_name: str
65
+ :param _request_timeout: timeout setting for this request. If one
66
+ number provided, it will be total request
67
+ timeout. It can also be a pair (tuple) of
68
+ (connection, read) timeouts.
69
+ :type _request_timeout: int, tuple(int, int), optional
70
+ :param _request_auth: set to override the auth_settings for an a single
71
+ request; this effectively ignores the
72
+ authentication in the spec for a single request.
73
+ :type _request_auth: dict, optional
74
+ :param _content_type: force content-type for the request.
75
+ :type _content_type: str, Optional
76
+ :param _headers: set to override the headers for a single
77
+ request; this effectively ignores the headers
78
+ in the spec for a single request.
79
+ :type _headers: dict, optional
80
+ :param _host_index: set to override the host_index for a single
81
+ request; this effectively ignores the host_index
82
+ in the spec for a single request.
83
+ :type _host_index: int, optional
84
+ :return: Returns the result object.
85
+ """ # noqa: E501
86
+
87
+ _param = self._get_funding_serialize(
88
+ project_name=project_name,
89
+ _request_auth=_request_auth,
90
+ _content_type=_content_type,
91
+ _headers=_headers,
92
+ _host_index=_host_index
93
+ )
94
+
95
+ _response_types_map: Dict[str, Optional[str]] = {
96
+ '200': "object",
97
+ '422': "HTTPValidationError",
98
+ }
99
+ response_data = await self.api_client.call_api(
100
+ *_param,
101
+ _request_timeout=_request_timeout
102
+ )
103
+ await response_data.read()
104
+ return self.api_client.response_deserialize(
105
+ response_data=response_data,
106
+ response_types_map=_response_types_map,
107
+ ).data
108
+
109
+
110
+ @validate_call
111
+ async def get_funding_with_http_info(
112
+ self,
113
+ project_name: StrictStr,
114
+ _request_timeout: Union[
115
+ None,
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Tuple[
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Annotated[StrictFloat, Field(gt=0)]
120
+ ]
121
+ ] = None,
122
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
123
+ _content_type: Optional[StrictStr] = None,
124
+ _headers: Optional[Dict[StrictStr, Any]] = None,
125
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
126
+ ) -> ApiResponse[object]:
127
+ """Get Funding
128
+
129
+ ## Funding Return Funding metadata.
130
+
131
+ :param project_name: (required)
132
+ :type project_name: str
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ :type _request_timeout: int, tuple(int, int), optional
138
+ :param _request_auth: set to override the auth_settings for an a single
139
+ request; this effectively ignores the
140
+ authentication in the spec for a single request.
141
+ :type _request_auth: dict, optional
142
+ :param _content_type: force content-type for the request.
143
+ :type _content_type: str, Optional
144
+ :param _headers: set to override the headers for a single
145
+ request; this effectively ignores the headers
146
+ in the spec for a single request.
147
+ :type _headers: dict, optional
148
+ :param _host_index: set to override the host_index for a single
149
+ request; this effectively ignores the host_index
150
+ in the spec for a single request.
151
+ :type _host_index: int, optional
152
+ :return: Returns the result object.
153
+ """ # noqa: E501
154
+
155
+ _param = self._get_funding_serialize(
156
+ project_name=project_name,
157
+ _request_auth=_request_auth,
158
+ _content_type=_content_type,
159
+ _headers=_headers,
160
+ _host_index=_host_index
161
+ )
162
+
163
+ _response_types_map: Dict[str, Optional[str]] = {
164
+ '200': "object",
165
+ '422': "HTTPValidationError",
166
+ }
167
+ response_data = await self.api_client.call_api(
168
+ *_param,
169
+ _request_timeout=_request_timeout
170
+ )
171
+ await response_data.read()
172
+ return self.api_client.response_deserialize(
173
+ response_data=response_data,
174
+ response_types_map=_response_types_map,
175
+ )
176
+
177
+
178
+ @validate_call
179
+ async def get_funding_without_preload_content(
180
+ self,
181
+ project_name: StrictStr,
182
+ _request_timeout: Union[
183
+ None,
184
+ Annotated[StrictFloat, Field(gt=0)],
185
+ Tuple[
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Annotated[StrictFloat, Field(gt=0)]
188
+ ]
189
+ ] = None,
190
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
191
+ _content_type: Optional[StrictStr] = None,
192
+ _headers: Optional[Dict[StrictStr, Any]] = None,
193
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
194
+ ) -> RESTResponseType:
195
+ """Get Funding
196
+
197
+ ## Funding Return Funding metadata.
198
+
199
+ :param project_name: (required)
200
+ :type project_name: str
201
+ :param _request_timeout: timeout setting for this request. If one
202
+ number provided, it will be total request
203
+ timeout. It can also be a pair (tuple) of
204
+ (connection, read) timeouts.
205
+ :type _request_timeout: int, tuple(int, int), optional
206
+ :param _request_auth: set to override the auth_settings for an a single
207
+ request; this effectively ignores the
208
+ authentication in the spec for a single request.
209
+ :type _request_auth: dict, optional
210
+ :param _content_type: force content-type for the request.
211
+ :type _content_type: str, Optional
212
+ :param _headers: set to override the headers for a single
213
+ request; this effectively ignores the headers
214
+ in the spec for a single request.
215
+ :type _headers: dict, optional
216
+ :param _host_index: set to override the host_index for a single
217
+ request; this effectively ignores the host_index
218
+ in the spec for a single request.
219
+ :type _host_index: int, optional
220
+ :return: Returns the result object.
221
+ """ # noqa: E501
222
+
223
+ _param = self._get_funding_serialize(
224
+ project_name=project_name,
225
+ _request_auth=_request_auth,
226
+ _content_type=_content_type,
227
+ _headers=_headers,
228
+ _host_index=_host_index
229
+ )
230
+
231
+ _response_types_map: Dict[str, Optional[str]] = {
232
+ '200': "object",
233
+ '422': "HTTPValidationError",
234
+ }
235
+ response_data = await self.api_client.call_api(
236
+ *_param,
237
+ _request_timeout=_request_timeout
238
+ )
239
+ return response_data.response
240
+
241
+
242
+ def _get_funding_serialize(
243
+ self,
244
+ project_name,
245
+ _request_auth,
246
+ _content_type,
247
+ _headers,
248
+ _host_index,
249
+ ) -> RequestSerialized:
250
+
251
+ _host = None
252
+
253
+ _collection_formats: Dict[str, str] = {
254
+ }
255
+
256
+ _path_params: Dict[str, str] = {}
257
+ _query_params: List[Tuple[str, str]] = []
258
+ _header_params: Dict[str, Optional[str]] = _headers or {}
259
+ _form_params: List[Tuple[str, str]] = []
260
+ _files: Dict[
261
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
262
+ ] = {}
263
+ _body_params: Optional[bytes] = None
264
+
265
+ # process the path parameters
266
+ if project_name is not None:
267
+ _path_params['project_name'] = project_name
268
+ # process the query parameters
269
+ # process the header parameters
270
+ # process the form parameters
271
+ # process the body parameter
272
+
273
+
274
+ # set the HTTP header `Accept`
275
+ if 'Accept' not in _header_params:
276
+ _header_params['Accept'] = self.api_client.select_header_accept(
277
+ [
278
+ 'application/json'
279
+ ]
280
+ )
281
+
282
+
283
+ # authentication setting
284
+ _auth_settings: List[str] = [
285
+ ]
286
+
287
+ return self.api_client.param_serialize(
288
+ method='GET',
289
+ resource_path='/api/v2/funding/{project_name}',
290
+ path_params=_path_params,
291
+ query_params=_query_params,
292
+ header_params=_header_params,
293
+ body=_body_params,
294
+ post_params=_form_params,
295
+ files=_files,
296
+ auth_settings=_auth_settings,
297
+ collection_formats=_collection_formats,
298
+ _host=_host,
299
+ _request_auth=_request_auth
300
+ )
301
+
302
+
303
+
304
+
42
305
  @validate_call
43
306
  async def get_procedures(
44
307
  self,
@@ -302,6 +565,251 @@ class DefaultApi:
302
565
 
303
566
 
304
567
 
568
+ @validate_call
569
+ async def get_project_names(
570
+ self,
571
+ _request_timeout: Union[
572
+ None,
573
+ Annotated[StrictFloat, Field(gt=0)],
574
+ Tuple[
575
+ Annotated[StrictFloat, Field(gt=0)],
576
+ Annotated[StrictFloat, Field(gt=0)]
577
+ ]
578
+ ] = None,
579
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
580
+ _content_type: Optional[StrictStr] = None,
581
+ _headers: Optional[Dict[StrictStr, Any]] = None,
582
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
583
+ ) -> object:
584
+ """Get Project Names
585
+
586
+ Get a list of project names from the Smartsheet API.
587
+
588
+ :param _request_timeout: timeout setting for this request. If one
589
+ number provided, it will be total request
590
+ timeout. It can also be a pair (tuple) of
591
+ (connection, read) timeouts.
592
+ :type _request_timeout: int, tuple(int, int), optional
593
+ :param _request_auth: set to override the auth_settings for an a single
594
+ request; this effectively ignores the
595
+ authentication in the spec for a single request.
596
+ :type _request_auth: dict, optional
597
+ :param _content_type: force content-type for the request.
598
+ :type _content_type: str, Optional
599
+ :param _headers: set to override the headers for a single
600
+ request; this effectively ignores the headers
601
+ in the spec for a single request.
602
+ :type _headers: dict, optional
603
+ :param _host_index: set to override the host_index for a single
604
+ request; this effectively ignores the host_index
605
+ in the spec for a single request.
606
+ :type _host_index: int, optional
607
+ :return: Returns the result object.
608
+ """ # noqa: E501
609
+
610
+ _param = self._get_project_names_serialize(
611
+ _request_auth=_request_auth,
612
+ _content_type=_content_type,
613
+ _headers=_headers,
614
+ _host_index=_host_index
615
+ )
616
+
617
+ _response_types_map: Dict[str, Optional[str]] = {
618
+ '200': "object",
619
+ }
620
+ response_data = await self.api_client.call_api(
621
+ *_param,
622
+ _request_timeout=_request_timeout
623
+ )
624
+ await response_data.read()
625
+ return self.api_client.response_deserialize(
626
+ response_data=response_data,
627
+ response_types_map=_response_types_map,
628
+ ).data
629
+
630
+
631
+ @validate_call
632
+ async def get_project_names_with_http_info(
633
+ self,
634
+ _request_timeout: Union[
635
+ None,
636
+ Annotated[StrictFloat, Field(gt=0)],
637
+ Tuple[
638
+ Annotated[StrictFloat, Field(gt=0)],
639
+ Annotated[StrictFloat, Field(gt=0)]
640
+ ]
641
+ ] = None,
642
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
643
+ _content_type: Optional[StrictStr] = None,
644
+ _headers: Optional[Dict[StrictStr, Any]] = None,
645
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
646
+ ) -> ApiResponse[object]:
647
+ """Get Project Names
648
+
649
+ Get a list of project names from the Smartsheet API.
650
+
651
+ :param _request_timeout: timeout setting for this request. If one
652
+ number provided, it will be total request
653
+ timeout. It can also be a pair (tuple) of
654
+ (connection, read) timeouts.
655
+ :type _request_timeout: int, tuple(int, int), optional
656
+ :param _request_auth: set to override the auth_settings for an a single
657
+ request; this effectively ignores the
658
+ authentication in the spec for a single request.
659
+ :type _request_auth: dict, optional
660
+ :param _content_type: force content-type for the request.
661
+ :type _content_type: str, Optional
662
+ :param _headers: set to override the headers for a single
663
+ request; this effectively ignores the headers
664
+ in the spec for a single request.
665
+ :type _headers: dict, optional
666
+ :param _host_index: set to override the host_index for a single
667
+ request; this effectively ignores the host_index
668
+ in the spec for a single request.
669
+ :type _host_index: int, optional
670
+ :return: Returns the result object.
671
+ """ # noqa: E501
672
+
673
+ _param = self._get_project_names_serialize(
674
+ _request_auth=_request_auth,
675
+ _content_type=_content_type,
676
+ _headers=_headers,
677
+ _host_index=_host_index
678
+ )
679
+
680
+ _response_types_map: Dict[str, Optional[str]] = {
681
+ '200': "object",
682
+ }
683
+ response_data = await self.api_client.call_api(
684
+ *_param,
685
+ _request_timeout=_request_timeout
686
+ )
687
+ await response_data.read()
688
+ return self.api_client.response_deserialize(
689
+ response_data=response_data,
690
+ response_types_map=_response_types_map,
691
+ )
692
+
693
+
694
+ @validate_call
695
+ async def get_project_names_without_preload_content(
696
+ self,
697
+ _request_timeout: Union[
698
+ None,
699
+ Annotated[StrictFloat, Field(gt=0)],
700
+ Tuple[
701
+ Annotated[StrictFloat, Field(gt=0)],
702
+ Annotated[StrictFloat, Field(gt=0)]
703
+ ]
704
+ ] = None,
705
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
706
+ _content_type: Optional[StrictStr] = None,
707
+ _headers: Optional[Dict[StrictStr, Any]] = None,
708
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
709
+ ) -> RESTResponseType:
710
+ """Get Project Names
711
+
712
+ Get a list of project names from the Smartsheet API.
713
+
714
+ :param _request_timeout: timeout setting for this request. If one
715
+ number provided, it will be total request
716
+ timeout. It can also be a pair (tuple) of
717
+ (connection, read) timeouts.
718
+ :type _request_timeout: int, tuple(int, int), optional
719
+ :param _request_auth: set to override the auth_settings for an a single
720
+ request; this effectively ignores the
721
+ authentication in the spec for a single request.
722
+ :type _request_auth: dict, optional
723
+ :param _content_type: force content-type for the request.
724
+ :type _content_type: str, Optional
725
+ :param _headers: set to override the headers for a single
726
+ request; this effectively ignores the headers
727
+ in the spec for a single request.
728
+ :type _headers: dict, optional
729
+ :param _host_index: set to override the host_index for a single
730
+ request; this effectively ignores the host_index
731
+ in the spec for a single request.
732
+ :type _host_index: int, optional
733
+ :return: Returns the result object.
734
+ """ # noqa: E501
735
+
736
+ _param = self._get_project_names_serialize(
737
+ _request_auth=_request_auth,
738
+ _content_type=_content_type,
739
+ _headers=_headers,
740
+ _host_index=_host_index
741
+ )
742
+
743
+ _response_types_map: Dict[str, Optional[str]] = {
744
+ '200': "object",
745
+ }
746
+ response_data = await self.api_client.call_api(
747
+ *_param,
748
+ _request_timeout=_request_timeout
749
+ )
750
+ return response_data.response
751
+
752
+
753
+ def _get_project_names_serialize(
754
+ self,
755
+ _request_auth,
756
+ _content_type,
757
+ _headers,
758
+ _host_index,
759
+ ) -> RequestSerialized:
760
+
761
+ _host = None
762
+
763
+ _collection_formats: Dict[str, str] = {
764
+ }
765
+
766
+ _path_params: Dict[str, str] = {}
767
+ _query_params: List[Tuple[str, str]] = []
768
+ _header_params: Dict[str, Optional[str]] = _headers or {}
769
+ _form_params: List[Tuple[str, str]] = []
770
+ _files: Dict[
771
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
772
+ ] = {}
773
+ _body_params: Optional[bytes] = None
774
+
775
+ # process the path parameters
776
+ # process the query parameters
777
+ # process the header parameters
778
+ # process the form parameters
779
+ # process the body parameter
780
+
781
+
782
+ # set the HTTP header `Accept`
783
+ if 'Accept' not in _header_params:
784
+ _header_params['Accept'] = self.api_client.select_header_accept(
785
+ [
786
+ 'application/json'
787
+ ]
788
+ )
789
+
790
+
791
+ # authentication setting
792
+ _auth_settings: List[str] = [
793
+ ]
794
+
795
+ return self.api_client.param_serialize(
796
+ method='GET',
797
+ resource_path='/api/v2/project_names',
798
+ path_params=_path_params,
799
+ query_params=_query_params,
800
+ header_params=_header_params,
801
+ body=_body_params,
802
+ post_params=_form_params,
803
+ files=_files,
804
+ auth_settings=_auth_settings,
805
+ collection_formats=_collection_formats,
806
+ _host=_host,
807
+ _request_auth=_request_auth
808
+ )
809
+
810
+
811
+
812
+
305
813
  @validate_call
306
814
  async def get_subject(
307
815
  self,
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/2.1.1/python'
93
+ self.user_agent = 'OpenAPI-Generator/2.2.0/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  async def __aenter__(self):
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -496,8 +496,8 @@ class Configuration:
496
496
  return "Python SDK Debug Report:\n"\
497
497
  "OS: {env}\n"\
498
498
  "Python Version: {pyversion}\n"\
499
- "Version of the API: 2.1.1\n"\
500
- "SDK Package Version: 2.1.1".\
499
+ "Version of the API: 2.2.0\n"\
500
+ "SDK Package Version: 2.2.0".\
501
501
  format(env=sys.platform, pyversion=sys.version)
502
502
 
503
503
  def get_host_settings(self) -> List[HostSetting]:
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## aind-metadata-service Service to pull data from example backend.
8
8
 
9
- The version of the OpenAPI document: 2.1.1
9
+ The version of the OpenAPI document: 2.2.0
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -27,7 +27,7 @@ class HealthCheck(BaseModel):
27
27
  Response model to validate and return when performing a health check.
28
28
  """ # noqa: E501
29
29
  status: Optional[StrictStr] = 'OK'
30
- service_version: Optional[StrictStr] = '2.1.1'
30
+ service_version: Optional[StrictStr] = '2.2.0'
31
31
  __properties: ClassVar[List[str]] = ["status", "service_version"]
32
32
 
33
33
  @field_validator('status')
@@ -92,7 +92,7 @@ class HealthCheck(BaseModel):
92
92
 
93
93
  _obj = cls.model_validate({
94
94
  "status": obj.get("status") if obj.get("status") is not None else 'OK',
95
- "service_version": obj.get("service_version") if obj.get("service_version") is not None else '2.1.1'
95
+ "service_version": obj.get("service_version") if obj.get("service_version") is not None else '2.2.0'
96
96
  })
97
97
  return _obj
98
98
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aind-metadata-service-async-client
3
- Version: 2.1.1
3
+ Version: 2.2.0
4
4
  Summary: aind-metadata-service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "aind_metadata_service_async_client"
3
- version = "2.1.1"
3
+ version = "2.2.0"
4
4
  description = "aind-metadata-service"
5
5
  authors = ["OpenAPI Generator Community <team@openapitools.org>"]
6
6
  license = "NoLicense"
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -21,7 +21,7 @@ from setuptools import setup, find_packages # noqa: H301
21
21
  # prerequisite: setuptools
22
22
  # http://pypi.python.org/pypi/setuptools
23
23
  NAME = "aind-metadata-service-async-client"
24
- VERSION = "2.1.1"
24
+ VERSION = "2.2.0"
25
25
  PYTHON_REQUIRES = ">= 3.9"
26
26
  REQUIRES = [
27
27
  "urllib3 >= 2.1.0, < 3.0.0",
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -26,6 +26,13 @@ class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
26
26
  async def asyncTearDown(self) -> None:
27
27
  await self.api.api_client.close()
28
28
 
29
+ async def test_get_funding(self) -> None:
30
+ """Test case for get_funding
31
+
32
+ Get Funding
33
+ """
34
+ pass
35
+
29
36
  async def test_get_procedures(self) -> None:
30
37
  """Test case for get_procedures
31
38
 
@@ -33,6 +40,13 @@ class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
33
40
  """
34
41
  pass
35
42
 
43
+ async def test_get_project_names(self) -> None:
44
+ """Test case for get_project_names
45
+
46
+ Get Project Names
47
+ """
48
+ pass
49
+
36
50
  async def test_get_subject(self) -> None:
37
51
  """Test case for get_subject
38
52
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -36,7 +36,7 @@ class TestHealthCheck(unittest.TestCase):
36
36
  if include_optional:
37
37
  return HealthCheck(
38
38
  status = 'OK',
39
- service_version = '2.1.1'
39
+ service_version = '2.2.0'
40
40
  )
41
41
  else:
42
42
  return HealthCheck(
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## aind-metadata-service Service to pull data from example backend.
7
7
 
8
- The version of the OpenAPI document: 2.1.1
8
+ The version of the OpenAPI document: 2.2.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.