@@ -55,48 +55,6 @@ def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) -
5555 raise ApiError (status_code = _response .status_code , body = _response .text )
5656 raise ApiError (status_code = _response .status_code , body = _response_json )
5757
58- def get (self , * , request_options : typing .Optional [RequestOptions ] = None ) -> typing .Optional [typing .Any ]:
59- """
60- Provides database for user menu later used to compose reqs in AXtract
61-
62- Parameters
63- ----------
64- request_options : typing.Optional[RequestOptions]
65- Request-specific configuration.
66-
67- Returns
68- -------
69- typing.Optional[typing.Any]
70- Successful Response
71-
72- Examples
73- --------
74- from axiomatic import Axiomatic
75-
76- client = Axiomatic(
77- api_key="YOUR_API_KEY",
78- )
79- client.requirements.data_files.get()
80- """
81- _response = self ._client_wrapper .httpx_client .request (
82- "requirements/get_axtract_data_files" ,
83- method = "POST" ,
84- request_options = request_options ,
85- )
86- try :
87- if 200 <= _response .status_code < 300 :
88- return typing .cast (
89- typing .Optional [typing .Any ],
90- parse_obj_as (
91- type_ = typing .Optional [typing .Any ], # type: ignore
92- object_ = _response .json (),
93- ),
94- )
95- _response_json = _response .json ()
96- except JSONDecodeError :
97- raise ApiError (status_code = _response .status_code , body = _response .text )
98- raise ApiError (status_code = _response .status_code , body = _response_json )
99-
10058
10159class AsyncDataFilesClient :
10260 def __init__ (self , * , client_wrapper : AsyncClientWrapper ):
@@ -151,53 +109,3 @@ async def main() -> None:
151109 except JSONDecodeError :
152110 raise ApiError (status_code = _response .status_code , body = _response .text )
153111 raise ApiError (status_code = _response .status_code , body = _response_json )
154-
155- async def get (self , * , request_options : typing .Optional [RequestOptions ] = None ) -> typing .Optional [typing .Any ]:
156- """
157- Provides database for user menu later used to compose reqs in AXtract
158-
159- Parameters
160- ----------
161- request_options : typing.Optional[RequestOptions]
162- Request-specific configuration.
163-
164- Returns
165- -------
166- typing.Optional[typing.Any]
167- Successful Response
168-
169- Examples
170- --------
171- import asyncio
172-
173- from axiomatic import AsyncAxiomatic
174-
175- client = AsyncAxiomatic(
176- api_key="YOUR_API_KEY",
177- )
178-
179-
180- async def main() -> None:
181- await client.requirements.data_files.get()
182-
183-
184- asyncio.run(main())
185- """
186- _response = await self ._client_wrapper .httpx_client .request (
187- "requirements/get_axtract_data_files" ,
188- method = "POST" ,
189- request_options = request_options ,
190- )
191- try :
192- if 200 <= _response .status_code < 300 :
193- return typing .cast (
194- typing .Optional [typing .Any ],
195- parse_obj_as (
196- type_ = typing .Optional [typing .Any ], # type: ignore
197- object_ = _response .json (),
198- ),
199- )
200- _response_json = _response .json ()
201- except JSONDecodeError :
202- raise ApiError (status_code = _response .status_code , body = _response .text )
203- raise ApiError (status_code = _response .status_code , body = _response_json )
0 commit comments