Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit f94e86a

Browse files
committed
Update samples
1 parent b1a22c5 commit f94e86a

File tree

460 files changed

+14748
-9276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

460 files changed

+14748
-9276
lines changed

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod
6767
stream: bool = False,
6868
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
6969
skip_deserialization: typing_extensions.Literal[False] = False,
70-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
70+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
7171
...
7272

7373
@typing.overload
@@ -97,12 +97,16 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod
9797

9898
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
9999
self,
100-
body,
101-
content_type = 'application/json',
102-
stream = False,
103-
timeout = None,
104-
skip_deserialization = False,
105-
):
100+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
101+
content_type: str = 'application/json',
102+
stream: bool = False,
103+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
104+
skip_deserialization: bool = False,
105+
) -> typing.Union[
106+
ApiResponseFor200,
107+
api_client.ApiResponse,
108+
api_client.ApiResponseWithoutDeserialization,
109+
]:
106110
"""
107111
:param skip_deserialization: If true then api_response.response will be set but
108112
api_response.body and api_response.headers will not be deserialized into schema
@@ -160,7 +164,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body
160164
stream: bool = False,
161165
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
162166
skip_deserialization: typing_extensions.Literal[False] = False,
163-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
167+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
164168
...
165169

166170
@typing.overload
@@ -190,12 +194,16 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body
190194

191195
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
192196
self,
193-
body,
194-
content_type = 'application/json',
195-
stream = False,
196-
timeout = None,
197-
skip_deserialization = False,
198-
):
197+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
198+
content_type: str = 'application/json',
199+
stream: bool = False,
200+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
201+
skip_deserialization: bool = False,
202+
) -> typing.Union[
203+
ApiResponseFor200,
204+
api_client.ApiResponse,
205+
api_client.ApiResponseWithoutDeserialization,
206+
]:
199207
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
200208
body=body,
201209
content_type=content_type,
@@ -216,7 +224,7 @@ def post(
216224
stream: bool = False,
217225
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
218226
skip_deserialization: typing_extensions.Literal[False] = False,
219-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
227+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
220228
...
221229

222230
@typing.overload
@@ -246,12 +254,16 @@ def post(
246254

247255
def post(
248256
self,
249-
body,
250-
content_type = 'application/json',
251-
stream = False,
252-
timeout = None,
253-
skip_deserialization = False,
254-
):
257+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
258+
content_type: str = 'application/json',
259+
stream: bool = False,
260+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
261+
skip_deserialization: bool = False,
262+
) -> typing.Union[
263+
ApiResponseFor200,
264+
api_client.ApiResponse,
265+
api_client.ApiResponseWithoutDeserialization,
266+
]:
255267
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
256268
body=body,
257269
content_type=content_type,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.pyi

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class BaseApi(api_client.Api):
4141
stream: bool = False,
4242
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
4343
skip_deserialization: typing_extensions.Literal[False] = False,
44-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
44+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
4545
...
4646

4747
@typing.overload
@@ -71,12 +71,16 @@ class BaseApi(api_client.Api):
7171

7272
def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
7373
self,
74-
body,
75-
content_type = 'application/json',
76-
stream = False,
77-
timeout = None,
78-
skip_deserialization = False,
79-
):
74+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
75+
content_type: str = 'application/json',
76+
stream: bool = False,
77+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
78+
skip_deserialization: bool = False,
79+
) -> typing.Union[
80+
ApiResponseFor200,
81+
api_client.ApiResponse,
82+
api_client.ApiResponseWithoutDeserialization,
83+
]:
8084
"""
8185
:param skip_deserialization: If true then api_response.response will be set but
8286
api_response.body and api_response.headers will not be deserialized into schema
@@ -134,7 +138,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
134138
stream: bool = False,
135139
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
136140
skip_deserialization: typing_extensions.Literal[False] = False,
137-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
141+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
138142
...
139143

140144
@typing.overload
@@ -164,12 +168,16 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp
164168

165169
def post_additionalproperties_allows_a_schema_which_should_validate_request_body(
166170
self,
167-
body,
168-
content_type = 'application/json',
169-
stream = False,
170-
timeout = None,
171-
skip_deserialization = False,
172-
):
171+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
172+
content_type: str = 'application/json',
173+
stream: bool = False,
174+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
175+
skip_deserialization: bool = False,
176+
) -> typing.Union[
177+
ApiResponseFor200,
178+
api_client.ApiResponse,
179+
api_client.ApiResponseWithoutDeserialization,
180+
]:
173181
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
174182
body=body,
175183
content_type=content_type,
@@ -190,7 +198,7 @@ class ApiForpost(BaseApi):
190198
stream: bool = False,
191199
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
192200
skip_deserialization: typing_extensions.Literal[False] = False,
193-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
201+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
194202
...
195203

196204
@typing.overload
@@ -220,12 +228,16 @@ class ApiForpost(BaseApi):
220228

221229
def post(
222230
self,
223-
body,
224-
content_type = 'application/json',
225-
stream = False,
226-
timeout = None,
227-
skip_deserialization = False,
228-
):
231+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
232+
content_type: str = 'application/json',
233+
stream: bool = False,
234+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
235+
skip_deserialization: bool = False,
236+
) -> typing.Union[
237+
ApiResponseFor200,
238+
api_client.ApiResponse,
239+
api_client.ApiResponseWithoutDeserialization,
240+
]:
229241
return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg(
230242
body=body,
231243
content_type=content_type,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
6767
stream: bool = False,
6868
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
6969
skip_deserialization: typing_extensions.Literal[False] = False,
70-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
70+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
7171
...
7272

7373
@typing.overload
@@ -97,12 +97,16 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
9797

9898
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
9999
self,
100-
body,
101-
content_type = 'application/json',
102-
stream = False,
103-
timeout = None,
104-
skip_deserialization = False,
105-
):
100+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
101+
content_type: str = 'application/json',
102+
stream: bool = False,
103+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
104+
skip_deserialization: bool = False,
105+
) -> typing.Union[
106+
ApiResponseFor200,
107+
api_client.ApiResponse,
108+
api_client.ApiResponseWithoutDeserialization,
109+
]:
106110
"""
107111
:param skip_deserialization: If true then api_response.response will be set but
108112
api_response.body and api_response.headers will not be deserialized into schema
@@ -160,7 +164,7 @@ def post_additionalproperties_are_allowed_by_default_request_body(
160164
stream: bool = False,
161165
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
162166
skip_deserialization: typing_extensions.Literal[False] = False,
163-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
167+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
164168
...
165169

166170
@typing.overload
@@ -190,12 +194,16 @@ def post_additionalproperties_are_allowed_by_default_request_body(
190194

191195
def post_additionalproperties_are_allowed_by_default_request_body(
192196
self,
193-
body,
194-
content_type = 'application/json',
195-
stream = False,
196-
timeout = None,
197-
skip_deserialization = False,
198-
):
197+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
198+
content_type: str = 'application/json',
199+
stream: bool = False,
200+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
201+
skip_deserialization: bool = False,
202+
) -> typing.Union[
203+
ApiResponseFor200,
204+
api_client.ApiResponse,
205+
api_client.ApiResponseWithoutDeserialization,
206+
]:
199207
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
200208
body=body,
201209
content_type=content_type,
@@ -216,7 +224,7 @@ def post(
216224
stream: bool = False,
217225
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
218226
skip_deserialization: typing_extensions.Literal[False] = False,
219-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
227+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
220228
...
221229

222230
@typing.overload
@@ -246,12 +254,16 @@ def post(
246254

247255
def post(
248256
self,
249-
body,
250-
content_type = 'application/json',
251-
stream = False,
252-
timeout = None,
253-
skip_deserialization = False,
254-
):
257+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
258+
content_type: str = 'application/json',
259+
stream: bool = False,
260+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
261+
skip_deserialization: bool = False,
262+
) -> typing.Union[
263+
ApiResponseFor200,
264+
api_client.ApiResponse,
265+
api_client.ApiResponseWithoutDeserialization,
266+
]:
255267
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
256268
body=body,
257269
content_type=content_type,

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.pyi

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class BaseApi(api_client.Api):
4141
stream: bool = False,
4242
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
4343
skip_deserialization: typing_extensions.Literal[False] = False,
44-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
44+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
4545
...
4646

4747
@typing.overload
@@ -71,12 +71,16 @@ class BaseApi(api_client.Api):
7171

7272
def _post_additionalproperties_are_allowed_by_default_request_body_oapg(
7373
self,
74-
body,
75-
content_type = 'application/json',
76-
stream = False,
77-
timeout = None,
78-
skip_deserialization = False,
79-
):
74+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
75+
content_type: str = 'application/json',
76+
stream: bool = False,
77+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
78+
skip_deserialization: bool = False,
79+
) -> typing.Union[
80+
ApiResponseFor200,
81+
api_client.ApiResponse,
82+
api_client.ApiResponseWithoutDeserialization,
83+
]:
8084
"""
8185
:param skip_deserialization: If true then api_response.response will be set but
8286
api_response.body and api_response.headers will not be deserialized into schema
@@ -134,7 +138,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
134138
stream: bool = False,
135139
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
136140
skip_deserialization: typing_extensions.Literal[False] = False,
137-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
141+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
138142
...
139143

140144
@typing.overload
@@ -164,12 +168,16 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi):
164168

165169
def post_additionalproperties_are_allowed_by_default_request_body(
166170
self,
167-
body,
168-
content_type = 'application/json',
169-
stream = False,
170-
timeout = None,
171-
skip_deserialization = False,
172-
):
171+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
172+
content_type: str = 'application/json',
173+
stream: bool = False,
174+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
175+
skip_deserialization: bool = False,
176+
) -> typing.Union[
177+
ApiResponseFor200,
178+
api_client.ApiResponse,
179+
api_client.ApiResponseWithoutDeserialization,
180+
]:
173181
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
174182
body=body,
175183
content_type=content_type,
@@ -190,7 +198,7 @@ class ApiForpost(BaseApi):
190198
stream: bool = False,
191199
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
192200
skip_deserialization: typing_extensions.Literal[False] = False,
193-
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]:
201+
) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]:
194202
...
195203

196204
@typing.overload
@@ -220,12 +228,16 @@ class ApiForpost(BaseApi):
220228

221229
def post(
222230
self,
223-
body,
224-
content_type = 'application/json',
225-
stream = False,
226-
timeout = None,
227-
skip_deserialization = False,
228-
):
231+
body: typing.Union[SchemaForRequestBodyApplicationJson,],
232+
content_type: str = 'application/json',
233+
stream: bool = False,
234+
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
235+
skip_deserialization: bool = False,
236+
) -> typing.Union[
237+
ApiResponseFor200,
238+
api_client.ApiResponse,
239+
api_client.ApiResponseWithoutDeserialization,
240+
]:
229241
return self._post_additionalproperties_are_allowed_by_default_request_body_oapg(
230242
body=body,
231243
content_type=content_type,

0 commit comments

Comments
 (0)