@@ -53,16 +53,53 @@ _response_for_200 = api_client.OpenApiResponse(
5353
5454class BaseApi (api_client .Api ):
5555
56+ @typing .overload
5657 def _post_operators_oapg (
57- self : api_client .Api ,
58- body : typing .Union [SchemaForRequestBodyApplicationJson , schemas .Unset ] = schemas .unset ,
58+ self ,
59+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
60+ content_type : str = 'application/json' ,
61+ stream : bool = False ,
62+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
63+ skip_deserialization : typing_extensions .Literal [False ] = False ,
64+ ) -> typing .Union [ApiResponseFor200 ,api_client .ApiResponse ]:
65+ ...
66+
67+ @typing .overload
68+ def _post_operators_oapg (
69+ self ,
70+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
71+ content_type : str = 'application/json' ,
72+ stream : bool = False ,
73+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
74+ skip_deserialization : typing_extensions .Literal [True ] = True ,
75+ ) -> api_client .ApiResponseWithoutDeserialization :
76+ ...
77+
78+ @typing .overload
79+ def _post_operators_oapg (
80+ self ,
81+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
5982 content_type : str = 'application/json' ,
6083 stream : bool = False ,
6184 timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
6285 skip_deserialization : bool = False ,
6386 ) -> typing .Union [
6487 ApiResponseFor200 ,
65- api_client .ApiResponseWithoutDeserialization
88+ api_client .ApiResponseWithoutDeserialization ,
89+ ]:
90+ ...
91+
92+ def _post_operators_oapg (
93+ self ,
94+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
95+ content_type : str = 'application/json' ,
96+ stream : bool = False ,
97+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
98+ skip_deserialization : bool = False ,
99+ ) -> typing .Union [
100+ ApiResponseFor200 ,
101+ api_client .ApiResponse ,
102+ api_client .ApiResponseWithoutDeserialization ,
66103 ]:
67104 """
68105 :param skip_deserialization: If true then api_response.response will be set but
@@ -111,16 +148,53 @@ class BaseApi(api_client.Api):
111148class PostOperators (BaseApi ):
112149 # this class is used by api classes that refer to endpoints with operationId fn names
113150
151+ @typing .overload
152+ def post_operators (
153+ self ,
154+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
155+ content_type : str = 'application/json' ,
156+ stream : bool = False ,
157+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
158+ skip_deserialization : typing_extensions .Literal [False ] = False ,
159+ ) -> typing .Union [ApiResponseFor200 ,api_client .ApiResponse ]:
160+ ...
161+
162+ @typing .overload
163+ def post_operators (
164+ self ,
165+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
166+ content_type : str = 'application/json' ,
167+ stream : bool = False ,
168+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
169+ skip_deserialization : typing_extensions .Literal [True ] = True ,
170+ ) -> api_client .ApiResponseWithoutDeserialization :
171+ ...
172+
173+ @typing .overload
114174 def post_operators (
115- self : BaseApi ,
116- body : typing .Union [SchemaForRequestBodyApplicationJson , schemas .Unset ] = schemas .unset ,
175+ self ,
176+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
117177 content_type : str = 'application/json' ,
118178 stream : bool = False ,
119179 timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
120180 skip_deserialization : bool = False ,
121181 ) -> typing .Union [
122182 ApiResponseFor200 ,
123- api_client .ApiResponseWithoutDeserialization
183+ api_client .ApiResponseWithoutDeserialization ,
184+ ]:
185+ ...
186+
187+ def post_operators (
188+ self ,
189+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
190+ content_type : str = 'application/json' ,
191+ stream : bool = False ,
192+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
193+ skip_deserialization : bool = False ,
194+ ) -> typing .Union [
195+ ApiResponseFor200 ,
196+ api_client .ApiResponse ,
197+ api_client .ApiResponseWithoutDeserialization ,
124198 ]:
125199 return self ._post_operators_oapg (
126200 body = body ,
@@ -134,16 +208,53 @@ class PostOperators(BaseApi):
134208class ApiForpost (BaseApi ):
135209 # this class is used by api classes that refer to endpoints by path and http method names
136210
211+ @typing .overload
212+ def post (
213+ self ,
214+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
215+ content_type : str = 'application/json' ,
216+ stream : bool = False ,
217+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
218+ skip_deserialization : typing_extensions .Literal [False ] = False ,
219+ ) -> typing .Union [ApiResponseFor200 ,api_client .ApiResponse ]:
220+ ...
221+
222+ @typing .overload
223+ def post (
224+ self ,
225+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
226+ content_type : str = 'application/json' ,
227+ stream : bool = False ,
228+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
229+ skip_deserialization : typing_extensions .Literal [True ] = True ,
230+ ) -> api_client .ApiResponseWithoutDeserialization :
231+ ...
232+
233+ @typing .overload
234+ def post (
235+ self ,
236+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
237+ content_type : str = 'application/json' ,
238+ stream : bool = False ,
239+ timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
240+ skip_deserialization : bool = False ,
241+ ) -> typing .Union [
242+ ApiResponseFor200 ,
243+ api_client .ApiResponseWithoutDeserialization ,
244+ ]:
245+ ...
246+
137247 def post (
138- self : BaseApi ,
139- body : typing .Union [SchemaForRequestBodyApplicationJson , schemas .Unset ] = schemas .unset ,
248+ self ,
249+ body : typing .Union [SchemaForRequestBodyApplicationJson ,schemas .Unset ] = schemas .unset ,
140250 content_type : str = 'application/json' ,
141251 stream : bool = False ,
142252 timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
143253 skip_deserialization : bool = False ,
144254 ) -> typing .Union [
145255 ApiResponseFor200 ,
146- api_client .ApiResponseWithoutDeserialization
256+ api_client .ApiResponse ,
257+ api_client .ApiResponseWithoutDeserialization ,
147258 ]:
148259 return self ._post_operators_oapg (
149260 body = body ,
0 commit comments