@@ -53,16 +53,53 @@ _response_for_200 = api_client.OpenApiResponse(
53
53
54
54
class BaseApi (api_client .Api ):
55
55
56
+ @typing .overload
56
57
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 ,
59
82
content_type : str = 'application/json' ,
60
83
stream : bool = False ,
61
84
timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
62
85
skip_deserialization : bool = False ,
63
86
) -> typing .Union [
64
87
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 ,
66
103
]:
67
104
"""
68
105
:param skip_deserialization: If true then api_response.response will be set but
@@ -111,16 +148,53 @@ class BaseApi(api_client.Api):
111
148
class PostOperators (BaseApi ):
112
149
# this class is used by api classes that refer to endpoints with operationId fn names
113
150
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
114
174
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 ,
117
177
content_type : str = 'application/json' ,
118
178
stream : bool = False ,
119
179
timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
120
180
skip_deserialization : bool = False ,
121
181
) -> typing .Union [
122
182
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 ,
124
198
]:
125
199
return self ._post_operators_oapg (
126
200
body = body ,
@@ -134,16 +208,53 @@ class PostOperators(BaseApi):
134
208
class ApiForpost (BaseApi ):
135
209
# this class is used by api classes that refer to endpoints by path and http method names
136
210
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
+
137
247
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 ,
140
250
content_type : str = 'application/json' ,
141
251
stream : bool = False ,
142
252
timeout : typing .Optional [typing .Union [int , typing .Tuple ]] = None ,
143
253
skip_deserialization : bool = False ,
144
254
) -> typing .Union [
145
255
ApiResponseFor200 ,
146
- api_client .ApiResponseWithoutDeserialization
256
+ api_client .ApiResponse ,
257
+ api_client .ApiResponseWithoutDeserialization ,
147
258
]:
148
259
return self ._post_operators_oapg (
149
260
body = body ,
0 commit comments